Commit Graph

21 Commits

Author SHA1 Message Date
edb3bdb44a Allow disabling repeated alerts
All checks were successful
continuous-integration/drone/push Build is passing
2019-06-03 12:15:38 -07:00
05f630d08a Add log level control using command line arguments
All checks were successful
continuous-integration/drone/push Build is passing
Default  ERROR
    -v       WARNING
    -vv      INFO
    -vvv     DEBUG
2019-06-03 11:47:20 -07:00
30a55b4ab2 Fix metrics exporting
Metrics got broken when counters were moved to be initialized below the monitor creation
2018-10-29 11:58:14 -07:00
c7081a0d32 Add a simple integration test 2018-07-15 19:12:04 -07:00
0c0a0d9085 Add new Prometheus metrics endpoint
Doubles as a health check endpoint!

Change some methods to private and rearrange them
2018-07-15 19:12:04 -07:00
25121bc3a0 Change warn to warning 2018-07-15 17:05:20 -07:00
713abaa736 Fixed bug that was introduced after adding new alert types
This is why I need integration tests...
2018-04-18 21:51:39 -07:00
16be263093 Add the ability to include last command output in the alert
Update readme to document the new templating vars
2018-04-18 17:16:26 -07:00
aad28976e2 Add alerting for recovered monitors
Based on the idea from SeaLife, adds alerts for when a monitor comes out
of an alerting down state. Also includes a bunch of unit tests to cover
the new code.
2018-04-14 17:27:37 -07:00
d005129afe Add tracking and formatting for last success in alerts
Relates to #2
2018-04-13 22:02:09 -07:00
0b0636b701 Add formatting for failure_count and alert_count
Fixes #3
2018-04-10 21:58:01 -07:00
fdc13d437d Improve logging such that a test can be written for an alert 2018-04-10 11:06:42 -07:00
3ccd76dd75 Fix issue with alerting on first alert
An issue with the failure function caused the first alert after reaching
the minimum `alert_after` threshold to not notify unless using
exponential backoff.

New tests were added to reproduce the error and then it was fixed.

Fixes #2
2018-04-09 17:09:21 -07:00
fce47ba2c7 Run pre-commit to clean files 2018-04-09 12:08:42 -07:00
9bbc452ee9 Add exponential backoff 2018-02-17 20:45:37 -08:00
adcd659316 Switch to python logging 2018-02-16 10:03:12 -08:00
b4dfa8d835 Switch to setup.py 2018-02-16 09:48:26 -08:00
202ca73e96 MVP! 2018-02-15 18:10:19 -08:00
e34fa38d51 Add comment for alert every 2018-02-14 17:55:29 -08:00
636ad103a3 Add run loop and interval 2018-02-14 17:54:42 -08:00
2b5856ee30 initial commit poc 2018-02-14 15:37:15 -08:00