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,