mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-01-19 12:50:47 +00:00
Set gauge to 1 when collector is successful
Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu>
This commit is contained in:
parent
02aff21cf7
commit
5fcceb4105
@ -114,6 +114,7 @@ func handleProbe(logger log.Logger) http.HandlerFunc {
|
||||
|
||||
duration := time.Since(start).Seconds()
|
||||
probeDurationGauge.Set(duration)
|
||||
probeSuccessGauge.Set(1)
|
||||
|
||||
// TODO check success, etc
|
||||
h := promhttp.HandlerFor(registry, promhttp.HandlerOpts{})
|
||||
|
Loading…
Reference in New Issue
Block a user