We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75f33a7 commit 6df15e5Copy full SHA for 6df15e5
nvme_metrics.py
@@ -24,6 +24,7 @@
24
25
metrics = {
26
# fmt: off
27
+ # Host-specific metrics
28
"nvmecli": Info(
29
"nvmecli",
30
"nvme-cli tool information",
@@ -196,8 +197,7 @@ def main():
196
197
metrics["physical_size"].labels(ns_dev).set(ns["PhysicalSize"])
198
metrics["used_bytes"].labels(ns_dev).set(ns["UsedBytes"])
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.
+ # Fetch the controller global SMART log by omitting the --namespace-id flag.
201
smart_log = exec_nvme_json("smart-log", os.path.join("/dev", ctrl["Controller"]))
202
203
# Various counters in the NVMe specification are 128-bit, which would have to
0 commit comments