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:

  1. At the end of the line for each metric, click the Code icon, Code icon, to switch to the PromQL mode to define the metric.

    metrics explorer show promql

To revert to using the expression builder, follow these steps:

  1. Click the Builder icon, Builder icon, to switch to *Builder mode.

    metrics explorer show builder