Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.36 KB

File metadata and controls

36 lines (25 loc) · 1.36 KB

PHP-Apache, mod status, prometheus and Grafana

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.

Apache mod_status

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

All containers used

License

This work is under Creative Commons Attribution-ShareAlike 4.0 International License.

Please read the LICENSE files for more details.