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",
14 configquery => "VALUES ('delay','Replication delay')",
15 extraconfig => "delay.warning 60\ndelay.critical 300"