Commit Graph

18 Commits

Author SHA1 Message Date
deec04bf0d Allow setting of global defaults for some values
This helps with reducing redundant config.

Note: There is no default for `alert_every` because the zero value has a
meaning and cannot be interpreted as an omission.
2022-12-19 15:49:32 -08:00
860c2cdf43 Add custom type to parse out seconds as int and durations as strings
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-12 10:33:42 -07:00
bdf7355fa7 Add duration parsing for intervals 2021-05-11 10:41:39 -07:00
5f250f17a8 Add more liniting and update to pass 2021-05-10 21:53:26 -07:00
fda9e1bfc3 Replace log with slog 2021-05-10 21:53:26 -07:00
00029a6327 Make Python compatability a flag
All checks were successful
continuous-integration/drone/push Build is passing
2020-02-19 17:38:07 -08:00
9c21880efa Add a default log alert 2020-02-19 17:38:07 -08:00
25c5179d3d Switch to a single key for command and command shell
All checks were successful
continuous-integration/drone/push Build is passing
This makes the configuration more similar to Minitor-py and
docker-compose. If a string is passed, it will be executed in a shell.
If an array is passed, it will be executed in as a command directly.

This breaks compatiblity with previous versions of Minitor-go, but
closer to compatiblity with Minitor-py.
2020-02-19 17:38:06 -08:00
0269ad3512 Add new test for multi-line YAML strings 2020-01-07 10:28:14 -08:00
9b9f803231 Add pre-commit to the repo
All checks were successful
continuous-integration/drone/push Build is passing
This adds pre-commit which can be used to enforce consistent style
and common errors (like committing large files)
2019-11-21 15:32:57 -08:00
457e19af9b Add prometheus metrics exporter
This should add metrics parity to the Python version
2019-11-15 17:14:20 -08:00
351216c3a7 Add more config validation
Validates that all alerts are actually found in the alert list
2019-10-07 10:48:19 -07:00
5c5388d683 Add some config tests
Still some more to add
2019-10-03 18:16:03 -07:00
71574dd8a9 Add alert tests 2019-10-03 16:30:49 -07:00
ba33071070 Clean up code and update docs 2019-10-02 16:09:11 -07:00
7b746ed62a Commands all running 2019-10-02 09:37:29 -07:00
dd0b8e3f38 Added ability to run commands in a shell
Diverges a small amount from the Python version for this.
2019-10-01 08:26:07 -07:00
342b12432e WIP 2019-09-21 15:03:26 -07:00