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 74
74
"Device error log entry count" ,
75
75
["device" ], namespace = namespace , registry = registry ,
76
76
),
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 (
81
78
"nvmecli" ,
82
79
"nvme-cli tool information" ,
83
80
["version" ], namespace = namespace , registry = registry ,
@@ -159,7 +156,7 @@ def main():
159
156
cli_version = match .group (1 )
160
157
else :
161
158
cli_version = "unknown"
162
- metrics ["nvmecli" ].labels (cli_version ). set ( 1 )
159
+ metrics ["nvmecli" ].labels (cli_version )
163
160
164
161
device_list = exec_nvme_json ("list" )
165
162
You can’t perform that action at this time.
0 commit comments