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>| Prop | Type | Default | Description |
|---|---|---|---|
refId | string | - | Query reference ID (auto-generated if not provided) |
legend | string | - | Legend format string |
instant | boolean | - | Use instant query (point-in-time) |
format | 'time_series' | 'table' | 'heatmap' | - | Query format |
hide | boolean | - | Hide query from visualization |
children | ReactNode | - | PromQL expression as child |