Skip to content

Commit

Permalink
Fix metricDeviceCount gauge name
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
SuperQ committed Aug 16, 2023
1 parent f5b403b commit d5fb66c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var (
nil,
)
metricDeviceCount = prometheus.NewDesc(
"smartctl_device_count",
"smartctl_devices",
"Number of devices configured or dynamically discovered",
[]string{},
nil,
Expand Down

0 comments on commit d5fb66c

Please sign in to comment.