vimeo / graph-explorer

A graphite dashboard powered by structured metrics
http://vimeo.github.io/graph-explorer/
Apache License 2.0
1.06k stars 93 forks source link

some targets should be implicitly aggregated together #81

Open Dieterbe opened 10 years ago

Dieterbe commented 10 years ago

when you have multiple metrics that all have tags n1,n2,...n5 (some have n6 and n7, not sure yet if this matters).

say you want to have 1 graph, and all targets on the graph must be about a unique value of n3. irrespective of all other tag values (and whether they have the tags or not), if they have the same value of n3, they should be aggregated together.

"foo bar sum by n1,n2,n4,n5,n6,n7" doesn't just do this. not sure yet why, but it can leave multiple targets with the same value of n3.

adding an arbitrary "avg by" seems to work around the problem.

I need to set up a test case for it, i can reproduce it internally @ vimeo using "n2=fetcher =get sum by n1,n4,n5,n6,n7 from -6hours avg by n2"