diff --git a/README.md b/README.md index b155a69..b922964 100644 --- a/README.md +++ b/README.md @@ -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.