Вопрос

I'm trying to tweak a perf-data+value-check plugin (I mean, one that checks some warning-critical values AND collects perf-data) to send this perf-data to Graphite via amqp. This was done in metrics plugin (metric_vmstat.rb) but I still cannot see an easy example of lines to add to any plugin to make it suitable. Can you recommend some? Thanks!!

Это было полезно?

Решение

The metrics_vmstat.rb plugin inherits a lot of its functionality from Sensu::Plugin::Metric::CLI::Graphite. You might try having your plugin inherit from the same class.

Alternatively, since Sensu and Graphite both use amqp, you can configure sensu-server to route the metrics for you. Check out method 2 in Joe Miller's blog post (http://joemiller.me/2012/02/02/sensu-and-graphite/), that should help get you started.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top