From 26d6dddf2505ac0a035b295df563434d57a711ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Sun, 24 Nov 2024 00:39:38 +0100 Subject: [PATCH] adfs: fix collector (#1761) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto Kröpke --- internal/collector/adfs/adfs.go | 2 +- internal/collector/adfs/const.go | 2 +- internal/collector/dhcp/dhcp.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/collector/adfs/adfs.go b/internal/collector/adfs/adfs.go index 27b96c93..f6eb5d17 100644 --- a/internal/collector/adfs/adfs.go +++ b/internal/collector/adfs/adfs.go @@ -102,7 +102,7 @@ func (c *Collector) Close() error { func (c *Collector) Build(_ *slog.Logger, _ *mi.Session) error { var err error - c.perfDataCollector, err = perfdata.NewCollector("AD FS", perfdata.InstanceAll, []string{ + c.perfDataCollector, err = perfdata.NewCollector("AD FS", nil, []string{ adLoginConnectionFailures, certificateAuthentications, deviceAuthentications, diff --git a/internal/collector/adfs/const.go b/internal/collector/adfs/const.go index dae8f07c..3d7ddf97 100644 --- a/internal/collector/adfs/const.go +++ b/internal/collector/adfs/const.go @@ -19,7 +19,7 @@ const ( oAuthClientAuthenticationFailures = "OAuth Client Authentications Failures" oAuthClientAuthentications = "OAuth Client Authentications" oAuthClientBasicAuthenticationFailures = "OAuth Client Secret Basic Authentication Failures" - oAuthClientBasicAuthentications = "OAuth Client Secret Basic Authentication Requests" + oAuthClientBasicAuthentications = "OAuth Client Secret Basic Authentications" oAuthClientCredentialRequestFailures = "OAuth Client Credentials Request Failures" oAuthClientCredentialRequests = "OAuth Client Credentials Requests" oAuthClientPrivateKeyJWTAuthenticationFailures = "OAuth Client Private Key Jwt Authentication Failures" diff --git a/internal/collector/dhcp/dhcp.go b/internal/collector/dhcp/dhcp.go index b111dfdf..de4b1611 100644 --- a/internal/collector/dhcp/dhcp.go +++ b/internal/collector/dhcp/dhcp.go @@ -82,7 +82,7 @@ func (c *Collector) Close() error { func (c *Collector) Build(_ *slog.Logger, _ *mi.Session) error { var err error - c.perfDataCollector, err = perfdata.NewCollector("DHCP Server", perfdata.InstanceAll, []string{ + c.perfDataCollector, err = perfdata.NewCollector("DHCP Server", nil, []string{ acksTotal, activeQueueLength, conflictCheckQueueLength,