Avoid spikes in munin graph when api counters reset
authorTom Hughes <tom@compton.nu>
Wed, 8 Apr 2015 19:02:18 +0000 (20:02 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 8 Apr 2015 19:02:18 +0000 (20:02 +0100)
cookbooks/munin/files/default/plugins/api_calls_num
cookbooks/munin/files/default/plugins/api_calls_status

index 7c8ccab..443af2c 100755 (executable)
@@ -22,6 +22,7 @@ if ARGV[0] == "config"
   CALL_TYPES.each do |type, label|
     puts "#{type}.label #{label}"
     puts "#{type}.type DERIVE"
+    puts "#{type}.min 0"
   end
 else
   statistics = JSON.parse(File.read("/srv/www.openstreetmap.org/rails/tmp/statistics.json"))
index 8167f21..6d0e619 100755 (executable)
@@ -34,6 +34,7 @@ if ARGV[0] == "config"
   HTTP_STATUSES.each do |code, label|
     puts "http#{code}.label #{code} #{label}"
     puts "http#{code}.type DERIVE"
+    puts "http#{code}.min 0"
   end
 else
   statistics = JSON.parse(File.read("/srv/www.openstreetmap.org/rails/tmp/statistics.json"))