6 use Munin::Plugin::Pgsql;
8 my $pg = Munin::Plugin::Pgsql->new(
9 title => 'PostgreSQL replication delay',
10 info => 'Replication delay',
12 basequery => "SELECT (extract(epoch FROM now()) - extract(epoch FROM pg_last_xact_replay_timestamp()))::int AS delay",
15 "VALUES ('delay','Replication delay')"