Last active
March 10, 2019 19:45
-
-
Save ansrivas/be18c1b5ae31863bf4e7daa4e442bc6d to your computer and use it in GitHub Desktop.
prometheus.yml example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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