cassabon icon indicating copy to clipboard operation
cassabon copied to clipboard

Handle grafana queries directly

Open jeffpierce opened this issue 9 years ago • 5 comments

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.

jeffpierce avatar Oct 23 '15 17:10 jeffpierce

What is the transform that Graphite does to requests, incoming and returning? Is the data very similar?

mredivo avatar Oct 23 '15 18:10 mredivo

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

jeffpierce avatar Oct 23 '15 21:10 jeffpierce

Hm, that is indeed a lot. Maybe the Unix philosophy of "do one thing well, and connect with pipes" applies here.

mredivo avatar Oct 23 '15 21:10 mredivo

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.

jeffpierce avatar Oct 23 '15 21:10 jeffpierce

Some work is done in this repo - https://github.com/graphite-ng/graphite-api-experiment

utkarshcmu avatar Mar 07 '16 10:03 utkarshcmu