prometheus-pushgateway.conf.example 804 B

12345678910111213141516171819202122232425262728
  1. ## Prometheus push-gateway integration
  2. ## EMQX's Prometheus scraping endpoint is enabled by default without authentication.
  3. ## e.g. curl -f "127.0.0.1:18083/api/v5/prometheus/stats"
  4. ## If you want to use push-gateway
  5. prometheus {
  6. ## Set to true to make EMQX send metrics to push-gateway
  7. enable = false
  8. ## URL of push-gateway server
  9. push_gateway_server = "http://127.0.0.1:9091"
  10. ## Data push interval
  11. interval = 15s
  12. ## A HTTP Headers when pushing to Push-gateway
  13. headers = {
  14. Authorization = "some-authz-tokens",
  15. Connection = "keep-alive"
  16. }
  17. ## Job Name that is pushed to the Push-gateway
  18. ## Available variable:
  19. ## - ${name}: Name of EMQX node
  20. ## - ${host}: Host name of EMQX node
  21. job_name = "${name}/instance/${name}~${host}"
  22. }