Update README.md

This commit is contained in:
Magnus Åhall 2024-06-30 12:58:27 +02:00
parent 6108cb7046
commit 865f1ee184

View File

@ -98,6 +98,16 @@ Expressions are written with the [[https://expr-lang.org/|Expr]] language. See t
The trigger is evaluating the expression when data is entered through the /entry/`datapoint_name` URL and a problem is issued when the expression returns `true`.
### Examples
The disk usage (reported in percent) for server01 has exceeded 90%:
`server01_disk_usage_root > 90`
It was more than 48 hours since Borg finished on server01:
`(now() - borg_server01_finished).Hours() > 48`
## Problems
One or more datapoints that trips a trigger issues a problem.
@ -119,6 +129,7 @@ What is sent isn't configurable (for now). What is sent is:
* PROBLEM (when a problem is created) or OK (when a trigger evaluates to false).
* Trigger name
## NTFY
An URL is provided to the topic which should receive the notifications.