An open API service indexing awesome lists of open source software.

https://github.com/gasol/prometheus-phpfpm-exporter

Prometheus exporter for PHP-FPM metrics
https://github.com/gasol/prometheus-phpfpm-exporter

debian-packages php-fpm prometheus-exporter

Last synced: about 1 year ago
JSON representation

Prometheus exporter for PHP-FPM metrics

Awesome Lists containing this project

README

          

php-fpm-exporter
================

Export php-fpm metrics in [Prometheus](https://prometheus.io/) format.

See [Releases](https://github.com/bakins/php-fpm-exporter/releases) for pre-built binaries.

Also availible at [quay.io/bakins/php-fpm-exporter](https://quay.io/repository/bakins/php-fpm-exporter)

Build
=====

Requires [Go](https://golang.org/doc/install). 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`

Running
=======

```
./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
=======

Metrics will be exposes on `/metrics`

LICENSE
========

See [LICENSE](./LICENSE)

loosely based on https://github.com/peakgames/php-fpm-prometheus/ which is MIT.