From 4d44cd7ab6a71b30304c26703b3e4f89738cc345 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 8 Apr 2015 20:02:18 +0100 Subject: [PATCH] Avoid spikes in munin graph when api counters reset --- cookbooks/munin/files/default/plugins/api_calls_num | 1 + cookbooks/munin/files/default/plugins/api_calls_status | 1 + 2 files changed, 2 insertions(+) diff --git a/cookbooks/munin/files/default/plugins/api_calls_num b/cookbooks/munin/files/default/plugins/api_calls_num index 7c8ccabcc..443af2c19 100755 --- a/cookbooks/munin/files/default/plugins/api_calls_num +++ b/cookbooks/munin/files/default/plugins/api_calls_num @@ -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")) diff --git a/cookbooks/munin/files/default/plugins/api_calls_status b/cookbooks/munin/files/default/plugins/api_calls_status index 8167f21d6..6d0e619ed 100755 --- a/cookbooks/munin/files/default/plugins/api_calls_status +++ b/cookbooks/munin/files/default/plugins/api_calls_status @@ -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")) -- 2.43.2