prometheus.yml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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: 1m
  27. static_configs:
  28. - targets: ['10.100.253.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.253.13:8082']
  35. labels:
  36. service_name: hx_read_write_stats
  37. - job_name: 'dhcp_metrics'
  38. scrape_interval: 1m
  39. static_configs:
  40. - targets: ['10.100.253.13:8083']
  41. labels:
  42. service_name: dhcp_server_stats
  43. - job_name: 'snmp'
  44. metrics_path: /snmp
  45. params:
  46. module: [if_mib]
  47. static_configs:
  48. - targets:
  49. - 10.128.0.1
  50. - 10.128.0.2
  51. - 10.128.0.5
  52. - 10.128.0.6
  53. - 10.128.0.7
  54. - 10.128.0.9
  55. - 10.128.0.10
  56. - 10.127.0.61
  57. - 10.127.0.62
  58. - 10.127.0.101
  59. - 10.127.0.102
  60. - 10.127.0.103
  61. - 10.127.0.104
  62. - 10.127.0.105
  63. - 10.127.0.106
  64. - 10.127.0.107
  65. - 10.127.0.108
  66. - 10.127.0.109
  67. - 10.127.0.110
  68. - 10.127.0.111
  69. - 10.127.0.112
  70. - 10.127.0.113
  71. - 10.127.0.114
  72. - 10.127.0.115
  73. - 10.127.0.116
  74. - 10.127.0.242
  75. - 10.127.0.243
  76. - 10.127.0.244
  77. - 10.127.0.252
  78. - 10.127.0.253
  79. - 10.127.0.247
  80. - 10.127.0.248
  81. - 10.127.0.249
  82. - 10.127.0.250
  83. relabel_configs:
  84. - source_labels: [__address__]
  85. target_label: __param_target
  86. - source_labels: [__param_target]
  87. target_label: instance
  88. - target_label: __address__
  89. replacement: 127.0.0.1:9116