From 0ffb7ae8d1872aa5a182fbf71da3953fdf5ea8df Mon Sep 17 00:00:00 2001 From: "marian.ciotlos@yahoo.com" Date: Fri, 17 Feb 2023 00:32:17 +0200 Subject: [PATCH] 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: