Skip to content

Instantly share code, notes, and snippets.

@leopard627
Forked from subicura/prometheus.yml
Created January 10, 2020 17:23
Show Gist options
  • Save leopard627/01295e4780836ee85d860d511cfed042 to your computer and use it in GitHub Desktop.
Save leopard627/01295e4780836ee85d860d511cfed042 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