Proper move from influxql to flux

Just to be sure i’m on the same page, could someone show me the equivalent Flux queries for the below influxql ones? I use them to get byte counters from influxdb and draw gigabit per second graphs.

SELECT non_negative_derivative(sum(“dnlnk-bytes”), 5m) *8/300 AS “apn dnlk+uplk” FROM “apnSch1” WHERE $timeFilter GROUP BY time(5m) fill(null)

SELECT non_negative_derivative(max(“rxbytes”), 5m) *8/300 FROM “portSch1” WHERE $timeFilter GROUP BY time(5m) fill(null)

Thank you)

hi @alexserkin

there are some real influx experts in here, so hopefully one of them can help you out. That said, you might get a faster answer to your question in the influxdb forum:

1 Like

Thank you for this note. I’ve probably posted this by mistake. Meant influxdb community but grafana and influxdb forums are quite similar looking)))

1 Like