prometheus.yml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. # my global config
  2. global:
  3. scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
  4. evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
  5. # scrape_timeout is set to the global default (10s).
  6. # Alertmanager configuration
  7. alerting:
  8. alertmanagers:
  9. - static_configs:
  10. - targets:
  11. # - alertmanager:9093
  12. # Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
  13. rule_files:
  14. # - "first_rules.yml"
  15. # - "second_rules.yml"
  16. # A scrape configuration containing exactly one endpoint to scrape:
  17. # Here it's Prometheus itself.
  18. scrape_configs:
  19. # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  20. - job_name: 'prometheus'
  21. # metrics_path defaults to '/metrics'
  22. # scheme defaults to 'http'.
  23. static_configs:
  24. - targets: ['localhost:9090']
  25. - job_name: 'mac_metrics'
  26. scrape_interval: 5m
  27. static_configs:
  28. - targets: ['10.100.252.13:8081']
  29. labels:
  30. service_name: idf_mac_address_count
  31. - job_name: 'hx_metrics'
  32. scrape_interval: 1m
  33. static_configs:
  34. - targets: ['10.100.252.13:8082']
  35. labels:
  36. service_name: hx_read_write_stats
  37. - job_name: 'dhcp_metrics'
  38. scrape_interval: 5m
  39. static_configs:
  40. - targets: ['10.100.252.13:8083']
  41. labels:
  42. service_name: dhcp_server_stats
  43. - job_name: 'snmp'
  44. metrics_path: /snmp
  45. params:
  46. module: [if_mib, if_mib_ifalias]
  47. static_configs:
  48. - targets:
  49. - 006-mdf-a.ciscolive.network
  50. - 007-mdf-a.ciscolive.network
  51. - core1-wb.ciscolive.network
  52. - core2-wa.ciscolive.network
  53. - core1-l3c.ciscolive.network
  54. - 008-mdf-a.ciscolive.network
  55. - 004-mdf-a.ciscolive.network
  56. - core2-wb.ciscolive.network
  57. - core1-edge.ciscolive.network
  58. - 006-mdf-b.ciscolive.network
  59. - 008-mdf-b.ciscolive.network
  60. - core1-wa.ciscolive.network
  61. - core2-ts.ciscolive.network
  62. - 003-mdf-b.ciscolive.network
  63. - fusion-005-mdf-a.ciscolive.network
  64. - fusion-005-mdf-b.ciscolive.network
  65. - 005-mdf-a.ciscolive.network
  66. - 005-mdf-b.ciscolive.network
  67. - 004-mdf-b.ciscolive.network
  68. - core1-ts.ciscolive.network
  69. - core2-edge.ciscolive.network
  70. - dc2-ethsw-1.ciscolive.network
  71. - dc2-ethsw-2.ciscolive.network
  72. - dc1-ethsw-1.ciscolive.network
  73. - dc1-ethsw-2.ciscolive.network
  74. - 003-mdf-a.ciscolive.network
  75. - core2-l3c.ciscolive.network
  76. - 007-mdf-b.ciscolive.network
  77. relabel_configs:
  78. - source_labels: [__address__]
  79. target_label: __param_target
  80. - source_labels: [__param_target]
  81. target_label: instance
  82. - target_label: __address__
  83. replacement: 127.0.0.1:9116