May 2019
Intermediate to advanced
442 pages
11h 36m
English
The absent() function takes an instant vector as an argument and returns the following:
This function is quite useful for alerting on, as the name suggests, absent time series.
For example, say that the instant vector exists and we execute the following expression:
absent(http_requests_total{method="get"})
This will return the following:
no data
Let's say we use an expression with a label matcher using a nonexistent label value, like in the following example:
absent(http_requests_total{method="nonexistent_dummy_label"})
This will produce ...
Read now
Unlock full access