feat: Add GPU ID to temperatures
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
98483e3279
commit
6f09301879
1 changed files with 2 additions and 2 deletions
|
@ -235,7 +235,7 @@ class Trex(Resource):
|
||||||
temperature = gpu["temperature"]
|
temperature = gpu["temperature"]
|
||||||
logger.debug(f"Temperature of {name} ({id}) is {temperature}C")
|
logger.debug(f"Temperature of {name} ({id}) is {temperature}C")
|
||||||
metrics.append(
|
metrics.append(
|
||||||
Metric("temperature", temperature, context="temperature")
|
Metric(f"temperature_{id}", temperature, context="temperature")
|
||||||
)
|
)
|
||||||
|
|
||||||
if "memory_temperature" in gpu:
|
if "memory_temperature" in gpu:
|
||||||
|
@ -245,7 +245,7 @@ class Trex(Resource):
|
||||||
)
|
)
|
||||||
metrics.append(
|
metrics.append(
|
||||||
Metric(
|
Metric(
|
||||||
"memory_temperature",
|
f"memory_temperature_{id}",
|
||||||
memory_temperature,
|
memory_temperature,
|
||||||
context="memory_temperature",
|
context="memory_temperature",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue