From d5fb66c5f17a943de3df2b62650d437b988d75fc Mon Sep 17 00:00:00 2001 From: SuperQ Date: Wed, 16 Aug 2023 09:21:17 +0200 Subject: [PATCH] Fix metricDeviceCount gauge name Prometheus naming conventions reserve `_count` for the counter in histograms. For gauge values the naming convention is to use the plural of the thing being counted. Signed-off-by: SuperQ --- metrics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metrics.go b/metrics.go index 9e5957f..91c16a1 100644 --- a/metrics.go +++ b/metrics.go @@ -48,7 +48,7 @@ var ( nil, ) metricDeviceCount = prometheus.NewDesc( - "smartctl_device_count", + "smartctl_devices", "Number of devices configured or dynamically discovered", []string{}, nil,