ข้ามไปยังเนื้อหา

รายงานสถานะ Monitoring Host ก่อนการอัปเกรด

วันที่ตรวจสอบ: 13 พฤษภาคม 2569 (2026-05-13) สถานะ: รายงานสถานะปัจจุบัน — ยังไม่ดำเนินการอัปเกรด ผู้ดำเนินการ: บริษัท แรคซิงค์ จำกัด (RACKSYNC Co., Ltd.) สัญญา: PM065-2026 (MA ประจำปี 2569) ระบบเป้าหมาย: Monitoring Stack monitor (194.1.0.15)

Pre-upgrade assessment of the monitor VM hosting Prometheus, AlertManager, Grafana, nginx runbook server, Cloudflare Tunnel, Node Exporter, and the Weather Station stack. This host is in significantly better shape than db — Debian 12, Docker 28.x, and most containers are only 6 months old.


Item Value
Hostname monitoring
IP Address 194.1.0.15
SSH alias monitor (via cf-rilf-gw jump)
Host OS Debian 12 bookworm (current LTS)
Kernel 6.1.0-40-amd64 (2025-09-20)
CPU Intel Xeon Gold 6252 @ 2.10GHz, 4 cores
RAM 7.8 GB total, 1.9 GB used, 5.8 GB available
Swap 975 MB total, 310 MB used
Disk 502 GB total, 72 GB used (15%), 405 GB free
Docker Engine 28.5.1 (current)
Uptime 90 days (stable)
Load average 0.04, 0.09, 0.08 (very low)

Two stacks run on this host: monitoring (metrics) and weather station.

Container Image Running Version Created Port Status
prometheus prom/prometheus:v2.47.2 2.47.2 2025-11-11 9090 Up 3 months
grafana grafana/grafana:latest 12.2.1 2025-11-11 3000 Up 3 months (healthy)
alertmanager prom/alertmanager:latest 0.29.0 2025-11-11 9093 Up 3 months (healthy)
node-exporter prom/node-exporter:latest 1.10.2 2025-11-11 9100 Up 3 months (healthy)
nginx nginx:alpine 1.29.3 2026-05-12 80 Up 46 min (healthy) — just recreated for healthcheck fix
cloudflared cloudflare/cloudflared:latest auto-update 2025-11-11 — Up 3 months (healthy)
Container Image Running Version Created Port Status
weather-server weather-server:latest custom build 2026-02-22 3002 Up 2 months (healthy)
weather-frontend weather-frontend:latest custom build 2026-02-23 3003 Up 2 months (healthy)
weather-db mariadb:11.4 11.4.9 2026-02-23 3307 Up 2 months (healthy)
weather-cloudflared cloudflare/cloudflared:latest auto-update 2026-02-11 — Up 3 months
weather-phpmyadmin phpmyadmin:latest — 2026-02-11 8081 Up 3 months
weather-backup alpine:3.19 — 2026-02-11 — Up 2 days

Component Current Latest Upstream Gap Priority
Prometheus 2.47.2 (Oct 2023) 3.11.3 1 major Phase B — config breaking
Grafana 12.2.1 (Oct 2025) 13.0.1 1 major Medium — this MA
AlertManager 0.29.0 (Nov 2025) 0.28.x stable ✅ ahead of stable Current
Node Exporter 1.10.2 (Oct 2025) latest ✅ Current
nginx 1.29.3 latest alpine ✅ Current
cloudflared auto-update — ✅ Current
Weather MariaDB 11.4.9 11.4 LTS ✅ Current
Host OS (Debian 12) current LTS — ✅ Current
Docker Engine 28.5.1 current — ✅ Current

Summary: Only 2 components need upgrading — Prometheus (major, deferred) and Grafana (1 major version behind). Everything else is current.


Path Size Contents
/home/mtd/backups/ 11 GB 27 monitoring backup tarballs (Oct–Nov 2025)
/var/lib/docker/volumes/ 9.8 GB Prometheus TSDB + Grafana data
/home/mtd/metrics/actions-runner/ 2.3 GB GitHub Actions runner + work dir
/home/mtd/metrics/ (total) 2.3 GB Config, actions-runner, runbook
/home/mtd/weather/ 1.3 MB Weather frontend source only
Total disk used 72 GB / 502 GB (15%) 405 GB free — ample space
Type Count Active Size Reclaimable
Images 28 11 3.0 GB 963 MB (dangling build images)
Local Volumes 52 5 10.5 GB ~0
Build Cache 59 0 1.1 GB 1.1 GB (100% reclaimable)

Cleanup opportunity: ~2 GB reclaimable from dangling images + build cache. Also 11 GB of old backups from Oct–Nov 2025 could be archived if needed.


Item Value
Running version 2.47.2 (Oct 2023)
Image tag prom/prometheus:v2.47.2 (pinned — good)
Retention 15 days (configurable via env)
Data volume Named volume prometheus-data
External URL https://prom.ovbhospital.com
Admin API Enabled (--web.enable-admin-api)
Lifecycle API Enabled (--web.enable-lifecycle)

Prometheus monitors 5 infrastructure nodes via node-exporter:

Target Instance IP
Prometheus self localhost:9090 local
Monitoring server node-exporter:9100 local
HA server 194.1.0.1:9100 ha
Database server 194.1.0.2:9100 db
Frigate NVR 194.1.0.4:9100 fg
Gateway 194.1.0.3:9100 gw

Active alert groups in alert.rules.yml:

  • system-infrastructure: HighCPUUsage (>90% for 5m), HighMemoryUsage (>90% for 5m)
  • Additional rules in the full file

AlertManager routes to:

  • Email: mtd@overbrook-hospital.com
  • n8n webhooks (critical + warning channels)

Item Value
Running version 12.2.1
Latest upstream 13.0.1
Gap 1 major version
Image tag grafana/grafana:latest (unpinned)
Data volume Named volume grafana-data
External URL https://metrics.ovbhospital.com
Plugins piechart-panel, worldmap-panel, clock-panel
Provisioning /etc/grafana/provisioning (read-only bind mount)

Note: This Grafana instance (12.2.1) is already newer than the one on db (10.0.3). Upgrading to 13.x here is a smaller jump.


Self-contained stack with custom-built frontend and server images.

Item Value
URL weather.ovbhospital.com
Frontend Custom build (weather-frontend:latest)
Backend Custom build (weather-server:latest)
Database MariaDB 11.4.9 (current LTS)
Backup Alpine cron container
Tunnel Dedicated cloudflared instance
Build artifacts 17 dangling images from Feb 2026 builds (~963 MB)

No upgrades needed — custom images are recent (Feb 2026), MariaDB is on LTS.


# Risk Detail
1 Prometheus 2.47 → 3.x is config-breaking remote_write → remote.write, metric naming, rule evaluation changes. Needs config audit before upgrade
2 Grafana uses :latest (unpinned) A docker compose pull would jump from 12.2.1 to 13.x. Should pin first
# Risk Detail
3 11 GB old backups from Oct–Nov 2025 Not rotated — consuming disk unnecessarily
4 1.1 GB build cache + dangling images Reclaimable with docker system prune
5 Prometheus healthcheck disabled Commented out in compose — container reports no health status
6 GitHub Actions runner on monitoring server 2.3 GB; mixing CI/CD with production monitoring
# Risk Detail
7 Swap usage 310 MB Not critical but indicates occasional memory pressure

Unlike db, this host is well-maintained:

Item Status
Host OS ✅ Debian 12 (current LTS)
Docker Engine ✅ 28.5.1 (current)
Prometheus ✅ Pinned to specific version (v2.47.2)
Named volumes ✅ Prometheus + Grafana use named volumes (not anonymous)
Healthchecks ✅ Defined for most services (except Prometheus — commented out)
Disk space ✅ 405 GB free (15% used)
Backups ✅ 27 backup tarballs exist
Weather stack ✅ All current, MariaDB on LTS
Node Exporter ✅ Current version
AlertManager ✅ Current version

Step Action Risk
1a Pin Grafana tag: grafana/grafana:latest → grafana/grafana:12.2.1 Zero
1b Clean up: docker system prune + docker builder prune Low — reclaim ~2 GB
1c Re-enable Prometheus healthcheck in compose Zero
Step Action Risk
2a Grafana 12.2.1 → 13.x Medium — test dashboards, plugins, provisioning
2b Archive old backups (Oct–Nov 2025) to external storage Low
Step Action Risk
3a Prometheus 2.47.2 → 3.x High — config breaking, coordinate with db Prometheus
3b Review: merge db Prometheus into monitor (single Prometheus instance) Architectural decision

บทบาท ชื่อ วันที่
ผู้ตรวจสอบ RACKSYNC Engineering 2026-05-13
ผู้อนุมัติแผน (RACKSYNC) — —
ผู้รับทราบ (OBH) — —

  • ma/2569/software-version-audit.md §2.2, §7.2 — version inventory and re-verification
  • ma/2569/plan.md §2.2 — infrastructure under maintenance
  • docs/monitoring.md — Prometheus/AlertManager alert rules and routing
  • docs/architecture.md — VM stack overview
  • /home/mtd/metrics/docker-compose.yml — monitoring stack compose
  • /home/mtd/metrics/config/prometheus/prometheus.yml — scrape targets
  • /home/mtd/metrics/config/prometheus/alert.rules.yml — alert rules