collector: fix wrong perfdata instances (#1763)

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2024-11-24 01:52:25 +01:00
committed by GitHub
parent 26d6dddf25
commit 4c0574536f
6 changed files with 11 additions and 11 deletions

View File

@@ -147,7 +147,7 @@ func (c *Collector) Build(_ *slog.Logger, _ *mi.Session) error {
avgConfigDBQueryTime,
federationMetadataRequests,
})
if err != nil {
if err != nil && !errors.Is(err, perfdata.ErrNoData) {
return fmt.Errorf("failed to create AD FS collector: %w", err)
}