mirror of
git://f0xx.org/ac/ac-deploy
synced 2026-07-29 03:38:07 +03:00
monitoring: fix mysqld target to cast01, add external blackbox probe
- Move mysqld_exporter target from artc0 (obsolete) to cast01:9104 - Add https://apps.f0xx.org/ as external blackbox HTTP probe - Comment artc0 as legacy/monitoring-only node Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Prometheus main config — cast04 (10.7.16.239)
|
# Prometheus main config — cast04 (10.7.16.239)
|
||||||
# Track A monitoring SPEC: ac-docs/specs/20260626_cluster_monitoring.md
|
# Track A monitoring SPEC: ac-docs/specs/20260626_cluster_monitoring.md
|
||||||
# Generated: 2026-06-26
|
# Updated: 2026-06-28 — mysqld targets moved to cast01/02/03 cluster
|
||||||
|
|
||||||
global:
|
global:
|
||||||
scrape_interval: 15s
|
scrape_interval: 15s
|
||||||
@@ -27,7 +27,7 @@ scrape_configs:
|
|||||||
- '10.7.16.237:9100' # cast02
|
- '10.7.16.237:9100' # cast02
|
||||||
- '10.7.16.238:9100' # cast03
|
- '10.7.16.238:9100' # cast03
|
||||||
- '10.7.16.239:9100' # cast04 (self)
|
- '10.7.16.239:9100' # cast04 (self)
|
||||||
- '10.7.16.128:9100' # artc0 (BE/MariaDB)
|
- '10.7.16.128:9100' # artc0 (legacy, monitoring only)
|
||||||
labels:
|
labels:
|
||||||
env: 'production'
|
env: 'production'
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
@@ -52,17 +52,17 @@ scrape_configs:
|
|||||||
target_label: instance
|
target_label: instance
|
||||||
replacement: 'artc0'
|
replacement: 'artc0'
|
||||||
|
|
||||||
# ── blackbox_exporter — HTTP probes (internal BE; FE port 443 unreachable from cluster) ─
|
# ── blackbox_exporter — HTTP probes ─────────────────────────────────────────
|
||||||
# External HTTPS availability → UptimeRobot (SaaS external probe)
|
|
||||||
- job_name: 'blackbox_http'
|
- job_name: 'blackbox_http'
|
||||||
metrics_path: /probe
|
metrics_path: /probe
|
||||||
params:
|
params:
|
||||||
module: [http_2xx]
|
module: [http_2xx]
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- 'http://10.7.16.128/app/androidcast_project/' # BE main app
|
- 'http://10.7.16.236/app/androidcast_project/' # BE main app (cast01)
|
||||||
- 'http://10.7.16.128/app/androidcast_project/issues/' # crash reporter
|
- 'http://10.7.16.236/app/androidcast_project/issues/' # crash reporter
|
||||||
- 'http://10.7.16.239:3000/api/health' # Grafana health
|
- 'http://10.7.16.239:3000/api/health' # Grafana health
|
||||||
|
- 'https://apps.f0xx.org/app/androidcast_project/' # external FE probe
|
||||||
labels:
|
labels:
|
||||||
env: 'production'
|
env: 'production'
|
||||||
relabel_configs:
|
relabel_configs:
|
||||||
@@ -73,15 +73,12 @@ scrape_configs:
|
|||||||
- target_label: __address__
|
- target_label: __address__
|
||||||
replacement: 'localhost:9115'
|
replacement: 'localhost:9115'
|
||||||
|
|
||||||
# TCP probes removed: MariaDB uses skip-networking (socket only), PostgreSQL binds loopback only.
|
# ── MariaDB exporter — cast01 (primary) ────────────────────────────────────
|
||||||
# Database health is covered by mysqld_exporter (job: mysqld) and postgres_exporter (job: postgres).
|
|
||||||
|
|
||||||
# ── MariaDB exporter (artc0) ─────────────────────────────────────────────────
|
|
||||||
- job_name: 'mysqld'
|
- job_name: 'mysqld'
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['10.7.16.128:9104']
|
- targets: ['10.7.16.236:9104']
|
||||||
labels:
|
labels:
|
||||||
instance: 'artc0-mariadb'
|
instance: 'cast01-mariadb'
|
||||||
|
|
||||||
# ── PostgreSQL exporter (cast01) ─────────────────────────────────────────────
|
# ── PostgreSQL exporter (cast01) ─────────────────────────────────────────────
|
||||||
- job_name: 'postgres'
|
- job_name: 'postgres'
|
||||||
|
|||||||
Reference in New Issue
Block a user