Metrics in PromQL
You can use either the Query Builder, or PromQL to build the expression for each metric. Metrics Explorer defaults to using Query Builder.
When you are already familiar with PromQL, this method of building queries may be quicker and more natural.
To learn how to use PromQL for your queries, see Querying Prometheus.
To use PromQL, follow these steps:
-
At the end of the line for each metric, click the Code icon,
, to switch to the PromQL mode to define the metric.
To revert to using the expression builder, follow these steps:
-
Click the Builder icon,
, to switch to *Builder mode.