]> git.openstreetmap.org Git - chef.git/commitdiff
Force axis to start at zero for postgres replication graphs
authorTom Hughes <tom@compton.nu>
Mon, 16 May 2016 11:27:16 +0000 (12:27 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 16 May 2016 11:27:44 +0000 (12:27 +0100)
cookbooks/munin/files/default/plugins/postgres_replication

index 16d6b51be9f1a1f27443123237acd9cafe1b92b3..56ee16371213d0eab28725936513aaefe8bdb2ca 100755 (executable)
@@ -12,7 +12,8 @@ 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 300\ndelay.critical 3600"
+    extraconfig => "delay.warning 300\ndelay.critical 3600",
+    graphmin  => 0
 );
 
 $pg->Process();