prometheus.yml 905 B

123456789101112131415161718192021222324252627282930313233343536373839
  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: 'grafana'
  22. dns_sd_configs:
  23. - names:
  24. - 'grafana'
  25. type: 'A'
  26. port: 3000
  27. refresh_interval: 10s
  28. # - job_name: 'mysql'
  29. # dns_sd_configs:
  30. # - names:
  31. # - 'mysqld-exporter'
  32. # type: 'A'
  33. # port: 9104
  34. # refresh_interval: 10s