Skip to content

Instantly share code, notes, and snippets.

@lclarkmichalek
Created April 4, 2017 17:09
Show Gist options
  • Save lclarkmichalek/c85a809c61daed8bdef252da61553b5b to your computer and use it in GitHub Desktop.
Save lclarkmichalek/c85a809c61daed8bdef252da61553b5b to your computer and use it in GitHub Desktop.
job:stashdef_lag:seconds =
(time() - max(stashdef_last_received_timestamp_seconds)) + max(stashdef_lag_seconds)
ALERT StashDeferredLagHigh
IF job:stashdef_lag:seconds > 5 * 60
FOR 2m
LABELS {
slack_channel="stash-deferred"
}
ANNOTATIONS {
description="Stash deferred messages are arriving {{ $value }} seconds after they were scheduled (threshold 5m)"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment