Semantic conventions for enclosure metrics

Status: Development

Enclosure metrics hw.enclosure.*

Computer chassis (can be an expansion enclosure).

hw.type MUST be set to "enclosure".

All enclosure metrics may include the below attributes:

Attributes:

KeyStabilityRequirement LevelValue TypeDescriptionExample Values
hw.idDevelopmentRequiredstringAn identifier for the hardware component, unique within the monitored hostwin32battery_battery_testsysa33_1
hw.bios_versionDevelopmentRecommendedstringBIOS version of the hardware component1.2.3
hw.enclosure.typeDevelopmentRecommendedstringType of the enclosure (useful for modular systems)Computer; Storage; Switch
hw.modelDevelopmentRecommendedstringDescriptive model name of the hardware componentPERC H740P; Intel(R) Core(TM) i7-10700K; Dell XPS 15 Battery
hw.nameDevelopmentRecommendedstringAn easily-recognizable name for the hardware componenteth0
hw.parentDevelopmentRecommendedstringUnique identifier of the parent component (typically the hw.id attribute of the enclosure, or disk controller)dellStorage_perc_0
hw.serial_numberDevelopmentRecommendedstringSerial number of the hardware componentCNFCP0123456789
hw.vendorDevelopmentRecommendedstringVendor name of the hardware componentDell; HP; Intel; AMD; LSI; Lenovo

Metric: hw.status (Enclosure)

This metric is recommended.

Operational status: 1 (true) or 0 (false) for each of the possible states.

When using this metric for enclosure status, the following attributes MUST be set:

  • hw.type MUST be set to "enclosure" to indicate that the status is for an enclosure.
  • hw.state MUST be set to one of the following values to indicate the enclosure state:
    • "ok": The enclosure is operating normally.
    • "degraded": The enclosure is operating with reduced functionality or performance.
    • "failed": The enclosure has failed and is not operational.
    • "open": The enclosure is open.
NameInstrument TypeUnit (UCUM)DescriptionStabilityEntity Associations
hw.statusUpDownCounter1Operational status: 1 (true) or 0 (false) for each of the possible states. [1]Development

[1]: hw.status is currently specified as an UpDownCounter but would ideally be represented using a StateSet as defined in OpenMetrics. This semantic convention will be updated once StateSet is specified in OpenTelemetry. This planned change is not expected to have any consequence on the way users query their timeseries backend to retrieve the values of hw.status over time.

Attributes:

KeyStabilityRequirement LevelValue TypeDescriptionExample Values
hw.idDevelopmentRequiredstringAn identifier for the hardware component, unique within the monitored hostwin32battery_battery_testsysa33_1
hw.stateDevelopmentRequiredstringThe current state of the componentdegraded; failed; needs_cleaning
hw.typeDevelopmentRequiredstringType of the component [1]battery; cpu; disk_controller
hw.nameDevelopmentRecommendedstringAn easily-recognizable name for the hardware componenteth0
hw.parentDevelopmentRecommendedstringUnique identifier of the parent component (typically the hw.id attribute of the enclosure, or disk controller)dellStorage_perc_0

[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.


hw.state 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.

ValueDescriptionStability
degradedDegradedDevelopment
failedFailedDevelopment
needs_cleaningNeeds CleaningDevelopment
okOKDevelopment
predicted_failurePredicted FailureDevelopment

hw.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.

ValueDescriptionStability
batteryBatteryDevelopment
cpuCPUDevelopment
disk_controllerDisk controllerDevelopment
enclosureEnclosureDevelopment
fanFanDevelopment
gpuGPUDevelopment
logical_diskLogical diskDevelopment
memoryMemoryDevelopment
networkNetworkDevelopment
physical_diskPhysical diskDevelopment
power_supplyPower supplyDevelopment
tape_driveTape driveDevelopment
temperatureTemperatureDevelopment
voltageVoltageDevelopment