Improve guidelines for sensor_location
attribute in hardware section
#3139
Labels
spec:metrics
Related to the specification/metrics directory
What are you trying to achieve?
Improve semantic guidelines for
sensor_location
attribute.What did you expect to see?
In the hardware semantic guidelines:
sensor_location
attribute should be hierarchical. See Attribute names in semantic guidelines should be hierarchical #3131.Additional context.
In Semantic Conventions for Hardware Metrics, some components have a
sensor_location
attribute. For example, fan, temperature and voltage have asensor_location
attribute.The example values include
cpu0
,ps1
,INLET
,PS0 V3_3
,CPU0_DIE
. Some of these examples are sensor values that are reported by IPMI.It makes sense to use
sensor_location
for temperature and voltage, as this indicates the precise location of the sensor that measures the temperature metric or voltage metric. However, without additional attributes, it would be difficult to determine which physical component that temperature/voltage sensor is associated with. For example, ifsensor_location
isCPU0_DIE
, I may be able to lookup a data sheet and find out it's the temperature sensor of the CPU in socket 0. But it wouldn't be easy to map it to a CPU slot or CPU vendor/model/serial.Fan
The fan component section defines the
sensor_location
of a fan to be:It's confusing to overload the
sensor_location
attribute to be the location of the fan. A Fan is not a sensor. It's a physical component that may have zero or more sensors for temperature, rpm, etc.Proposal
It would be helpful to provide guidance and examples for the
id
,name
andparent
attributes, and how the values related to the hardware component. For example, if a CPU hasid="cpu_12345abc35_0"
, what should be theid
,name
andparent
attribute value reported by the temperature instrument? Should the value ofparent
for the temperature instrument be set to"cpu_12345abc35_0"
(the id of the CPU)? If not, how does a user know the temperature metric is associated with the CPU?How about adding
vendor
,model
andserial_number
as optional attributes?The text was updated successfully, but these errors were encountered: