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
| ALERT EventLevelUnexecpted | |
| IF abs(job:events:normalised_offset_rate1h) > 3 | |
| FOR 1h | |
| LABELS { severity = “medium” } | |
| ANNOTATIONS { | |
| description = “Arrival of events is out by {{ $value }} standard deviations”, | |
| } |
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
| job:events:avg_offset_rate1h = | |
| avg without (offset) (job_offset:events:offset_rate1h) | |
| job:events:stddev_offset_rate1h = | |
| stddev without (offset) (job_offset:events:offset_rate1h) | |
| job:events:normalised_offset_rate1h = | |
| (job:events:rate1h - job:events:avg_offset_rate1h) / | |
| job:events:stddev_offset_rate1h |
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
| job_offset:events:offset_rate1h{offset="1d"} = | |
| job:events:rate1h offset 1d | |
| job_offset:events:offset_rate1h{offset="2d"} = | |
| job:events:rate1h offset 2d | |
| job_offset:events:offset_rate1h{offset="3d"} = | |
| job:events:rate1h offset 3d |
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
| job:events:offset1d_rate1h = job:events:rate1h offset 1d |
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
| task:events:rate1h = rate(events[1h]) | |
| job:events:rate1h = | |
| sum by (job) (task:events:rate1h) |
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
| job:events:offset1d_rate1h = job:events:rate1h offset 1d |
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
| task:events:rate1h = rate(events[1h]) | |
| job:events:rate1h = | |
| sum by (job) (task:events:rate1h) |
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
| set nofoldenable " disable folding | |
| filetype plugin on | |
| filetype indent on | |
| "set number | |
| "set spell spelllang=en_gb | |
| " Persist undo | |
| if has('persistent_undo') |
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
| export GTK2_RC_FILES="$HOME/.gtkrc-2.0" | |
| export UBUNTU_MENUPROXY= |
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
| # Example aliases | |
| # alias zshconfig="mate ~/.zshrc" | |
| # alias ohmyzsh="mate ~/.oh-my-zsh" | |