From 78f5fb295c062ba81b6d6804c5c141b92186660f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Sun, 12 Nov 2023 21:34:38 +0100 Subject: [PATCH] Update dhcp.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Re-add DHCP perflib dependency Fixes https://github.com/prometheus-community/windows_exporter/issues/1259 Signed-off-by: Jan-Otto Kröpke --- pkg/collector/dhcp/dhcp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/collector/dhcp/dhcp.go b/pkg/collector/dhcp/dhcp.go index ddb13572..32010656 100644 --- a/pkg/collector/dhcp/dhcp.go +++ b/pkg/collector/dhcp/dhcp.go @@ -66,7 +66,7 @@ func (c *collector) SetLogger(logger log.Logger) { } func (c *collector) GetPerfCounter() ([]string, error) { - return []string{}, nil + return []string{"DHCP Server"}, nil } func (c *collector) Build() error {