Skip to content

Commit

Permalink
nvme_metrics: adjust wording of comments
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Swarbrick <[email protected]>
  • Loading branch information
dswarbrick committed Nov 21, 2024
1 parent 75f33a7 commit 6df15e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nvme_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

metrics = {
# fmt: off
# Host-specific metrics
"nvmecli": Info(
"nvmecli",
"nvme-cli tool information",
Expand Down Expand Up @@ -196,8 +197,7 @@ def main():
metrics["physical_size"].labels(ns_dev).set(ns["PhysicalSize"])
metrics["used_bytes"].labels(ns_dev).set(ns["UsedBytes"])

# Most SSDs (perhaps _all_ consumer grade SSDs) only contain a single namespace.
# Fetch the device global SMART log by omitting any --namespace-id flag.
# Fetch the controller global SMART log by omitting the --namespace-id flag.
smart_log = exec_nvme_json("smart-log", os.path.join("/dev", ctrl["Controller"]))

# Various counters in the NVMe specification are 128-bit, which would have to
Expand Down

0 comments on commit 6df15e5

Please sign in to comment.