Skip to content

Commit bfd0707

Browse files
Fixed "Scrape Duration" if psql down (prometheus-community#426)
Co-authored-by: Will Rouesnel <[email protected]>
1 parent 8c27e97 commit bfd0707

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/postgres_exporter/postgres_exporter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ func (s *Servers) GetServer(dsn string) (*Server, error) {
10461046
var err error
10471047
var ok bool
10481048
errCount := 0 // start at zero because we increment before doing work
1049-
retries := 3
1049+
retries := 1
10501050
var server *Server
10511051
for {
10521052
if errCount++; errCount > retries {

0 commit comments

Comments
 (0)