Commit Graph

104 Commits

Author SHA1 Message Date
IamTheFij cffbbd734a Make default log alert conditional
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
Allow using the default `log` alert for both up and down alerts using
Go's templating conditionals. Following this example can do away with
the need for an up and down version of every alert.
2020-06-19 09:51:42 -07:00
IamTheFij ad6f3be6ec Update README with more detailed running instructions from prior project
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2020-02-19 22:13:30 -08:00
IamTheFij ae30f477f7 Add ability to customize metrics port 2020-02-19 22:13:07 -08:00
IamTheFij 9dcd8ebf12 Update README to correct differences between py and go versions
continuous-integration/drone/push Build is passing Details
2020-02-19 21:56:01 -08:00
IamTheFij 11af700618 Merge branch 'minitor-py-compat-rebase'
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2020-02-19 21:21:40 -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 9c21880efa Add a default log alert 2020-02-19 17:38:07 -08:00
IamTheFij 8b0d3b65cf Try to allow parsing of Minitor-py templates
This will make transition easier for an interim period. Will remove at
version 1.0
2020-02-19 17:38:07 -08:00
IamTheFij 25c5179d3d Switch to a single key for command and command shell
continuous-integration/drone/push Build is passing Details
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
IamTheFij eb7ad0b25e Allow specifying config path as an argument 2020-02-19 17:37:53 -08:00
IamTheFij 3b963f420f Remove underscore var name 2020-02-19 17:37:52 -08:00
IamTheFij 162e8618cb Revert "Don't copy extra qemu files"
continuous-integration/drone/push Build is passing Details
This reverts commit 5b69eacdd5.
2020-01-30 11:41:34 -08:00
IamTheFij c67fe1f4c7 Go back to copying all files because drone doesn't like this
continuous-integration/drone/push Build is failing Details
2020-01-30 11:35:59 -08:00
IamTheFij 5b69eacdd5 Don't copy extra qemu files
continuous-integration/drone/push Build is failing Details
2020-01-30 11:30:13 -08:00
IamTheFij d6b979f06e Update README to correct typo and checklist
continuous-integration/drone/push Build is passing Details
2020-01-17 15:53:37 -08:00
IamTheFij f4a972747f Add notify after docker builds
continuous-integration/drone/tag Build is passing Details
2020-01-10 14:25:02 -08:00
IamTheFij c7c82fabe8 Add qemu binaries
continuous-integration/drone/push Build is passing Details
2020-01-10 14:21:48 -08:00
IamTheFij f807caa1ad Add multi-arch builds
continuous-integration/drone/push Build is failing Details
2020-01-10 13:58:17 -08:00
IamTheFij 3226be69e7 Fix issue with shell commands containing "<>" and unecessary (and poor) escaping
continuous-integration/drone/push Build is passing Details
2020-01-07 10:37:53 -08:00
IamTheFij 0269ad3512 Add new test for multi-line YAML strings 2020-01-07 10:28:14 -08:00
IamTheFij f6ccd9a3bd Update Dockerfiles to newer (roughly) pinned versions
continuous-integration/drone/push Build is passing Details
2019-11-22 14:44:21 -08:00
IamTheFij f463ef27b7 Update Dockerfiles to make this version runnable
continuous-integration/drone/push Build is failing Details
Should now have pairity in terms of system utilities and scripts for
checking services
2019-11-22 12:58:26 -08:00
IamTheFij 76ae8f3a44 Do build and test in one step
continuous-integration/drone/push Build is passing Details
Speed up build time by moving these two tasks to one step so that a new
container doesn't have to be spun up and the cached modules from the
build step are reused in the test step.
2019-11-21 15:40:59 -08:00
IamTheFij 9b9f803231 Add pre-commit to the repo
continuous-integration/drone/push Build is passing Details
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
IamTheFij b808df7365 Update README to indicate where to get alert template info
continuous-integration/drone/push Build is passing Details
2019-11-20 17:21:48 -08:00
IamTheFij b1422bbec2 Add split out metrics to a new make target
continuous-integration/drone/push Build is passing Details
In case trying to run without having an available port to
serve http on
2019-11-15 17:36:10 -08:00
IamTheFij 604c27118a Add Docker deploy pipeline
continuous-integration/drone/push Build is passing Details
2019-11-15 17:30:29 -08:00
IamTheFij b2d9882c91 Update readme with accurate To do status
continuous-integration/drone/push Build is passing Details
2019-11-15 17:17:46 -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 1f6193e486 First go at Docker builds
continuous-integration/drone/push Build is passing Details
2019-10-10 17:20:42 -07:00
IamTheFij 05c0e18c37 Update test to be less environment dependent
continuous-integration/drone/push Build is passing Details
2019-10-07 15:53:41 -07:00
IamTheFij 971710df84 Add a build step to drone pipeline
continuous-integration/drone/push Build is failing Details
2019-10-07 15:02:13 -07:00
IamTheFij ba2bb86be6 Add drone build 2019-10-07 14:59:39 -07:00
IamTheFij e3da2e4f80 Update make targets to require min test coverage 2019-10-07 14:58:21 -07: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 1b07059825 Make AlertDown required for a Monitor 2019-10-04 16:23:48 -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 68ee048b76 Add mod and Makefile to speed development 2019-10-03 12:56:03 -07:00
IamTheFij 88b718cb59 Update readme syntax 2019-10-03 09:22:43 -07:00
IamTheFij 644d6bbc05 Complete all Monitor tests 2019-10-03 09:22:13 -07:00
IamTheFij 1280fbb7bd Update to fix issues with AlertAfter. Disallow 0 2019-10-02 20:52:57 -07:00
IamTheFij 67d738a33c WIP: Add tests for monitor 2019-10-02 20:52:34 -07:00
IamTheFij 061b0c980a WIP: Building tests, figuring out what I want AlertAfter to do 2019-10-02 18:01:55 -07:00
IamTheFij ba33071070 Clean up code and update docs 2019-10-02 16:09:11 -07:00