"502" => "Bad Gateway",
"503" => "Service Unavailable",
"509" => "Bandwidth Limit Exceeded"
-}
+}.freeze
if ARGV[0] == "config"
puts "graph_title HTTP response codes"
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"))