May 2019
Intermediate to advanced
442 pages
11h 36m
English
An interesting detail to be mindful of when using PromQL is that, when using comparison operators between vectors, the returned result will be from the left-hand side of the comparison. This means that, when doing comparisons between a current value and a threshold, you should do them in that order (for example,current_value < threshold) as you probably want the returned value to be the current value and not the threshold:
node_filesystem_avail_bytes < node_filesystem_size_bytes * 0.2
Furthermore, when chaining different comparisons using and, the result will still be the left-hand side from the first comparison. The following example returns the percentage of space left in a filesystem, ...
Read now
Unlock full access