IamTheFij
60cfac948b
Breaking: Rename `minitor_check_milliseconds` and `minitor_monitor_up_count`
...
To conform with Prometheus metric name best practices, these have been
renamed as follows:
* `minitor_check_milliseconds` to `minitor_check_seconds`
* `minitor_monitor_up_count` to `minitor_monitor_up`
2022-12-19 15:45:23 -08:00
IamTheFij
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
IamTheFij
328ea83c25
Some linting cleanup
2021-09-02 10:19:03 -07:00
IamTheFij
860c2cdf43
Add custom type to parse out seconds as int and durations as strings
continuous-integration/drone/push Build is passing
Details
2021-05-12 10:33:42 -07:00
IamTheFij
bdf7355fa7
Add duration parsing for intervals
2021-05-11 10:41:39 -07:00
IamTheFij
befea7375f
Add check runtime metric
continuous-integration/drone/push Build is failing
Details
2021-05-11 10:41:39 -07:00
IamTheFij
5f250f17a8
Add more liniting and update to pass
2021-05-10 21:53:26 -07:00
IamTheFij
fda9e1bfc3
Replace log with slog
2021-05-10 21:53:26 -07:00
IamTheFij
aad9eaa32f
Update exported status metric to properly reflect alerting status of a monitor
...
continuous-integration/drone/push Build is failing
Details
It was using the result of the individual check and not the monitor as a whole
2020-07-14 17:09:56 -07:00
IamTheFij
ae30f477f7
Add ability to customize metrics port
2020-02-19 22:13:07 -08:00
IamTheFij
00029a6327
Make Python compatability a flag
continuous-integration/drone/push Build is passing
Details
2020-02-19 17:38:07 -08:00
IamTheFij
eb7ad0b25e
Allow specifying config path as an argument
2020-02-19 17:37:53 -08:00
IamTheFij
457e19af9b
Add prometheus metrics exporter
...
This should add metrics parity to the Python version
2019-11-15 17:14:20 -08:00
IamTheFij
351216c3a7
Add more config validation
...
Validates that all alerts are actually found in the alert list
2019-10-07 10:48:19 -07:00
IamTheFij
6b9edf75d7
Move panics up to main function
2019-10-04 16:17:36 -07:00
IamTheFij
1ad5bcef14
Add flag to print version
2019-10-04 16:17:20 -07:00
IamTheFij
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
IamTheFij
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
IamTheFij
6aaeeb32d4
Refactor a bit more for testing, update tests
2019-10-04 14:47:38 -07:00
IamTheFij
5c5388d683
Add some config tests
...
Still some more to add
2019-10-03 18:16:03 -07:00
IamTheFij
71574dd8a9
Add alert tests
2019-10-03 16:30:49 -07:00
IamTheFij
ba33071070
Clean up code and update docs
2019-10-02 16:09:11 -07:00
IamTheFij
7b746ed62a
Commands all running
2019-10-02 09:37:29 -07:00
IamTheFij
342b12432e
WIP
2019-09-21 15:03:26 -07:00