Merge branch 'prometheus-community:master' into feature/collector/exchange

This commit is contained in:
Andrey Burtasov
2023-11-16 13:35:35 +03:00
committed by GitHub
11 changed files with 41 additions and 25 deletions

View File

@@ -13,6 +13,7 @@ import (
"github.com/go-kit/log/level"
"github.com/prometheus-community/windows_exporter/pkg/perflib"
"github.com/prometheus-community/windows_exporter/pkg/types"
"github.com/prometheus-community/windows_exporter/pkg/utils"
"github.com/prometheus/client_golang/prometheus"
)
@@ -216,7 +217,7 @@ func (c *collector) Build() error {
os.Exit(0)
}
if *c.exchangeCollectorsEnabled == "" {
if utils.IsEmpty(c.exchangeCollectorsEnabled) {
for _, collectorName := range exchangeAllCollectorNames {
c.enabledCollectors = append(c.enabledCollectors, collectorName)
}