@@ -59,12 +59,12 @@ def __init__(self) -> None:
59
59
self ._container_metric = Gauge (
60
60
name = "backendai_container_utilization" ,
61
61
documentation = "Container utilization metrics" ,
62
- labelnames = ["metric_name " , "agent_id" , "kernel_id" , "value_type" ],
62
+ labelnames = ["container_metric_name " , "agent_id" , "kernel_id" , "value_type" ],
63
63
)
64
64
self ._device_metric = Gauge (
65
65
name = "backendai_device_utilization" ,
66
66
documentation = "Device utilization metrics" ,
67
- labelnames = ["metric_name " , "agent_id" , "device_id" , "value_type" ],
67
+ labelnames = ["device_metric_name " , "agent_id" , "device_id" , "value_type" ],
68
68
)
69
69
70
70
@classmethod
@@ -80,7 +80,7 @@ def observe_container_metric(
80
80
) -> None :
81
81
for metric_value_type , value in metric .value_pairs :
82
82
self ._container_metric .labels (
83
- metric_name = metric .key ,
83
+ container_metric_name = metric .key ,
84
84
agent_id = metric .agent_id ,
85
85
kernel_id = metric .kernel_id ,
86
86
value_type = metric_value_type ,
@@ -93,7 +93,7 @@ def observe_device_metric(
93
93
) -> None :
94
94
for metric_value_type , value in metric .value_pairs :
95
95
self ._device_metric .labels (
96
- metric_name = metric .key ,
96
+ device_metric_name = metric .key ,
97
97
agent_id = metric .agent_id ,
98
98
device_id = metric .device_id ,
99
99
value_type = metric_value_type ,
0 commit comments