prometheus-pushgateway.conf.example 723 B

12345678910111213141516171819202122232425
  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. ## URL of push-gateway server
  7. push_gateway_server = "http://127.0.0.1:9091"
  8. ## Data push interval
  9. interval = 15s
  10. ## A HTTP Headers when pushing to Push-gateway
  11. headers = {
  12. Authorization = "some-authz-tokens",
  13. Connection = "keep-alive"
  14. }
  15. ## Job Name that is pushed to the Push-gateway
  16. ## Available variable:
  17. ## - ${name}: Name of EMQX node
  18. ## - ${host}: Host name of EMQX node
  19. job_name = "${name}/instance/${name}~${host}"
  20. }