From 4c04321813a1624e8779f421d2e0b094b3351b89 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Thu, 19 May 2022 11:57:41 -0700 Subject: [PATCH 1/3] add network to process semantic conventions Adding network input/output as a process semantic convention. --- specification/metrics/semantic_conventions/process-metrics.md | 1 + 1 file changed, 1 insertion(+) diff --git a/specification/metrics/semantic_conventions/process-metrics.md b/specification/metrics/semantic_conventions/process-metrics.md index 2358c16aca3..b2f9c7112f7 100644 --- a/specification/metrics/semantic_conventions/process-metrics.md +++ b/specification/metrics/semantic_conventions/process-metrics.md @@ -34,6 +34,7 @@ Below is a table of Process metric instruments. | `process.memory.usage` | UpDownCounter | By | The amount of physical memory in use. | | | `process.memory.virtual` | UpDownCounter | By | The amount of committed virtual memory. | | | `process.disk.io` | Counter | By | Disk bytes transferred. | `direction` SHOULD be one of: `read`, `write` | +| `process.network.io` | Counter | By | Network bytes transferred. | `direction` SHOULD be one of: `input`, `output` | ## Attributes From dfe34213fe70b1fc68aef7b58ccf3189a46e2e5e Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Wed, 25 May 2022 13:00:55 -0700 Subject: [PATCH 2/3] add changelog, update input/output --- CHANGELOG.md | 2 ++ specification/metrics/semantic_conventions/process-metrics.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 73d32dc3621..cadfdd902a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,8 @@ release. ([#2502](https://github.com/open-telemetry/opentelemetry-specification/pull/2502)) - Define attribute requirement levels ([#2522](https://github.com/open-telemetry/opentelemetry-specification/pull/2522)) +- Add network metrics to process semantic conventions + ([#2556](https://github.com/open-telemetry/opentelemetry-specification/pull/2556)) ### Compatibility diff --git a/specification/metrics/semantic_conventions/process-metrics.md b/specification/metrics/semantic_conventions/process-metrics.md index b2f9c7112f7..720c539a1ff 100644 --- a/specification/metrics/semantic_conventions/process-metrics.md +++ b/specification/metrics/semantic_conventions/process-metrics.md @@ -34,7 +34,7 @@ Below is a table of Process metric instruments. | `process.memory.usage` | UpDownCounter | By | The amount of physical memory in use. | | | `process.memory.virtual` | UpDownCounter | By | The amount of committed virtual memory. | | | `process.disk.io` | Counter | By | Disk bytes transferred. | `direction` SHOULD be one of: `read`, `write` | -| `process.network.io` | Counter | By | Network bytes transferred. | `direction` SHOULD be one of: `input`, `output` | +| `process.network.io` | Counter | By | Network bytes transferred. | `direction` SHOULD be one of: `in`, `out` | ## Attributes From 41961ea87b335b5a2f5f9a454eccbfdb7f36f1b7 Mon Sep 17 00:00:00 2001 From: Alex Boten Date: Wed, 15 Jun 2022 11:15:21 -0700 Subject: [PATCH 3/3] update attribute to be consistent with system.network.io --- specification/metrics/semantic_conventions/process-metrics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/metrics/semantic_conventions/process-metrics.md b/specification/metrics/semantic_conventions/process-metrics.md index 720c539a1ff..16840ddf533 100644 --- a/specification/metrics/semantic_conventions/process-metrics.md +++ b/specification/metrics/semantic_conventions/process-metrics.md @@ -34,7 +34,7 @@ Below is a table of Process metric instruments. | `process.memory.usage` | UpDownCounter | By | The amount of physical memory in use. | | | `process.memory.virtual` | UpDownCounter | By | The amount of committed virtual memory. | | | `process.disk.io` | Counter | By | Disk bytes transferred. | `direction` SHOULD be one of: `read`, `write` | -| `process.network.io` | Counter | By | Network bytes transferred. | `direction` SHOULD be one of: `in`, `out` | +| `process.network.io` | Counter | By | Network bytes transferred. | `direction` SHOULD be one of: `receive`, `transmit` | ## Attributes