Skip to content

Instantly share code, notes, and snippets.

@ansrivas
Last active March 10, 2019 19:45
Show Gist options
  • Save ansrivas/be18c1b5ae31863bf4e7daa4e442bc6d to your computer and use it in GitHub Desktop.
Save ansrivas/be18c1b5ae31863bf4e7daa4e442bc6d to your computer and use it in GitHub Desktop.
prometheus.yml example
scrape_configs:
- job_name: 'self'
consul_sd_configs:
- server: 'consul.service.consul:8500'
services: []
relabel_configs:
- source_labels: [__meta_consul_tags]
regex: .*,metrics,.*
action: keep
- source_labels: [__meta_consul_service]
target_label: job
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment