You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/postgres_exporter/postgres_exporter.go
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1470,10 +1470,6 @@ func (e *Exporter) checkMapVersions(ch chan<- prometheus.Metric, server *Server)
1470
1470
log.Warnf("PostgreSQL version is lower on %q then our lowest supported version! Got %s minimum supported is %s.", server, semanticVersion, lowestSupportedVersion)
1471
1471
}
1472
1472
1473
-
server.lastMapVersionMtx.RLock()
1474
-
lastMapVersion:=server.lastMapVersion
1475
-
server.lastMapVersionMtx.RUnlock()
1476
-
1477
1473
metricMap:=make(map[string]MetricMapNamespace)
1478
1474
server.metricMapMtx.RLock()
1479
1475
forkey, value:=rangeserver.metricMap {
@@ -1493,7 +1489,9 @@ func (e *Exporter) checkMapVersions(ch chan<- prometheus.Metric, server *Server)
1493
1489
server.labelsMtx.RUnlock()
1494
1490
1495
1491
// Check if semantic version changed and recalculate maps if needed.
0 commit comments