mirror of
git://f0xx.org/ac/ac-deploy
synced 2026-07-29 02:37:39 +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)
|
||||
# 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:
|
||||
scrape_interval: 15s
|
||||
@@ -27,7 +27,7 @@ scrape_configs:
|
||||
- '10.7.16.237:9100' # cast02
|
||||
- '10.7.16.238:9100' # cast03
|
||||
- '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:
|
||||
env: 'production'
|
||||
relabel_configs:
|
||||
@@ -52,17 +52,17 @@ scrape_configs:
|
||||
target_label: instance
|
||||
replacement: 'artc0'
|
||||
|
||||
# ── blackbox_exporter — HTTP probes (internal BE; FE port 443 unreachable from cluster) ─
|
||||
# External HTTPS availability → UptimeRobot (SaaS external probe)
|
||||
# ── blackbox_exporter — HTTP probes ─────────────────────────────────────────
|
||||
- job_name: 'blackbox_http'
|
||||
metrics_path: /probe
|
||||
params:
|
||||
module: [http_2xx]
|
||||
static_configs:
|
||||
- targets:
|
||||
- 'http://10.7.16.128/app/androidcast_project/' # BE main app
|
||||
- 'http://10.7.16.128/app/androidcast_project/issues/' # crash reporter
|
||||
- 'http://10.7.16.236/app/androidcast_project/' # BE main app (cast01)
|
||||
- 'http://10.7.16.236/app/androidcast_project/issues/' # crash reporter
|
||||
- 'http://10.7.16.239:3000/api/health' # Grafana health
|
||||
- 'https://apps.f0xx.org/app/androidcast_project/' # external FE probe
|
||||
labels:
|
||||
env: 'production'
|
||||
relabel_configs:
|
||||
@@ -73,15 +73,12 @@ scrape_configs:
|
||||
- target_label: __address__
|
||||
replacement: 'localhost:9115'
|
||||
|
||||
# TCP probes removed: MariaDB uses skip-networking (socket only), PostgreSQL binds loopback only.
|
||||
# Database health is covered by mysqld_exporter (job: mysqld) and postgres_exporter (job: postgres).
|
||||
|
||||
# ── MariaDB exporter (artc0) ─────────────────────────────────────────────────
|
||||
# ── MariaDB exporter — cast01 (primary) ────────────────────────────────────
|
||||
- job_name: 'mysqld'
|
||||
static_configs:
|
||||
- targets: ['10.7.16.128:9104']
|
||||
- targets: ['10.7.16.236:9104']
|
||||
labels:
|
||||
instance: 'artc0-mariadb'
|
||||
instance: 'cast01-mariadb'
|
||||
|
||||
# ── PostgreSQL exporter (cast01) ─────────────────────────────────────────────
|
||||
- job_name: 'postgres'
|
||||
|
||||
Reference in New Issue
Block a user