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
- Host: GitHub
- URL: https://github.com/gasol/prometheus-phpfpm-exporter
- Owner: Gasol
- License: mit
- Created: 2018-10-31T09:38:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-31T09:46:55.000Z (over 7 years ago)
- Last Synced: 2025-02-02T23:53:41.213Z (over 1 year ago)
- Topics: debian-packages, php-fpm, prometheus-exporter
- Language: Go
- Homepage: https://bintray.com/gasolwu/deb/prometheus-phpfpm-exporter
- Size: 1.74 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.