Skip to content

Instantly share code, notes, and snippets.

@subicura
Created April 16, 2017 07:36
Show Gist options
  • Save subicura/ffff392ddd3f4a2ede0a4727fafaa0da to your computer and use it in GitHub Desktop.
Save subicura/ffff392ddd3f4a2ede0a4727fafaa0da to your computer and use it in GitHub Desktop.
prometheus on swarm (2)
global:
scrape_interval: 30s
evaluation_interval: 30s
external_labels:
monitor: "prometheus-swarm"
rule_files:
scrape_configs:
- job_name: 'prometheus'
dns_sd_configs:
- names:
- 'tasks.prometheus'
type: 'A'
port: 9090
- job_name: 'cadvisor'
dns_sd_configs:
- names:
- 'tasks.cadvisor'
type: 'A'
port: 8080
- job_name: 'node-exporter'
dns_sd_configs:
- names:
- 'tasks.node-exporter'
type: 'A'
port: 9100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment