From 27cc925c4da192e262946a6fb01e3717fdeb9566 Mon Sep 17 00:00:00 2001 From: justin Date: Fri, 1 May 2026 03:17:31 -0500 Subject: [PATCH] Fix nginx-exporter port and add alertmanager scrape target - nginx stub_status moved to port 8888 (port 80 was being caught by other server blocks and returning 301) - nginx-exporter updated to scrape :8888 - Added alertmanager scrape job to Prometheus config (was missing, so alertmanager dashboard had no data) Co-Authored-By: Claude Opus 4.6 (1M context) --- docker-compose.yml | 2 +- monitoring/prometheus.yml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8ac6f5f..2285d25 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -372,7 +372,7 @@ services: nginx-exporter: image: nginx/nginx-prometheus-exporter:latest command: - - -nginx.scrape-uri=http://host.docker.internal:80/nginx_status + - -nginx.scrape-uri=http://host.docker.internal:8888/nginx_status extra_hosts: - "host.docker.internal:host-gateway" restart: unless-stopped diff --git a/monitoring/prometheus.yml b/monitoring/prometheus.yml index 88c2dcc..a788af8 100644 --- a/monitoring/prometheus.yml +++ b/monitoring/prometheus.yml @@ -34,6 +34,11 @@ scrape_configs: labels: instance: prod + # ── Alertmanager ──────────────────────────────────────────────────── + - job_name: alertmanager + static_configs: + - targets: ["alertmanager:9093"] + # ── nginx ────────────────────────────────────────────────────────── - job_name: nginx static_configs: