Can Prom be configured to only listen to localhost?

795 views
Skip to first unread message

scott.p...@gmail.com

unread,
Jul 18, 2018, 3:17:27 PM7/18/18
to Prometheus Users
I have put prom behing an nginx reverse proxy and it works fine. However, I want to prevent direct access to prom. Is there a way to configure prometheus to only listen to requests from localhost?

Cody Boggs

unread,
Jul 18, 2018, 4:46:07 PM7/18/18
to scott.p...@gmail.com, Prometheus Users
--web.listen-address="127.0.0.1:9090"

Should do the trick.

Cody Boggs | Yak Shaver (Ops)

FreshTracks.io

Intelligent Alerting for Kubernetes and Prometheus


On Wed, Jul 18, 2018 at 1:17 PM, <scott.p...@gmail.com> wrote:
I have put prom behing an nginx reverse proxy and it works fine. However, I want to prevent direct access to prom. Is there a way to configure prometheus to only listen to requests from localhost?

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/307a79a6-ccfa-480d-8313-f998b2d4423e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages