$ curl http://localhost:8008/metrics
# HELP patroni_version Patroni semver without periods. \# TYPE patroni_version gaugepatroni_version{scope="batman",name="patroni1"}040000# HELP patroni_postgres_running Value is 1 if Postgres is running, 0 otherwise.# TYPE patroni_postgres_running gaugepatroni_postgres_running{scope="batman",name="patroni1"}1# HELP patroni_postmaster_start_time Epoch seconds since Postgres started.# TYPE patroni_postmaster_start_time gaugepatroni_postmaster_start_time{scope="batman",name="patroni1"} 1724873966.352526
# HELP patroni_primary Value is 1 if this node is the leader, 0 otherwise.# TYPE patroni_primary gaugepatroni_primary{scope="batman",name="patroni1"}1# HELP patroni_xlog_location Current location of the Postgres transaction log, 0 if this node is not the leader.# TYPE patroni_xlog_location counterpatroni_xlog_location{scope="batman",name="patroni1"}22320573386952# HELP patroni_standby_leader Value is 1 if this node is the standby_leader, 0 otherwise.# TYPE patroni_standby_leader gaugepatroni_standby_leader{scope="batman",name="patroni1"}0# HELP patroni_replica Value is 1 if this node is a replica, 0 otherwise.# TYPE patroni_replica gaugepatroni_replica{scope="batman",name="patroni1"}0# HELP patroni_sync_standby Value is 1 if this node is a sync standby replica, 0 otherwise.# TYPE patroni_sync_standby gaugepatroni_sync_standby{scope="batman",name="patroni1"}0# HELP patroni_quorum_standby Value is 1 if this node is a quorum standby replica, 0 otherwise.# TYPE patroni_quorum_standby gaugepatroni_quorum_standby{scope="batman",name="patroni1"}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 counterpatroni_xlog_received_location{scope="batman",name="patroni1"}0# HELP patroni_xlog_replayed_location Current location of the replayed Postgres transaction log, 0 if this node is not a replica.# TYPE patroni_xlog_replayed_location counterpatroni_xlog_replayed_location{scope="batman",name="patroni1"}0# HELP patroni_xlog_replayed_timestamp Current timestamp of the replayed Postgres transaction log, 0 if null.# TYPE patroni_xlog_replayed_timestamp gaugepatroni_xlog_replayed_timestamp{scope="batman",name="patroni1"}0# HELP patroni_xlog_paused Value is 1 if the Postgres xlog is paused, 0 otherwise.# TYPE patroni_xlog_paused gaugepatroni_xlog_paused{scope="batman",name="patroni1"}0# HELP patroni_postgres_streaming Value is 1 if Postgres is streaming, 0 otherwise.# TYPE patroni_postgres_streaming gaugepatroni_postgres_streaming{scope="batman",name="patroni1"}1# HELP patroni_postgres_in_archive_recovery Value is 1 if Postgres is replicating from archive, 0 otherwise.# TYPE patroni_postgres_in_archive_recovery gaugepatroni_postgres_in_archive_recovery{scope="batman",name="patroni1"}0# HELP patroni_postgres_server_version Version of Postgres (if running), 0 otherwise.# TYPE patroni_postgres_server_version gaugepatroni_postgres_server_version{scope="batman",name="patroni1"}160004# HELP patroni_cluster_unlocked Value is 1 if the cluster is unlocked, 0 if locked.# TYPE patroni_cluster_unlocked gaugepatroni_cluster_unlocked{scope="batman",name="patroni1"}0# HELP patroni_postgres_timeline Postgres timeline of this node (if running), 0 otherwise.# TYPE patroni_postgres_timeline counterpatroni_failsafe_mode_is_active{scope="batman",name="patroni1"}0# HELP patroni_postgres_timeline Postgres timeline of this node (if running), 0 otherwise.# TYPE patroni_postgres_timeline counterpatroni_postgres_timeline{scope="batman",name="patroni1"}24# HELP patroni_dcs_last_seen Epoch timestamp when DCS was last contacted successfully by Patroni.# TYPE patroni_dcs_last_seen gaugepatroni_dcs_last_seen{scope="batman",name="patroni1"}1724874235# HELP patroni_pending_restart Value is 1 if the node needs a restart, 0 otherwise.# TYPE patroni_pending_restart gaugepatroni_pending_restart{scope="batman",name="patroni1"}1# HELP patroni_is_paused Value is 1 if auto failover is disabled, 0 otherwise.# TYPE patroni_is_paused gaugepatroni_is_paused{scope="batman",name="patroni1"}1# HELP patroni_postgres_state Numeric representation of Postgres state.# Values: 0=initdb, 1=initdb_failed, 2=custom_bootstrap, 3=custom_bootstrap_failed, 4=creating_replica, 5=running, 6=starting, 7=bootstrap_starting, 8=start_failed, 9=restarting, 10=restart_failed, 11=stopping, 12=stopped, 13=stop_failed, 14=crashed# TYPE patroni_postgres_state gaugepatroni_postgres_state{scope="batman",name="patroni1"}5