Advertisement
Guest User

Untitled

a guest
May 27th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. $ cat prometheus.conf
  2. global:
  3. evaluation_interval: 15s
  4. labels: {env: qa1}
  5. scrape_interval: 15s
  6.  
  7. scrape_configs:
  8. - file_sd_configs:
  9. - names: [/tmp/test-job-with-labels.yml]
  10. job_name: target_group_with_labels
  11.  
  12. $ cat /tmp/test-job-with-labels.yml
  13. - targets: ['localhost:9100']
  14. labels:
  15. foo: bar
  16.  
  17. $ ./prometheus -config.file=prometheus.conf -storage.local.path="/home/ubuntu/metrics"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement