Add metric to report about sync standby replica status (#2615)

Close #2613

Co-authored-by: Alexander Kukushkin <[email protected]>
This commit is contained in:
T.v.Dein
2023-03-23 09:32:29 +01:00
committed by GitHub
co-authored by Alexander Kukushkin
parent a8b90f0cd6
commit 60723f5fa4
3 changed files with 12 additions and 1 deletions
+3
View File
@@ -139,6 +139,9 @@ Retrieve the Patroni metrics in Prometheus format through the ``GET /metrics`` e
# HELP patroni_replica Value is 1 if this node is a replica, 0 otherwise.
# TYPE patroni_replica gauge
patroni_replica{scope="batman"} 0
# HELP patroni_sync_standby Value is 1 if this node is a sync standby replica, 0 otherwise.
# TYPE patroni_sync_standby gauge
patroni_sync_standby{scope="batman"} 0
# HELP patroni_xlog_received_location Current location of the received Postgres transaction log, 0 if this node is not a replica.
# TYPE patroni_xlog_received_location counter
patroni_xlog_received_location{scope="batman"} 0