Update "Metrics collected" in README.md

This commit is contained in:
Enrico Stahn 2018-02-22 16:06:07 +11:00
parent 510d087da9
commit dc5bc0ae6e
No known key found for this signature in database
GPG key ID: 5263621C269A50DE

View file

@ -94,12 +94,16 @@ The `server` command runs the server required for prometheus to retrieve the sta
# TYPE phpfpm_max_children_reached counter # TYPE phpfpm_max_children_reached counter
# HELP phpfpm_max_listen_queue The maximum number of requests in the queue of pending connections since FPM has started. # HELP phpfpm_max_listen_queue The maximum number of requests in the queue of pending connections since FPM has started.
# TYPE phpfpm_max_listen_queue counter # TYPE phpfpm_max_listen_queue counter
# HELP phpfpm_scrape_failures The number of failures scraping from PHP-FPM.
# TYPE phpfpm_scrape_failures counter
# HELP phpfpm_slow_requests The number of requests that exceeded your 'request_slowlog_timeout' value. # HELP phpfpm_slow_requests The number of requests that exceeded your 'request_slowlog_timeout' value.
# TYPE phpfpm_slow_requests counter # TYPE phpfpm_slow_requests counter
# HELP phpfpm_start_since The number of seconds since FPM has started. # HELP phpfpm_start_since The number of seconds since FPM has started.
# TYPE phpfpm_start_since counter # TYPE phpfpm_start_since counter
# HELP phpfpm_total_processes The number of idle + active processes. # HELP phpfpm_total_processes The number of idle + active processes.
# TYPE phpfpm_total_processes gauge # TYPE phpfpm_total_processes gauge
# HELP phpfpm_up Could PHP-FPM be reached?
# TYPE phpfpm_up gauge
``` ```
## Contributing ## Contributing
@ -110,6 +114,15 @@ The project follows the typical GitHub pull request model.
See " [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/) " for more details. See " [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/) " for more details.
Before starting any work, please either comment on an existing issue, or file a new one. Before starting any work, please either comment on an existing issue, or file a new one.
## FAQ
* **How to update "Metrics collected"?**
Copy&paste the output from:
```
curl http://127.0.0.1:12345/metrics | grep phpfpm | grep "#"
```
## Alternatives ## Alternatives
* [bakins/php-fpm-exporter](https://github.com/bakins/php-fpm-exporter) * [bakins/php-fpm-exporter](https://github.com/bakins/php-fpm-exporter)