2018-02-18 11:07:17 +00:00
|
|
|
# php-fpm_exporter
|
|
|
|
|
2018-02-18 23:18:49 +00:00
|
|
|
[![CircleCI](https://circleci.com/gh/hipages/php-fpm_exporter.svg?style=svg)](https://circleci.com/gh/hipages/php-fpm_exporter)
|
|
|
|
[![Go Report Card](https://goreportcard.com/badge/github.com/hipages/php-fpm_exporter)](https://goreportcard.com/report/github.com/hipages/php-fpm_exporter)
|
|
|
|
[![GoDoc](https://godoc.org/github.com/hipages/php-fpm_exporter?status.svg)](https://godoc.org/github.com/hipages/php-fpm_exporter)
|
|
|
|
[![Inline docs](http://inch-ci.org/github/hipages/php-fpm_exporter.svg?branch=master)](http://inch-ci.org/github/hipages/php-fpm_exporter)
|
|
|
|
[![Maintainability](https://api.codeclimate.com/v1/badges/52f9e1f0388e8aa38bfe/maintainability)](https://codeclimate.com/github/hipages/php-fpm_exporter/maintainability)
|
|
|
|
[![Test Coverage](https://api.codeclimate.com/v1/badges/52f9e1f0388e8aa38bfe/test_coverage)](https://codeclimate.com/github/hipages/php-fpm_exporter/test_coverage)
|
|
|
|
|
2018-02-18 11:07:17 +00:00
|
|
|
A prometheus exporter for PHP-FPM.
|
|
|
|
The exporter connects directly to PHP-FPM and exports the metrics via HTTP.
|
|
|
|
|
|
|
|
A webserver such as NGINX or Apache is **NOT** needed!
|
|
|
|
|
|
|
|
## Features
|
|
|
|
|
|
|
|
* Export single or multiple pools
|
|
|
|
* Export to CLI as text or JSON
|
|
|
|
* Connects directly to PHP-FPM via TCP or Socket
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2018-02-18 23:18:49 +00:00
|
|
|
* ```php-fpm_exporter get --phpfpm.scrape-uri 127.0.0.1:9000,127.0.0.1:9001,[...]```
|
|
|
|
* ```php-fpm_exporter server --phpfpm.scrape-uri 127.0.0.1:9000,127.0.0.1:9001,[...]```
|
2018-02-18 11:07:17 +00:00
|
|
|
|
|
|
|
## Metrics collected
|
|
|
|
|
|
|
|
| Metric | Type |
|
|
|
|
|--------|------|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## TODO
|
|
|
|
|
2018-02-18 23:18:49 +00:00
|
|
|
- [ ] Test with unix socket
|