mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
prom: make $__$interval the first suggested range vector
This commit is contained in:
parent
a4e4b76785
commit
71272d9076
@ -92,16 +92,19 @@ export class PromCompleter {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
vectors.push({
|
|
||||||
caption: '$__interval',
|
vectors.unshift({
|
||||||
value: '[$__interval',
|
|
||||||
meta: 'range vector',
|
|
||||||
});
|
|
||||||
vectors.push({
|
|
||||||
caption: '$__interval_ms',
|
caption: '$__interval_ms',
|
||||||
value: '[$__interval_ms',
|
value: '[$__interval_ms',
|
||||||
meta: 'range vector',
|
meta: 'range vector',
|
||||||
});
|
});
|
||||||
|
|
||||||
|
vectors.unshift({
|
||||||
|
caption: '$__interval',
|
||||||
|
value: '[$__interval',
|
||||||
|
meta: 'range vector',
|
||||||
|
});
|
||||||
|
|
||||||
callback(null, vectors);
|
callback(null, vectors);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user