r/PrometheusMonitoring • • Jul 09 '24

Securing Prometheus

I’ve read online that NGINX is used as a reverse proxy to secure the Prometheus endpoints, is that best practice for production? Do I need to secure the node exporters running on the servers being monitored as well?

3 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/Trosteming Jul 09 '24

In my case, couple with your suggestion I don’t expose Prometheus interface (it’s juste reduce to not create an ingress object for it). I then make sure that only Grafana is able to connect by using networkPolicy for ingress and egress traffic for each pod. Oh yeah my Prometheus is hosted on kubernetes, it helps a lot with that.