From 49b78d12ce3c7d489842a4fc55358c447411a45e Mon Sep 17 00:00:00 2001 From: davidnewhall2 Date: Sat, 1 Feb 2020 19:09:04 -0800 Subject: [PATCH] fixes --- integrations/influxunifi/.travis.yml | 4 +--- integrations/influxunifi/clients.go | 17 ++++++++++------- 2 files changed, 11 insertions(+), 10 deletions(-) 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,