-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pool start time and start since stats Add support for proc stats Refactor stats api call Fix listen_queue => listen_queue_len" Revert "Fix listen_queue => listen_queue_len"" This reverts commit 46ff489fa8cce8d73c2aba42758a51bde4d68a77. Add suport for "listen_queue_len" Add documentation Minor const refactor Add generated doc Add basic testing Fix illegal char in asciidoc Fix type Update generated files Fix package name Add integration tests
- Loading branch information
Thiago Souza
committed
Jan 19, 2017
1 parent
fc5ee58
commit 539f229
Showing
30 changed files
with
1,241 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-module-php_fpm]] | ||
== PHP-FPM Module | ||
|
||
This module periodically fetches metrics from https://php-fpm.org[PHP-FPM] | ||
servers. | ||
|
||
[float] | ||
=== Module-Specific Configuration Notes | ||
|
||
You need to enable the PHP-FPM status page by properly configuring | ||
`pm.status_path`. | ||
|
||
Here is a sample nginx configuration to forward requests to the PHP-FPM status | ||
page (assuming `pm.status_path` is configured with default value `/status`): | ||
```nginx | ||
location ~ /status { | ||
allow 127.0.0.1; | ||
deny all; | ||
include fastcgi_params; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_pass 127.0.0.1:9000; | ||
} | ||
``` | ||
|
||
[float] | ||
=== Compatibility | ||
|
||
The PHP-FPM metricsets were tested with PHP 5.6.29 and are expected to | ||
work with all versions >= 5. | ||
|
||
|
||
[float] | ||
=== Example Configuration | ||
|
||
The php_fpm module supports the standard configuration options that are described | ||
in <<configuration-metricbeat>>. Here is an example configuration: | ||
|
||
[source,yaml] | ||
---- | ||
metricbeat.modules: | ||
- module: php_fpm | ||
metricsets: ["pool"] | ||
enabled: true | ||
period: 10s | ||
hosts: ["localhost"] | ||
---- | ||
|
||
[float] | ||
=== Metricsets | ||
|
||
The following metricsets are available: | ||
|
||
* <<metricbeat-metricset-php_fpm-pool,pool>> | ||
|
||
* <<metricbeat-metricset-php_fpm-proc,proc>> | ||
|
||
include::php_fpm/pool.asciidoc[] | ||
|
||
include::php_fpm/proc.asciidoc[] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-metricset-php_fpm-pool]] | ||
include::../../../module/php_fpm/pool/_meta/docs.asciidoc[] | ||
|
||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-php_fpm,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../module/php_fpm/pool/_meta/data.json[] | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[metricbeat-metricset-php_fpm-proc]] | ||
include::../../../module/php_fpm/proc/_meta/docs.asciidoc[] | ||
|
||
|
||
==== Fields | ||
|
||
For a description of each field in the metricset, see the | ||
<<exported-fields-php_fpm,exported fields>> section. | ||
|
||
Here is an example document generated by this metricset: | ||
|
||
[source,json] | ||
---- | ||
include::../../../module/php_fpm/proc/_meta/data.json[] | ||
---- |
Oops, something went wrong.