Last active
August 28, 2018 18:36
-
-
Save diogok/64731b93f703426670308dbf99bbd570 to your computer and use it in GitHub Desktop.
This file contains 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
global: | |
scrape_interval: 5s | |
scrape_configs: | |
- job_name: nomad_metrics | |
params: | |
format: | |
- prometheus | |
scrape_interval: 5s | |
scrape_timeout: 5s | |
metrics_path: /v1/metrics | |
scheme: http | |
consul_sd_configs: | |
- server: 'host:8500' | |
tag_separator: ',' | |
scheme: http | |
services: | |
- nomad-client | |
- nomad | |
tls_config: | |
insecure_skip_verify: true | |
relabel_configs: | |
- source_labels: [__meta_consul_tags] | |
separator: ; | |
regex: (.*)http(.*) | |
replacement: $1 | |
action: keep | |
- source_labels: [__meta_consul_address] | |
separator: ; | |
regex: (.*) | |
target_label: __meta_consul_service_address | |
replacement: $1 | |
action: replace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment