mirror of
https://github.com/furyhawk/cloudy.git
synced 2026-07-21 10:15:56 +00:00
21 lines
654 B
YAML
21 lines
654 B
YAML
# Prometheus configuration for the Swarm stack.
|
|
# Mounted into the Prometheus container as a Docker config.
|
|
global:
|
|
scrape_interval: 15s
|
|
evaluation_interval: 15s
|
|
|
|
scrape_configs:
|
|
# Scrape Prometheus itself
|
|
- job_name: 'prometheus'
|
|
static_configs:
|
|
- targets: ['localhost:9090']
|
|
|
|
# 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.
|
|
# Metrics are served on the dedicated "metrics" entrypoint (port 8082).
|
|
- job_name: 'traefik'
|
|
static_configs:
|
|
- targets: ['core_traefik:8082']
|
|
metrics_path: /metrics
|