X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/1da44136718f65e2fb02ef2249c98395b69cf9da..e228a690bd4e3cc25e354235294e065fd59a8e02:/cookbooks/munin/files/default/plugins/postgres_replication?ds=sidebyside diff --git a/cookbooks/munin/files/default/plugins/postgres_replication b/cookbooks/munin/files/default/plugins/postgres_replication index 4a04d0b0e..56ee16371 100755 --- a/cookbooks/munin/files/default/plugins/postgres_replication +++ b/cookbooks/munin/files/default/plugins/postgres_replication @@ -11,8 +11,9 @@ 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 300\ndelay.critical 3600", + graphmin => 0 ); $pg->Process();