From 865f1ee18409987f3bb7cefd50e7eb5656093255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20=C3=85hall?= Date: Sun, 30 Jun 2024 12:58:27 +0200 Subject: [PATCH] Update README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) 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.