modulepackage
0.3.3
Repository: https://github.com/lalamove/php-fpm-exporter.git
Documentation: pkg.go.dev
# README
php-fpm-exporter
Export php-fpm metrics in Prometheus format.
See Releases for pre-built binaries.
Also availible at quay.io/bakins/php-fpm-exporter
Build
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
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
loosely based on https://github.com/peakgames/php-fpm-prometheus/ which is MIT.
# Packages
No description provided by the author
# Functions
New creates an exporter.
NewLogger creates a new logger with our prefered options.
SetAddress creates a function that will set the listening address.
SetEndpoint creates a function that will set the URL endpoint to contact php-fpm.
SetLogger creates a function that will set the logger.
# Type aliases
OptionsFunc is a function passed to new for setting options on a new Exporter.