- Prometheus checks only the rules from the files listed in
rule_files; the package's emptyrule_files:means "no rules". promtool check rulesandpromtool check configcatch a mistake before the reread, and a failedreloadkeeps the previous rules.- A rule expression is a filter: each series in the result becomes an alert, an empty result means no alert. The threshold is compared with what the expression computes.
forkeeps an alertpendinguntil the condition has held for the set time, then it isfiring; as soon as the expression goes empty, the alert leaves.- DiskAlmostFull from the start of the lesson was silent for two reasons: Prometheus had not loaded its file, and the
> 0.95threshold sat on the free share.
Step 6 of 6 · summary · 2 min
Summary
Found an inaccuracy? Report an error in the lesson