Skip to content

Instantly share code, notes, and snippets.

@kylebrandt
Created May 30, 2018 16:37
Show Gist options
  • Save kylebrandt/fc255a999423ed861e3379b928b37a86 to your computer and use it in GitHub Desktop.
Save kylebrandt/fc255a999423ed861e3379b928b37a86 to your computer and use it in GitHub Desktop.
Bosun Expr: linelr based on forecastlr
# Only works for single result in series due to ungroup()
$q = q("sum:hbase.region.percentFilesLocal{host=literal_or(co-tsdb05)}", "20m", "")
$to100 = tod(ungroup(forecastlr($q, 100)))
$line = linelr($q, $to100)
merge($q, $line)
@kylebrandt
Copy link
Author

selection_117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment