Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two or more values on one graph? #61

Open
avifreedman opened this issue Apr 18, 2013 · 3 comments
Open

Two or more values on one graph? #61

avifreedman opened this issue Apr 18, 2013 · 3 comments

Comments

@avifreedman
Copy link

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

@jondot
Copy link
Owner

jondot commented Apr 18, 2013

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 :)

@avifreedman
Copy link
Author

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.

@avifreedman
Copy link
Author

Found it... num_labels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants