projects
/
chef.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid spikes in munin graph when api counters reset
[chef.git]
/
cookbooks
/
munin
/
files
/
default
/
plugins
/
api_calls_num
diff --git
a/cookbooks/munin/files/default/plugins/api_calls_num
b/cookbooks/munin/files/default/plugins/api_calls_num
index 7c8ccabccb10cb4bb0876ed0fe3e81cfc29337ef..443af2c193565025e9a303323807dd8b00975265 100755
(executable)
--- 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"
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"))
end
else
statistics = JSON.parse(File.read("/srv/www.openstreetmap.org/rails/tmp/statistics.json"))