Skip to content

Query

Panel query target.

Use this when you need multiple queries with different legends, formats, or other settings. For single queries, you can just pass the expression as a string child of the panel.

<Timeseries title="CPU">
<Query refId="user" legend="User" color="blue">
sum(rate(cpu_user[$__rate_interval]))
</Query>
<Query refId="system" legend="System" color="red">
sum(rate(cpu_system[$__rate_interval]))
</Query>
</Timeseries>
PropTypeDefaultDescription
refIdstring-Query reference ID (auto-generated if not provided)
legendstring-Legend format string
instantboolean-Use instant query (point-in-time)
format'time_series' | 'table' | 'heatmap'-Query format
hideboolean-Hide query from visualization
childrenReactNode-PromQL expression as child