From 75f33a7e85ea535e8a293b82eff563c1639456dc Mon Sep 17 00:00:00 2001 From: Daniel Swarbrick Date: Thu, 21 Nov 2024 07:44:18 +0100 Subject: [PATCH] nvme_metrics: use device label in namespace_info metric Use "device" rather than "namespace" label so that it matches the other namespace-specific metrics. Signed-off-by: Daniel Swarbrick --- nvme_metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvme_metrics.py b/nvme_metrics.py index 4e785a2..10b3053 100755 --- a/nvme_metrics.py +++ b/nvme_metrics.py @@ -117,7 +117,7 @@ "namespace_info": Info( "namespace", "Namespace information", - ["namepace", "nsid", "controller"], namespace=namespace, registry=registry, + ["device", "nsid", "controller"], namespace=namespace, registry=registry, ), "physical_size": Gauge( "physical_size_bytes",