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: packages/php_fpm/_dev/build/docs/README.md
+27-99Lines changed: 27 additions & 99 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,24 @@
4
4
5
5
PHP-FPM (FastCGI Process Manager) is a web tool used to speed up the performance of a website. It is much faster than traditional CGI based methods and has the ability to handle tremendous loads simultaneously.
6
6
7
+
Use the PHP-FPM integration to:
8
+
9
+
- Collect metrics related to the pool and process.
10
+
- Create visualizations to monitor, measure, and analyze usage trends and key data, deriving business insights.
11
+
- Create alerts to reduce the MTTD and MTTR by referencing relevant logs when troubleshooting an issue.
12
+
7
13
## Data streams
8
14
9
15
The PHP-FPM integration collects metrics data.
10
16
11
-
Metrics give you insight into the statistics of the PHP-FPM. Metrics data streams collected by the PHP-FPM integration include [pool](https://www.php.net/manual/en/fpm.status.php#:~:text=Basic%20information%20%2D%20Always%20displayed%20on%20the%20status%20page) and [process](https://www.php.net/manual/en/fpm.status.php#:~:text=Per%2Dprocess%20information%20%2D%20only%20displayed%20in%20full%20output%20mode) so that the user can monitor and troubleshoot the performance of the PHP-FPM instances.
17
+
Metrics provide insight into the statistics of the PHP-FPM. The Metrics data streams collected by the PHP-FPM integration include [pool](https://www.php.net/manual/en/fpm.status.php#:~:text=Basic%20information%20%2D%20Always%20displayed%20on%20the%20status%20page) and [process](https://www.php.net/manual/en/fpm.status.php#:~:text=Per%2Dprocess%20information%20%2D%20only%20displayed%20in%20full%20output%20mode) so that the user can monitor and troubleshoot the performance of the PHP-FPM instances.
18
+
19
+
Data streams:
20
+
-`pool`: Collects information related to the connection handling, queue metrics, process manager configuration, process activity and performance indicators.
21
+
-`process`: Collects information related to the request metrics, the latest CPU and memory usage and the current running state.
12
22
13
23
Note:
14
-
- Users can monitor and see the metrics inside the ingested documents for PHP-FPM in the logs-* index pattern from`Discover`.
24
+
- Users can monitor and view the metrics inside the ingested documents for PHP-FPM in the `logs-*` index pattern in`Discover`.
15
25
16
26
## Compatibility
17
27
@@ -29,115 +39,33 @@ Example host configuration: `http://localhost:8080`
29
39
30
40
Status path configuration format: `/path`
31
41
32
-
Example Status path configuration: `/status`
33
-
34
-
### Troubleshooting
35
-
36
-
If host.ip is shown conflicted under ``logs-*`` data view, then this issue can be solved by reindexing the ``Pool`` and ``Process`` data stream's indices.
37
-
To reindex the data, the following steps must be performed.
38
-
39
-
1. Stop the data stream by going to `Integrations -> PHP-FPM -> Integration policies` open the configuration of PHP-FPM and disable the `Collect PHP-FPM metrics` toggle to reindex metrics data stream and save the integration.
40
-
41
-
2. Copy data into the temporary index and delete the existing data stream and index template by performing the following steps in the Dev tools.
42
-
43
-
```
44
-
POST _reindex
45
-
{
46
-
"source": {
47
-
"index": "<index_name>"
48
-
},
49
-
"dest": {
50
-
"index": "temp_index"
51
-
}
52
-
}
53
-
```
54
-
Example:
55
-
```
56
-
POST _reindex
57
-
{
58
-
"source": {
59
-
"index": "logs-php_fpm.pool-default"
60
-
},
61
-
"dest": {
62
-
"index": "temp_index"
63
-
}
64
-
}
65
-
```
66
-
67
-
```
68
-
DELETE /_data_stream/<data_stream>
69
-
```
70
-
Example:
71
-
```
72
-
DELETE /_data_stream/logs-php_fpm.pool-default
73
-
```
74
-
75
-
```
76
-
DELETE _index_template/<index_template>
77
-
```
78
-
Example:
79
-
```
80
-
DELETE _index_template/logs-php_fpm.pool
81
-
```
82
-
3. Go to `Integrations -> PHP-FPM -> Settings` and click on `Reinstall PHP-FPM`.
83
-
84
-
4. Copy data from temporary index to new index by performing the following steps in the Dev tools.
85
-
86
-
```
87
-
POST _reindex
88
-
{
89
-
"conflicts": "proceed",
90
-
"source": {
91
-
"index": "temp_index"
92
-
},
93
-
"dest": {
94
-
"index": "<index_name>",
95
-
"op_type": "create"
96
-
97
-
}
98
-
}
99
-
```
100
-
Example:
101
-
```
102
-
POST _reindex
103
-
{
104
-
"conflicts": "proceed",
105
-
"source": {
106
-
"index": "temp_index"
107
-
},
108
-
"dest": {
109
-
"index": "logs-php_fpm.pool-default",
110
-
"op_type": "create"
111
-
112
-
}
113
-
}
114
-
```
115
-
116
-
5. Verify data is reindexed completely.
117
-
118
-
6. Start the data stream by going to the `Integrations -> PHP-FPM -> Integration policies` and open configuration of integration and enable the `Collect PHP-FPM metrics` toggle and save the integration.
119
-
120
-
7. Delete temporary index by performing the following step in the Dev tools.
121
-
122
-
```
123
-
DELETE temp_index
124
-
```
125
-
126
-
More details about reindexing can be found [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html).
42
+
Example Status path configuration: `/status`
43
+
44
+
## Setup
45
+
46
+
For step-by-step instructions on how to set up an integration, see the [Getting Started](https://www.elastic.co/guide/en/welcome-to-elastic/current/getting-started-observability.html) guide.
47
+
48
+
## Validation
49
+
50
+
After successfully configuring the integration, click on the *Assets* tab of the PHP-FPM integration to display the available dashboards. Select the dashboard for your configured data stream, which should be populated with the required data.
51
+
52
+
## Troubleshooting
53
+
54
+
If `host.ip` appears conflicted under the ``logs-*`` data view, this issue can be resolved by [reindexing](https://www.elastic.co/guide/en/elasticsearch/reference/current/use-a-data-stream.html#reindex-with-a-data-stream) the indices of the ``Pool`` and ``Process`` data streams.
127
55
128
56
## Metrics reference
129
57
130
58
### Pool
131
59
132
-
This is the `pool` data stream.`pool` data stream collects metrics related to the setup and contents of the FPM status page.
60
+
The`pool` data stream collects metrics related to the setup and contents of the FPM status page.
133
61
134
62
{{event "pool"}}
135
63
136
64
{{fields "pool"}}
137
65
138
66
### Process
139
67
140
-
This is the `process` data stream. `process` data stream collects metrics like request duration, content length, process state, etc.
68
+
The `process` data streamcollects metrics related to the request duration, content length, process state, etc.
Copy file name to clipboardExpand all lines: packages/php_fpm/docs/README.md
+21-93Lines changed: 21 additions & 93 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,14 +4,24 @@
4
4
5
5
PHP-FPM (FastCGI Process Manager) is a web tool used to speed up the performance of a website. It is much faster than traditional CGI based methods and has the ability to handle tremendous loads simultaneously.
6
6
7
+
Use the PHP-FPM integration to:
8
+
9
+
- Collect metrics related to the pool and process.
10
+
- Create visualizations to monitor, measure, and analyze usage trends and key data, deriving business insights.
11
+
- Create alerts to reduce the MTTD and MTTR by referencing relevant logs when troubleshooting an issue.
12
+
7
13
## Data streams
8
14
9
15
The PHP-FPM integration collects metrics data.
10
16
11
-
Metrics give you insight into the statistics of the PHP-FPM. Metrics data streams collected by the PHP-FPM integration include [pool](https://www.php.net/manual/en/fpm.status.php#:~:text=Basic%20information%20%2D%20Always%20displayed%20on%20the%20status%20page) and [process](https://www.php.net/manual/en/fpm.status.php#:~:text=Per%2Dprocess%20information%20%2D%20only%20displayed%20in%20full%20output%20mode) so that the user can monitor and troubleshoot the performance of the PHP-FPM instances.
17
+
Metrics provide insight into the statistics of the PHP-FPM. The Metrics data streams collected by the PHP-FPM integration include [pool](https://www.php.net/manual/en/fpm.status.php#:~:text=Basic%20information%20%2D%20Always%20displayed%20on%20the%20status%20page) and [process](https://www.php.net/manual/en/fpm.status.php#:~:text=Per%2Dprocess%20information%20%2D%20only%20displayed%20in%20full%20output%20mode) so that the user can monitor and troubleshoot the performance of the PHP-FPM instances.
18
+
19
+
Data streams:
20
+
-`pool`: Collects information related to the connection handling, queue metrics, process manager configuration, process activity and performance indicators.
21
+
-`process`: Collects information related to the request metrics, the latest CPU and memory usage and the current running state.
12
22
13
23
Note:
14
-
- Users can monitor and see the metrics inside the ingested documents for PHP-FPM in the logs-* index pattern from`Discover`.
24
+
- Users can monitor and view the metrics inside the ingested documents for PHP-FPM in the `logs-*` index pattern in`Discover`.
15
25
16
26
## Compatibility
17
27
@@ -29,107 +39,25 @@ Example host configuration: `http://localhost:8080`
29
39
30
40
Status path configuration format: `/path`
31
41
32
-
Example Status path configuration: `/status`
33
-
34
-
### Troubleshooting
42
+
Example Status path configuration: `/status`
35
43
36
-
If host.ip is shown conflicted under ``logs-*`` data view, then this issue can be solved by reindexing the ``Pool`` and ``Process`` data stream's indices.
37
-
To reindex the data, the following steps must be performed.
44
+
## Setup
38
45
39
-
1. Stop the data stream by going to `Integrations -> PHP-FPM -> Integration policies` open the configuration of PHP-FPM and disable the `Collect PHP-FPM metrics` toggle to reindex metrics data stream and save the integration.
46
+
For step-by-step instructions on how to set up an integration, see the [Getting Started](https://www.elastic.co/guide/en/welcome-to-elastic/current/getting-started-observability.html) guide.
40
47
41
-
2. Copy data into the temporary index and delete the existing data stream and index template by performing the following steps in the Dev tools.
48
+
## Validation
42
49
43
-
```
44
-
POST _reindex
45
-
{
46
-
"source": {
47
-
"index": "<index_name>"
48
-
},
49
-
"dest": {
50
-
"index": "temp_index"
51
-
}
52
-
}
53
-
```
54
-
Example:
55
-
```
56
-
POST _reindex
57
-
{
58
-
"source": {
59
-
"index": "logs-php_fpm.pool-default"
60
-
},
61
-
"dest": {
62
-
"index": "temp_index"
63
-
}
64
-
}
65
-
```
50
+
After successfully configuring the integration, click on the *Assets* tab of the PHP-FPM integration to display the available dashboards. Select the dashboard for your configured data stream, which should be populated with the required data.
66
51
67
-
```
68
-
DELETE /_data_stream/<data_stream>
69
-
```
70
-
Example:
71
-
```
72
-
DELETE /_data_stream/logs-php_fpm.pool-default
73
-
```
74
-
75
-
```
76
-
DELETE _index_template/<index_template>
77
-
```
78
-
Example:
79
-
```
80
-
DELETE _index_template/logs-php_fpm.pool
81
-
```
82
-
3. Go to `Integrations -> PHP-FPM -> Settings` and click on `Reinstall PHP-FPM`.
83
-
84
-
4. Copy data from temporary index to new index by performing the following steps in the Dev tools.
85
-
86
-
```
87
-
POST _reindex
88
-
{
89
-
"conflicts": "proceed",
90
-
"source": {
91
-
"index": "temp_index"
92
-
},
93
-
"dest": {
94
-
"index": "<index_name>",
95
-
"op_type": "create"
96
-
97
-
}
98
-
}
99
-
```
100
-
Example:
101
-
```
102
-
POST _reindex
103
-
{
104
-
"conflicts": "proceed",
105
-
"source": {
106
-
"index": "temp_index"
107
-
},
108
-
"dest": {
109
-
"index": "logs-php_fpm.pool-default",
110
-
"op_type": "create"
111
-
112
-
}
113
-
}
114
-
```
115
-
116
-
5. Verify data is reindexed completely.
117
-
118
-
6. Start the data stream by going to the `Integrations -> PHP-FPM -> Integration policies` and open configuration of integration and enable the `Collect PHP-FPM metrics` toggle and save the integration.
119
-
120
-
7. Delete temporary index by performing the following step in the Dev tools.
121
-
122
-
```
123
-
DELETE temp_index
124
-
```
52
+
## Troubleshooting
125
53
126
-
More details about reindexing can be found [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html).
54
+
If `host.ip` appears conflicted under the ``logs-*`` data view, this issue can be resolved by [reindexing](https://www.elastic.co/guide/en/elasticsearch/reference/current/use-a-data-stream.html#reindex-with-a-data-stream) the indices of the ``Pool`` and ``Process`` data streams.
127
55
128
56
## Metrics reference
129
57
130
58
### Pool
131
59
132
-
This is the `pool` data stream.`pool` data stream collects metrics related to the setup and contents of the FPM status page.
60
+
The`pool` data stream collects metrics related to the setup and contents of the FPM status page.
133
61
134
62
An example event for `pool` looks as following:
135
63
@@ -255,7 +183,7 @@ An example event for `pool` looks as following:
255
183
256
184
### Process
257
185
258
-
This is the `process` data stream. `process` data stream collects metrics like request duration, content length, process state, etc.
186
+
The `process` data streamcollects metrics related to the request duration, content length, process state, etc.
259
187
260
188
An example event for `process` looks as following:
0 commit comments