service/prometheus: add example to alert option
Some checks failed
/ Build Nix targets (push) Has been cancelled

This commit is contained in:
Felix Buehler 2025-09-21 18:41:41 +02:00
parent f22a2b73d8
commit 3d830613cd

View file

@ -73,6 +73,16 @@ in
Defines the prometheus rules. Defines the prometheus rules.
''; '';
default = { }; default = { };
example = lib.literalExpression ''
{
cpu_high_usage = {
condition = "cpu_usage_percent > 80";
description = "High CPU usage detected on {{ $labels.instance }}";
time = "5m";
labels = { severity = "warning"; };
};
}
'';
}; };
}; };