Compare commits

...

1 Commits

Author SHA1 Message Date
David Ellis
a4fb278259 use max_over_time and $__interval for range query (instant:false) 2025-11-26 16:54:51 -07:00

View File

@@ -39,7 +39,7 @@ export function SummaryChartReact() {
const dataProvider = useQueryRunner({
queries: [
getDataQuery(`count by (alertstate) (${METRIC_NAME}{${filter}})`, {
getDataQuery(`count by (alertstate) (max_over_time(${METRIC_NAME}{${filter}}[$__interval]))`, {
legendFormat: '{{alertstate}}', // we need this so we can map states to the correct color in the vizConfig
}),
],