From a9e925d759a39af43a86d897a94bf8931f42b3e4 Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Sun, 21 Mar 2021 21:37:10 -0700 Subject: [PATCH] only saving recent --- integrations/promunifi/uap.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/integrations/promunifi/uap.go b/integrations/promunifi/uap.go index dcbfdb40..cc2b8843 100644 --- a/integrations/promunifi/uap.go +++ b/integrations/promunifi/uap.go @@ -191,6 +191,10 @@ func descUAP(ns string) *uap { // nolint: funlen } func (u *promUnifi) exportRogueAP(r report, d *unifi.RogueAP) { + if d.Age.Val == 0 { + return // only keep things that are recent. + } + labels := []string{d.Security, d.Oui, d.Band, d.ApMac, d.SiteName, d.Essid, d.SourceName} r.send([]*metric{