From 4ec3cd318e1c31304260c8833b77178702bf1f98 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 13 Aug 2013 11:44:12 +0100 Subject: [PATCH] Add warning thresholds for postgres replication delay --- cookbooks/munin/files/default/plugins/postgres_replication | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/munin/files/default/plugins/postgres_replication b/cookbooks/munin/files/default/plugins/postgres_replication index 4a04d0b0e..a0dd61d19 100755 --- a/cookbooks/munin/files/default/plugins/postgres_replication +++ b/cookbooks/munin/files/default/plugins/postgres_replication @@ -11,8 +11,8 @@ my $pg = Munin::Plugin::Pgsql->new( vlabel => 'Seconds', basequery => "SELECT (extract(epoch FROM now()) - extract(epoch FROM pg_last_xact_replay_timestamp()))::int AS delay", pivotquery => 1, - configquery => - "VALUES ('delay','Replication delay')" + configquery => "VALUES ('delay','Replication delay')", + extraconfig => "delay.warning 60\ndelay.critical 300" ); $pg->Process(); -- 2.43.2