Skip to content

Instantly share code, notes, and snippets.

@anveo
Created August 29, 2012 17:53
Show Gist options
  • Save anveo/3516222 to your computer and use it in GitHub Desktop.
Save anveo/3516222 to your computer and use it in GitHub Desktop.
{
"checks": {
"mongodb_metrics": {
"type": "metric",
"handlers": ["graphite"],
"command": "/etc/sensu/plugins/mongodb-metrics.rb --scheme stats.:::name:::",
"interval": 10,
"subscribers": [ "base" ]
}
}
}
→ /usr/local/bin/sensu-client --verbose -p /var/run/sensu/sensu-client.pid
config file applied changes {"file":"sensu/settings.rb","method":"load_file","changes":{"checks":{"mongodb_metrics":[null,{"type":"metric","subscribers":["base"],"interval":10,"command":"/etc/sensu/plugins/mongodb-metrics.rb --scheme stats.:::name:::","handlers":["graphite"]}]}},"level":"warn","config_file":"/etc/sensu/conf.d/check_mongodb.json","line":"61"}
...
config file applied changes {"file":"sensu/settings.rb","method":"load_file","changes":{"handlers":{"graphite":[null,{"type":"amqp","exchange":{"type":"topic","passive":"true","name":"metrics"},"send_only_check_output":true}]}},"level":"warn","config_file":"/etc/sensu/conf.d/handler.graphite.json","line":"61"}
...
{
"handlers": {
"graphite": {
"type": "amqp",
"exchange": {
"type": "topic",
"name": "metrics",
"passive": "true"
},
"send_only_check_output": true
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment