From 3dbe7eb650cfff8ea0a830ea2110bd937673ab34 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 1 Apr 2015 00:23:54 +0100 Subject: [PATCH] Enable API munin plugins on backends as well as frontends --- cookbooks/web/recipes/frontend.rb | 10 ---------- cookbooks/web/recipes/rails.rb | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/cookbooks/web/recipes/frontend.rb b/cookbooks/web/recipes/frontend.rb index 0a1a73284..6f62f3186 100644 --- a/cookbooks/web/recipes/frontend.rb +++ b/cookbooks/web/recipes/frontend.rb @@ -47,13 +47,3 @@ template "/etc/logrotate.d/apache2" do group "root" mode 0644 end - -munin_plugin "api_calls_num" - -munin_plugin "api_calls_#{node[:hostname]}" do - target "api_calls_" -end - -munin_plugin "api_waits_#{node[:hostname]}" do - target "api_waits_" -end diff --git a/cookbooks/web/recipes/rails.rb b/cookbooks/web/recipes/rails.rb index 52a49aee8..bb7eeef2c 100644 --- a/cookbooks/web/recipes/rails.rb +++ b/cookbooks/web/recipes/rails.rb @@ -90,3 +90,13 @@ service "api-statistics" do subscribes :restart, "template[/usr/local/bin/api-statistics]" subscribes :restart, "template[/etc/init.d/api-statistics]" end + +munin_plugin "api_calls_num" + +munin_plugin "api_calls_#{node[:hostname]}" do + target "api_calls_" +end + +munin_plugin "api_waits_#{node[:hostname]}" do + target "api_waits_" +end -- 2.43.2