Then visit the URL to confirm it’s exposed and working. In my case, the URL is http://qt:80/server-status
The server status for Apache Server
For Docker container, if you are running httpd image, reference here https://hub.docker.com/_/httpd. Then there are different steps to follow.
dockerexec-ithttpdbash# install vim (if it's not there already)aptupdate# no SUDO needed if it's the default httpd imageaptinstallvim# edit the filevi/usr/local/apache2/conf/httpd.conf# Enable the line `Include conf/extra/httpd-info.conf`Includeconf/extra/httpd-info.conf# after that, update conf/extra/httpd-info.confvi/usr/local/apache2/conf/extra/httpd-info.conf<Location /server-status>SetHandlerserver-statusRequireallgranted#Require host .example.com#Require ip 127</Location># exit vim, and container, then restart the containerdockerrestarthttpd
That is. Now you can use this endpoint for collecting metrics.