From 1e44e348eec1ac1a49e1b296e6ce1ae4e7079ada Mon Sep 17 00:00:00 2001 From: alexandrumarian-portal <83924056+alexandrumarian-portal@users.noreply.github.com> Date: Fri, 17 Feb 2023 02:13:41 +0200 Subject: [PATCH] Hashicorp Vault cluster health (#338) * Hashicorp Vault cluster health --- _data/rules.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/_data/rules.yml b/_data/rules.yml index 02c5794..2fba048 100644 --- a/_data/rules.yml +++ b/_data/rules.yml @@ -2243,6 +2243,12 @@ groups: query: 'vault_token_count_by_ttl{creation_ttl="+Inf"} > 3' severity: warning for: 5m + - name: Vault cluster health + description: 'Vault cluster is not healthy {{ $labels.instance }}: {{ $value | printf "%.2f"}}%' + query: 'sum(vault_core_active) / count(vault_core_active) > 0.5' + severity: warning + for: 5m + - name: Cloudflare exporters: