doublemarket / grafana-rrd-server

A HTTP server that helps Grafana read RRD files via Grafana Simple JSON Datasource plugin
MIT License
153 stars 38 forks source link

Graph aggregation / item renaming #32

Closed Anon1234 closed 7 years ago

Anon1234 commented 7 years ago

Hello,

I'm not sure if my question related more to your project or simple json datasource, but here it is: is there a way to get a agregated graph from two values, let say, uplink A usage and uplink B usage -> Total Uplink usage graph?

As far as I see, there is no way to do so, or even simply to rename item: screenshot from 2017-10-01 23-05-52

Thank you in advance for the answer.

doublemarket commented 7 years ago

Hello @Anon1234 👋

I think what you want is the sumSeries function in Graphite which adds up metrics and returns the sum. This should be done not on the simple json plugin but on grafana-rrd-server. There's no concrete plan to implement functions into it but thanks for requesting!

Anon1234 commented 7 years ago

Thank for your answer.

sam5558 commented 6 years ago

Sorry to reopen this issue, but i'm interested to know if there has been any update on aggregating metrics from grafana-rrd-server datasource ?

Actually i wanted to be able to aggregate two metrics or any arithmetic operation between metrics using grafana-rrd-server, like what you said @Anon1234.

sumSeries is unfortunately only usable with graphite datasource.

Also, is it possible to store the output metric in a variable that i can call somewhere else ; count = metric1. then call count & fetch current values?