File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 7474 "Device error log entry count" ,
7575 ["device" ], namespace = namespace , registry = registry ,
7676 ),
77- # FIXME: The "nvmecli" metric ought to be an Info type, not a Gauge. However, making this change
78- # will result in the metric having a "_info" suffix automatically appended, which is arguably
79- # a breaking change.
80- "nvmecli" : Gauge (
77+ "nvmecli" : Info (
8178 "nvmecli" ,
8279 "nvme-cli tool information" ,
8380 ["version" ], namespace = namespace , registry = registry ,
@@ -159,7 +156,7 @@ def main():
159156 cli_version = match .group (1 )
160157 else :
161158 cli_version = "unknown"
162- metrics ["nvmecli" ].labels (cli_version ). set ( 1 )
159+ metrics ["nvmecli" ].labels (cli_version )
163160
164161 device_list = exec_nvme_json ("list" )
165162
You can’t perform that action at this time.
0 commit comments