zfs: standardize case spelling of NewZFSCollector

Ensure identical factory function name across arch-specific files so
that the common init() function in zfs.go works.

Signed-off-by: Daniel Swarbrick <daniel.swarbrick@gmail.com>
pull/3138/head
Daniel Swarbrick 7 months ago committed by Johannes 'fish' Ziemke
parent b2dfaeb146
commit 770bd551db

@ -30,7 +30,7 @@ const (
zfsCollectorSubsystem = "zfs"
)
func NewZfsCollector(logger *slog.Logger) (Collector, error) {
func NewZFSCollector(logger *slog.Logger) (Collector, error) {
return &zfsCollector{
sysctls: []bsdSysctl{
{

@ -61,7 +61,7 @@ const (
zfsCollectorSubsystem = "zfs"
)
func NewZfsCollector(logger *slog.Logger) (Collector, error) {
func NewZFSCollector(logger *slog.Logger) (Collector, error) {
return &zfsCollector{
abdstatsLinearCount: prometheus.NewDesc(
prometheus.BuildFQName(namespace, zfsCollectorSubsystem, "abdstats_linear_count_total"),

Loading…
Cancel
Save