jondot / graphene

Graphene is a realtime dashboard & graphing toolkit based on D3 and Backbone.
http://jondot.github.com/graphene
2.87k stars 232 forks source link

Graphene <-> Redis Store communication #39

Closed ssuryawa closed 11 years ago

ssuryawa commented 11 years ago

Hi,

I'm new to Graphene & want to fetch data for Graphene from Redis store. Can anyone please help me on any documentation/links/steps on how to achieve this.

Thanks in advance.

Shailendra...

jondot commented 11 years ago

Hi,

Graphene is built to plug with anything that looks like a Graphite data source.

If you want to use Redis, then I'm assuming you have a service that serves the Redis data somewhere. And also, since Redis is not a time-series store naturally, I'm also assuming you took the effort to build a time-series model abstraction over Redis.

If you can shape the time-series data from your service into how Graphite shapes it - you should have no problem at all just placing a link to your data service instead of the Graphite link.

As a quick example, this is how Graphite renders the time-series as JSON:

[{"target": "some.metric", "datapoints": [[3328437.8333333335, 1358255100], [3328653.1666666665, 1358255160], [3328835.0, 1358255220], [3328978.1666666665, 1358255280], [3329080.5, 1358255340], [3329199.6666666665, 1358255400]]}]

Hope this helps.

jondot commented 11 years ago

Hey, @ssuryawa, just following up - did this help eventually?

ssuryawa commented 11 years ago

Hi @jondot, yes, it did help me...I ended up with Statsd -> Graphite -> Graphene...

Thanks...

jondot commented 11 years ago

That's great, happy to hear