From 9060c4bbf6361e99c78d5761feada97c41ecd052 Mon Sep 17 00:00:00 2001 From: Trask Stalnaker Date: Tue, 1 Mar 2022 14:50:34 -0800 Subject: [PATCH] Add process cpu count metric --- CHANGELOG.md | 3 +++ specification/metrics/semantic_conventions/process-metrics.md | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 631a3ad3250..834801e84db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,9 @@ release. ### Semantic Conventions +- Add `process.cpu.count` metric. + ([#9999](https://github.com/open-telemetry/opentelemetry-specification/pull/9999)) + ### Compatibility ### OpenTelemetry Protocol diff --git a/specification/metrics/semantic_conventions/process-metrics.md b/specification/metrics/semantic_conventions/process-metrics.md index 6524a88f992..22e319bfbe4 100644 --- a/specification/metrics/semantic_conventions/process-metrics.md +++ b/specification/metrics/semantic_conventions/process-metrics.md @@ -30,6 +30,7 @@ Below is a table of Process metric instruments. | Name | Instrument | Units | Description | Labels | |------|------------|-------|-------------|--------| | `process.cpu.time` | Asynchronous 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. | +| `process.cpu.count` | Asynchronous UpDownCounter | 1 | The number of CPUs available to the process. | | | `process.memory.usage` | Asynchronous UpDownCounter | By | The amount of physical memory in use. | | | `process.memory.virtual` | Asynchronous UpDownCounter | By | The amount of committed virtual memory. | | | `process.disk.io` | Asynchronous Counter | By | Disk bytes transferred. | `direction` SHOULD be one of: `read`, `write` |