To allow prometheus apache exporter to collect metrics from Apache Server, it’s required to enable status_mod
module. This article will focus in
The following contents are to be added in status.conf
Then restart the Apache service
Then visit the URL to confirm it’s exposed and working. In my case, the URL is http://qt:80/server-status
For Docker container, if you are running httpd image, reference here https://hub.docker.com/_/httpd. Then there are different steps to follow.
That is. Now you can use this endpoint for collecting metrics.