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: