ripienaar / graphite-graph-dsl

A small DSL to describe graphite graphs
http://www.devco.net/
Apache License 2.0
167 stars 43 forks source link

Issue when displaying a mix of Stacked and Line Graph #30

Open manasg opened 11 years ago

manasg commented 11 years ago

Hi, I ran into a couple of issues when plotting the following scenario -

Metrics Server1 - Requests Served Server2 - Requests Served Total (Server1 + Server2) - Requests Served

Desired Plot Server1 and Server2 are stacked. Total is displayed as a line. Legend - CactiStyle for all three metrics

Setting the area: to stacked in the DSL stacks everything and thus giving the impression that the total is really high.

I tried the stacked function in Graphite

Using the graphite composer -> /render? target=stacked(ip-10-245-39-2.requests)&target=stacked(ip-10-244-221-182..requests)&target=sumSeries(ip*..requests)

This works as expected - giving me the desired plot, but I discovered a bug in the CactiStyle Legend - https://github.com/graphite-project/graphite-web/issues/115

I would love to hear any suggestions on the best approach here.