项目作者: Kidinicol

项目描述 :
Using this mutator you can filter the check output metrics you want
高级语言: Ruby
项目地址: git://github.com/Kidinicol/sensu-mutator-graphite.git
创建时间: 2017-02-11T11:32:53Z
项目社区:https://github.com/Kidinicol/sensu-mutator-graphite

开源协议:MIT License

下载


sensu-mutator-graphite

Build Status

Using this mutator you can filter the check output metrics you want

Use handler with filter mutator

  1. {
  2. "handlers": {
  3. "graphite": {
  4. "type": "tcp",
  5. "mutator": "filter-mutator",
  6. "socket": {
  7. "host": "graphite.example.com",
  8. "port": 2003
  9. }
  10. }
  11. }
  12. }

Add a json file with the filter-mutator

  1. {
  2. "mutators": {
  3. "filter-mutator": {
  4. "command": "/opt/sensu/embedded/bin/ruby /etc/sensu/mutators/filter-mutator.rb --listtoinclude /etc/sensu/mutators/metricstoinclude.json"
  5. }
  6. }
  7. }