From 6df15e5f921a929d5c0ab70252ccc4ec5f037475 Mon Sep 17 00:00:00 2001 From: Daniel Swarbrick Date: Thu, 21 Nov 2024 18:08:02 +0100 Subject: [PATCH] nvme_metrics: adjust wording of comments Signed-off-by: Daniel Swarbrick --- nvme_metrics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvme_metrics.py b/nvme_metrics.py index 10b3053..fee5796 100755 --- a/nvme_metrics.py +++ b/nvme_metrics.py @@ -24,6 +24,7 @@ metrics = { # fmt: off + # Host-specific metrics "nvmecli": Info( "nvmecli", "nvme-cli tool information", @@ -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