Advertisement
Guest User

Untitled

a guest
Nov 21st, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. # my global config
  2. global:
  3. scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
  4. evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
  5. # scrape_timeout is set to the global default (10s).
  6.  
  7. # Alertmanager configuration
  8. alerting:
  9. alertmanagers:
  10. - static_configs:
  11. - targets:
  12. # - alertmanager:9093
  13.  
  14. # Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
  15. rule_files:
  16. # - "first_rules.yml"
  17. # - "second_rules.yml"
  18.  
  19. # A scrape configuration containing exactly one endpoint to scrape:
  20. # Here it's Prometheus itself.
  21. scrape_configs:
  22. # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  23. - job_name: 'prometheus'
  24.  
  25. # metrics_path defaults to '/metrics'
  26. # scheme defaults to 'http'.
  27.  
  28. static_configs:
  29. - targets: ['localhost:9090']
  30.  
  31.  
  32. - job_name: 'customer1.com'
  33. static_configs:
  34. - targets: [ '10.0.0.1:8083', '10.0.0.12:8083', '10.0.0.13:8083' ]
  35.  
  36. basic_auth:
  37. username: 'something'
  38. password: 'ThisIsRemoved'
  39.  
  40. - job_name: 'ns2.customer2.com'
  41. static_configs:
  42. - targets: [ '10.0.0.14:8083' ]
  43.  
  44. basic_auth:
  45. username: 'something'
  46. password: 'ThisIsRemoved'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement