X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=filesystem%2Fetc%2Fprometheus%2Frules%2Fiank.yml;h=4f3bb04ee5e8e0ee5129638dcbc43c6c6458ea9b;hb=56c55d8e02cdd6ec67d2fe53cc03785d8876442e;hp=40fc4040c11efc719a9b164b447c117da141b2d2;hpb=fa5deaee2e0182ddfc7b39eea7ee2acedb259ddf;p=distro-setup diff --git a/filesystem/etc/prometheus/rules/iank.yml b/filesystem/etc/prometheus/rules/iank.yml index 40fc404..4f3bb04 100644 --- a/filesystem/etc/prometheus/rules/iank.yml +++ b/filesystem/etc/prometheus/rules/iank.yml @@ -44,7 +44,10 @@ groups: ###### END MISC NOTES ###### - +# various queries only look at increases, so invert the up metric so we +# can better query on down. + - record: down + expr: up == bool 0 # alerting on missing metrics: @@ -98,6 +101,12 @@ groups: labels: severity: warn + - alert: check_crypttab + expr: |- + check_crypttab > 0 + labels: + severity: prod + - alert: mailtest_check_vps expr: |- time() - mailtest_check_last_usec{job="tlsnode"} >= 60 * 12 @@ -106,14 +115,13 @@ groups: annotations: summary: '12 minutes down' - # 42 mins: enough for a 30 min queue run plus 12 - - alert: mailtest_check_vps + - alert: mailtest_check_unexpected_spamd_vps expr: |- - time() - mailtest_check_last_usec{job="tlsnode"} >= 60 * 42 + mailtest_check_unexpected_spamd_results >= 1 labels: - severity: prod + severity: day annotations: - summary: '42 minutes down' + summary: 'jr -u mailtest-check -e' - alert: mailtest_check_mailhost expr: |- @@ -123,14 +131,14 @@ groups: annotations: summary: '12 minutes down' - # 42 mins: enough for a 30 min queue run plus 12 - - alert: mailtest_check_mailhost + # 20 minutes. just allow for more due to prod alert. + - alert: mailtest_check_gnu_mailhost expr: |- - time() - max by (folder,from) (mailtest_check_last_usec{job="node"}) >= 60 * 42 + time() - max by (folder,from) (mailtest_check_last_usec{folder="/m/md/l/testignore", from="iank@gnu.org"}) >= 60 * 20 labels: severity: prod annotations: - summary: '42 minutes down' + summary: '20 minutes down' - alert: 1pmtest @@ -169,11 +177,11 @@ groups: # avg_over_time(node_systemd_unit_state{name="dynamicipupdate.service",state="active"}[1d]) < .95 - alert: up_resets expr: |- - resets(up[2d]) - changes(node_boot_time_seconds[2d]) > 12 + resets(up[1d]) - changes(node_boot_time_seconds[1d]) > 12 labels: severity: warn annotations: - summary: "Target has gone down {{ $value }} times in 2 days, > 12" + summary: "Target has gone down {{ $value }} times in 1 day, > 12"