prometheus.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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. # A scrape configuration containing exactly one endpoint to scrape:
  18. # Here it's Prometheus itself.
  19. scrape_configs:
  20. # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  21. - job_name: 'prometheus'
  22. # Override the global default and scrape targets from this job every 5 seconds.
  23. scrape_interval: 10s
  24. scrape_timeout: 10s
  25. # metrics_path defaults to '/metrics'
  26. # scheme defaults to 'http'.
  27. static_configs:
  28. #- targets: ['localhost:9090', '172.17.0.1:9091', '172.17.0.1:9100', '172.17.0.1:9150']
  29. - targets: ['localhost:9090', '127.0.0.1:9091', '127.0.0.1:9100', '127.0.0.1:9150']