@@ -61,29 +61,17 @@ func handleProbe(logger log.Logger, excludeDatabases []string) http.HandlerFunc
61
61
62
62
// TODO(@sysadmind): Timeout
63
63
64
- // probeSuccessGauge := prometheus.NewGauge(prometheus.GaugeOpts{
65
- // Name: "probe_success",
66
- // Help: "Displays whether or not the probe was a success",
67
- // })
68
- // probeDurationGauge := prometheus.NewGauge(prometheus.GaugeOpts{
69
- // Name: "probe_duration_seconds",
70
- // Help: "Returns how long the probe took to complete in seconds",
71
- // })
72
-
73
64
tl := log .With (logger , "target" , target )
74
65
75
- // start := time.Now()
76
66
registry := prometheus .NewRegistry ()
77
- // registry.MustRegister(probeSuccessGauge)
78
- // registry.MustRegister(probeDurationGauge)
79
67
80
68
opts := []ExporterOpt {
81
69
DisableDefaultMetrics (* disableDefaultMetrics ),
82
70
DisableSettingsMetrics (* disableSettingsMetrics ),
83
71
AutoDiscoverDatabases (* autoDiscoverDatabases ),
84
72
WithUserQueriesPath (* queriesPath ),
85
73
WithConstantLabels (* constantLabelsList ),
86
- ExcludeDatabases (* excludeDatabases ),
74
+ ExcludeDatabases (excludeDatabases ),
87
75
IncludeDatabases (* includeDatabases ),
88
76
}
89
77
0 commit comments