You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/hardware/common.md
+18-4Lines changed: 18 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ The below metrics apply to any type of hardware component.
26
26
27
27
These common `hw.` metrics include the below attributes to describe the
28
28
monitored component:
29
-
<!-- semconv metric.hw.attributes -->
29
+
<!-- semconv metric_attributes.hw.attributes -->
30
30
<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
31
31
<!-- see templates/registry/markdown/snippet.md.j2 -->
32
32
<!-- prettier-ignore-start -->
@@ -137,14 +137,17 @@ This metric is [recommended][MetricRecommended].
137
137
|---|---|---|---|---|---|
138
138
|[`hw.id`](/docs/registry/attributes/hardware.md)| string | An identifier for the hardware component, unique within the monitored host |`win32battery_battery_testsysa33_1`|`Required`||
139
139
|[`hw.type`](/docs/registry/attributes/hardware.md)| string | Type of the component [1]|`battery`; `cpu`; `disk_controller`|`Required`||
140
-
|[`error.type`](/docs/registry/attributes/error.md)| string | The type of error encountered by the component [2]|`uncorrected`; `zero_buffer_credit`; `crc`; `bad_sector`|`Conditionally Required` if and only if an error has occurred ||
140
+
|[`error.type`](/docs/registry/attributes/error.md)| string | The type of error encountered by the component.[2]|`uncorrected`; `zero_buffer_credit`; `crc`; `bad_sector`|`Conditionally Required` if and only if an error has occurred ||
141
141
|[`hw.name`](/docs/registry/attributes/hardware.md)| string | An easily-recognizable name for the hardware component |`eth0`|`Recommended`||
142
142
|[`hw.parent`](/docs/registry/attributes/hardware.md)| string | Unique identifier of the parent component (typically the `hw.id` attribute of the enclosure, or disk controller) |`dellStorage_perc_0`|`Recommended`||
143
+
|[`network.io.direction`](/docs/registry/attributes/network.md)| string | Direction of network traffic for network errors. [3]|`receive`; `transmit`|`Recommended`||
143
144
144
145
**[1]`hw.type`:** Describes the category of the hardware component for which `hw.state` is being reported. For example, `hw.type=temperature` along with `hw.state=degraded` would indicate that the temperature of the hardware component has been reported as `degraded`.
145
146
146
147
**[2]`error.type`:** The `error.type` SHOULD match the error code reported by the component, the canonical name of the error, or another low-cardinality error identifier. Instrumentations SHOULD document the list of errors they report.
147
148
149
+
**[3]`network.io.direction`:** This attribute SHOULD only be used when `hw.type` is set to `"network"` to indicate the direction of the error.
150
+
148
151
---
149
152
150
153
`error.type` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
@@ -174,6 +177,15 @@ This metric is [recommended][MetricRecommended].
174
177
|`temperature`| Temperature ||
175
178
|`voltage`| Voltage ||
176
179
180
+
---
181
+
182
+
`network.io.direction` has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
|[`hw.id`](/docs/registry/attributes/hardware.md)| string | An identifier for the hardware component, unique within the monitored host |`win32battery_battery_testsysa33_1`|`Required`||
254
-
|[`hw.state`](/docs/registry/attributes/hardware.md)| string | The current state of the component |`ok`; `degraded`; `failed`|`Required`||
266
+
|[`hw.state`](/docs/registry/attributes/hardware.md)| string | The current state of the component |`degraded`; `failed`; `needs_cleaning`|`Required`||
255
267
|[`hw.type`](/docs/registry/attributes/hardware.md)| string | Type of the component [1]|`battery`; `cpu`; `disk_controller`|`Required`||
256
268
|[`hw.name`](/docs/registry/attributes/hardware.md)| string | An easily-recognizable name for the hardware component |`eth0`|`Recommended`||
257
269
|[`hw.parent`](/docs/registry/attributes/hardware.md)| string | Unique identifier of the parent component (typically the `hw.id` attribute of the enclosure, or disk controller) |`dellStorage_perc_0`|`Recommended`||
@@ -266,7 +278,9 @@ This metric is [recommended][MetricRecommended].
0 commit comments