25 Commits

Author SHA1 Message Date
Ian Fijolek
312821fa8d Add pycompat warning 2024-11-14 13:09:23 -08:00
Ian Fijolek
f58b4c1495 Adds ability to run specified alerts on startup
This is helpful to determine if your alerts are valid before an actual failure
2024-04-03 12:03:17 -07:00
Ian Fijolek
3c14a02770 Continue checking all monitors after sending alert
Previously this was mistakenly returning after sending an alert. Now
all alerts will be sent unless there is an exception on one of them.
2021-09-02 10:20:04 -07:00
Ian Fijolek
328ea83c25 Some linting cleanup 2021-09-02 10:19:03 -07:00
Ian Fijolek
860c2cdf43 Add custom type to parse out seconds as int and durations as strings 2021-05-12 10:33:42 -07:00
Ian Fijolek
bdf7355fa7 Add duration parsing for intervals 2021-05-11 10:41:39 -07:00
Ian Fijolek
befea7375f Add check runtime metric 2021-05-11 10:41:39 -07:00
Ian Fijolek
5f250f17a8 Add more liniting and update to pass 2021-05-10 21:53:26 -07:00
Ian Fijolek
fda9e1bfc3 Replace log with slog 2021-05-10 21:53:26 -07:00
Ian Fijolek
aad9eaa32f Update exported status metric to properly reflect alerting status of a monitor
It was using the result of the individual check and not the monitor as a whole
2020-07-14 17:09:56 -07:00
Ian Fijolek
ae30f477f7 Add ability to customize metrics port 2020-02-19 22:13:07 -08:00
Ian Fijolek
00029a6327 Make Python compatability a flag 2020-02-19 17:38:07 -08:00
Ian Fijolek
eb7ad0b25e Allow specifying config path as an argument 2020-02-19 17:37:53 -08:00
Ian Fijolek
457e19af9b Add prometheus metrics exporter
This should add metrics parity to the Python version
2019-11-15 17:14:20 -08:00
Ian Fijolek
351216c3a7 Add more config validation
Validates that all alerts are actually found in the alert list
2019-10-07 10:48:19 -07:00
Ian Fijolek
6b9edf75d7 Move panics up to main function 2019-10-04 16:17:36 -07:00
Ian Fijolek
1ad5bcef14 Add flag to print version 2019-10-04 16:17:20 -07:00
Ian Fijolek
ac8ab9ef43 Add debug flag to adjust log verbosity a bit
Not as good as a proper logging system, but still provids a bit of
control over log verbosity
2019-10-04 16:05:25 -07:00
Ian Fijolek
f99ee9891e Add some test cases to cover main
These don't include any asserts, but they do check panics
2019-10-04 15:46:49 -07:00
Ian Fijolek
6aaeeb32d4 Refactor a bit more for testing, update tests 2019-10-04 14:47:38 -07:00
Ian Fijolek
5c5388d683 Add some config tests
Still some more to add
2019-10-03 18:16:03 -07:00
Ian Fijolek
71574dd8a9 Add alert tests 2019-10-03 16:30:49 -07:00
Ian Fijolek
ba33071070 Clean up code and update docs 2019-10-02 16:09:11 -07:00
Ian Fijolek
7b746ed62a Commands all running 2019-10-02 09:37:29 -07:00
Ian Fijolek
342b12432e WIP 2019-09-21 15:03:26 -07:00