]> git.openstreetmap.org Git - chef.git/commitdiff
Increase postgres replication delay warning times
authorTom Hughes <tom@compton.nu>
Tue, 29 Oct 2013 02:41:18 +0000 (02:41 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 29 Oct 2013 02:41:18 +0000 (02:41 +0000)
cookbooks/munin/files/default/plugins/postgres_replication

index a0dd61d191d7ec89cbacad694efbadbf8207469b..16d6b51be9f1a1f27443123237acd9cafe1b92b3 100755 (executable)
@@ -12,7 +12,7 @@ my $pg = Munin::Plugin::Pgsql->new(
     basequery => "SELECT (extract(epoch FROM now()) - extract(epoch FROM pg_last_xact_replay_timestamp()))::int AS delay",
     pivotquery => 1,
     configquery => "VALUES ('delay','Replication delay')",
-    extraconfig => "delay.warning 60\ndelay.critical 300"
+    extraconfig => "delay.warning 300\ndelay.critical 3600"
 );
 
 $pg->Process();