Skip to content

Instantly share code, notes, and snippets.

@maplebed
Created October 17, 2012 22:00
Show Gist options
  • Save maplebed/3908571 to your computer and use it in GitHub Desktop.
Save maplebed/3908571 to your computer and use it in GitHub Desktop.
in cookbooks/mongodb/recipes/default.rb:
66 # if the host has ganglia, install the mongo plugin.
67 if node.recipes.include?("ganglia::default")
68 ganglia_python "mongodb" do
69 action :enable
70 end
71 end
---
then, in cookbooks/mongodb/templates/default/ganglia/ I have the .py and .conf files from
https://github.com/ganglia/gmond_python_modules/tree/master/mongodb
@maplebed
Copy link
Author

ganglia_python "mongodb" do
action :enable
path "ganglia/mongodb.py.erb"
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment