Skip to content

Commit 9442dcf

Browse files
atoulmedashpole
authored andcommitted
Add process.threads (open-telemetry#2705)
1 parent 72153c2 commit 9442dcf

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ release.
2424
([#2619](https://github.com/open-telemetry/opentelemetry-specification/pull/2619)).
2525
- Clarify async instrument callback identity.
2626
([#2538](https://github.com/open-telemetry/opentelemetry-specification/pull/2538)).
27+
- Add `process.threads` host metric semantic convention.
28+
([#2705](https://github.com/open-telemetry/opentelemetry-specification/pull/2705)).
2729

2830
### Logs
2931

specification/metrics/semantic_conventions/process-metrics.md

+13-12
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,19 @@ 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 | 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` (deprecated) | Counter | By | Disk bytes transferred. | `direction` SHOULD be one of: `read`, `write` |
41-
| `process.disk.io.read` | Counter | By | Disk bytes read. | |
42-
| `process.disk.io.write` | Counter | By | Disk bytes written. | |
43-
| `process.network.io` (deprecated) | Counter | By | Network bytes transferred. | `direction` SHOULD be one of: `receive`, `transmit` |
44-
| `process.network.io.receive` | Counter | By | Network bytes received. | |
45-
| `process.network.io.transmit` | Counter | By | Network bytes transmitted. | |
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 | 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` (deprecated) | Counter | By | Disk bytes transferred. | `direction` SHOULD be one of: `read`, `write` |
41+
| `process.disk.io.read` | Counter | By | Disk bytes read. | |
42+
| `process.disk.io.write` | Counter | By | Disk bytes written. | |
43+
| `process.network.io` (deprecated) | Counter | By | Network bytes transferred. | `direction` SHOULD be one of: `receive`, `transmit` |
44+
| `process.network.io.receive` | Counter | By | Network bytes received. | |
45+
| `process.network.io.transmit` | Counter | By | Network bytes transmitted. | |
46+
| `process.threads` | UpDownCounter | {threads} | Process threads count. | |
4647

4748
## Attributes
4849

0 commit comments

Comments
 (0)