diff --git a/internal/circonus/metric_filters.go b/internal/circonus/metric_filters.go index fc6e473c..af75c1c0 100644 --- a/internal/circonus/metric_filters.go +++ b/internal/circonus/metric_filters.go @@ -140,19 +140,15 @@ func (c *Check) defaultFilters() [][]string { var defaultMetricFiltersData []byte - currversion, err := version.NewVersion(c.clusterVers) + v120, err := version.NewVersion(v120str) if err != nil { - c.log.Warn().Err(err).Msg("parsing api version") - currversion, _ = version.NewVersion(v120str) + c.log.Warn().Err(err).Msg("parsing " + v120str) } - v120, err := version.NewVersion(v120str) + currversion, err := version.NewVersion(c.clusterVers) if err != nil { - c.log.Warn().Err(err).Msg("parsing" + v120str) - return [][]string{ - {"deny", "^$", "empty"}, - {"allow", "^.+$", "all"}, - } + c.log.Warn().Err(err).Msg("parsing api version") + currversion = v120 } if currversion.LessThan(v120) {