この記事は英語の原文を日本語に翻訳したものです。原文: https://opentelemetry.io/docs/specs/semconv/hardware/battery/

翻訳元: open-telemetry/semantic-conventions v1.44.0(コミット e10a930

バッテリーメトリクスに関するセマンティック規約

ステータス: Development

バッテリーメトリクス hw.battery.*

コンピューターシステムまたはUPS内のバッテリー。

メトリクス: hw.battery.charge

このメトリクスは推奨(recommended)です。

NameInstrument TypeUnit (UCUM)DescriptionStabilityEntity Associations
hw.battery.chargeGauge1バッテリー充電量の残り割合。Development

Attributes:

KeyStabilityRequirement LevelValue TypeDescriptionExample Values
hw.idDevelopmentRequiredstring監視対象のホスト内で一意な、ハードウェアコンポーネントの識別子win32battery_battery_testsysa33_1
hw.battery.capacityDevelopmentRecommendedstringワット時またはアンペア時で表した設計容量9.3Ah; 50Wh
hw.battery.chemistryDevelopmentRecommendedstringバッテリーの化学的組成(例:リチウムイオン、ニッケルカドミウムなど)Li-ion; NiMH
hw.modelDevelopmentRecommendedstringハードウェアコンポーネントを説明するモデル名PERC H740P; Intel(R) Core(TM) i7-10700K; Dell XPS 15 Battery
hw.nameDevelopmentRecommendedstringハードウェアコンポーネントの、見てすぐわかる名前eth0
hw.parentDevelopmentRecommendedstring親コンポーネントの一意識別子(通常はエンクロージャーまたはディスクコントローラーのhw.id属性)dellStorage_perc_0
hw.vendorDevelopmentRecommendedstringハードウェアコンポーネントのベンダー名Dell; HP; Intel; AMD; LSI; Lenovo

メトリクス: hw.battery.charge.limit

このメトリクスは推奨(recommended)です。

NameInstrument TypeUnit (UCUM)DescriptionStabilityEntity Associations
hw.battery.charge.limitGauge1正常な動作を保証するための、バッテリー充電割合の下限。Development

Attributes:

KeyStabilityRequirement LevelValue TypeDescriptionExample Values
hw.idDevelopmentRequiredstring監視対象のホスト内で一意な、ハードウェアコンポーネントの識別子win32battery_battery_testsysa33_1
hw.battery.capacityDevelopmentRecommendedstringワット時またはアンペア時で表した設計容量9.3Ah; 50Wh
hw.battery.chemistryDevelopmentRecommendedstringバッテリーの化学的組成(例:リチウムイオン、ニッケルカドミウムなど)Li-ion; NiMH
hw.limit_typeDevelopmentRecommendedstringデバイスの動作および健全性に関連するバッテリー充電レベルの閾値を表す。各limit_typeは、最小または最大の最適充電量、シャットダウン閾値、省電力閾値といった特定の充電上限を示す。これらの値は通常、安全かつ効率的なバッテリー使用を導くために、ハードウェアまたはファームウェアから提供される。critical; throttled; degraded
hw.modelDevelopmentRecommendedstringハードウェアコンポーネントを説明するモデル名PERC H740P; Intel(R) Core(TM) i7-10700K; Dell XPS 15 Battery
hw.nameDevelopmentRecommendedstringハードウェアコンポーネントの、見てすぐわかる名前eth0
hw.parentDevelopmentRecommendedstring親コンポーネントの一意識別子(通常はエンクロージャーまたはディスクコントローラーのhw.id属性)dellStorage_perc_0
hw.vendorDevelopmentRecommendedstringハードウェアコンポーネントのベンダー名Dell; HP; Intel; AMD; LSI; Lenovo

hw.limit_typeには、以下のよく知られた値のリストがあります。これらのいずれかが該当する場合は、対応する値を使用しなければならず(MUST)、そうでない場合はカスタム値を使用してもよい(MAY)です。

ValueDescriptionStability
criticalCritical(危険)Development
degradedDegraded(劣化)Development
high.criticalHigh Critical(高側の危険)Development
high.degradedHigh Degraded(高側の劣化)Development
low.criticalLow Critical(低側の危険)Development
low.degradedLow Degraded(低側の劣化)Development
maxMaximum(最大)Development
throttledThrottled(抑制)Development
turboTurbo(ターボ)Development

メトリクス: hw.battery.time_left

このメトリクスは推奨(recommended)です。

NameInstrument TypeUnit (UCUM)DescriptionStabilityEntity Associations
hw.battery.time_leftGaugesバッテリーが完全に充電または放電されるまでの残り時間。Development

Attributes:

KeyStabilityRequirement LevelValue TypeDescriptionExample Values
hw.idDevelopmentRequiredstring監視対象のホスト内で一意な、ハードウェアコンポーネントの識別子win32battery_battery_testsysa33_1
hw.stateDevelopmentRequiredstringコンポーネントの現在の状態degraded; failed; needs_cleaning
hw.battery.stateDevelopmentConditionally Required If the battery is charging or dischargingstringバッテリーの現在の状態 [1]charging; discharging
hw.battery.capacityDevelopmentRecommendedstringワット時またはアンペア時で表した設計容量9.3Ah; 50Wh
hw.battery.chemistryDevelopmentRecommendedstringバッテリーの化学的組成(例:リチウムイオン、ニッケルカドミウムなど)Li-ion; NiMH
hw.modelDevelopmentRecommendedstringハードウェアコンポーネントを説明するモデル名PERC H740P; Intel(R) Core(TM) i7-10700K; Dell XPS 15 Battery
hw.nameDevelopmentRecommendedstringハードウェアコンポーネントの、見てすぐわかる名前eth0
hw.parentDevelopmentRecommendedstring親コンポーネントの一意識別子(通常はエンクロージャーまたはディスクコントローラーのhw.id属性)dellStorage_perc_0
hw.vendorDevelopmentRecommendedstringハードウェアコンポーネントのベンダー名Dell; HP; Intel; AMD; LSI; Lenovo

[1] hw.battery.state: hw.state属性は、バッテリーの現在の状態を示すべきです(should)。“charging"や"discharging"のような、事前に定義された状態のいずれかであるべきです。


hw.battery.stateには、以下のよく知られた値のリストがあります。これらのいずれかが該当する場合は、対応する値を使用しなければならず(MUST)、そうでない場合はカスタム値を使用してもよい(MAY)です。

ValueDescriptionStability
chargingCharging(充電中)Development
dischargingDischarging(放電中)Development

hw.stateには、以下のよく知られた値のリストがあります。これらのいずれかが該当する場合は、対応する値を使用しなければならず(MUST)、そうでない場合はカスタム値を使用してもよい(MAY)です。

ValueDescriptionStability
degradedDegraded(劣化)Development
failedFailed(故障)Development
needs_cleaningNeeds Cleaning(清掃が必要)Development
okOK(正常)Development
predicted_failurePredicted Failure(故障予測)Development

メトリクス: hw.status(バッテリー)

このメトリクスは推奨(recommended)です。

NameInstrument TypeUnit (UCUM)DescriptionStabilityEntity Associations
hw.statusUpDownCounter1動作ステータス:可能な各状態に対して1(true)または0(false)。 [1]Development

[1]: hw.statusは現在UpDownCounterとして規定されていますが、理想的にはOpenMetricsで定義されているStateSetを使って表現されるべきです。StateSetがOpenTelemetryで規定された時点で、このセマンティック規約は更新されます。この予定されている変更は、ユーザーが時系列バックエンドに対してhw.statusの値を時系列で取得する方法に影響を与えることは想定されていません。

Attributes:

KeyStabilityRequirement LevelValue TypeDescriptionExample Values
hw.idDevelopmentRequiredstring監視対象のホスト内で一意な、ハードウェアコンポーネントの識別子win32battery_battery_testsysa33_1
hw.stateDevelopmentRequiredstringコンポーネントの現在の状態 [1]ok; degraded; failed; charging; discharging
hw.typeDevelopmentRequiredstringコンポーネントの種別 [2]battery
hw.battery.capacityDevelopmentRecommendedstringワット時またはアンペア時で表した設計容量9.3Ah; 50Wh
hw.battery.chemistryDevelopmentRecommendedstringバッテリーの化学的組成(例:リチウムイオン、ニッケルカドミウムなど)Li-ion; NiMH
hw.modelDevelopmentRecommendedstringハードウェアコンポーネントを説明するモデル名PERC H740P; Intel(R) Core(TM) i7-10700K; Dell XPS 15 Battery
hw.nameDevelopmentRecommendedstringハードウェアコンポーネントの、見てすぐわかる名前eth0
hw.parentDevelopmentRecommendedstring親コンポーネントの一意識別子(通常はエンクロージャーまたはディスクコントローラーのhw.id属性)dellStorage_perc_0
hw.vendorDevelopmentRecommendedstringハードウェアコンポーネントのベンダー名Dell; HP; Intel; AMD; LSI; Lenovo

[1] hw.state: 以下のいずれかの値に設定しなければなりません(MUST)。

  • ok:バッテリーは正常に動作しています。
  • degraded:バッテリーは機能または性能が低下した状態で動作しています。
  • failed:バッテリーは故障し、動作していません。
  • charging:バッテリーは現在充電中です。
  • discharging:バッテリーは現在放電中です。

[2] hw.type: batteryに設定しなければなりません(MUST)。


hw.stateには、以下のよく知られた値のリストがあります。これらのいずれかが該当する場合は、対応する値を使用しなければならず(MUST)、そうでない場合はカスタム値を使用してもよい(MAY)です。

ValueDescriptionStability
degradedDegraded(劣化)Development
failedFailed(故障)Development
needs_cleaningNeeds Cleaning(清掃が必要)Development
okOK(正常)Development
predicted_failurePredicted Failure(故障予測)Development

hw.typeには、以下のよく知られた値のリストがあります。これらのいずれかが該当する場合は、対応する値を使用しなければならず(MUST)、そうでない場合はカスタム値を使用してもよい(MAY)です。

ValueDescriptionStability
batteryバッテリーDevelopment
cpuCPUDevelopment
disk_controllerディスクコントローラーDevelopment
enclosureエンクロージャーDevelopment
fanファンDevelopment
gpuGPUDevelopment
logical_disk論理ディスクDevelopment
memoryメモリDevelopment
networkネットワークDevelopment
physical_disk物理ディスクDevelopment
power_supply電源ユニットDevelopment
tape_driveテープドライブDevelopment
temperature温度Development
voltage電圧Development