Export php-fpm metrics in Prometheus format.
See Releases for pre-built binaries.
Also availible at quay.io/bakins/php-fpm-exporter
Requires Go. Tested with Go 1.8+.
Clone this repo into your GOPATH
($HOME/go
by default) and run build:
mkdir -p $HOME/go/src/github.com/bakins
cd $HOME/go/src/github.com/bakins
git clone https://github.com/bakins/php-fpm-exporter
cd php-fpm-exporter
./script/build
You should then have two executables: php-fpm-exporter.linux.amd64 and php-fpm-exporter.darwin.amd64
You may want to rename for your local OS, ie mv php-fpm-exporter.darwin.amd64 php-fpm-exporter
./php-fpm-exporter --help
php-fpm metrics exporter
Usage:
php-fpm-exporter [flags]
Flags:
--addr string listen address for metrics handler (default "127.0.0.1:8080")
--endpoint string url of php-fpm (default "http://127.0.0.1:9000/status")
When running, a simple healthcheck is available on /healthz
Metrics will be exposes on /metrics
See LICENSE
loosely based on https://github.com/peakgames/php-fpm-prometheus/ which is MIT.