Skip to content

Instantly share code, notes, and snippets.

@greenmoss
Forked from anonymous/gist:5978753
Last active December 19, 2015 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greenmoss/5978767 to your computer and use it in GitHub Desktop.
Save greenmoss/5978767 to your computer and use it in GitHub Desktop.
{
"system" => %w/
cpu-metrics
cpu-percentage-metrics
disk-capacity-metrics
disk-capacity-metrics
disk-metrics
interface-metrics
iostat-extended-metrics
iostat-metrics
load-metrics
memory-metrics
vmstat-metric
/,
"network" => %w/
metrics-netstat-tcp
/
}.each{ |plugin, plugin_info|
plugin_info.each{ |metric|
node.default["rdc-sensu"]["metrics"][metric]["command"] =
"#{node["rdc-sensu"]["community-plugin-path"]}/plugins/#{plugin}/#{metric}.rb"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment