You've already forked postgres_exporter
mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2025-08-09 15:42:47 +03:00
Merge pull request #724 from roidelapluie/gauge1
Set gauge to 1 when collector is successful
This commit is contained in:
@@ -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{})
|
||||
|
Reference in New Issue
Block a user