Secure your Spring Boot Actuator Endpoints and configure Prometheus with Basic Authentication
When setting up Prometheus for the first time it might not work. If you enable debug logs you will see that Prometheus cannot scrape the actuator logs.
To fix this we need to configure your Spring App and Prometheus with Basic Authentication and conf...
tschuehly.de2 min read