So i have two queries that are monitoring the traffic , and i would like to add the sum of those two values on the same graph. As you can see, when i do transformation, it can’t sum it up. But, i’ve read and tried to do some other transformations, expressions etc but it didn’t help. Somwhere it said it was because of timestamps that are different. Does anyone know how to solve this? Basicly these are two different routeres and i need the sum of the bandwith. Thank you very much!
before your 1st transformation, can you try adding a convert field type transformation, and make them numbers and see if it will add them correctly then?
SELECT last(“value”) non_negative_derivative(“bytes_received”, 1s) *8 FROM “Cisco-IOS-XR-infra-statsd-oper:infra-statistics/interfaces/interface/latest/generic-counters” WHERE (“source”::tag = ‘DROGON’ AND “interface_name”::tag = ‘HundredGigE0/3/0/1’) AND $timeFilter
It just doesn’t “save” it when i switch to editor mode.
I would try to spend some time debugging the query using the query editor in InfluxDB (not sure which version of InfluxDB you are running, but the latest Cloud product has InfluxQL query editor). I believe the crux of the problem is that you have different timestamps for the two series and I believe that using the last() function will correct this and make it possible to add them in Grafana.