prometheus.yml 841 B

1234567891011121314151617181920212223242526272829303132333435
  1. # my global config
  2. global:
  3. scrape_interval: 10s # By default, scrape targets every 15 seconds.
  4. evaluation_interval: 10s # By default, scrape targets every 15 seconds.
  5. # scrape_timeout is set to the global default (10s).
  6. # Load and evaluate rules in this file every 'evaluation_interval' seconds.
  7. rule_files:
  8. - "alert.rules"
  9. # - "first.rules"
  10. # - "second.rules"
  11. alerting:
  12. alertmanagers:
  13. - scheme: http
  14. static_configs:
  15. - targets:
  16. - "127.0.0.1:9093"
  17. scrape_configs:
  18. - job_name: 'prometheus'
  19. static_configs:
  20. - targets: ['localhost:9090']
  21. - job_name: 'node_exporter'
  22. static_configs:
  23. - targets: ['127.0.0.1:9100']
  24. - job_name: 'fake-data-gen'
  25. static_configs:
  26. - targets: ['127.0.0.1:9091']
  27. - job_name: 'grafana'
  28. static_configs:
  29. - targets: ['127.0.0.1:3000']