Skip to content

Commit 7a47bf9

Browse files
Add additional process metrics to the metrics semantic conventions (#2706)
Co-authored-by: Armin Ruech <armin.ruech@dynatrace.com>
1 parent 31c81e8 commit 7a47bf9

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ release.
2626

2727
### Semantic Conventions
2828

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))
32+
2933
### Compatibility
3034

3135
### OpenTelemetry Protocol

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)) | Units | 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 | 1 | 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 | 1 | 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)