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>
This commit is contained in:
Daniel Swarbrick 2024-05-12 18:35:42 +02:00 committed by Johannes 'fish' Ziemke
parent b2dfaeb146
commit 770bd551db
2 changed files with 2 additions and 2 deletions

View file

@ -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{
{

View file

@ -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"),