jondot/graphene

Two or more values on one graph?

avifreedman opened this issue · 3 comments

Awesome stuff...

We're looking at using this instead of Highstock for showing netflow in real time on router interfaces, so it'd be interesting to be able to combine multiple values on one TimeSeries.

Is it possible to retrieve more than one series from Graphite and show on one graph, like is done with the num_series in the DemoTimeSeries function?

Thanks,

Avi

Hey Avi,
Happy you find it useful!

The short answer - yes. If your Graphite query returns more than one graph - it will be shown.

The long answer, if you want to combine and / and match graphs, you can do all of that via
Graphite and Graphene will happily display those. Here is an example:

2 unrelated metrics:

http://graphite-server.example.com/render?width=300&from=-4hours&until=-&height=230&target=METRIC1&target=METRIC2&format=json

A number of related metrics, aggregated with a wildcard:

http://graphite-server.example.com/render?width=300&from=-4hours&until=-&height=230&target=stats.gauges.dev.downloads.*&format=json

If you use this kind of source urls, Graphene will render all resulting graphs.

A quick tip is to "Open image link" on any graph you already have or that you just made in the Graphite Composer, and add &json to the image url. This will get you the Graphite data in a json format which Graphene knows.

Feel free to let me know if you need anything :)

Thanks, works perfectly. It only shows three lines of legend but I will take a look at that to see if that's due to page layout or if there is some way of setting that in Graphene.

Found it... num_labels