graphite-dev team mailing list archive
-
graphite-dev team
-
Mailing list archive
-
Message #05925
[Question #280616]: graphite plain text output from sensu
New question #280616 on Graphite:
https://answers.launchpad.net/graphite/+question/280616
Hi ,
I need to send plain-text to graphite from sensu.
I have sensu-plugin for cpu check(https://github.com/sensu-plugins/sensu-plugins-cpu-checks/blob/master/bin/check-cpu.rb) and the output is plaintext as below
"CheckCPU TOTAL OK: total=0.0 user=0.0 nice=0.0 system=0.0 idle=100.0 iowait=0.0 irq=0.0 softirq=0.0 steal=0.0 guest=0.0" which can be seen in Uchiwa.
Now I need to push above output to graphite in plain text format,so it can be viewed in graph .Created json file as below in sensu server:
{
"checks": {
"CpuPlain": {
"command": " /usr/bin/env /etc/sensu/plugins/check-cpu.rb",
"handlers": ["graphite"],
"output_format": "graphite_plaintext",
"interval": 30,
"subscribers": [
"default"
]
}
}
}
Issue is :
1. how to provide tree structure in graphite with the above json file
2. how to parse the output to graphite in plaintext
Request to help me out.
Thanks in advance
--
You received this question notification because your team graphite-dev
is an answer contact for Graphite.