I have some network counters in Influx that I graph with Grafana.
I'm trying to combine stats from a couple ethernet interfaces and combine them to show aggregate bandwidth.
These two separate queries work on their own, but I can't figure out how to write it to combine these two.
SELECT 8 * non_negative_derivative(mean("value"), 1s )
FROM "inoctets"
WHERE "host" = 'myhost1' AND $timeFilter
GROUP BY time(1s) fill(null)
SELECT 8 * non_negative_derivative(mean("value"), 1s )
FROM "inoctets"
WHERE "host" = 'myhost4' AND $timeFilter
GROUP BY time(1s) fill(null)
Edit: FWIW I'm running Influx 1.1.1 and Grafana 4.1.1