Skip to content

Commit 4ed9897

Browse files
committed
fix: deleted pid from Walreceiver Lag metrica
1 parent 70230f5 commit 4ed9897

File tree

1 file changed

+2
-2
lines changed
  • mamonsu/plugins/pgsql/driver

1 file changed

+2
-2
lines changed

mamonsu/plugins/pgsql/driver/pool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Pool(object):
3737
'select size, twice_used, dirty from mamonsu.buffer_cache()'
3838
),
3939
'wal_lag_lsn': (
40-
"SELECT CONCAT(application_name, ' ', pid) as application_name, " \
40+
"SELECT application_name, " \
4141
" flush_lag, replay_lag, write_lag, " \
4242
" pg_wal_lsn_diff(pg_current_wal_lsn(), replay_lsn) AS total_lag " \
4343
" FROM pg_stat_replication;",
@@ -46,7 +46,7 @@ class Pool(object):
4646
" FROM mamonsu.count_wal_lag_lsn()"
4747
),
4848
'xlog_lag_lsn': (
49-
"SELECT CONCAT(application_name, ' ', pid) as application_name, " \
49+
"SELECT application_name, " \
5050
"pg_xlog_location_diff(pg_current_xlog_location(), replay_location) AS total_lag " \
5151
"FROM pg_stat_replication;",
5252
"SELECT application_name, total_lag "\

0 commit comments

Comments
 (0)