Advertisement
fedorm

Untitled

Apr 8th, 2019
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.86 KB | None | 0 0
  1. global:
  2.   scrape_interval:     15s
  3.   evaluation_interval: 15s
  4.  
  5. rule_files:
  6.   # - "first.rules"
  7.   # - "second.rules"
  8.  
  9. scrape_configs:
  10.   - job_name: node
  11.     static_configs:
  12.       - targets: ['localhost:9100']
  13.  
  14.   - job_name: prometheus
  15.     static_configs:
  16.       - targets: ['localhost:9090']
  17.  
  18.   - job_name: 'nomad_metrics'
  19.  
  20.     consul_sd_configs:
  21.     - server: 'localhost:8500'
  22.       services: ['nomad-client', 'nomad']
  23.  
  24.     relabel_configs:
  25.     - source_labels: ['__meta_consul_tags']
  26.       regex: '(.*)http(.*)'
  27.       action: keep
  28.  
  29.     scrape_interval: 5s
  30.     metrics_path: /v1/metrics
  31.     params:
  32.       format: ['prometheus']
  33.  
  34.   - job_name: redis_exporter
  35.     static_configs:
  36.       - targets: ['localhost:9121']
  37.  
  38.   - job_name: haproxy_exporter
  39.     consul_sd_configs:
  40.     - server: 'localhost:8500'
  41.       services: ['gateway-gateway-haproxy-exporter']
  42.  
  43.     scrape_interval: 5s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement