Configuration
global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
external_labels:
monitor: promswarm
alerting:
alertmanagers:
- static_configs:
- targets:
- alertmanager:9093
scheme: http
timeout: 10s
rule_files:
- /etc/prometheus/swarm_node.rules.yml
- /etc/prometheus/swarm_task.rules.yml
scrape_configs:
- job_name: prometheus
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- localhost:9090
- job_name: dockerd-exporter
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
dns_sd_configs:
- names:
- tasks.dockerd-exporter
refresh_interval: 30s
type: A
port: 9323
- job_name: cadvisor
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
dns_sd_configs:
- names:
- tasks.cadvisor
refresh_interval: 30s
type: A
port: 8080
- job_name: node-exporter
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
dns_sd_configs:
- names:
- tasks.swarm-node-exporter
refresh_interval: 30s
type: A
port: 9100
- job_name: traefik
scrape_interval: 1s
scrape_timeout: 1s
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- traefik:8082
- job_name: mysql-exporter
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- mysql-exporter:9104
- job_name: crowdsec
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- crowdsec:6060