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) <noreply@anthropic.com>
This commit is contained in:
parent
b38b1af872
commit
27cc925c4d
2 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue