Skip to content

bakins/php-fpm-prometheus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Prometheus exporter for PHP-FPM status

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages