service/sshd: add loki alert rule

This commit is contained in:
Felix Buehler 2023-05-21 20:23:20 +02:00
parent bc8db6f2e9
commit 25a5af1d24
2 changed files with 8 additions and 1 deletions

View file

@ -141,7 +141,7 @@ in
};
my.services.loki.rules = {
HighLogRate = {
loki_highLogRate = {
condition = ''sum by (host) (rate({unit="loki.service"}[1m])) > 60'';
description = "Loki has a high logging rate";
};