Loki: Add autocomplete option for $__range variable (#36717)

* Add autocomplete option for Loki & Promtheus rates

* Update test
This commit is contained in:
Ivana Huckova
2021-07-14 07:44:23 -04:00
committed by GitHub
parent f29f190e73
commit d9897a457d
3 changed files with 4 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ const NS_IN_MS = 1000000;
// @see public/app/plugins/datasource/prometheus/promql.ts
const RATE_RANGES: CompletionItem[] = [
{ label: '$__interval', sortValue: '$__interval' },
{ label: '$__range', sortValue: '$__range' },
{ label: '1m', sortValue: '00:01:00' },
{ label: '5m', sortValue: '00:05:00' },
{ label: '10m', sortValue: '00:10:00' },