Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 950 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 950 Bytes

php-fpm-prometheus

Simple PHP-FPM status exporter for Prometheus.

Installation

If you are using Go 1.6+ (or 1.5 with the GO15VENDOREXPERIMENT=1 environment variable), you can install php-fpm-prometheus with the following command:

$ go get -u github.com/peakgames/php-fpm-prometheus

Usage

$ ./php-fpm-prometheus --help
Usage of ./php-fpm-prometheus:
  -addr string
        IP/port for the HTTP server (default "0.0.0.0:8080")
  -status-url string
        PHP-FPM status URL

$ ./php-fpm-prometheus -status-url "http://example.com/status" -addr "127.0.0.1:8080"

Finally, point Prometheus to http://127.0.0.1:8080/metrics.

Contributing

All contributions are welcome, but if you are considering significant changes, please open an issue beforehand and discuss it with us.

License

MIT. See the LICENSE file for more information.