From 9d9990cfe82a823fd8d79fb5b452fbad2fc6894e Mon Sep 17 00:00:00 2001 From: Chris Mark Date: Thu, 23 Nov 2023 05:24:22 -0600 Subject: [PATCH] Add registry md file for disk attributes (#555) Signed-off-by: ChrsMark --- docs/attributes-registry/README.md | 1 + docs/attributes-registry/disk.md | 19 +++++++++++++++++++ docs/system/system-metrics.md | 8 ++++---- 3 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 docs/attributes-registry/disk.md diff --git a/docs/attributes-registry/README.md b/docs/attributes-registry/README.md index c8a0702d3..2e483c4ed 100644 --- a/docs/attributes-registry/README.md +++ b/docs/attributes-registry/README.md @@ -34,6 +34,7 @@ Currently, the following namespaces exist: * [DB](db.md) (database) * [Destination](destination.md) * [Device](device.md) +* [Disk](disk.md) * [Error](error.md) * [Host](host.md) * [HTTP](http.md) diff --git a/docs/attributes-registry/disk.md b/docs/attributes-registry/disk.md new file mode 100644 index 000000000..a98387336 --- /dev/null +++ b/docs/attributes-registry/disk.md @@ -0,0 +1,19 @@ + + +# Disk + +## Disk Attributes + + +| Attribute | Type | Description | Examples | +|---|---|---|---| +| `disk.io.direction` | string | The disk IO operation direction. | `read` | + +`disk.io.direction` MUST be one of the following: + +| Value | Description | +|---|---| +| `read` | read | +| `write` | write | + diff --git a/docs/system/system-metrics.md b/docs/system/system-metrics.md index f33a871e4..d39384bab 100644 --- a/docs/system/system-metrics.md +++ b/docs/system/system-metrics.md @@ -359,7 +359,7 @@ This metric is [recommended][MetricRecommended]. | Attribute | Type | Description | Examples | Requirement Level | |---|---|---|---|---| -| `disk.io.direction` | string | The disk IO operation direction. | `read` | Recommended | +| [`disk.io.direction`](../attributes-registry/disk.md) | string | The disk IO operation direction. | `read` | Recommended | | `system.device` | string | The device identifier | `(identifier)` | Recommended | `disk.io.direction` MUST be one of the following: @@ -383,7 +383,7 @@ This metric is [recommended][MetricRecommended]. | Attribute | Type | Description | Examples | Requirement Level | |---|---|---|---|---| -| `disk.io.direction` | string | The disk IO operation direction. | `read` | Recommended | +| [`disk.io.direction`](../attributes-registry/disk.md) | string | The disk IO operation direction. | `read` | Recommended | | `system.device` | string | The device identifier | `(identifier)` | Recommended | `disk.io.direction` MUST be one of the following: @@ -435,7 +435,7 @@ This metric is [recommended][MetricRecommended]. | Attribute | Type | Description | Examples | Requirement Level | |---|---|---|---|---| -| `disk.io.direction` | string | The disk IO operation direction. | `read` | Recommended | +| [`disk.io.direction`](../attributes-registry/disk.md) | string | The disk IO operation direction. | `read` | Recommended | | `system.device` | string | The device identifier | `(identifier)` | Recommended | `disk.io.direction` MUST be one of the following: @@ -459,7 +459,7 @@ This metric is [recommended][MetricRecommended]. | Attribute | Type | Description | Examples | Requirement Level | |---|---|---|---|---| -| `disk.io.direction` | string | The disk IO operation direction. | `read` | Recommended | +| [`disk.io.direction`](../attributes-registry/disk.md) | string | The disk IO operation direction. | `read` | Recommended | | `system.device` | string | The device identifier | `(identifier)` | Recommended | `disk.io.direction` MUST be one of the following: