Simple docker-compose with php-apache container with mod_status as virtualhost and the prometheus exporter.
To test it, i used a phpinfo document
I add prometheus and Grafana with the datasource and dashboards auto-imported
All containers used the "expose" parameter to use this port for the docker-networks, not linked with the node.
The mod_status are enabled by default.
I modified the "listen" ports, at file ~/apache-configs/ports.conf and create a new virtualhost to this port and only serve the apache metrics.
This virtualhost it's going to be used with the prometheus-apache-exporter
- Official PHP+Apache container
- Prometheus Apache Exporter
- Node Exporter Official container
- Prometheus Official container
- Grafana Official container
This work is under Creative Commons Attribution-ShareAlike 4.0 International License.
Please read the LICENSE files for more details.