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 <superq@gmail.com>
This commit is contained in:
SuperQ 2023-08-16 09:21:17 +02:00
parent f5b403b5ba
commit d5fb66c5f1
No known key found for this signature in database
GPG key ID: C646B23C9E3245F1

View file

@ -48,7 +48,7 @@ var (
nil, nil,
) )
metricDeviceCount = prometheus.NewDesc( metricDeviceCount = prometheus.NewDesc(
"smartctl_device_count", "smartctl_devices",
"Number of devices configured or dynamically discovered", "Number of devices configured or dynamically discovered",
[]string{}, []string{},
nil, nil,