@cryptotaxi247 / netdata-1 / commits / b466fbf4d

collectors/python.d/phpfpm: fix readme and per process chart ti… (#7876)

* /collectors/python.d/phpfpm/README.md: update * /collectors/python.d/phpfpm: update per process chart titles

Ilya Mashchenko committed Jan 28, 2020 at 19:01 UTC b466fbf4d9efbebf51a605f8c8b0d2aafb0cccbf
2 files changed +23 -28
collectors/python.d.plugin/phpfpm/README.md
+17 -25
@@ -1,41 +1,33 @@
1 # phpfpm
2
3 -This module will monitor one or more php-fpm instances depending on configuration.
3 +This module will monitor one or more [`PHP-FPM`](https://php-fpm.org/) instances, depending on your configuration.
4
5 -**Requirements:**
5 +## Requirements
6
7 -- php-fpm with enabled `status` page
7 +- `PHP-FPM` with [enabled `status` page](https://easyengine.io/tutorials/php/fpm-status-page/)
8 - access to `status` page via web server
9
10 -It produces following charts:
11 -
12 -1. **Active Connections**
13 -
14 - - active
15 - - maxActive
16 - - idle
17 -
18 -2. **Requests** in requests/s
19 -
20 - - requests
10 +## Charts
11
22 -3. **Performance**
23 -
24 - - reached
25 - - slow
12 +It produces following charts:
13
27 -## configuration
14 +- Active Connections in `connections`
15 +- Requests in `requests/s`
16 +- Performance in `status`
17 +- Requests Duration Among All Idle Processes in `milliseconds`
18 +- Last Request CPU Usage Among All Idle Processes in `percentage`
19 +- Last Request Memory Usage Among All Idle Processes in `KB`
20
29 -Needs only `url` to server's `status`
21 +## Configuration
22
31 -Here is an example for local instance:
23 +Needs only `url` to server's `status`. Here is an example for local and remote instances:
24
25 ```yaml
34 -update_every : 3
35 -priority : 90100
36 -
26 local:
38 - url : 'http://localhost/status'
27 + url : 'http://localhost/status?full&json'
28 +
29 +remote:
30 + url : 'http://203.0.113.10/status?full&json'
31 ```
32
33 Without configuration, module attempts to connect to `http://localhost/status`
collectors/python.d.plugin/phpfpm/phpfpm.chart.py
+6 -3
@@ -70,7 +70,8 @@ CHARTS = {
70 ]
71 },
72 'request_duration': {
73 - 'options': [None, 'PHP-FPM Request Duration', 'milliseconds', 'request duration', 'phpfpm.request_duration',
73 + 'options': [None, 'PHP-FPM Requests Duration Among All Idle Processes', 'milliseconds', 'request duration',
74 + 'phpfpm.request_duration',
75 'line'],
76 'lines': [
77 ['minReqDur', 'min', 'absolute', 1, 1000],
@@ -79,7 +80,8 @@ CHARTS = {
80 ]
81 },
82 'request_cpu': {
82 - 'options': [None, 'PHP-FPM Request CPU', 'percentage', 'request CPU', 'phpfpm.request_cpu', 'line'],
83 + 'options': [None, 'PHP-FPM Last Request CPU Usage Among All Idle Processes', 'percentage', 'request CPU',
84 + 'phpfpm.request_cpu', 'line'],
85 'lines': [
86 ['minReqCpu', 'min'],
87 ['maxReqCpu', 'max'],
@@ -87,7 +89,8 @@ CHARTS = {
89 ]
90 },
91 'request_mem': {
90 - 'options': [None, 'PHP-FPM Request Memory', 'KB', 'request memory', 'phpfpm.request_mem', 'line'],
92 + 'options': [None, 'PHP-FPM Last Request Memory Usage Among All Idle Processes', 'KB', 'request memory',
93 + 'phpfpm.request_mem', 'line'],
94 'lines': [
95 ['minReqMem', 'min', 'absolute', 1, 1024],
96 ['maxReqMem', 'max', 'absolute', 1, 1024],