May 2019
Intermediate to advanced
442 pages
11h 36m
English
The comparison operators, as shown in the following table, are useful for filtering results:
|
Operator |
Description |
|
== |
Equal |
|
!= |
Not equal |
|
> |
Greater than |
|
< |
Less than |
|
>= |
Greater or equal |
|
<= |
Less or equal |
Say, for example, we have the following instant vector:
process_open_fds{instance="172.17.0.10:8000", job="hey-service"} 8process_open_fds{instance="172.17.0.11:8000", job="hey-service"} 23
To that, we apply a comparison operator such as the following:
process_open_fds{job="hey-service"} > 10
The result will be as follows:
process_open_fds{instance="172.17.0.11:8000", job="hey-service"} 23
This operation shows that we have effectively filtered the results of the instant vector, which ...
Read now
Unlock full access