Commit Graph

97 Commits

Author SHA1 Message Date
a03f430d0e Remove 'SecondsOrDuration' for check_interval
Now requires an explicit duration unit. Eg. 30s
2023-04-19 15:31:12 -07:00
f3f7c215a7 Breaking: Remove python compat flag 2023-04-19 15:27:33 -07:00
c75302bdb8 Add dig and update system package versions
Includes bump to alpine 3.17
2023-04-19 15:23:34 -07:00
ded4e129a1 Switch from deprecated ioutil 2023-04-18 16:17:06 -07:00
95cb24ac04 Upgrade golangci-lint pre-commit hook 2023-04-18 16:16:53 -07:00
e6447b615f Upgrade some dependencies 2023-04-18 16:09:41 -07:00
2680eabd40 Rebuild when mod files change 2023-04-18 16:09:30 -07:00
23340e823f Update go version in go.mod 2023-04-18 16:02:04 -07:00
99b8723abc Add curl script to simplify http healthchecks 2023-04-18 15:56:59 -07:00
7d87c3d036 Add default values for AlertEvery
There is also a test error corrected in TestMonitorFailureAlertEvery
where the same test conditions were repeated twice.
2022-12-19 15:49:32 -08:00
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
958446050f Update linters 2022-12-19 15:34:47 -08:00
88e94642d9 Remove some hooks included in golangci-lint and upgrade existing 2022-06-07 21:39:18 -07:00
bc83a51907 Switch pre-commit url for golang 2022-04-04 20:12:01 -07:00
08b8932331 Update curl version 2022-01-24 16:08:18 -08:00
9072d97bb8 Make linters happy 2022-01-24 10:39:53 -08:00
cdd8a69669 Update go version 2021-12-01 14:47:58 -08:00
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
328ea83c25 Some linting cleanup 2021-09-02 10:19:03 -07:00
ce986e8d1d Roll back to alpine:3.12
Looks like there is a clock issue with raspbian

https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.13.0#time64_requirements
2021-05-12 19:06:41 -07:00
31a4b484bf Merge branch 'duration-intervals' 2021-05-12 18:32:12 -07:00
49e3635819 Add backwards compatility explanation in Readme 2021-05-12 16:37:59 -07:00
444d060736 Remove qemu-user-static from Dockerfile and update alpine
My build machine now has proper qemu support added, so this is not needed
2021-05-12 23:22:24 +00:00
860c2cdf43 Add custom type to parse out seconds as int and durations as strings 2021-05-12 10:33:42 -07:00
befea7375f Add check runtime metric 2021-05-11 10:41:39 -07:00
04395fa693 Add duration parsing tests 2021-05-11 10:41:39 -07:00
bdf7355fa7 Add duration parsing for intervals 2021-05-11 10:41:39 -07:00
30c2c7d6b2 Add Dockerfile linting back in 2021-05-10 21:53:26 -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
f0e179851f Update linting and a test case 2021-01-08 18:31:22 -05:00
9e124803da Add release uploads 2021-01-08 18:13:48 -05:00
2c4543a7bc Update go version to 1.15 2021-01-08 18:13:34 -05:00
a1b906b94a Update for go 1.15 2020-11-16 15:56:31 -08:00
0a5be250b5 Scripts: Add echoing log lines to helper scripts
Rather than only returning the status of whether or not a container is
healhthy, the helper scripts will now optionally echo some of the latest
log lines.
2020-11-16 15:52:21 -08:00
88f77aa27c Fix Makefile comment 2020-11-16 15:51:41 -08:00
67c2375bba Remove docker linting for now
Drone check doesn't pass. Need to install docker there
2020-07-14 17:29:54 -07:00
aad9eaa32f Update exported status metric to properly reflect alerting status of a monitor
It was using the result of the individual check and not the monitor as a whole
2020-07-14 17:09:56 -07:00
5dc5ba5257 Add docker linting 2020-07-14 17:08:48 -07:00
4aff294739 Set overrided version in drone config 2020-07-07 12:15:53 -07:00
0684b15a44 Update logic for setting version
I noticed that versions were not being properly dervied from the git
tags. This fixes that in a simpler way by allowing git to describe the
current commit with tags, commits, shas, and a dirty maker.
2020-07-07 10:51:13 -07:00
d3826dacde Update drone to use new linux only target 2020-07-06 20:33:02 -07:00
f8e40c643c Move static binaries to dist/ for easier publishing
This will make it easier to publish them to Github or Gitea releases later.

To avoid making the Makefile super complex, this patch also makes use of
variables to simplify the Makefile as well.
2020-07-06 20:15:21 -07:00
cffbbd734a Make default log alert conditional
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
ad6f3be6ec Update README with more detailed running instructions from prior project 2020-02-19 22:13:30 -08:00
ae30f477f7 Add ability to customize metrics port 2020-02-19 22:13:07 -08:00
9dcd8ebf12 Update README to correct differences between py and go versions 2020-02-19 21:56:01 -08:00
11af700618 Merge branch 'minitor-py-compat-rebase' 2020-02-19 21:21:40 -08:00
00029a6327 Make Python compatability a flag 2020-02-19 17:38:07 -08:00
9c21880efa Add a default log alert 2020-02-19 17:38:07 -08:00