-
Should it be possible to disable serving the default metrics endpoint (ex: localhost:4000/metrics), when we configure prom_ex with a dedicated metrics_server (ex: metrics_server: [port: 4021])? Right now metrics are served at both endpoints "localhost:4000/metrics" and "localhost:4021/metrics". As the main motivation for usage of a dedicated metrics_server is to protect access at the network layer (firewall) when we use a local prometheus scrapper like the Grafana Agent, it would be great if serving metrics at the main endpoint could be disabled. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey there! PromEx will only expose metrics when configured to do so (via the provided plug or the standalone server). My guess is that you still have your plug entry in |
Beta Was this translation helpful? Give feedback.
Hey there! PromEx will only expose metrics when configured to do so (via the provided plug or the standalone server). My guess is that you still have your plug entry in
endpoint.ex
? Kinda like https://github.com/akoutmos/prom_ex/blob/master/example_applications/web_app/lib/web_app_web/endpoint.ex#L29