summaryrefslogtreecommitdiff
path: root/inventory/group_vars/promzone-chaos-at-home/vars.yml
diff options
context:
space:
mode:
Diffstat (limited to 'inventory/group_vars/promzone-chaos-at-home/vars.yml')
-rw-r--r--inventory/group_vars/promzone-chaos-at-home/vars.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/inventory/group_vars/promzone-chaos-at-home/vars.yml b/inventory/group_vars/promzone-chaos-at-home/vars.yml
index 8c3b7945..1e3c2ada 100644
--- a/inventory/group_vars/promzone-chaos-at-home/vars.yml
+++ b/inventory/group_vars/promzone-chaos-at-home/vars.yml
@@ -41,3 +41,23 @@ prometheus_zone_name: chaos@home
## TODO:
## potential extra alert rule: (bind_zone_serial{instance="ch-mimas"} == bool on(job, view, zone_name) bind_zone_serial{instance="ch-pan"}) != 1
+
+
+prometheus_server_rules_whawty_nginx_sso_extra:
+ - alert: WhawtyAuthStoreSyncTooLongAgo
+ expr: time() - whawty_auth_store_sync_run > 3600
+ for: 0m
+ labels:
+ severity: warning
+ annotations:
+ summary: The last whawty-auth store sync was too long ago (instance {{ '{{' }} $labels.instance {{ '}}' }})
+ description: "The last whawty-auth store sync of {{ '{{' }} $labels.name {{ '}}' }} on {{ '{{' }} $labels.instance {{ '}}' }} ran more then an hours ago.\n VALUE = {{ '{{' }} $value {{ '}}' }}\n LABELS = {{ '{{' }} $labels {{ '}}' }}"
+
+ - alert: WhawtyAuthStoreSyncFailed
+ expr: whawty_auth_store_sync_exit_code != 0
+ for: 0m
+ labels:
+ severity: warning
+ annotations:
+ summary: The last whawty-auth sync failed (instance {{ '{{' }} $labels.instance {{ '}}' }})
+ description: "The last whawty-auth store sync of {{ '{{' }} $labels.name {{ '}}' }} on {{ '{{' }} $labels.instance {{ '}}' }} has failed.\n VALUE = {{ '{{' }} $value {{ '}}' }}\n LABELS = {{ '{{' }} $labels {{ '}}' }}"