Skip to content

Commit 8b04f83

Browse files
[PHP-FPM] Update the request duration field description in Process data stream (elastic#4760)
* update field description and dashboard for process data stream * update changelog.yml
1 parent 5e3cac3 commit 8b04f83

File tree

7 files changed

+19
-15
lines changed

7 files changed

+19
-15
lines changed

packages/php_fpm/_dev/build/docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ This is the `process` data stream. `process` data stream collects metrics like r
4747

4848
{{event "process"}}
4949

50-
{{fields "process"}}
50+
{{fields "process"}}

packages/php_fpm/changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# newer versions go on top
2+
- version: "0.2.1"
3+
changes:
4+
- description: PHP-FPM Process data stream update field description
5+
type: bugfix
6+
link: https://github.com/elastic/integrations/pull/4760
27
- version: "0.2.0"
38
changes:
49
- description: PHP-FPM integration package with "Process" data stream.

packages/php_fpm/data_stream/process/fields/fields.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
metric_type: counter
1717
- name: duration
1818
type: long
19-
description: The total time in seconds spent serving requests.
20-
metric_type: counter
21-
unit: s
19+
description: The duration in microseconds of the requests.
20+
metric_type: gauge
21+
unit: micros
2222
- name: last
2323
type: group
2424
fields:

packages/php_fpm/docs/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ An example event for `process` looks as following:
268268
| input.type | Type of Filebeat input. | keyword | | |
269269
| php_fpm.process.pool.name | The name of the FPM process pool. | keyword | | |
270270
| php_fpm.process.request.count | The total number of requests served. | long | | counter |
271-
| php_fpm.process.request.duration | The total time in seconds spent serving requests. | long | s | counter |
271+
| php_fpm.process.request.duration | The duration in microseconds of the requests. | long | micros | gauge |
272272
| php_fpm.process.request.last.cpu.pct | The %cpu of the last request. This will be 0 if the process is not Idle because the calculation is done when the request processing is complete. | long | percent | gauge |
273273
| php_fpm.process.request.last.memory | The maximum amount of memory consumed by the last request. This will be 0 if the process is not Idle because the calculation is done when the request processing is complete. | long | | gauge |
274274
| php_fpm.process.script | The full path of the script executed by the last request. This will be '-' if not applicable (eg. status page requests). | keyword | | |
@@ -281,4 +281,3 @@ An example event for `process` looks as following:
281281
| url.original.text | Multi-field of `url.original`. | match_only_text | | |
282282
| user.name | Short name or login of the user. | keyword | | |
283283
| user.name.text | Multi-field of `user.name`. | match_only_text | | |
284-
-180 KB
Loading

packages/php_fpm/kibana/dashboard/php_fpm-30d6d490-60c6-11ed-a227-676557292b43.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
{
3131
"id": "logs-*",
32-
"name": "fd13d0f4-4ec2-44ed-b0f0-43cbefac151e",
32+
"name": "973b088d-1ba7-40f2-9e9d-c911dd80272f",
3333
"type": "index-pattern"
3434
}
3535
],
@@ -126,7 +126,7 @@
126126
"query": "php_fpm.process.request.duration: *"
127127
},
128128
"isBucketed": false,
129-
"label": "Request duration",
129+
"label": "Request duration (μs)",
130130
"operationType": "last_value",
131131
"params": {
132132
"sortField": "@timestamp"
@@ -186,7 +186,7 @@
186186
"meta": {
187187
"alias": null,
188188
"disabled": false,
189-
"index": "fd13d0f4-4ec2-44ed-b0f0-43cbefac151e",
189+
"index": "973b088d-1ba7-40f2-9e9d-c911dd80272f",
190190
"key": "event.dataset",
191191
"negate": false,
192192
"params": {
@@ -669,9 +669,9 @@
669669
"chart_type": "line",
670670
"color": "#68BC00",
671671
"fill": 0.5,
672-
"formatter": "s,humanize,",
672+
"formatter": "default",
673673
"id": "9dfb9434-2dbe-4546-89b1-96efaa41765c",
674-
"label": "Minimum request duration",
674+
"label": "Minimum (μs)",
675675
"line_width": 1,
676676
"metrics": [
677677
{
@@ -697,9 +697,9 @@
697697
"chart_type": "line",
698698
"color": "rgba(96,146,192,1)",
699699
"fill": 0.5,
700-
"formatter": "s,humanize,",
700+
"formatter": "default",
701701
"id": "16551510-641c-11ed-8aec-4f36d657ecf1",
702-
"label": "Maximum request duration",
702+
"label": "Maximum (μs)",
703703
"line_width": 1,
704704
"metrics": [
705705
{
@@ -765,7 +765,7 @@
765765
},
766766
{
767767
"id": "logs-*",
768-
"name": "5c4d2a38-4913-43b6-a54a-a56cb1f9bb3d:fd13d0f4-4ec2-44ed-b0f0-43cbefac151e",
768+
"name": "5c4d2a38-4913-43b6-a54a-a56cb1f9bb3d:973b088d-1ba7-40f2-9e9d-c911dd80272f",
769769
"type": "index-pattern"
770770
},
771771
{

packages/php_fpm/manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
format_version: 2.0.0
22
name: php_fpm
33
title: PHP-FPM
4-
version: 0.2.0
4+
version: 0.2.1
55
description: This Elastic integration collects metrics from PHP-FPM.
66
type: integration
77
categories:

0 commit comments

Comments
 (0)