Skip to content

Instantly share code, notes, and snippets.

@diogok
Last active August 28, 2018 18:36
Show Gist options
  • Save diogok/64731b93f703426670308dbf99bbd570 to your computer and use it in GitHub Desktop.
Save diogok/64731b93f703426670308dbf99bbd570 to your computer and use it in GitHub Desktop.
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