apiconsolegraphitewhisper

Is it possible to query data from Whisper (Graphite DB) from console?


I have configured Graphite to monitor my application metrics. And I configured Zabbix to monitor my servers CPU and other metrics. Now I want to pass some critical Graphite metrics to Zabbix to add triggers for them.

So I want to do something like

$ whisper get prefix1.prefix2.metricName
> 155

Is it possible?

P.S. I know about Graphite-API project, I don't want to install extra app.


Solution

  • OK! I found it myself: http://graphite.readthedocs.io/en/latest/render_api.html?highlight=rawJson (I can use curl and return csv or json).

    Answer was found here custom querying in graphite

    Also see: https://github.com/graphite-project/graphite-web/blob/master/docs/render_api.rst