After setting up your Prometheus it might not work, if you enable debug logs you see that prometheus cannot scrape the actuator logs. To fix this we need to configure your Spring App and Prometheus with Basic Authentication