prometheus.yaml 915 B

12345678910111213141516171819202122232425262728
  1. ---
  2. global:
  3. scrape_interval: 15s # By default, scrape targets every 15 seconds.
  4. # Attach these labels to any time series or alerts when communicating with
  5. # external systems (federation, remote storage, Alertmanager).
  6. # external_labels:
  7. # monitor: 'codelab-monitor'
  8. # A scrape configuration containing exactly one endpoint to scrape:
  9. # Here it's Prometheus itself.
  10. scrape_configs:
  11. # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  12. - job_name: 'prometheus'
  13. # Override the global default and scrape targets from this job every 5 seconds.
  14. scrape_interval: 5s
  15. static_configs:
  16. - targets: ['localhost:9090']
  17. # Example job for node_exporter
  18. # - job_name: 'node_exporter'
  19. # static_configs:
  20. # - targets: ['node_exporter:9100']
  21. # Example job for cadvisor
  22. # - job_name: 'cadvisor'
  23. # static_configs:
  24. # - targets: ['cadvisor:8080']