Update README.md
This commit is contained in:
parent
6108cb7046
commit
865f1ee184
11
README.md
11
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.
|
||||
|
Loading…
Reference in New Issue
Block a user