I have configured apache_exporter in my web servers to expose metrics and Prometheus will scrape the metrics from it. It's working in all servers except public server in which apache http authentication is enabled (AuthType). How can i scrape using prometheus, if http authentication is enabled.
1 Answers
0
votes
You can configure the Prometheus server to use basic auth when scraping a HTTP endpoint.
See this example config snippet for how to use the basic_auth
directive to configure the username and password.