prometheus.yml 1018 B

123456789101112131415161718192021222324252627282930
  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. # Attach these extra labels to all timeseries collected by this Prometheus instance.
  7. labels:
  8. monitor: 'codelab-monitor'
  9. # Load and evaluate rules in this file every 'evaluation_interval' seconds.
  10. rule_files:
  11. # - "first.rules"
  12. # - "second.rules"
  13. # A scrape configuration containing exactly one endpoint to scrape:
  14. # Here it's Prometheus itself.
  15. scrape_configs:
  16. # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  17. - job_name: 'prometheus'
  18. # Override the global default and scrape targets from this job every 5 seconds.
  19. scrape_interval: 10s
  20. scrape_timeout: 10s
  21. # metrics_path defaults to '/metrics'
  22. # scheme defaults to 'http'.
  23. target_groups:
  24. - targets: ['localhost:9090', '172.17.42.1:9091']