mirror of
https://github.com/prometheus-community/postgres_exporter
synced 2025-04-23 15:35:28 +00:00
Remove more dead code
Signed-off-by: Joe Adams <github@joeadams.io>
This commit is contained in:
parent
8d6ce0558c
commit
55263868e0
@ -85,8 +85,6 @@ func handleProbe(logger log.Logger, excludeDatabases []string) http.HandlerFunc
|
|||||||
// Run the probe
|
// Run the probe
|
||||||
pc, err := collector.NewProbeCollector(tl, excludeDatabases, registry, dsn)
|
pc, err := collector.NewProbeCollector(tl, excludeDatabases, registry, dsn)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// probeSuccessGauge.Set(0)
|
|
||||||
// probeDurationGauge.Set(time.Since(start).Seconds())
|
|
||||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user