When to use PromQL
Use PromQL when:- You are migrating existing Prometheus or Grafana dashboards.
- You want to reuse familiar PromQL metric queries.
- You need a quick compatibility path for Prometheus-style metric expressions.
When to use MetoroQL
Use MetoroQL when:- You are building a new dashboard in Metoro.
- Query correctness and performance matter more than PromQL compatibility.
- You want to query logs, traces, Kubernetes resources, or combine observability domains.
- You want the query behavior Metoro optimizes most heavily.
Use PromQL in dashboards
To use PromQL in a dashboard widget:- Open a dashboard and click Edit.
- Add or edit a metric widget.
- Open the query mode selector.
- Choose PromQL mode.
- Enter your PromQL query and save the widget.
Examples
Query a metric and group by service:Limitations
PromQL support is alpha and has some important limitations:- Results may have minor correctness differences from Prometheus, especially for edge-case PromQL semantics.
- PromQL queries are generally slower than equivalent native MetoroQL queries.
- A widget expression runs in one query mode at a time. PromQL queries cannot be mixed with standard metric queries, formulas, or MetoroQL queries in the same expression.
- Public dashboard metric queries do not currently support PromQL-backed widgets.
- PromQL mode is for metric queries only. Use MetoroQL for logs, traces, and Kubernetes resources.
If a PromQL query is unexpectedly slow or does not match Prometheus exactly, try rewriting it in MetoroQL. MetoroQL is the native path and is the preferred option for production dashboards.
