Skip to content

Instantly share code, notes, and snippets.

@subicura
Created January 27, 2018 03:25
Show Gist options
  • Save subicura/df8370964fb33fefd4bf46e0e53f1201 to your computer and use it in GitHub Desktop.
Save subicura/df8370964fb33fefd4bf46e0e53f1201 to your computer and use it in GitHub Desktop.
prometheus.yml
global:
scrape_interval: 30s
evaluation_interval: 30s
labels:
cluster: swarm
replica: "1"
scrape_configs:
- 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