Skip to content

Commit 6d53515

Browse files
JimChenWYUjimchen
and
jimchen
authored
fix bug Ref #5 (#8)
Co-authored-by: jimchen <[email protected]>
1 parent be43a45 commit 6d53515

File tree

9 files changed

+253
-84
lines changed

9 files changed

+253
-84
lines changed

receiver/hostmetricsreceiver/internal/scraper/processscraper/documentation.md

+29-5
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ metrics:
1212
enabled: false
1313
```
1414
15-
### process.cpu.time
15+
### process.all.cpu.time
1616
17-
Total CPU seconds broken down by different states.
17+
Total CPU seconds contains different states.
1818
1919
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
2020
| ---- | ----------- | ---------- | ----------------------- | --------- |
@@ -24,16 +24,24 @@ Total CPU seconds broken down by different states.
2424
2525
| Name | Description | Values |
2626
| ---- | ----------- | ------ |
27-
| state | Breakdown of CPU usage by type. | Str: ``system``, ``user``, ``wait`` |
27+
| pid | Process identifier (PID). | Any Int |
28+
| pname | The name of the process executable. On Linux based systems, can be set to the Name in proc/[pid]/status. On Windows, can be set to the base name of GetProcessImageFileNameW. | Any Str |
29+
| cwd | The cwd of the process executable. | Any Str |
2830
29-
### process.cpu.time.total
31+
### process.cpu.time
3032
31-
Total CPU seconds contains different states.
33+
Total CPU seconds broken down by different states.
3234
3335
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
3436
| ---- | ----------- | ---------- | ----------------------- | --------- |
3537
| s | Sum | Double | Cumulative | true |
3638
39+
#### Attributes
40+
41+
| Name | Description | Values |
42+
| ---- | ----------- | ------ |
43+
| state | Breakdown of CPU usage by type. | Str: ``system``, ``user``, ``wait`` |
44+
3745
### process.disk.io
3846
3947
Disk bytes transferred.
@@ -48,6 +56,22 @@ Disk bytes transferred.
4856
| ---- | ----------- | ------ |
4957
| direction | Direction of flow of bytes (read or write). | Str: ``read``, ``write`` |
5058
59+
### process.memory.physical
60+
61+
The amount of physical memory in use.
62+
63+
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
64+
| ---- | ----------- | ---------- | ----------------------- | --------- |
65+
| By | Sum | Int | Cumulative | false |
66+
67+
#### Attributes
68+
69+
| Name | Description | Values |
70+
| ---- | ----------- | ------ |
71+
| pid | Process identifier (PID). | Any Int |
72+
| pname | The name of the process executable. On Linux based systems, can be set to the Name in proc/[pid]/status. On Windows, can be set to the base name of GetProcessImageFileNameW. | Any Str |
73+
| cwd | The cwd of the process executable. | Any Str |
74+
5175
### process.memory.usage
5276
5377
The amount of physical memory in use.

receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/metadata/generated_config.go

+8-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/hostmetricsreceiver/internal/scraper/processscraper/internal/metadata/generated_config_test.go

+4-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)