How to add authentication to prometheus server

how to add authentication to prometheus server

Hey Buddy,

You can use basic Auth of Prometheus to secure all API endpoints of Prometheus natively.

You can follow the guide here.

If you’re hosting Prometheus in Kubernetes, you also need to add the basic-auth config to Readiness & Liveness Probe else they’ll fail once you configure basic-auth.