Commit Graph

13 Commits

Author SHA1 Message Date
IamTheFij e41d82f9d2 Blacken
continuous-integration/drone/push Build is failing Details
2022-04-04 20:23:15 -07:00
IamTheFij 4683b3856e Allow building against more Python versions
continuous-integration/drone/push Build is failing Details
2019-07-30 21:17:24 -07:00
IamTheFij 8169b4257a Fix drone and travis builds
continuous-integration/drone/push Build is passing Details
* Correct env variable name in minitor_test
* Adding more test environments, skipping python 3.5
because lack of assert_called_once support
* Using default travis python environments
2019-06-03 10:56:42 -07:00
IamTheFij c7081a0d32 Add a simple integration test 2018-07-15 19:12:04 -07:00
IamTheFij 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
IamTheFij 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
IamTheFij 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
IamTheFij d005129afe Add tracking and formatting for last success in alerts
Relates to #2
2018-04-13 22:02:09 -07:00
IamTheFij c84c80b5c7 Use shorter check to account for varying distro errors 2018-04-11 10:11:51 -07:00
IamTheFij 0b0636b701 Add formatting for failure_count and alert_count
Fixes #3
2018-04-10 21:58:01 -07:00
IamTheFij fdc13d437d Improve logging such that a test can be written for an alert 2018-04-10 11:06:42 -07:00
IamTheFij 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
IamTheFij 5edc2410ea Add tox, pre-commit and dummy test. 2018-04-09 10:44:30 -07:00