You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-8Lines changed: 27 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -35,25 +35,44 @@ The `server` command runs the server required for prometheus to retrieve the sta
35
35
|`--web.listen-address`| Address on which to expose metrics and web interface. |`PHP_FPM_WEB_LISTEN_ADDRESS`|[`:9253`](https://github.com/prometheus/prometheus/wiki/Default-port-allocations)|
36
36
|`--web.telemetry-path`| Path under which to expose metrics. |`PHP_FPM_WEB_TELEMETRY_PATH`|`/metrics`|
37
37
|`--phpfpm.scrape-uri`| FastCGI address, e.g. unix:///tmp/php.sock;/status or tcp://127.0.0.1:9000/status |`PHP_FPM_SCRAPE_URI`|`tcp://127.0.0.1:9000/status`|
38
+
|`--log.level`| Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal] (default "error") | PHP_FPM_LOG_LEVEL | info |
38
39
39
40
### CLI Examples
40
41
41
42
* Retrieve information from PHP-FPM running on `127.0.0.1:9000` with status endpoint being `/status`
42
-
43
-
```php-fpm_exporter get```
43
+
```
44
+
php-fpm_exporter get
45
+
```
44
46
45
47
* Retrieve information from PHP-FPM running on `127.0.0.1:9000` and `127.0.0.1:9001`
46
-
47
-
```php-fpm_exporter get --phpfpm.scrape-uri tcp://127.0.0.1:9000/status,tcp://127.0.0.1:9001/status```
48
+
```
49
+
php-fpm_exporter get --phpfpm.scrape-uri tcp://127.0.0.1:9000/status,tcp://127.0.0.1:9001/status
50
+
```
48
51
49
52
* Run as server with 2 pools:
50
-
51
-
```php-fpm_exporter server --phpfpm.scrape-uri tcp://127.0.0.1:9000/status,tcp://127.0.0.1:9001/status```
53
+
```
54
+
php-fpm_exporter server --phpfpm.scrape-uri tcp://127.0.0.1:9000/status,tcp://127.0.0.1:9001/status
55
+
```
52
56
53
57
### Docker Examples
54
58
55
-
* docker pull hipages/php-fpm_exporter
56
-
* docker run -it --rm -e PHP_FPM_SCRAPE_URI="tcp://127.0.0.1:9000/status,tcp://127.0.0.1:9001/status" hipages/php-fpm_exporter
59
+
* Run docker manually
60
+
```
61
+
docker pull hipages/php-fpm_exporter
62
+
docker run -it --rm -e PHP_FPM_SCRAPE_URI="tcp://127.0.0.1:9000/status,tcp://127.0.0.1:9001/status" hipages/php-fpm_exporter
0 commit comments