mirror of
https://github.com/furyhawk/cloudy.git
synced 2026-07-21 10:15:56 +00:00
feat: add additional port mapping for Traefik and update Prometheus scrape config to use static targets
This commit is contained in:
@@ -46,6 +46,9 @@ services:
|
||||
- target: 8033
|
||||
published: 8033
|
||||
mode: host
|
||||
- target: 8082
|
||||
published: 8082
|
||||
mode: host
|
||||
deploy:
|
||||
placement:
|
||||
constraints:
|
||||
|
||||
@@ -12,10 +12,8 @@ scrape_configs:
|
||||
|
||||
# Scrape Traefik Prometheus metrics
|
||||
# Both services are on the traefik-public overlay network.
|
||||
# Traefik is in the 'core' stack, so the Swarm DNS name is core_traefik.
|
||||
# Traefik is in the 'core' stack; scrape via service VIP for stability.
|
||||
# Metrics are served on the dedicated "metrics" entrypoint (port 8082).
|
||||
- job_name: 'traefik'
|
||||
dns_sd_configs:
|
||||
- names: ['core_traefik']
|
||||
type: 'A'
|
||||
port: 8082
|
||||
static_configs:
|
||||
- targets: ['core_traefik:8082']
|
||||
|
||||
Reference in New Issue
Block a user