fix: update Prometheus service port configuration and correct Traefik target in scrape config

This commit is contained in:
2026-07-12 12:01:03 +08:00
parent 51c8970857
commit ac0a250354
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -21,6 +21,9 @@ services:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:ro
networks:
- traefik-public
ports:
- target: 9090
published: 9090
deploy:
mode: replicated
replicas: 1
+1 -1
View File
@@ -16,4 +16,4 @@ scrape_configs:
# Metrics are served on the dedicated "metrics" entrypoint (port 8082).
- job_name: 'traefik'
static_configs:
- targets: ['192.168.50.220:8082']
- targets: ['core_traefik:8082']