diff --git a/integrations/influxunifi/.travis.yml b/integrations/influxunifi/.travis.yml index 3b97cacb..0c6730ec 100644 --- a/integrations/influxunifi/.travis.yml +++ b/integrations/influxunifi/.travis.yml @@ -4,8 +4,6 @@ go: before_install: # download super-linter: golangci-lint - curl -sL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest -install: -- go mod download script: -- golangci-lint run --enable-all -e G402 -D gochecknoinits -D funlen - go test ./... +- golangci-lint run --enable-all -e G402 -D gochecknoinits -D funlen diff --git a/integrations/influxunifi/clients.go b/integrations/influxunifi/clients.go index 4a559b86..e73043be 100644 --- a/integrations/influxunifi/clients.go +++ b/integrations/influxunifi/clients.go @@ -127,15 +127,18 @@ func reportClientDPItotals(r report, appTotal, catTotal totalsDPImap) { val totalsDPImap } + // This produces 7000+ metrics per site. Disabled for now. + if appTotal != nil { + appTotal = nil + } + // This can allow us to aggregate other data types later, like `name` or `mac`, or anything else unifi adds. a := all{ - /* - // This produces 7000+ metrics per site. Disabled for now. - { - kind: "application", - val: appTotal, - }, - */ + // This produces 7000+ metrics per site. Disabled for now. + { + kind: "application", + val: appTotal, + }, { kind: "category", val: catTotal,