Skip to content

Commit

Permalink
Убрал отладочный код
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris committed Feb 26, 2024
1 parent cfc02b8 commit d8a5409
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions collector/cluster-settings.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package collector

import (
"fmt"

"github.com/prometheus/client_golang/prometheus"
"github.com/sirupsen/logrus"
)
Expand Down Expand Up @@ -37,8 +35,6 @@ func (c *ClusterSettingsCollector) Collect(ch chan<- prometheus.Metric) {
c.logger.Fatalf("error getting indices settings: %v", err)
}

fmt.Printf("%v\n", settings["persistent"])

if len(settings) == 0 {
ch <- prometheus.MustNewConstMetric(c.excludeExists, prometheus.CounterValue, 0, "persistent")
ch <- prometheus.MustNewConstMetric(c.excludeExists, prometheus.CounterValue, 0, "transient")
Expand All @@ -53,9 +49,5 @@ func (c *ClusterSettingsCollector) Collect(ch chan<- prometheus.Metric) {
} else {
ch <- prometheus.MustNewConstMetric(c.excludeExists, prometheus.CounterValue, 1, "transient")
}
/* for k := range settings {
ch <- prometheus.MustNewConstMetric(c.excludeExists, prometheus.CounterValue, 1, k)
}
*/
}
}

0 comments on commit d8a5409

Please sign in to comment.