prometheus.conf.example 768 B

12345678910111213141516171819202122232425262728
  1. ##--------------------------------------------------------------------
  2. ## Prometheus
  3. ##
  4. ## Settings for reporting metrics to Prometheus
  5. ##--------------------------------------------------------------------
  6. prometheus {
  7. ## URL of Prometheus server
  8. push_gateway_server = "http://127.0.0.1:9091"
  9. ## Data reporting interval
  10. interval = 15s
  11. ## A HTTP Headers when pushing to Push Gateway.
  12. headers = {
  13. Authorization = "some-authz-tokens",
  14. Connection = "keep-alive"
  15. }
  16. ## Job Name that is pushed to the Push Gateway.
  17. ## Available variable:
  18. ## - ${name}: Name of EMQX node
  19. ## - ${host}: Host name of EMQX node
  20. job_name = "${name}/instance/${name}~${host}"
  21. ## set true to enable this
  22. enable = false
  23. }