open-nomad/integrations/prometheus/prometheus.yml
2017-09-15 16:22:39 +00:00

17 lines
352 B
YAML

scrape_configs:
- job_name: 'nomad_metrics'
consul_sd_configs:
- server: 'localhost:8500'
services: ['nomad-client', 'nomad']
relabel_configs:
- source_labels: ['__meta_consul_tags']
regex: '(.*)http(.*)'
action: keep
scrape_interval: 5s
metrics_path: /v1/metrics
params:
format: ['prometheus']