dashboard params and multi tagets

Asked by Kevin on 2011-04-27

Hello,
  First thank you for the great work, graphite is a awesome (from Boston) way to trend and visualize. My questions are around the new dashboard feature. I would like to be able to choose multiple targets (ie. apache.east.*.rps jboss.west.cali.*.rps) on the same dashboard graph. I would also like to pass in params like width & hight, from=-2hours, for a specific graph.

Looks like I can not override params which are defined on a dashboard graph? otherwise I could pass in these values into the Ajax UI in the Params: target=apache.east.*.rps option. Is there a way to do this?

Thanks
Kevin

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Kevin
Solved:
2011-05-11
Last query:
2011-05-11
Last reply:
2011-05-11
chrismd (chrismd) said : #1

If you left click on a graph a box will popup that lets you edit the target expression and params for the graph. This can be used to customize them one by one, also in the Graphs menu click 'Default Graph Params' and there you can set defaults that will apply to all graphs. You cannot override time or size params this way though, those have to be changed through the time buttons & Graph Size function.

Kevin (kevmcs11) said : #2

Thanks for your response, but when I click on the 'Graphs menu', I only see "resize" "remove all". I am running 0.9.8 graphite web.

I ended up changing 'webapp/content/js/dashboard.js'

var NOT_EDITABLE = ['from', 'until', 'width', 'height', 'uniq'];
// var NOT_EDITABLE = ['from', 'until', 'width', 'height', 'target', 'uniq'];

which now allows me to choose any target per graph. This would be a great feature to have in the trunk.

Thanks,
Kevin

Dave Rawks (drawks) said : #3

You can already choose any target per graph by using the "group" function to specify multiple metric series. I.E. target=group(host.metric.a,host.metric.b)

Kevin (kevmcs11) said : #4

great, this is helpful. Can we add this to documentation some where?

I was using:
http://graphite.wikidot.com/url-api-reference

I assume it will live:
http://graphite.readthedocs.org/en/latest/url-api.html

chrismd (chrismd) said : #5

FYI, in the latest trunk you can drag-hover-drop to merge graphs, essentially just combining the targets. Plus various other cool features.