cassabon
cassabon copied to clipboard
Handle grafana queries directly
It'd be nice to simply handle queries from Grafana directly rather than needing graphite or graphite-API as a middleman.
Let's look at how feasible this might be.
What is the transform that Graphite does to requests, incoming and returning? Is the data very similar?
It does a lot, based on the functions asked for. We'd have to implement the functions listed here, at minimum:
http://graphite.readthedocs.org/en/latest/functions.html
Hm, that is indeed a lot. Maybe the Unix philosophy of "do one thing well, and connect with pipes" applies here.
Yep. That's more of a pipe dream on my end of things, given that graphite-api is now the slowest part of the grafana -> graphite-api -> cassabon chain.
Some work is done in this repo - https://github.com/graphite-ng/graphite-api-experiment