prometheus.yml 924 B

1234567891011121314151617181920212223242526
  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. # - "first.rules"
  9. # - "second.rules"
  10. # A scrape configuration containing exactly one endpoint to scrape:
  11. # Here it's Prometheus itself.
  12. scrape_configs:
  13. # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  14. - job_name: 'prometheus'
  15. # Override the global default and scrape targets from this job every 5 seconds.
  16. scrape_interval: 10s
  17. scrape_timeout: 10s
  18. # metrics_path defaults to '/metrics'
  19. # scheme defaults to 'http'.
  20. target_groups:
  21. - targets: ['localhost:9090', '172.17.0.1:9091', '172.17.0.1:9100', '172.17.0.1:9150']