When using labeled metrics, you can display a graph using the PromQL query language. The following PromQL features are supported in Mackerel.
Time series selector
- Vector selector
=
(equality label matcher)!=
(inequality label matcher)=~
(regular expression label matcher)!~
(negative regular expression label matcher)
- Range vector selector
Modifiers
Aggregation operators
Also, the by
and without
modifiers for controlling the labels used for aggregation are supported.
Binary operators
Defined in 4 patterns: (vector) x (vector)
, (vector) x (scalar)
, (scalar) x (vector)
, and (scalar) x (scalar)
.
To perform vector operations, a mechanism called vector matching is implemented. One-to-one correspondence (arithmetic and comparison operators) and many-to-many correspondence (set operators) have already been implemented.
One-to-many correspondence using the group_left
and group_right
modifiers is not implemented.