Skip to content

Commit 9a87564

Browse files
committed
Add additional process metrics to the metrics semantic conventions
Add the following: - `process.context_switches` - `process.open_file_descriptors`
1 parent d1e4720 commit 9a87564

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ release.
2626
([#2538](https://github.com/open-telemetry/opentelemetry-specification/pull/2538)).
2727
- Add `process.threads` host metric semantic convention.
2828
([#2705](https://github.com/open-telemetry/opentelemetry-specification/pull/2705)).
29+
- Add `process.context_switches`, and `process.open_file_descriptors`, to the
30+
metrics semantic conventions
31+
([#2706](https://github.com/open-telemetry/opentelemetry-specification/pull/2706)).
2932

3033
### Logs
3134

specification/metrics/semantic_conventions/process-metrics.md

+11-9
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,17 @@ metrics](runtime-environment-metrics.md).
3131

3232
Below is a table of Process metric instruments.
3333

34-
| Name | Instrument Type ([\*](README.md#instrument-types)) | Unit | Description | Labels |
35-
|---------------------------|---------------------------------------------------|-------|-------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
36-
| `process.cpu.time` | Counter | s | Total CPU seconds broken down by different states. | `state`, if specified, SHOULD be one of: `system`, `user`, `wait`. A process SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels. |
37-
| `process.cpu.utilization` | Gauge | s | Difference in process.cpu.time since the last measurement, divided by the elapsed time and number of CPUs available to the process. | `state`, if specified, SHOULD be one of: `system`, `user`, `wait`. A process SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels. |
38-
| `process.memory.usage` | UpDownCounter | By | The amount of physical memory in use. | |
39-
| `process.memory.virtual` | UpDownCounter | By | The amount of committed virtual memory. | |
40-
| `process.disk.io` | Counter | By | Disk bytes transferred. | `direction` SHOULD be one of: `read`, `write` |
41-
| `process.network.io` | Counter | By | Network bytes transferred. | `direction` SHOULD be one of: `receive`, `transmit` |
42-
| `process.threads` | UpDownCounter | {threads} | Process threads count. | |
34+
| Name | Instrument Type ([\*](README.md#instrument-types)) | Unit | Description | Labels |
35+
| -------------------------------------- | -------------------------------------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
36+
| `process.cpu.time` | Counter | s | Total CPU seconds broken down by different states. | `state`, if specified, SHOULD be one of: `system`, `user`, `wait`. A process SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels. |
37+
| `process.cpu.utilization` | Gauge | s | Difference in process.cpu.time since the last measurement, divided by the elapsed time and number of CPUs available to the process. | `state`, if specified, SHOULD be one of: `system`, `user`, `wait`. A process SHOULD be characterized _either_ by data points with no `state` labels, _or only_ data points with `state` labels. |
38+
| `process.memory.usage` | UpDownCounter | By | The amount of physical memory in use. | |
39+
| `process.memory.virtual` | UpDownCounter | By | The amount of committed virtual memory. | |
40+
| `process.disk.io` | Counter | By | Disk bytes transferred. | `direction` SHOULD be one of: `read`, `write` |
41+
| `process.network.io` | Counter | By | Network bytes transferred. | `direction` SHOULD be one of: `receive`, `transmit` |
42+
| `process.threads` | UpDownCounter | {threads} | Process threads count. | |
43+
| `process.open_file_descriptors` | UpDownCounter | {count} | Number of file descriptors in use by the process. | |
44+
| `process.context_switches` | Counter | {count} | Number of times the process has been context switched. | `type` SHOULD be one of: `involuntary`, `voluntary` |
4345

4446
## Attributes
4547

0 commit comments

Comments
 (0)