Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions queries-hr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ pg_custom_stat_activity_walsender:

pg_custom_stat_subscription:
master: true
query: "SELECT subid, subname, pid, received_lsn, last_msg_send_time, last_msg_receipt_time FROM pg_stat_subscription;"
query: "SELECT subid, subname, pid, received_lsn::pg_lsn - '0/0'::pg_lsn, last_msg_send_time, last_msg_receipt_time FROM pg_stat_subscription;"
metrics:
- subid:
usage: "LABEL"
Expand All @@ -188,7 +188,7 @@ pg_custom_stat_subscription:
description: "Process ID of subscription worker"
- received_lsn:
usage: "GAUGE"
description: "Last received LSN"
description: "Last received LSN in bytes"
- last_msg_send_time:
usage: "GAUGE"
description: "Last message sent time"
Expand Down
Loading