Skip to content

Commit

Permalink
docs(receiver/hostmetrics/process): update descriptions of OS-specifi…
Browse files Browse the repository at this point in the history
…c metrics (#18051)

The two metrics are Linux-only (not supported on Windows)
but there was no mention of this in the documentation:
- process.open_file_descriptors
- process.context_switches
I have added "This metric is only available on Linux"
similar to what other Linux-only metrics have.
  • Loading branch information
andrzej-stencel authored Feb 24, 2023
1 parent 13ca52d commit 4853ffa
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ metrics:
Number of times the process has been context switched.
This metric is only available on Linux.
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| {count} | Sum | Int | Cumulative | true |
Expand Down Expand Up @@ -120,13 +122,17 @@ Percentage of total physical memory that is used by the process.
Number of file descriptors in use by the process.
This metric is only available on Linux.
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
| {count} | Sum | Int | Cumulative | false |
### process.paging.faults
Number of page faults the process has made. This metric is only available on Linux.
Number of page faults the process has made.
This metric is only available on Linux.
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
Expand All @@ -140,7 +146,9 @@ Number of page faults the process has made. This metric is only available on Lin
### process.signals_pending
Number of pending signals for the process. This metric is only available on Linux.
Number of pending signals for the process.
This metric is only available on Linux.
| Unit | Metric Type | Value Type | Aggregation Temporality | Monotonic |
| ---- | ----------- | ---------- | ----------------------- | --------- |
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ metrics:

process.paging.faults:
enabled: false
description: Number of page faults the process has made. This metric is only available on Linux.
description: Number of page faults the process has made.
extended_documentation: This metric is only available on Linux.
unit: "{faults}"
sum:
value_type: int
Expand All @@ -137,7 +138,8 @@ metrics:

process.signals_pending:
enabled: false
description: Number of pending signals for the process. This metric is only available on Linux.
description: Number of pending signals for the process.
extended_documentation: This metric is only available on Linux.
unit: "{signals}"
sum:
value_type: int
Expand All @@ -156,6 +158,7 @@ metrics:
process.open_file_descriptors:
enabled: false
description: Number of file descriptors in use by the process.
extended_documentation: This metric is only available on Linux.
unit: '{count}'
sum:
value_type: int
Expand All @@ -165,6 +168,7 @@ metrics:
process.context_switches:
enabled: false
description: Number of times the process has been context switched.
extended_documentation: This metric is only available on Linux.
unit: '{count}'
sum:
value_type: int
Expand Down

0 comments on commit 4853ffa

Please sign in to comment.