jondot / graphene

Graphene is a realtime dashboard & graphing toolkit based on D3 and Backbone.
http://jondot.github.com/graphene
2.87k stars 232 forks source link

Gauge type: sum #56

Closed FredLliao closed 11 years ago

FredLliao commented 11 years ago

Is there a way to display the total data point on a gauge label or gadget? Something like:

var description = { " The Sum": { source: "http://localhost:4567/", GaugeLabel: { parent: "#hero-one", title: "The Sum is", type: "sum" } } }

jondot commented 11 years ago

Hi, Such computation over time-series is best left to Graphite itself. You can do this very simply if on Graphite you do sum(your-time-series) and then take a GaugeLabel with type max. This is what I've done many times as well.

Feel free to let me know how it goes

jondot commented 11 years ago

Closing this one, feel free to open if you still have problems :)