Created
November 24, 2020 14:28
-
-
Save thepacketgeek/24dc4665cc4045d730ca032ed4b8aaa1 to your computer and use it in GitHub Desktop.
Influx Query for showing delta of cumulative iface counts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
non_negative_derivative(mean("ifHCInOctets"), 1s) * 8 AS "Rx", | |
non_negative_derivative(mean("ifHCOutOctets"), 1s) * 8 AS "Tx" | |
FROM "interface" | |
WHERE ("ifAlias" = 'Some if here') | |
AND $timeFilter GROUP BY time($__interval) fill(null) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment