Skip to content

Supported PromQL Features

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

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.

Arithmetic operators

Comparison operators

Logical/set binary operators

Functions

Counter Caluculation Functions

<aggregation>_over_time Functions

Label Functions

Type Conversion Functions