File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 24
24
25
25
metrics = {
26
26
# fmt: off
27
+ # Host-specific metrics
27
28
"nvmecli" : Info (
28
29
"nvmecli" ,
29
30
"nvme-cli tool information" ,
@@ -196,8 +197,7 @@ def main():
196
197
metrics ["physical_size" ].labels (ns_dev ).set (ns ["PhysicalSize" ])
197
198
metrics ["used_bytes" ].labels (ns_dev ).set (ns ["UsedBytes" ])
198
199
199
- # Most SSDs (perhaps _all_ consumer grade SSDs) only contain a single namespace.
200
- # Fetch the device global SMART log by omitting any --namespace-id flag.
200
+ # Fetch the controller global SMART log by omitting the --namespace-id flag.
201
201
smart_log = exec_nvme_json ("smart-log" , os .path .join ("/dev" , ctrl ["Controller" ]))
202
202
203
203
# Various counters in the NVMe specification are 128-bit, which would have to
You can’t perform that action at this time.
0 commit comments