From 7e9f4c2e09e8936f1ad477511ce935026e7f5750 Mon Sep 17 00:00:00 2001 From: Marc Tuduri Date: Wed, 4 Oct 2023 17:43:54 +0200 Subject: [PATCH] Fix compilation for dragonfly devstat --- collector/devstat_dragonfly.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collector/devstat_dragonfly.go b/collector/devstat_dragonfly.go index 4ebf59d12c..733e918ecf 100644 --- a/collector/devstat_dragonfly.go +++ b/collector/devstat_dragonfly.go @@ -102,11 +102,11 @@ type devstatCollector struct { } func init() { - registerCollector("devstat", defaultDisabled,NewDevstatCollector) + registerCollector("devstat", defaultDisabled, NewDevstatCollector) } // NewDevstatCollector returns a new Collector exposing Device stats. -func NewDevstatCollector(config *NodeCollectorConfiglogger log.Logger) (Collector, error) { +func NewDevstatCollector(config *NodeCollectorConfig, logger log.Logger) (Collector, error) { return &devstatCollector{ bytesDesc: prometheus.NewDesc( prometheus.BuildFQName(namespace, devstatSubsystem, "bytes_total"),