Created
May 3, 2016 16:18
-
-
Save kylebrandt/a63fbf1d36f6d4f6cc100383cf140906 to your computer and use it in GitHub Desktop.
mtod example (not merged)
This file contains hidden or 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
$metric = "sum:5m-avg:rate{counter,,1}:__ny-nexus02.os.net.bytes{host=ny-nexus02,iname=Ethernet3/1}" | |
$monthToDate = mtod(-4) | |
$commit = 150 | |
$mtdAgo = epoch()-$monthToDate | |
$q = q($metric, tod($mtdAgo), "") * 8 | |
$mtdAgo > d("1d") && percentile($q, .95) / 1e6 > $commit*.70 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment