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app/plugins/datasource/loki/components/monaco-query-field/getOverrideServices.ts","webpack://grafana/./public/app/plugins/datasource/loki/components/monaco-query-field/monaco-completion-provider/CompletionDataProvider.ts","webpack://grafana/./public/app/plugins/datasource/loki/components/monaco-query-field/monaco-completion-provider/NeverCaseError.ts","webpack://grafana/./public/app/plugins/datasource/loki/components/monaco-query-field/monaco-completion-provider/completions.ts","webpack://grafana/./public/app/plugins/datasource/loki/components/monaco-query-field/monaco-completion-provider/situation.ts","webpack://grafana/./public/app/plugins/datasource/loki/components/monaco-query-field/monaco-completion-provider/completionUtils.ts","webpack://grafana/./public/app/plugins/datasource/loki/components/monaco-query-field/MonacoQueryField.tsx","webpack://grafana/./node_modules/react-use/esm/useLatest.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.monarchlanguage = exports.languageConfiguration = void 0;\nexports.languageConfiguration = {\n // the default separators except `@$`\n wordPattern: /(-?\\d*\\.\\d\\w*)|([^`~!#%^&*()\\-=+\\[{\\]}\\\\|;:'\",.<>\\/?\\s]+)/g,\n comments: {\n lineComment: \"#\",\n },\n brackets: [\n [\"{\", \"}\"],\n [\"[\", \"]\"],\n [\"(\", \")\"],\n ],\n autoClosingPairs: [\n { open: \"{\", close: \"}\" },\n { open: \"[\", close: \"]\" },\n { open: \"(\", close: \")\" },\n { open: '\"', close: '\"' },\n { open: \"'\", close: \"'\" },\n { open: \"`\", close: \"`\" },\n ],\n surroundingPairs: [\n { open: \"{\", close: \"}\" },\n { open: \"[\", close: \"]\" },\n { open: \"(\", close: \")\" },\n { open: '\"', close: '\"' },\n { open: \"'\", close: \"'\" },\n { open: \"`\", close: \"`\" },\n { open: \"<\", close: \">\" },\n ],\n folding: {},\n};\n// LogQL built-in aggregation operators\n// https://grafana.com/docs/loki/latest/logql/metric_queries/#built-in-aggregation-operators\nvar aggregations = [\n \"sum\",\n \"avg\",\n \"min\",\n \"max\",\n \"stddev\",\n \"stdvar\",\n \"count\",\n \"topk\",\n \"bottomk\",\n];\n// LogQL parser expressions\n// https://grafana.com/docs/loki/latest/logql/log_queries/#parser-expression\nvar parsers = [\"json\", \"logfmt\", \"regexp\", \"unpack\", \"pattern\"];\n// LogQL format expressions\n// https://grafana.com/docs/loki/latest/logql/log_queries/#parser-expression\nvar format_expressions = [\"line_format\", \"label_format\"];\n// LogQL vector aggregations\n// https://grafana.com/docs/loki/latest/logql/metric_queries/#range-vector-aggregation\nvar vector_aggregations = [\n \"count_over_time\",\n \"rate\",\n \"bytes_over_time\",\n \"bytes_rate\",\n \"avg_over_time\",\n \"sum_over_time\",\n \"min_over_time\",\n \"max_over_time\",\n \"stdvar_over_time\",\n \"stddev_over_time\",\n \"quantile_over_time\",\n \"first_over_time\",\n \"last_over_time\",\n \"absent_over_time\",\n];\n// LogQL by and without clauses\nvar vector_matching = [\"by\", \"without\"];\n// Produce a regex matching elements : (by|without)\nvar vectorMatchingRegex = \"(\".concat(vector_matching.reduce(function (prev, curr) { return \"\".concat(prev, \"|\").concat(curr); }), \")\");\n// LogQL Operators\nvar operators = [\n \"+\",\n \"-\",\n \"*\",\n \"/\",\n \"%\",\n \"^\",\n \"==\",\n \"!=\",\n \">\",\n \"<\",\n \">=\",\n \"<=\",\n \"|=\",\n \"!=\",\n \"|~\",\n \"!~\",\n \"and\",\n \"or\",\n \"unless\",\n \"|\",\n];\n// Merging all the keywords in one list\nvar keywords = aggregations\n .concat(parsers)\n .concat(format_expressions)\n .concat(vector_aggregations)\n .concat(vector_matching);\nexports.monarchlanguage = {\n ignoreCase: false,\n defaultToken: \"\",\n tokenPostfix: \".logql\",\n keywords: keywords,\n operators: operators,\n vectorMatching: vectorMatchingRegex,\n // we include these common regular expressions\n symbols: /[=><!~?:&|+\\-*\\/^%]+/,\n escapes: /\\\\(?:[abfnrtv\\\\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,\n digits: /\\d+(_+\\d+)*/,\n octaldigits: /[0-7]+(_+[0-7]+)*/,\n binarydigits: /[0-1]+(_+[0-1]+)*/,\n hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,\n integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,\n floatsuffix: /[fFlL]?/,\n // The main tokenizer for our languages\n tokenizer: {\n root: [\n // 'by', 'without' and vector matching\n [/@vectorMatching\\s*(?=\\()/, \"type\", \"@clauses\"],\n // labels\n [/[a-z_]\\w*(?=\\s*(=|!=|=~|!~))/, \"tag\"],\n // comments\n [/(^#.*$)/, \"comment\"],\n // all keywords have the same color\n [\n /[a-zA-Z_]\\w*/,\n {\n cases: {\n \"@keywords\": \"type\",\n \"@default\": \"identifier\",\n },\n },\n ],\n // strings\n [/\"/, \"string\", \"@string_double\"],\n [/'/, \"string\", \"@string_single\"],\n [/`/, \"string\", \"@string_backtick\"],\n // whitespace\n { include: \"@whitespace\" },\n // delimiters and operators\n [/[{}()\\[\\]]/, \"@brackets\"],\n [/[<>](?!@symbols)/, \"@brackets\"],\n [\n /@symbols/,\n {\n cases: {\n \"@operators\": \"delimiter\",\n \"@default\": \"\",\n },\n },\n ],\n // numbers\n [/\\d+(?:\\.\\d)?(?:ms|ns|us|µs|[smhdwy])/, \"number\"],\n [/\\d+(?:\\.\\d)?(?:b|kib|Kib|kb|KB|mib|Mib|mb|MB|gib|Gib|gb|GB|tib|Tib|tb|TB|pib|Pib|pb|PB|eib|Eib|eb|EB])/, \"number\"],\n [/\\d*\\d+[eE]([\\-+]?\\d+)?(@floatsuffix)/, \"number.float\"],\n [/\\d*\\.\\d+([eE][\\-+]?\\d+)?(@floatsuffix)/, \"number.float\"],\n [/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, \"number.hex\"],\n [/0[0-7']*[0-7](@integersuffix)/, \"number.octal\"],\n [/0[bB][0-1']*[0-1](@integersuffix)/, \"number.binary\"],\n [/\\d[\\d']*\\d(@integersuffix)/, \"number\"],\n [/\\d(@integersuffix)/, \"number\"],\n ],\n string_double: [\n // Set to token: number to differentiate color\n [/\\{\\{(.*?)\\}\\}/, { token: 'number' }],\n [/[^\\\\\"]/, \"string\"],\n [/@escapes/, \"string.escape\"],\n [/\\\\./, \"string.escape.invalid\"],\n [/\"/, \"string\", \"@pop\"],\n ],\n string_single: [\n [/[^\\\\']+/, \"string\"],\n [/@escapes/, \"string.escape\"],\n [/\\\\./, \"string.escape.invalid\"],\n [/'/, \"string\", \"@pop\"],\n ],\n string_backtick: [\n // Set to token: number to differentiate color\n [/\\{\\{(.*?)\\}\\}/, { token: 'number' }],\n [/[^\\\\`]/, \"string\"],\n [/@escapes/, \"string.escape\"],\n [/\\\\./, \"string.escape.invalid\"],\n [/`/, \"string\", \"@pop\"],\n ],\n clauses: [\n [/[^(,)]/, \"tag\"],\n [/\\)/, \"identifier\", \"@pop\"],\n ],\n whitespace: [[/[ \\t\\r\\n]+/, \"white\"]],\n },\n};\n","import { monacoTypes } from '@grafana/ui';\n\n// this thing here is a workaround in a way.\n// what we want to achieve, is that when the autocomplete-window\n// opens, the \"second, extra popup\" with the extra help,\n// also opens automatically.\n// but there is no API to achieve it.\n// the way to do it is to implement the `storageService`\n// interface, and provide our custom implementation,\n// which will default to `true` for the correct string-key.\n// unfortunately, while the typescript-interface exists,\n// it is not exported from monaco-editor,\n// so we cannot rely on typescript to make sure\n// we do it right. all we can do is to manually\n// lookup the interface, and make sure we code our code right.\n// our code is a \"best effort\" approach,\n// i am not 100% how the `scope` and `target` things work,\n// but so far it seems to work ok.\n// i would use an another approach, if there was one available.\n\nfunction makeStorageService() {\n // we need to return an object that fulfills this interface:\n // https://github.com/microsoft/vscode/blob/ff1e16eebb93af79fd6d7af1356c4003a120c563/src/vs/platform/storage/common/storage.ts#L37\n // unfortunately it is not export from monaco-editor\n\n const strings = new Map<string, string>();\n\n // we want this to be true by default\n strings.set('expandSuggestionDocs', true.toString());\n\n return {\n // we do not implement the on* handlers\n onDidChangeValue: (data: unknown): void => undefined,\n onDidChangeTarget: (data: unknown): void => undefined,\n onWillSaveState: (data: unknown): void => undefined,\n\n get: (key: string, scope: unknown, fallbackValue?: string): string | undefined => {\n return strings.get(key) ?? fallbackValue;\n },\n\n getBoolean: (key: string, scope: unknown, fallbackValue?: boolean): boolean | undefined => {\n const val = strings.get(key);\n if (val !== undefined) {\n // the interface docs say the value will be converted\n // to a boolean but do not specify how, so we improvise\n return val === 'true';\n } else {\n return fallbackValue;\n }\n },\n\n getNumber: (key: string, scope: unknown, fallbackValue?: number): number | undefined => {\n const val = strings.get(key);\n if (val !== undefined) {\n return parseInt(val, 10);\n } else {\n return fallbackValue;\n }\n },\n\n store: (\n key: string,\n value: string | boolean | number | undefined | null,\n scope: unknown,\n target: unknown\n ): void => {\n // the interface docs say if the value is nullish, it should act as delete\n if (value === null || value === undefined) {\n strings.delete(key);\n } else {\n strings.set(key, value.toString());\n }\n },\n\n remove: (key: string, scope: unknown): void => {\n strings.delete(key);\n },\n\n keys: (scope: unknown, target: unknown): string[] => {\n return Array.from(strings.keys());\n },\n\n logStorage: (): void => {\n console.log('logStorage: not implemented');\n },\n\n migrate: (): Promise<void> => {\n // we do not implement this\n return Promise.resolve(undefined);\n },\n\n isNew: (scope: unknown): boolean => {\n // we create a new storage for every session, we do not persist it,\n // so we return `true`.\n return true;\n },\n\n flush: (reason?: unknown): Promise<void> => {\n // we do not implement this\n return Promise.resolve(undefined);\n },\n };\n}\n\nlet overrideServices: monacoTypes.editor.IEditorOverrideServices = {\n storageService: makeStorageService(),\n};\n\nexport function getOverrideServices(): monacoTypes.editor.IEditorOverrideServices {\n // One instance of this for every query editor\n return overrideServices;\n}\n","import { chain } from 'lodash';\n\nimport { HistoryItem, TimeRange } from '@grafana/data';\n\nimport LanguageProvider from '../../../LanguageProvider';\nimport { escapeLabelValueInExactSelector } from '../../../languageUtils';\nimport { ParserAndLabelKeysResult, LokiQuery } from '../../../types';\n\nimport { Label } from './situation';\n\ninterface HistoryRef {\n current: Array<HistoryItem<LokiQuery>>;\n}\n\nexport class CompletionDataProvider {\n constructor(\n private languageProvider: LanguageProvider,\n private historyRef: HistoryRef = { current: [] },\n private timeRange: TimeRange | undefined\n ) {\n this.queryToLabelKeysCache = new Map();\n }\n private queryToLabelKeysCache: Map<string, ParserAndLabelKeysResult>;\n\n private buildSelector(labels: Label[]): string {\n const allLabelTexts = labels.map(\n (label) => `${label.name}${label.op}\"${escapeLabelValueInExactSelector(label.value)}\"`\n );\n\n return `{${allLabelTexts.join(',')}}`;\n }\n\n setTimeRange(timeRange: TimeRange) {\n this.timeRange = timeRange;\n this.queryToLabelKeysCache.clear();\n }\n\n getHistory() {\n return chain(this.historyRef.current)\n .orderBy('ts', 'desc')\n .map((history: HistoryItem<LokiQuery>) => history.query.expr.trim())\n .filter()\n .uniq()\n .value();\n }\n\n async getLabelNames(otherLabels: Label[] = []) {\n if (otherLabels.length === 0) {\n // If there is no filtering, we use getLabelKeys because it has better caching\n // and all labels should already be fetched\n await this.languageProvider.start(this.timeRange);\n return this.languageProvider.getLabelKeys();\n }\n const possibleLabelNames = await this.languageProvider.fetchLabels({\n streamSelector: this.buildSelector(otherLabels),\n timeRange: this.timeRange,\n });\n const usedLabelNames = new Set(otherLabels.map((l) => l.name)); // names used in the query\n return possibleLabelNames.filter((label) => !usedLabelNames.has(label));\n }\n\n async getLabelValues(labelName: string, otherLabels: Label[]) {\n return await this.languageProvider.fetchLabelValues(labelName, {\n streamSelector: this.buildSelector(otherLabels),\n timeRange: this.timeRange,\n });\n }\n\n /**\n * Runs a Loki query to extract label keys from the result.\n * The result is cached for the query string.\n *\n * Since various \"situations\" in the monaco code editor trigger this function, it is prone to being called multiple times for the same query\n * Here is a lightweight and simple cache to avoid calling the backend multiple times for the same query.\n *\n * @param logQuery\n */\n async getParserAndLabelKeys(logQuery: string): Promise<ParserAndLabelKeysResult> {\n const EXTRACTED_LABEL_KEYS_MAX_CACHE_SIZE = 2;\n const cachedLabelKeys = this.queryToLabelKeysCache.has(logQuery) ? this.queryToLabelKeysCache.get(logQuery) : null;\n if (cachedLabelKeys) {\n // cache hit! Serve stale result from cache\n return cachedLabelKeys;\n } else {\n // If cache is larger than max size, delete the first (oldest) index\n if (this.queryToLabelKeysCache.size >= EXTRACTED_LABEL_KEYS_MAX_CACHE_SIZE) {\n // Make room in the cache for the fresh result by deleting the \"first\" index\n const keys = this.queryToLabelKeysCache.keys();\n const firstKey = keys.next().value;\n if (firstKey !== undefined) {\n this.queryToLabelKeysCache.delete(firstKey);\n }\n }\n // Fetch a fresh result from the backend\n const labelKeys = await this.languageProvider.getParserAndLabelKeys(logQuery, { timeRange: this.timeRange });\n // Add the result to the cache\n this.queryToLabelKeysCache.set(logQuery, labelKeys);\n return labelKeys;\n }\n }\n}\n","// This helper class is used to make typescript warn you when you miss a case-block in a switch statement.\n// For example:\n//\n// const x:'A'|'B'|'C' = 'A';\n//\n// switch(x) {\n// case 'A':\n// // something\n// case 'B':\n// // something\n// default:\n// throw new NeverCaseError(x);\n// }\n//\n//\n// TypeScript detect the missing case and display an error.\n\nexport class NeverCaseError extends Error {\n constructor(value: never) {\n super(`Unexpected case in switch statement: ${JSON.stringify(value)}`);\n }\n}\n","import { trimEnd } from 'lodash';\n\nimport { escapeLabelValueInExactSelector } from '../../../languageUtils';\nimport { isQueryWithParser } from '../../../queryUtils';\nimport { explainOperator } from '../../../querybuilder/operations';\nimport { LokiOperationId } from '../../../querybuilder/types';\nimport { AGGREGATION_OPERATORS, RANGE_VEC_FUNCTIONS, BUILT_IN_FUNCTIONS } from '../../../syntax';\n\nimport { CompletionDataProvider } from './CompletionDataProvider';\nimport { NeverCaseError } from './NeverCaseError';\nimport type { Situation, Label } from './situation';\n\nexport type CompletionType =\n | 'HISTORY'\n | 'FUNCTION'\n | 'DURATION'\n | 'LABEL_NAME'\n | 'LABEL_VALUE'\n | 'PATTERN'\n | 'PARSER'\n | 'LINE_FILTER'\n | 'PIPE_OPERATION';\n\ntype Completion = {\n type: CompletionType;\n label: string;\n insertText: string;\n detail?: string;\n documentation?: string;\n triggerOnInsert?: boolean;\n isSnippet?: boolean;\n};\n\nconst LOG_COMPLETIONS: Completion[] = [\n {\n type: 'PATTERN',\n label: '{}',\n insertText: '{$0}',\n isSnippet: true,\n triggerOnInsert: true,\n },\n];\n\nconst AGGREGATION_COMPLETIONS: Completion[] = AGGREGATION_OPERATORS.map((f) => ({\n type: 'FUNCTION',\n label: f.label,\n insertText: `${f.insertText ?? ''}($0)`, // i don't know what to do when this is nullish. it should not be.\n isSnippet: true,\n triggerOnInsert: true,\n detail: f.detail,\n documentation: f.documentation,\n}));\n\nconst FUNCTION_COMPLETIONS: Completion[] = RANGE_VEC_FUNCTIONS.map((f) => ({\n type: 'FUNCTION',\n label: f.label,\n insertText: `${f.insertText ?? ''}({$0}[\\\\$__auto])`, // i don't know what to do when this is nullish. it should not be.\n isSnippet: true,\n triggerOnInsert: true,\n detail: f.detail,\n documentation: f.documentation,\n}));\n\nconst BUILT_IN_FUNCTIONS_COMPLETIONS: Completion[] = BUILT_IN_FUNCTIONS.map((f) => ({\n type: 'FUNCTION',\n label: f.label,\n insertText: `${f.insertText ?? ''}($0)`,\n isSnippet: true,\n triggerOnInsert: true,\n detail: f.detail,\n documentation: f.documentation,\n}));\n\nconst DURATION_COMPLETIONS: Completion[] = ['$__auto', '1m', '5m', '10m', '30m', '1h', '1d'].map((text) => ({\n type: 'DURATION',\n label: text,\n insertText: text,\n}));\n\nconst UNWRAP_FUNCTION_COMPLETIONS: Completion[] = [\n {\n type: 'FUNCTION',\n label: 'duration_seconds',\n documentation: 'Will convert the label value in seconds from the go duration format (e.g 5m, 24s30ms).',\n insertText: 'duration_seconds()',\n },\n {\n type: 'FUNCTION',\n label: 'duration',\n documentation: 'Short version of duration_seconds().',\n insertText: 'duration()',\n },\n {\n type: 'FUNCTION',\n label: 'bytes',\n documentation: 'Will convert the label value to raw bytes applying the bytes unit (e.g. 5 MiB, 3k, 1G).',\n insertText: 'bytes()',\n },\n];\n\nconst LOGFMT_ARGUMENT_COMPLETIONS: Completion[] = [\n {\n type: 'FUNCTION',\n label: '--strict',\n documentation:\n 'Strict parsing. The logfmt parser stops scanning the log line and returns early with an error when it encounters any poorly formatted key/value pair.',\n insertText: '--strict',\n },\n {\n type: 'FUNCTION',\n label: '--keep-empty',\n documentation:\n 'Retain standalone keys with empty value. The logfmt parser retains standalone keys (keys without a value) as labels with value set to empty string.',\n insertText: '--keep-empty',\n },\n];\n\nconst LINE_FILTER_COMPLETIONS = [\n {\n operator: '|=',\n documentation: explainOperator(LokiOperationId.LineContains),\n afterPipe: true,\n },\n {\n operator: '!=',\n documentation: explainOperator(LokiOperationId.LineContainsNot),\n },\n {\n operator: '|~',\n documentation: explainOperator(LokiOperationId.LineMatchesRegex),\n afterPipe: true,\n },\n {\n operator: '!~',\n documentation: explainOperator(LokiOperationId.LineMatchesRegexNot),\n },\n];\n\nfunction getLineFilterCompletions(afterPipe: boolean): Completion[] {\n return LINE_FILTER_COMPLETIONS.filter((completion) => !afterPipe || completion.afterPipe).map(\n ({ operator, documentation }) => ({\n type: 'LINE_FILTER',\n label: `${operator} \"\"`,\n insertText: `${afterPipe ? operator.replace('|', '') : operator} \"$0\"`,\n isSnippet: true,\n documentation,\n })\n );\n}\n\nfunction getPipeOperationsCompletions(prefix = ''): Completion[] {\n const completions: Completion[] = [];\n completions.push({\n type: 'PIPE_OPERATION',\n label: 'line_format',\n insertText: `${prefix}line_format \"{{.$0}}\"`,\n isSnippet: true,\n documentation: explainOperator(LokiOperationId.LineFormat),\n });\n\n completions.push({\n type: 'PIPE_OPERATION',\n label: 'label_format',\n insertText: `${prefix}label_format`,\n isSnippet: true,\n documentation: explainOperator(LokiOperationId.LabelFormat),\n });\n\n completions.push({\n type: 'PIPE_OPERATION',\n label: 'unwrap',\n insertText: `${prefix}unwrap`,\n documentation: explainOperator(LokiOperationId.Unwrap),\n });\n\n completions.push({\n type: 'PIPE_OPERATION',\n label: 'decolorize',\n insertText: `${prefix}decolorize`,\n documentation: explainOperator(LokiOperationId.Decolorize),\n });\n\n completions.push({\n type: 'PIPE_OPERATION',\n label: 'drop',\n insertText: `${prefix}drop`,\n documentation: explainOperator(LokiOperationId.Drop),\n });\n\n completions.push({\n type: 'PIPE_OPERATION',\n label: 'keep',\n insertText: `${prefix}keep`,\n documentation: explainOperator(LokiOperationId.Keep),\n });\n\n return completions;\n}\n\nasync function getAllHistoryCompletions(dataProvider: CompletionDataProvider): Promise<Completion[]> {\n const history = await dataProvider.getHistory();\n\n return history.map((expr) => ({\n type: 'HISTORY',\n label: expr,\n insertText: expr,\n }));\n}\n\nasync function getLabelNamesForSelectorCompletions(\n otherLabels: Label[],\n dataProvider: CompletionDataProvider\n): Promise<Completion[]> {\n const labelNames = await dataProvider.getLabelNames(otherLabels);\n\n return labelNames.map((label) => ({\n type: 'LABEL_NAME',\n label,\n insertText: `${label}=`,\n triggerOnInsert: true,\n }));\n}\n\nasync function getInGroupingCompletions(logQuery: string, dataProvider: CompletionDataProvider): Promise<Completion[]> {\n const { extractedLabelKeys } = await dataProvider.getParserAndLabelKeys(logQuery);\n\n return extractedLabelKeys.map((label) => ({\n type: 'LABEL_NAME',\n label,\n insertText: label,\n triggerOnInsert: false,\n }));\n}\n\nconst PARSERS = ['json', 'logfmt', 'pattern', 'regexp', 'unpack'];\n\nasync function getParserCompletions(\n prefix: string,\n hasJSON: boolean,\n hasLogfmt: boolean,\n hasPack: boolean,\n extractedLabelKeys: string[],\n hasParserInQuery: boolean\n) {\n const allParsers = new Set(PARSERS);\n const completions: Completion[] = [];\n // We use this to improve documentation specifically for level label as it is tied to showing color-coded logs volume\n const hasLevelInExtractedLabels = extractedLabelKeys.some((key) => key === 'level');\n\n if (hasJSON) {\n // We show \"detected\" label only if there is no previous parser in the query\n const extra = hasParserInQuery ? '' : ' (detected)';\n if (hasPack) {\n allParsers.delete('unpack');\n completions.push({\n type: 'PARSER',\n label: `unpack${extra}`,\n insertText: `${prefix}unpack`,\n documentation: explainOperator(LokiOperationId.Unpack),\n });\n } else {\n allParsers.delete('json');\n completions.push({\n type: 'PARSER',\n label: `json${extra}`,\n insertText: `${prefix}json`,\n documentation: hasLevelInExtractedLabels\n ? 'Use it to get log-levels in the histogram'\n : explainOperator(LokiOperationId.Json),\n });\n }\n }\n\n if (hasLogfmt) {\n allParsers.delete('logfmt');\n // We show \"detected\" label only if there is no previous parser in the query\n const extra = hasParserInQuery ? '' : ' (detected)';\n completions.push({\n type: 'PARSER',\n label: `logfmt${extra}`,\n insertText: `${prefix}logfmt`,\n documentation: hasLevelInExtractedLabels\n ? 'Get detected levels in the histogram'\n : explainOperator(LokiOperationId.Logfmt),\n });\n }\n\n const remainingParsers = Array.from(allParsers).sort();\n remainingParsers.forEach((parser) => {\n completions.push({\n type: 'PARSER',\n label: parser,\n insertText: `${prefix}${parser}`,\n documentation: explainOperator(parser),\n });\n });\n\n return completions;\n}\n\nexport async function getAfterSelectorCompletions(\n logQuery: string,\n afterPipe: boolean,\n hasSpace: boolean,\n dataProvider: CompletionDataProvider\n): Promise<Completion[]> {\n let query = logQuery;\n if (afterPipe) {\n query = trimEnd(logQuery, '| ');\n }\n\n const { extractedLabelKeys, structuredMetadataKeys, hasJSON, hasLogfmt, hasPack } =\n await dataProvider.getParserAndLabelKeys(query);\n const hasQueryParser = isQueryWithParser(query).queryWithParser;\n\n const prefix = `${hasSpace ? '' : ' '}${afterPipe ? '' : '| '}`;\n\n const parserCompletions = await getParserCompletions(\n prefix,\n hasJSON,\n hasLogfmt,\n hasPack,\n extractedLabelKeys,\n hasQueryParser\n );\n const pipeOperations = getPipeOperationsCompletions(prefix);\n\n const completions = [...parserCompletions, ...pipeOperations];\n\n structuredMetadataKeys.forEach((key) => {\n completions.push({\n type: 'LABEL_NAME',\n label: `${key} (detected)`,\n insertText: `${prefix}${key}`,\n documentation: `\"${key}\" was suggested based on structured metadata attached to your loglines.`,\n });\n });\n\n // Let's show label options only if query has parser\n if (hasQueryParser) {\n extractedLabelKeys.forEach((key) => {\n completions.push({\n type: 'LABEL_NAME',\n label: `${key} (detected)`,\n insertText: `${prefix}${key}`,\n documentation: `\"${key}\" was suggested based on the content of your log lines for the label filter expression.`,\n });\n });\n }\n\n // If we have parser, we don't need to consider line filters\n if (hasQueryParser) {\n return [...completions];\n }\n // With a space between the pipe and the cursor, we omit line filters\n // E.g. `{label=\"value\"} | `\n const lineFilters = afterPipe && hasSpace ? [] : getLineFilterCompletions(afterPipe);\n return [...lineFilters, ...completions];\n}\n\nexport async function getLogfmtCompletions(\n logQuery: string,\n flags: boolean,\n trailingComma: boolean | undefined,\n trailingSpace: boolean | undefined,\n otherLabels: string[],\n dataProvider: CompletionDataProvider\n): Promise<Completion[]> {\n let completions: Completion[] = [];\n\n if (trailingComma) {\n // Remove the trailing comma, otherwise the sample query will fail.\n logQuery = trimEnd(logQuery, ', ');\n }\n const { extractedLabelKeys, hasJSON, hasLogfmt, hasPack } = await dataProvider.getParserAndLabelKeys(logQuery);\n const pipeOperations = getPipeOperationsCompletions('| ');\n\n /**\n * The user is not in the process of writing another label, and has not specified 2 flags.\n * The current grammar doesn't allow us to know which flags were used (by node name), so we consider flags = true\n * when 2 have been used.\n * For example:\n * - {label=\"value\"} | logfmt ^\n * - {label=\"value\"} | logfmt --strict ^\n * - {label=\"value\"} | logfmt --strict --keep-empty ^\n */\n if (!trailingComma && !flags) {\n completions = [...LOGFMT_ARGUMENT_COMPLETIONS];\n }\n\n /**\n * If the user has no trailing comma and has a trailing space it can mean that they finished writing the logfmt\n * part and want to move on, for example, with other parsers or pipe operations.\n * For example:\n * - {label=\"value\"} | logfmt --flag ^\n * - {label=\"value\"} | logfmt label, label2 ^\n */\n if (!trailingComma && trailingSpace) {\n /**\n * Don't offer parsers if there is no label argument: {label=\"value\"} | logfmt ^\n * The reason is that it would be unusual that they would want to use another parser just after logfmt, and\n * more likely that they would want a flag, labels, or continue with pipe operations.\n *\n * Offer parsers with at least one label argument: {label=\"value\"} | logfmt label ^\n * The rationale here is to offer the same completions as getAfterSelectorCompletions().\n */\n const parserCompletions =\n otherLabels.length > 0\n ? await getParserCompletions('| ', hasJSON, hasLogfmt, hasPack, extractedLabelKeys, true)\n : [];\n completions = [...completions, ...parserCompletions, ...pipeOperations];\n }\n\n const labels = extractedLabelKeys.filter((label) => !otherLabels.includes(label));\n\n /**\n * We want to decide whether to use a trailing comma or not based on the data we have of the current\n * situation. In particular, the following scenarios will not lead to a trailing comma:\n * {label=\"value\"} | logfmt ^\n * - trailingSpace: true, trailingComma: false, otherLabels: []\n * {label=\"value\"} | logfmt lab^\n * trailingSpace: false, trailignComma: false, otherLabels: [lab]\n * {label=\"value\"} | logfmt label,^\n * trailingSpace: false, trailingComma: true, otherLabels: [label]\n * {label=\"value\"} | logfmt label, ^\n * trailingSpace: true, trailingComma: true, otherLabels: [label]\n */\n let labelPrefix = '';\n if (otherLabels.length > 0 && trailingSpace) {\n labelPrefix = trailingComma ? '' : ', ';\n }\n\n const labelCompletions: Completion[] = labels.map((label) => ({\n type: 'LABEL_NAME',\n label,\n insertText: labelPrefix + label,\n triggerOnInsert: false,\n }));\n\n completions = [...completions, ...labelCompletions];\n\n return completions;\n}\n\nasync function getLabelValuesForMetricCompletions(\n labelName: string,\n betweenQuotes: boolean,\n otherLabels: Label[],\n dataProvider: CompletionDataProvider\n): Promise<Completion[]> {\n const values = await dataProvider.getLabelValues(labelName, otherLabels);\n return values.map((text) => ({\n type: 'LABEL_VALUE',\n label: text,\n insertText: betweenQuotes ? escapeLabelValueInExactSelector(text) : `\"${escapeLabelValueInExactSelector(text)}\"`,\n }));\n}\n\nasync function getAfterUnwrapCompletions(\n logQuery: string,\n dataProvider: CompletionDataProvider\n): Promise<Completion[]> {\n const { unwrapLabelKeys } = await dataProvider.getParserAndLabelKeys(logQuery);\n\n const labelCompletions: Completion[] = unwrapLabelKeys.map((label) => ({\n type: 'LABEL_NAME',\n label,\n insertText: label,\n triggerOnInsert: false,\n }));\n\n return [...labelCompletions, ...UNWRAP_FUNCTION_COMPLETIONS];\n}\n\nasync function getAfterKeepAndDropCompletions(logQuery: string, dataProvider: CompletionDataProvider) {\n const { extractedLabelKeys } = await dataProvider.getParserAndLabelKeys(logQuery);\n const labelCompletions: Completion[] = extractedLabelKeys.map((label) => ({\n type: 'LABEL_NAME',\n label,\n insertText: label,\n triggerOnInsert: false,\n }));\n\n return [...labelCompletions];\n}\n\nexport async function getCompletions(\n situation: Situation,\n dataProvider: CompletionDataProvider\n): Promise<Completion[]> {\n switch (situation.type) {\n case 'EMPTY':\n case 'AT_ROOT':\n const historyCompletions = await getAllHistoryCompletions(dataProvider);\n return [\n ...historyCompletions,\n ...LOG_COMPLETIONS,\n ...AGGREGATION_COMPLETIONS,\n ...BUILT_IN_FUNCTIONS_COMPLETIONS,\n ...FUNCTION_COMPLETIONS,\n ];\n case 'IN_RANGE':\n return DURATION_COMPLETIONS;\n case 'IN_GROUPING':\n return getInGroupingCompletions(situation.logQuery, dataProvider);\n case 'IN_LABEL_SELECTOR_NO_LABEL_NAME':\n return getLabelNamesForSelectorCompletions(situation.otherLabels, dataProvider);\n case 'IN_LABEL_SELECTOR_WITH_LABEL_NAME':\n return getLabelValuesForMetricCompletions(\n situation.labelName,\n situation.betweenQuotes,\n situation.otherLabels,\n dataProvider\n );\n case 'AFTER_SELECTOR':\n return getAfterSelectorCompletions(situation.logQuery, situation.afterPipe, situation.hasSpace, dataProvider);\n case 'AFTER_UNWRAP':\n return getAfterUnwrapCompletions(situation.logQuery, dataProvider);\n case 'IN_AGGREGATION':\n return [...FUNCTION_COMPLETIONS, ...AGGREGATION_COMPLETIONS];\n case 'AFTER_KEEP_AND_DROP':\n return getAfterKeepAndDropCompletions(situation.logQuery, dataProvider);\n case 'IN_LOGFMT':\n return getLogfmtCompletions(\n situation.logQuery,\n situation.flags,\n situation.trailingComma,\n situation.trailingSpace,\n situation.otherLabels,\n dataProvider\n );\n default:\n throw new NeverCaseError(situation);\n }\n}\n","import type { SyntaxNode, TreeCursor } from '@lezer/common';\n\nimport {\n parser,\n VectorAggregationExpr,\n String,\n Selector,\n RangeAggregationExpr,\n Range,\n PipelineExpr,\n PipelineStage,\n Matchers,\n Matcher,\n LogQL,\n LogRangeExpr,\n LogExpr,\n Logfmt,\n Identifier,\n Grouping,\n Expr,\n LiteralExpr,\n MetricExpr,\n UnwrapExpr,\n DropLabelsExpr,\n KeepLabelsExpr,\n DropLabels,\n KeepLabels,\n ParserFlag,\n LabelExtractionExpression,\n LabelExtractionExpressionList,\n LogfmtExpressionParser,\n} from '@grafana/lezer-logql';\n\nimport { getLogQueryFromMetricsQueryAtPosition, getNodesFromQuery } from '../../../queryUtils';\n\ntype Direction = 'parent' | 'firstChild' | 'lastChild' | 'nextSibling';\ntype NodeType = number;\n\ntype Path = Array<[Direction, NodeType]>;\n\nfunction move(node: SyntaxNode, direction: Direction): SyntaxNode | null {\n return node[direction];\n}\n\n/**\n * Iteratively calls walk with given path until it returns null, then we return the last non-null node.\n * @param node\n * @param path\n */\nfunction traverse(node: SyntaxNode, path: Path): SyntaxNode | null {\n let current: SyntaxNode | null = node;\n let next = walk(current, path);\n while (next) {\n let nextTmp = walk(next, path);\n if (nextTmp) {\n next = nextTmp;\n } else {\n return next;\n }\n }\n return null;\n}\n\n/**\n * Walks a single step from the provided node, following the path.\n * @param node\n * @param path\n */\nfunction walk(node: SyntaxNode, path: Path): SyntaxNode | null {\n let current: SyntaxNode | null = node;\n for (const [direction, expectedNode] of path) {\n current = move(current, direction);\n if (current === null) {\n // we could not move in the direction, we stop\n return null;\n }\n if (current.type.id !== expectedNode) {\n // the reached node has wrong type, we stop\n return null;\n }\n }\n return current;\n}\n\nfunction getNodeText(node: SyntaxNode, text: string): string {\n return text.slice(node.from, node.to);\n}\n\nfunction parseStringLiteral(text: string): string {\n // If it is a string-literal, it is inside quotes of some kind\n const inside = text.slice(1, text.length - 1);\n\n // Very simple un-escaping:\n\n // Double quotes\n if (text.startsWith('\"') && text.endsWith('\"')) {\n // NOTE: this is not 100% perfect, we only unescape the double-quote,\n // there might be other characters too\n return inside.replace(/\\\\\"/gm, '\"');\n }\n\n // Single quotes\n if (text.startsWith(\"'\") && text.endsWith(\"'\")) {\n // NOTE: this is not 100% perfect, we only unescape the single-quote,\n // there might be other characters too\n return inside.replace(/\\\\'/gm, \"'\");\n }\n\n // Backticks\n if (text.startsWith('`') && text.endsWith('`')) {\n return inside;\n }\n\n throw new Error(`Invalid string literal: ${text}`);\n}\n\nexport type LabelOperator = '=' | '!=' | '=~' | '!~';\n\nexport type Label = {\n name: string;\n value: string;\n op: LabelOperator;\n};\n\nexport type Situation =\n | {\n type: 'EMPTY';\n }\n | {\n type: 'AT_ROOT';\n }\n | {\n type: 'IN_LOGFMT';\n otherLabels: string[];\n flags: boolean;\n trailingSpace: boolean;\n trailingComma: boolean;\n logQuery: string;\n }\n | {\n type: 'IN_RANGE';\n }\n | {\n type: 'IN_AGGREGATION';\n }\n | {\n type: 'IN_GROUPING';\n logQuery: string;\n }\n | {\n type: 'IN_LABEL_SELECTOR_NO_LABEL_NAME';\n otherLabels: Label[];\n }\n | {\n type: 'IN_LABEL_SELECTOR_WITH_LABEL_NAME';\n labelName: string;\n betweenQuotes: boolean;\n otherLabels: Label[];\n }\n | {\n type: 'AFTER_SELECTOR';\n afterPipe: boolean;\n hasSpace: boolean;\n logQuery: string;\n }\n | {\n type: 'AFTER_UNWRAP';\n logQuery: string;\n }\n | {\n type: 'AFTER_KEEP_AND_DROP';\n logQuery: string;\n };\n\ntype Resolver = {\n paths: NodeType[][];\n fun: (node: SyntaxNode, text: string, pos: number) => Situation | null;\n};\n\nfunction isPathMatch(resolverPath: NodeType[], cursorPath: number[]): boolean {\n return resolverPath.every((item, index) => item === cursorPath[index]);\n}\n\nconst ERROR_NODE_ID = 0;\n\nconst RESOLVERS: Resolver[] = [\n {\n paths: [\n [Selector],\n [Selector, Matchers],\n [Matchers],\n [ERROR_NODE_ID, Matchers],\n [ERROR_NODE_ID, Matchers, Selector],\n ],\n fun: resolveSelector,\n },\n {\n paths: [\n [LogQL],\n [RangeAggregationExpr],\n [ERROR_NODE_ID, LogRangeExpr, RangeAggregationExpr],\n [ERROR_NODE_ID, LabelExtractionExpressionList],\n [LogRangeExpr],\n [ERROR_NODE_ID, LabelExtractionExpressionList],\n [LabelExtractionExpressionList],\n [LogfmtExpressionParser],\n ],\n fun: resolveLogfmtParser,\n },\n {\n paths: [[LogQL], [ERROR_NODE_ID, Selector]],\n fun: resolveTopLevel,\n },\n {\n paths: [[String, Matcher]],\n fun: resolveMatcher,\n },\n {\n paths: [[Grouping]],\n fun: resolveLabelsForGrouping,\n },\n {\n paths: [[LogRangeExpr]],\n fun: resolveLogRange,\n },\n {\n paths: [\n [ERROR_NODE_ID, Matcher],\n [ERROR_NODE_ID, Matchers, Selector],\n ],\n fun: resolveMatcher,\n },\n {\n paths: [[ERROR_NODE_ID, Range]],\n fun: resolveDurations,\n },\n {\n paths: [[ERROR_NODE_ID, LogRangeExpr]],\n fun: resolveLogRangeFromError,\n },\n {\n paths: [[ERROR_NODE_ID, LiteralExpr, MetricExpr, VectorAggregationExpr]],\n fun: () => ({ type: 'IN_AGGREGATION' }),\n },\n {\n paths: [\n [ERROR_NODE_ID, PipelineStage, PipelineExpr],\n [PipelineStage, PipelineExpr],\n ],\n fun: resolvePipeError,\n },\n {\n paths: [[ERROR_NODE_ID, UnwrapExpr], [UnwrapExpr]],\n fun: resolveAfterUnwrap,\n },\n {\n paths: [\n [ERROR_NODE_ID, DropLabelsExpr],\n [ERROR_NODE_ID, DropLabels],\n [ERROR_NODE_ID, KeepLabelsExpr],\n [ERROR_NODE_ID, KeepLabels],\n ],\n fun: resolveAfterKeepAndDrop,\n },\n];\n\nconst LABEL_OP_MAP = new Map<string, LabelOperator>([\n ['Eq', '='],\n ['Re', '=~'],\n ['Neq', '!='],\n ['Nre', '!~'],\n]);\n\nfunction getLabelOp(opNode: SyntaxNode): LabelOperator | null {\n return LABEL_OP_MAP.get(opNode.name) ?? null;\n}\n\nfunction getLabel(matcherNode: SyntaxNode, text: string): Label | null {\n if (matcherNode.type.id !== Matcher) {\n return null;\n }\n\n const nameNode = walk(matcherNode, [['firstChild', Identifier]]);\n\n if (nameNode === null) {\n return null;\n }\n\n const opNode = nameNode.nextSibling;\n if (opNode === null) {\n return null;\n }\n\n const op = getLabelOp(opNode);\n if (op === null) {\n return null;\n }\n\n const valueNode = walk(matcherNode, [['lastChild', String]]);\n\n if (valueNode === null) {\n return null;\n }\n\n const name = getNodeText(nameNode, text);\n const value = parseStringLiteral(getNodeText(valueNode, text));\n\n return { name, value, op };\n}\n\nfunction getLabels(selectorNode: SyntaxNode, text: string): Label[] {\n if (selectorNode.type.id !== Selector && selectorNode.type.id !== Matchers) {\n return [];\n }\n\n let listNode: SyntaxNode | null = null;\n\n // If parent node is selector, we want to start with the current Matcher node\n if (selectorNode?.parent?.type.id === Selector) {\n listNode = selectorNode;\n } else {\n // Parent node needs to be returned first because otherwise both of the other walks will return a non-null node and this function will return the labels on the left side of the current node, the other two walks should be mutually exclusive when the parent is null\n listNode =\n // Node in-between labels\n traverse(selectorNode, [['parent', Matchers]]) ??\n // Node after all other labels\n walk(selectorNode, [['firstChild', Matchers]]) ??\n // Node before all other labels\n walk(selectorNode, [['lastChild', Matchers]]);\n }\n\n const labels: Label[] = [];\n\n while (listNode !== null) {\n const matcherNode = walk(listNode, [['lastChild', Matcher]]);\n if (matcherNode !== null) {\n const label = getLabel(matcherNode, text);\n if (label !== null) {\n labels.push(label);\n }\n }\n\n // there might be more labels\n listNode = walk(listNode, [['firstChild', Matchers]]);\n }\n\n // our labels-list is last-first, so we reverse it\n labels.reverse();\n\n return labels;\n}\n\nfunction resolveAfterUnwrap(node: SyntaxNode, text: string, pos: number): Situation | null {\n return {\n type: 'AFTER_UNWRAP',\n logQuery: getLogQueryFromMetricsQueryAtPosition(text, pos).trim(),\n };\n}\n\nfunction resolvePipeError(node: SyntaxNode, text: string, pos: number): Situation | null {\n /**\n * Examples:\n * - {level=\"info\"} |^\n * - count_over_time({level=\"info\"} |^ [4m])\n */\n let exprNode: SyntaxNode | null = null;\n if (node.type.id === ERROR_NODE_ID) {\n exprNode = walk(node, [\n ['parent', PipelineStage],\n ['parent', PipelineExpr],\n ]);\n } else if (node.type.id === PipelineStage) {\n exprNode = walk(node, [['parent', PipelineExpr]]);\n }\n\n if (exprNode?.parent?.type.id === LogExpr || exprNode?.parent?.type.id === LogRangeExpr) {\n return resolveLogOrLogRange(exprNode.parent, text, pos, true);\n }\n\n return null;\n}\n\nfunction resolveLabelsForGrouping(node: SyntaxNode, text: string, pos: number): Situation | null {\n const aggrExpNode = walk(node, [['parent', VectorAggregationExpr]]);\n if (aggrExpNode === null) {\n return null;\n }\n const bodyNode = aggrExpNode.getChild('MetricExpr');\n if (bodyNode === null) {\n return null;\n }\n\n const selectorNode = walk(bodyNode, [\n ['firstChild', RangeAggregationExpr],\n ['lastChild', LogRangeExpr],\n ['firstChild', Selector],\n ]);\n\n if (selectorNode === null) {\n return null;\n }\n\n return {\n type: 'IN_GROUPING',\n logQuery: getLogQueryFromMetricsQueryAtPosition(text, pos).trim(),\n };\n}\n\nfunction resolveMatcher(node: SyntaxNode, text: string, pos: number): Situation | null {\n // we can arrive here for two reasons. `node` is either:\n // - a StringNode (like in `{job=\"^\"}`)\n // - or an error node (like in `{job=^}`)\n const inStringNode = !node.type.isError;\n\n const parent = walk(node, [['parent', Matcher]]);\n if (parent === null) {\n return null;\n }\n\n const labelNameNode = walk(parent, [['firstChild', Identifier]]);\n if (labelNameNode === null) {\n return null;\n }\n\n const labelName = getNodeText(labelNameNode, text);\n\n // now we need to go up, to the parent of Matcher,\n // there can be one or many `Matchers` parents, we have\n // to go through all of them\n\n const firstListNode = walk(parent, [['parent', Matchers]]);\n if (firstListNode === null) {\n return null;\n }\n\n let listNode = firstListNode;\n\n // we keep going through the parent-nodes as long as they are Matchers.\n // as soon as we reach Selector, we stop\n let selectorNode: SyntaxNode | null = null;\n while (selectorNode === null) {\n const parent = listNode.parent;\n if (parent === null) {\n return null;\n }\n\n switch (parent.type.id) {\n case Matchers:\n //we keep looping\n listNode = parent;\n continue;\n case Selector:\n // we reached the end, we can stop the loop\n selectorNode = parent;\n continue;\n default:\n // we reached some other node, we stop\n return null;\n }\n }\n\n // now we need to find the other names\n const allLabels = getLabels(selectorNode, text);\n\n // we need to remove \"our\" label from all-labels, if it is in there\n const otherLabels = allLabels.filter((label) => label.name !== labelName);\n\n return {\n type: 'IN_LABEL_SELECTOR_WITH_LABEL_NAME',\n labelName,\n betweenQuotes: inStringNode,\n otherLabels,\n };\n}\n\nfunction resolveLogfmtParser(_: SyntaxNode, text: string, cursorPosition: number): Situation | null {\n // We want to know if the cursor if after a log query with logfmt parser.\n // E.g. `{x=\"y\"} | logfmt ^`\n /**\n * Wait until the user adds a space to be sure of what the last identifier is. Otherwise\n * it creates suggestion bugs with queries like {label=\"value\"} | parser^ suggest \"parser\"\n * and it can be inserted with extra pipes or commas.\n */\n const tree = parser.parse(text);\n\n // Adjust the cursor position if there are spaces at the end of the text.\n const trimRightTextLen = text.substring(0, cursorPosition).trimEnd().length;\n const position = trimRightTextLen < cursorPosition ? trimRightTextLen : cursorPosition;\n\n const cursor = tree.cursorAt(position);\n\n // Check if the user cursor is in any node that requires logfmt suggestions.\n const expectedNodes = [Logfmt, ParserFlag, LabelExtractionExpression, LabelExtractionExpressionList];\n let inLogfmt = false;\n do {\n const { node } = cursor;\n if (!expectedNodes.includes(node.type.id)) {\n continue;\n }\n if (cursor.from <= position && cursor.to >= position) {\n inLogfmt = true;\n break;\n }\n } while (cursor.next());\n\n if (!inLogfmt) {\n return null;\n }\n\n const flags = getNodesFromQuery(text, [ParserFlag]).length > 1;\n const labelNodes = getNodesFromQuery(text, [LabelExtractionExpression]);\n const otherLabels = labelNodes\n .map((label: SyntaxNode) => label.getChild(Identifier))\n .filter((label: SyntaxNode | null): label is SyntaxNode => label !== null)\n .map((label: SyntaxNode) => getNodeText(label, text));\n\n const logQuery = getLogQueryFromMetricsQueryAtPosition(text, position).trim();\n const trailingSpace = text.charAt(cursorPosition - 1) === ' ';\n const trailingComma = text.trimEnd().charAt(position - 1) === ',';\n\n return {\n type: 'IN_LOGFMT',\n otherLabels,\n flags,\n trailingSpace,\n trailingComma,\n logQuery,\n };\n}\n\nfunction resolveTopLevel(node: SyntaxNode, text: string, pos: number): Situation | null {\n /**\n * The following queries trigger resolveTopLevel().\n * - Empty query\n * - {label=\"value\"} ^\n * - {label=\"value\"} | parser ^\n * From here, we need to determine if the user is in a resolveLogOrLogRange() or simply at the root.\n */\n const logExprNode = walk(node, [\n ['lastChild', Expr],\n ['lastChild', LogExpr],\n ]);\n\n /**\n * Wait until the user adds a space to be sure of what the last identifier is. Otherwise\n * it creates suggestion bugs with queries like {label=\"value\"} | parser^ suggest \"parser\"\n * and it can be inserted with extra pipes.\n */\n if (logExprNode != null && text.endsWith(' ')) {\n return resolveLogOrLogRange(logExprNode, text, pos, false);\n }\n\n // `s` situation, with the cursor at the end.\n // (basically, user enters a non-special characters as first\n // character in query field)\n const idNode = walk(node, [\n ['firstChild', ERROR_NODE_ID],\n ['firstChild', Identifier],\n ]);\n\n if (idNode != null) {\n return {\n type: 'AT_ROOT',\n };\n }\n\n // no patterns match\n return null;\n}\n\nfunction resolveDurations(node: SyntaxNode, text: string, pos: number): Situation {\n return {\n type: 'IN_RANGE',\n };\n}\n\nfunction resolveLogRange(node: SyntaxNode, text: string, pos: number): Situation | null {\n const partialQuery = text.substring(0, pos).trimEnd();\n const afterPipe = partialQuery.endsWith('|');\n\n return resolveLogOrLogRange(node, text, pos, afterPipe);\n}\n\nfunction resolveLogRangeFromError(node: SyntaxNode, text: string, pos: number): Situation | null {\n const parent = walk(node, [['parent', LogRangeExpr]]);\n if (parent === null) {\n return null;\n }\n\n const partialQuery = text.substring(0, pos).trimEnd();\n const afterPipe = partialQuery.endsWith('|');\n\n return resolveLogOrLogRange(parent, text, pos, afterPipe);\n}\n\nfunction resolveLogOrLogRange(node: SyntaxNode, text: string, pos: number, afterPipe: boolean): Situation | null {\n // Here the `node` is either a LogExpr or a LogRangeExpr\n // We want to handle the case where we are next to a selector\n const selectorNode = walk(node, [['firstChild', Selector]]);\n\n // Check that the selector is before the cursor, not after it\n if (!selectorNode || selectorNode.to > pos) {\n return null;\n }\n\n return {\n type: 'AFTER_SELECTOR',\n afterPipe,\n hasSpace: text.charAt(pos - 1) === ' ',\n logQuery: getLogQueryFromMetricsQueryAtPosition(text, pos).trim(),\n };\n}\n\nfunction resolveSelector(node: SyntaxNode, text: string, pos: number): Situation | null {\n // for example `{^}`\n\n // false positive:\n // `{a=\"1\"^}`\n const child = walk(node, [['firstChild', Matchers]]);\n if (child !== null) {\n // means the label-matching part contains at least one label already.\n //\n // in this case, we will need to have a `,` character at the end,\n // to be able to suggest adding the next label.\n // the area between the end-of-the-child-node and the cursor-pos\n // must contain a `,` in this case.\n const textToCheck = text.slice(child.from, pos);\n if (!textToCheck.trim().endsWith(',')) {\n return null;\n }\n }\n\n const selectorNode = node.type.id === ERROR_NODE_ID ? walk(node, [['parent', Matchers]]) : node;\n if (!selectorNode) {\n return null;\n }\n\n const otherLabels = getLabels(selectorNode, text);\n\n return {\n type: 'IN_LABEL_SELECTOR_NO_LABEL_NAME',\n otherLabels,\n };\n}\n\nfunction resolveAfterKeepAndDrop(node: SyntaxNode, text: string, pos: number): Situation | null {\n let logQuery = getLogQueryFromMetricsQueryAtPosition(text, pos).trim();\n let keepAndDropParent: SyntaxNode | null = null;\n let parent = node.parent;\n while (parent !== null) {\n if (parent.type.id === PipelineStage) {\n keepAndDropParent = parent;\n break;\n }\n parent = parent.parent;\n }\n\n if (keepAndDropParent?.type.id === PipelineStage) {\n logQuery = logQuery.slice(0, keepAndDropParent.from);\n }\n\n return {\n type: 'AFTER_KEEP_AND_DROP',\n logQuery,\n };\n}\n\n// If there is an error in the current cursor position, it's likely that the user is\n// in the middle of writing a query. If we can't find an error node, we use the node\n// at the cursor position to identify the situation.\nfunction resolveCursor(text: string, cursorPos: number): TreeCursor {\n // Sometimes the cursor is a couple spaces after the end of the expression.\n // To account for this situation, we \"move\" the cursor position back to the real end\n // of the expression.\n const trimRightTextLen = text.trimEnd().length;\n const pos = trimRightTextLen < cursorPos ? trimRightTextLen : cursorPos;\n\n const tree = parser.parse(text);\n const cursor = tree.cursorAt(pos);\n\n do {\n if (cursor.from === pos && cursor.to === pos && cursor.node.type.isError) {\n return cursor;\n }\n } while (cursor.next());\n\n return tree.cursorAt(pos);\n}\n\nexport function getSituation(text: string, pos: number): Situation | null {\n // there is a special case when we are at the start of writing text,\n // so we handle that case first\n\n if (text === '') {\n return {\n type: 'EMPTY',\n };\n }\n\n const cursor = resolveCursor(text, pos);\n const currentNode = cursor.node;\n\n const ids = [cursor.type.id];\n while (cursor.parent()) {\n ids.push(cursor.type.id);\n }\n\n for (let resolver of RESOLVERS) {\n for (let path of resolver.paths) {\n if (isPathMatch(path, ids)) {\n const situation = resolver.fun(currentNode, text, pos);\n if (situation) {\n return situation;\n }\n }\n }\n }\n\n return null;\n}\n","import type { Monaco, monacoTypes } from '@grafana/ui';\n\nimport { CompletionDataProvider } from './CompletionDataProvider';\nimport { NeverCaseError } from './NeverCaseError';\nimport { CompletionType, getCompletions } from './completions';\nimport { getSituation, Situation } from './situation';\n\n// from: monacoTypes.languages.CompletionItemInsertTextRule.InsertAsSnippet\nconst INSERT_AS_SNIPPET_ENUM_VALUE = 4;\n\nexport function getSuggestOptions(): monacoTypes.editor.ISuggestOptions {\n return {\n // monaco-editor sometimes provides suggestions automatically, i am not\n // sure based on what, seems to be by analyzing the words already\n // written.\n // to try it out:\n // - enter `go_goroutines{job~`\n // - have the cursor at the end of the string\n // - press ctrl-enter\n // - you will get two suggestions\n // those were not provided by grafana, they are offered automatically.\n // i want to remove those. the only way i found is:\n // - every suggestion-item has a `kind` attribute,\n // that controls the icon to the left of the suggestion.\n // - items auto-generated by monaco have `kind` set to `text`.\n // - we make sure grafana-provided suggestions do not have `kind` set to `text`.\n // - and then we tell monaco not to show suggestions of kind `text`\n showWords: false,\n };\n}\n\nfunction getMonacoCompletionItemKind(type: CompletionType, monaco: Monaco): monacoTypes.languages.CompletionItemKind {\n switch (type) {\n case 'DURATION':\n return monaco.languages.CompletionItemKind.Unit;\n case 'FUNCTION':\n return monaco.languages.CompletionItemKind.Variable;\n case 'HISTORY':\n return monaco.languages.CompletionItemKind.Snippet;\n case 'LABEL_NAME':\n return monaco.languages.CompletionItemKind.Enum;\n case 'LABEL_VALUE':\n return monaco.languages.CompletionItemKind.EnumMember;\n case 'PATTERN':\n return monaco.languages.CompletionItemKind.Constructor;\n case 'PARSER':\n return monaco.languages.CompletionItemKind.Class;\n case 'LINE_FILTER':\n return monaco.languages.CompletionItemKind.TypeParameter;\n case 'PIPE_OPERATION':\n return monaco.languages.CompletionItemKind.Interface;\n default:\n throw new NeverCaseError(type);\n }\n}\n\nexport function getCompletionProvider(\n monaco: Monaco,\n dataProvider: CompletionDataProvider\n): monacoTypes.languages.CompletionItemProvider {\n const provideCompletionItems = (\n model: monacoTypes.editor.ITextModel,\n position: monacoTypes.Position\n ): monacoTypes.languages.ProviderResult<monacoTypes.languages.CompletionList> => {\n const word = model.getWordAtPosition(position);\n const wordUntil = model.getWordUntilPosition(position);\n\n // documentation says `position` will be \"adjusted\" in `getOffsetAt`\n // i don't know what that means, to be sure i clone it\n const positionClone = {\n column: position.column,\n lineNumber: position.lineNumber,\n };\n const offset = model.getOffsetAt(positionClone);\n const situation = getSituation(model.getValue(), offset);\n const range = calculateRange(situation, word, wordUntil, monaco, position);\n const completionsPromise = situation != null ? getCompletions(situation, dataProvider) : Promise.resolve([]);\n return completionsPromise.then((items) => {\n // monaco by default alphabetically orders the items.\n // to stop it, we use a number-as-string sortkey,\n // so that monaco keeps the order we use\n const maxIndexDigits = items.length.toString().length;\n const suggestions: monacoTypes.languages.CompletionItem[] = items.map((item, index) => ({\n kind: getMonacoCompletionItemKind(item.type, monaco),\n label: item.label,\n insertText: item.insertText,\n insertTextRules: item.isSnippet ? INSERT_AS_SNIPPET_ENUM_VALUE : undefined,\n detail: item.detail,\n documentation: item.documentation,\n sortText: index.toString().padStart(maxIndexDigits, '0'), // to force the order we have\n range: range,\n command: item.triggerOnInsert\n ? {\n id: 'editor.action.triggerSuggest',\n title: '',\n }\n : undefined,\n }));\n return { suggestions };\n });\n };\n\n return {\n triggerCharacters: ['{', ',', '[', '(', '=', '~', ' ', '\"', '|'],\n provideCompletionItems,\n };\n}\n\nexport const calculateRange = (\n situation: Situation | null,\n word: monacoTypes.editor.IWordAtPosition | null,\n wordUntil: monacoTypes.editor.IWordAtPosition,\n monaco: Monaco,\n position: monacoTypes.Position\n): monacoTypes.Range => {\n if (\n situation &&\n situation?.type === 'IN_LABEL_SELECTOR_WITH_LABEL_NAME' &&\n 'betweenQuotes' in situation &&\n situation.betweenQuotes\n ) {\n // Word until won't have second quote if they are between quotes\n const indexOfFirstQuote = wordUntil?.word?.indexOf('\"') ?? 0;\n\n const indexOfLastQuote = word?.word?.lastIndexOf('\"') ?? 0;\n\n const indexOfEquals = word?.word.indexOf('=');\n const indexOfLastEquals = word?.word.lastIndexOf('=');\n\n // Just one equals \"=\" the cursor is somewhere within a label value\n // e.g. value=\"labe^l-value\" or value=\"^label-value\" etc\n // We want the word to include everything within the quotes, so the result from autocomplete overwrites the existing label value\n if (\n indexOfLastEquals === indexOfEquals &&\n indexOfFirstQuote !== -1 &&\n indexOfLastQuote !== -1 &&\n indexOfLastEquals !== -1\n ) {\n return word != null\n ? monaco.Range.lift({\n startLineNumber: position.lineNumber,\n endLineNumber: position.lineNumber,\n startColumn: wordUntil.startColumn + indexOfFirstQuote + 1,\n endColumn: wordUntil.startColumn + indexOfLastQuote,\n })\n : monaco.Range.fromPositions(position);\n }\n }\n\n if (situation && situation.type === 'IN_LABEL_SELECTOR_WITH_LABEL_NAME') {\n // Otherwise we want the range to be calculated as the cursor position, as we want to insert the autocomplete, instead of overwriting existing text\n // The cursor position is the length of the wordUntil\n return word != null\n ? monaco.Range.lift({\n startLineNumber: position.lineNumber,\n endLineNumber: position.lineNumber,\n startColumn: wordUntil.endColumn,\n endColumn: wordUntil.endColumn,\n })\n : monaco.Range.fromPositions(position);\n }\n\n // And for all other non-label cases, we want to use the word start and end column\n return word != null\n ? monaco.Range.lift({\n startLineNumber: position.lineNumber,\n endLineNumber: position.lineNumber,\n startColumn: word.startColumn,\n endColumn: word.endColumn,\n })\n : monaco.Range.fromPositions(position);\n};\n","import { css } from '@emotion/css';\nimport { debounce } from 'lodash';\nimport { useRef, useEffect } from 'react';\nimport { useLatest } from 'react-use';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { GrafanaTheme2 } from '@grafana/data';\nimport { selectors } from '@grafana/e2e-selectors';\nimport { parser } from '@grafana/lezer-logql';\nimport { languageConfiguration, monarchlanguage } from '@grafana/monaco-logql';\nimport { useTheme2, ReactMonacoEditor, Monaco, monacoTypes, MonacoEditor } from '@grafana/ui';\n\nimport { Props } from './MonacoQueryFieldProps';\nimport { getOverrideServices } from './getOverrideServices';\nimport { CompletionDataProvider } from './monaco-completion-provider/CompletionDataProvider';\nimport { getCompletionProvider, getSuggestOptions } from './monaco-completion-provider/completionUtils';\nimport { placeHolderScopedVars, validateQuery } from './monaco-completion-provider/validation';\n\nconst options: monacoTypes.editor.IStandaloneEditorConstructionOptions = {\n codeLens: false,\n contextmenu: false,\n // we need `fixedOverflowWidgets` because otherwise in grafana-dashboards\n // the popup is clipped by the panel-visualizations.\n fixedOverflowWidgets: true,\n folding: false,\n fontSize: 14,\n lineDecorationsWidth: 8, // used as \"padding-left\"\n lineNumbers: 'off',\n minimap: { enabled: false },\n overviewRulerBorder: false,\n overviewRulerLanes: 0,\n padding: {\n // these numbers were picked so that visually this matches the previous version\n // of the query-editor the best\n top: 4,\n bottom: 5,\n },\n renderLineHighlight: 'none',\n scrollbar: {\n vertical: 'hidden',\n verticalScrollbarSize: 8, // used as \"padding-right\"\n horizontal: 'hidden',\n horizontalScrollbarSize: 0,\n alwaysConsumeMouseWheel: false,\n },\n scrollBeyondLastLine: false,\n suggest: getSuggestOptions(),\n suggestFontSize: 12,\n wordWrap: 'on',\n};\n\n// this number was chosen by testing various values. it might be necessary\n// because of the width of the border, not sure.\n//it needs to do 2 things:\n// 1. when the editor is single-line, it should make the editor height be visually correct\n// 2. when the editor is multi-line, the editor should not be \"scrollable\" (meaning,\n// you do a scroll-movement in the editor, and it will scroll the content by a couple pixels\n// up & down. this we want to avoid)\nconst EDITOR_HEIGHT_OFFSET = 2;\n\nconst LANG_ID = 'logql';\n\n// we must only run the lang-setup code once\nlet LANGUAGE_SETUP_STARTED = false;\n\nexport const defaultWordPattern = /(-?\\d*\\.\\d\\w*)|([^`~!#%^&*()\\-=+\\[{\\]}\\\\|;:'\",.<>\\/?\\s]+)/g;\n\nfunction ensureLogQL(monaco: Monaco) {\n if (LANGUAGE_SETUP_STARTED === false) {\n LANGUAGE_SETUP_STARTED = true;\n monaco.languages.register({ id: LANG_ID });\n\n monaco.languages.setMonarchTokensProvider(LANG_ID, monarchlanguage);\n monaco.languages.setLanguageConfiguration(LANG_ID, {\n ...languageConfiguration,\n wordPattern: /(-?\\d*\\.\\d\\w*)|([^`~!#%^&*()+\\[{\\]}\\\\|;:',.<>\\/?\\s]+)/g,\n // Default: /(-?\\d*\\.\\d\\w*)|([^`~!#%^&*()\\-=+\\[{\\]}\\\\|;:'\",.<>\\/?\\s]+)/g\n // Removed `\"`, `=`, and `-`, from the exclusion list, so now the completion provider can decide to overwrite any matching words, or just insert text at the cursor\n });\n }\n}\n\nconst getStyles = (theme: GrafanaTheme2, placeholder: string) => {\n return {\n container: css({\n borderRadius: theme.shape.radius.default,\n border: `1px solid ${theme.components.input.borderColor}`,\n width: '100%',\n '.monaco-editor .suggest-widget': {\n minWidth: '50%',\n },\n overflow: 'hidden',\n }),\n placeholder: css({\n '::after': {\n content: `'${placeholder}'`,\n fontFamily: theme.typography.fontFamilyMonospace,\n opacity: 0.3,\n },\n }),\n };\n};\n\nconst MonacoQueryField = ({\n history,\n onBlur,\n onRunQuery,\n initialValue,\n datasource,\n placeholder,\n onChange,\n timeRange,\n}: Props) => {\n const id = uuidv4();\n // we need only one instance of `overrideServices` during the lifetime of the react component\n const overrideServicesRef = useRef(getOverrideServices());\n const containerRef = useRef<HTMLDivElement>(null);\n\n const langProviderRef = useLatest(datasource.languageProvider);\n const historyRef = useLatest(history);\n const onRunQueryRef = useLatest(onRunQuery);\n const onBlurRef = useLatest(onBlur);\n const completionDataProviderRef = useRef<CompletionDataProvider | null>(null);\n\n const autocompleteCleanupCallback = useRef<(() => void) | null>(null);\n\n const theme = useTheme2();\n const styles = getStyles(theme, placeholder);\n\n useEffect(() => {\n // when we unmount, we unregister the autocomplete-function, if it was registered\n return () => {\n autocompleteCleanupCallback.current?.();\n };\n }, []);\n\n useEffect(() => {\n if (completionDataProviderRef.current && timeRange) {\n completionDataProviderRef.current.setTimeRange(timeRange);\n }\n }, [timeRange]);\n\n const setPlaceholder = (monaco: Monaco, editor: MonacoEditor) => {\n const placeholderDecorators = [\n {\n range: new monaco.Range(1, 1, 1, 1),\n options: {\n className: styles.placeholder,\n isWholeLine: true,\n },\n },\n ];\n\n let decorators: string[] = [];\n\n const checkDecorators: () => void = () => {\n const model = editor.getModel();\n\n if (!model) {\n return;\n }\n\n const newDecorators = model.getValueLength() === 0 ? placeholderDecorators : [];\n decorators = model.deltaDecorations(decorators, newDecorators);\n };\n\n checkDecorators();\n editor.onDidChangeModelContent(checkDecorators);\n };\n\n const onTypeDebounced = debounce(async (query: string) => {\n onChange(query);\n }, 1000);\n\n return (\n <div\n data-testid={selectors.components.QueryField.container}\n className={styles.container}\n // NOTE: we will be setting inline-style-width/height on this element\n ref={containerRef}\n >\n <ReactMonacoEditor\n overrideServices={overrideServicesRef.current}\n options={options}\n language={LANG_ID}\n value={initialValue}\n beforeMount={(monaco) => {\n ensureLogQL(monaco);\n }}\n onMount={(editor, monaco) => {\n // Monaco has a bug where it runs actions on all instances (https://github.com/microsoft/monaco-editor/issues/2947), so we ensure actions are executed on instance-level with this ContextKey.\n const isEditorFocused = editor.createContextKey<boolean>('isEditorFocused' + id, false);\n // we setup on-blur\n editor.onDidBlurEditorWidget(() => {\n isEditorFocused.set(false);\n onBlurRef.current(editor.getValue());\n });\n editor.onDidChangeModelContent((e) => {\n const model = editor.getModel();\n if (!model) {\n return;\n }\n const query = model.getValue();\n const errors =\n validateQuery(\n query,\n datasource.interpolateString(query, placeHolderScopedVars),\n model.getLinesContent(),\n parser\n ) || [];\n\n const markers = errors.map(({ error, ...boundary }) => ({\n message: `${\n error ? `Error parsing \"${error}\"` : 'Parse error'\n }. The query appears to be incorrect and could fail to be executed.`,\n severity: monaco.MarkerSeverity.Error,\n ...boundary,\n }));\n\n onTypeDebounced(query);\n monaco.editor.setModelMarkers(model, 'owner', markers);\n });\n const dataProvider = new CompletionDataProvider(langProviderRef.current, historyRef, timeRange);\n completionDataProviderRef.current = dataProvider;\n const completionProvider = getCompletionProvider(monaco, dataProvider);\n\n // completion-providers in monaco are not registered directly to editor-instances,\n // they are registered to languages. this makes it hard for us to have\n // separate completion-providers for every query-field-instance\n // (but we need that, because they might connect to different datasources).\n // the trick we do is, we wrap the callback in a \"proxy\",\n // and in the proxy, the first thing is, we check if we are called from\n // \"our editor instance\", and if not, we just return nothing. if yes,\n // we call the completion-provider.\n const filteringCompletionProvider: monacoTypes.languages.CompletionItemProvider = {\n ...completionProvider,\n provideCompletionItems: (model, position, context, token) => {\n // if the model-id does not match, then this call is from a different editor-instance,\n // not \"our instance\", so return nothing\n if (editor.getModel()?.id !== model.id) {\n return { suggestions: [] };\n }\n return completionProvider.provideCompletionItems(model, position, context, token);\n },\n };\n\n const { dispose } = monaco.languages.registerCompletionItemProvider(LANG_ID, filteringCompletionProvider);\n\n autocompleteCleanupCallback.current = dispose;\n // this code makes the editor resize itself so that the content fits\n // (it will grow taller when necessary)\n // FIXME: maybe move this functionality into CodeEditor, like:\n // <CodeEditor resizingMode=\"single-line\"/>\n const handleResize = () => {\n const containerDiv = containerRef.current;\n if (containerDiv !== null) {\n const pixelHeight = editor.getContentHeight();\n containerDiv.style.height = `${pixelHeight + EDITOR_HEIGHT_OFFSET}px`;\n const pixelWidth = containerDiv.clientWidth;\n editor.layout({ width: pixelWidth, height: pixelHeight });\n }\n };\n\n editor.onDidContentSizeChange(handleResize);\n handleResize();\n // handle: shift + enter\n // FIXME: maybe move this functionality into CodeEditor?\n editor.addCommand(\n monaco.KeyMod.Shift | monaco.KeyCode.Enter,\n () => {\n onRunQueryRef.current(editor.getValue());\n },\n 'isEditorFocused' + id\n );\n\n // Fixes Monaco capturing the search key binding and displaying a useless search box within the Editor.\n // See https://github.com/grafana/grafana/issues/85850\n monaco.editor.addKeybindingRule({\n keybinding: monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyF,\n command: null,\n });\n\n editor.onDidFocusEditorText(() => {\n isEditorFocused.set(true);\n if (editor.getValue().trim() === '') {\n editor.trigger('', 'editor.action.triggerSuggest', {});\n }\n });\n\n setPlaceholder(monaco, editor);\n }}\n />\n </div>\n );\n};\n\n// Default export for lazy load.\nexport default MonacoQueryField;\n","import { useRef } from 'react';\nvar useLatest = function (value) {\n var ref = useRef(value);\n ref.current = value;\n return ref;\n};\nexport default useLatest;\n"],"names":["exports","aggregations","parsers","format_expressions","vector_aggregations","vector_matching","vectorMatchingRegex","prev","curr","operators","keywords","makeStorageService","strings","data","key","scope","fallbackValue","val","value","target","reason","overrideServices","getOverrideServices","CompletionDataProvider","languageProvider","historyRef","timeRange","labels","label","history","otherLabels","possibleLabelNames","usedLabelNames","l","labelName","logQuery","cachedLabelKeys","firstKey","labelKeys","NeverCaseError","LOG_COMPLETIONS","AGGREGATION_COMPLETIONS","f","FUNCTION_COMPLETIONS","BUILT_IN_FUNCTIONS_COMPLETIONS","DURATION_COMPLETIONS","text","UNWRAP_FUNCTION_COMPLETIONS","LOGFMT_ARGUMENT_COMPLETIONS","LINE_FILTER_COMPLETIONS","getLineFilterCompletions","afterPipe","completion","operator","documentation","getPipeOperationsCompletions","prefix","completions","getAllHistoryCompletions","dataProvider","expr","getLabelNamesForSelectorCompletions","getInGroupingCompletions","extractedLabelKeys","PARSERS","getParserCompletions","hasJSON","hasLogfmt","hasPack","hasParserInQuery","allParsers","hasLevelInExtractedLabels","extra","parser","getAfterSelectorCompletions","hasSpace","query","structuredMetadataKeys","hasQueryParser","parserCompletions","pipeOperations","getLogfmtCompletions","flags","trailingComma","trailingSpace","labelPrefix","labelCompletions","getLabelValuesForMetricCompletions","betweenQuotes","getAfterUnwrapCompletions","unwrapLabelKeys","getAfterKeepAndDropCompletions","getCompletions","situation","move","node","direction","traverse","path","next","walk","nextTmp","current","expectedNode","getNodeText","parseStringLiteral","inside","isPathMatch","resolverPath","cursorPath","item","index","ERROR_NODE_ID","RESOLVERS","resolveSelector","resolveLogfmtParser","resolveTopLevel","resolveMatcher","resolveLabelsForGrouping","resolveLogRange","resolveDurations","resolveLogRangeFromError","resolvePipeError","resolveAfterUnwrap","resolveAfterKeepAndDrop","LABEL_OP_MAP","getLabelOp","opNode","getLabel","matcherNode","nameNode","op","valueNode","name","getLabels","selectorNode","listNode","pos","exprNode","resolveLogOrLogRange","aggrExpNode","bodyNode","inStringNode","parent","labelNameNode","firstListNode","_","cursorPosition","tree","trimRightTextLen","position","cursor","expectedNodes","inLogfmt","logExprNode","child","keepAndDropParent","resolveCursor","cursorPos","getSituation","currentNode","ids","resolver","INSERT_AS_SNIPPET_ENUM_VALUE","getSuggestOptions","getMonacoCompletionItemKind","type","monaco","getCompletionProvider","model","word","wordUntil","positionClone","offset","range","calculateRange","items","maxIndexDigits","indexOfFirstQuote","indexOfLastQuote","indexOfEquals","indexOfLastEquals","options","EDITOR_HEIGHT_OFFSET","LANG_ID","LANGUAGE_SETUP_STARTED","defaultWordPattern","ensureLogQL","getStyles","theme","placeholder","onBlur","onRunQuery","initialValue","datasource","onChange","id","overrideServicesRef","containerRef","langProviderRef","useLatest","onRunQueryRef","onBlurRef","completionDataProviderRef","autocompleteCleanupCallback","styles","setPlaceholder","editor","placeholderDecorators","decorators","checkDecorators","newDecorators","onTypeDebounced","selectors","isEditorFocused","e","markers","error","boundary","completionProvider","filteringCompletionProvider","context","token","dispose","handleResize","containerDiv","pixelHeight","pixelWidth","ref"],"sourceRoot":""}
.
Edit
..
Edit
1117.145ac642f59357bc40d8.js
Edit
1117.145ac642f59357bc40d8.js.map
Edit
1118.c684d1aadf16a6c70620.js
Edit
1118.c684d1aadf16a6c70620.js.map
Edit
1122.5fbf0d7cd148c610616d.js
Edit
1122.5fbf0d7cd148c610616d.js.map
Edit
1142.a4b35a0e8699cafd901e.js
Edit
1142.a4b35a0e8699cafd901e.js.map
Edit
1162.81868b3ac499fa5ea04b.js
Edit
1162.81868b3ac499fa5ea04b.js.map
Edit
1183.7444f51e5996a7f23c7d.js
Edit
1183.7444f51e5996a7f23c7d.js.map
Edit
1282.ae38cac1b732d8ac1d96.js
Edit
1282.ae38cac1b732d8ac1d96.js.map
Edit
130.a58aaeea748f37ee6482.js
Edit
130.a58aaeea748f37ee6482.js.map
Edit
1419.59f53ae25085b28e1e11.js
Edit
1419.59f53ae25085b28e1e11.js.map
Edit
1420.e63ce495727f83b8887d.js
Edit
1420.e63ce495727f83b8887d.js.map
Edit
1438.ccdd05d7188edf4191ff.js
Edit
1438.ccdd05d7188edf4191ff.js.map
Edit
1446.fe7b1f4563629b80793f.js
Edit
1446.fe7b1f4563629b80793f.js.map
Edit
1484.3da94e44ecdadcd342d4.js
Edit
1484.3da94e44ecdadcd342d4.js.map
Edit
1492.4026c6e7130c3afdae87.js
Edit
1494.ef220afb67ff6c52c7af.js
Edit
1494.ef220afb67ff6c52c7af.js.map
Edit
1560.538cd2395be11ba4e2c9.js
Edit
1560.538cd2395be11ba4e2c9.js.map
Edit
1579.c391ef869d4f7bfc0d1c.js
Edit
1579.c391ef869d4f7bfc0d1c.js.map
Edit
1646.d7d87a40853795910533.js
Edit
1646.d7d87a40853795910533.js.map
Edit
1710.7db3f56c6714c0c340e0.js
Edit
1710.7db3f56c6714c0c340e0.js.map
Edit
1716.f71f518289da5d2229bc.js
Edit
1716.f71f518289da5d2229bc.js.map
Edit
1740.baf38e7ee007e1a6935e.js
Edit
1740.baf38e7ee007e1a6935e.js.map
Edit
1821.c9a2456dc8d78cf6b02f.js
Edit
1821.c9a2456dc8d78cf6b02f.js.map
Edit
1888.d33142738af4fbf8a230.js
Edit
1888.d33142738af4fbf8a230.js.map
Edit
1914.5f33b3c2133b5bb7ea6e.js
Edit
1914.5f33b3c2133b5bb7ea6e.js.map
Edit
198.65a768ff6c601d19ea3f.js
Edit
198.65a768ff6c601d19ea3f.js.map
Edit
1990.9171129a8deabb59bf30.js
Edit
1990.9171129a8deabb59bf30.js.map
Edit
2018.5ff00ee0456301c1cf43.js
Edit
2018.5ff00ee0456301c1cf43.js.map
Edit
205.2eb73847215c8d021cc9.js
Edit
205.2eb73847215c8d021cc9.js.map
Edit
2077.a5848ca4b4b9fdebca17.js
Edit
2077.a5848ca4b4b9fdebca17.js.map
Edit
2094.97e7f0876201e76a77fd.js
Edit
2094.97e7f0876201e76a77fd.js.map
Edit
2150.7576285186c713978b39.js
Edit
2150.7576285186c713978b39.js.map
Edit
2152.b55841e6f422682a3891.js
Edit
2152.b55841e6f422682a3891.js.map
Edit
221.0fc4d14d0a67f3a25d64.js
Edit
221.0fc4d14d0a67f3a25d64.js.map
Edit
2218.623d73bd0985ddf5f8c4.js
Edit
2218.623d73bd0985ddf5f8c4.js.map
Edit
2223.e65417164a45701ed9dc.js
Edit
2223.e65417164a45701ed9dc.js.map
Edit
2244.70c156ada2487a05595c.js
Edit
2244.70c156ada2487a05595c.js.map
Edit
2278.f887de0a65e1b784ea9f.js
Edit
2278.f887de0a65e1b784ea9f.js.map
Edit
2288.6a65ba08c6c0f4f83435.js
Edit
2288.6a65ba08c6c0f4f83435.js.map
Edit
2311.73e1a2b949d289f5d6c9.js
Edit
2311.73e1a2b949d289f5d6c9.js.map
Edit
2398.d142e32be48079fc63c0.js
Edit
2398.d142e32be48079fc63c0.js.map
Edit
2405.c1b37a7cc8182472f6a6.js
Edit
2405.c1b37a7cc8182472f6a6.js.map
Edit
2446.0418c7ea000998178d8b.js
Edit
2446.0418c7ea000998178d8b.js.map
Edit
2450.d73c024ff7273aebf911.js
Edit
2450.d73c024ff7273aebf911.js.map
Edit
2586.668c65b61e9ea31b5bca.js
Edit
2586.668c65b61e9ea31b5bca.js.map
Edit
265.ed6933785cc750cbd9ed.js
Edit
265.ed6933785cc750cbd9ed.js.map
Edit
2658.7f70ebc378803654a814.js
Edit
2658.7f70ebc378803654a814.js.map
Edit
2686.ae267304ddd1380c30c7.js
Edit
2686.ae267304ddd1380c30c7.js.map
Edit
2692.fa24ada7d987a7ee05f1.js
Edit
2692.fa24ada7d987a7ee05f1.js.map
Edit
2699.b79e57051a1a63376320.js
Edit
2699.b79e57051a1a63376320.js.map
Edit
2710.e1ac8e57578a838f5bd8.js
Edit
2710.e1ac8e57578a838f5bd8.js.map
Edit
2744.d6b14bf01022bdb8eab5.js
Edit
2744.d6b14bf01022bdb8eab5.js.map
Edit
2745.8049d948cb362dfc6cb3.js
Edit
2745.8049d948cb362dfc6cb3.js.map
Edit
2835.01beb5b1a252d779aad7.js
Edit
2835.01beb5b1a252d779aad7.js.map
Edit
2961.4b27b21453fdbb115dd4.js
Edit
2961.4b27b21453fdbb115dd4.js.map
Edit
2962.85c9dc0cca68efab5e0c.js
Edit
2962.85c9dc0cca68efab5e0c.js.map
Edit
2975.e64aaea6ff35a7d3b3fd.js
Edit
2975.e64aaea6ff35a7d3b3fd.js.map
Edit
3003.f51365051eb27cf765d8.js
Edit
3003.f51365051eb27cf765d8.js.map
Edit
3042.44bad7d2d0536000b808.js
Edit
3042.44bad7d2d0536000b808.js.map
Edit
3062.ad5844391370fcc7525a.js
Edit
3062.ad5844391370fcc7525a.js.map
Edit
3082.704af6779ad700a5fa42.js
Edit
3082.704af6779ad700a5fa42.js.map
Edit
3096.aed61083f1ba4803ae84.js
Edit
3096.aed61083f1ba4803ae84.js.map
Edit
3126.10c85e1f02105e470a69.js
Edit
3126.10c85e1f02105e470a69.js.map
Edit
3169.0b88a5a2340f70961599.js
Edit
3169.0b88a5a2340f70961599.js.map
Edit
3171.c79c28e2611563e2dbcb.js
Edit
3171.c79c28e2611563e2dbcb.js.map
Edit
3182.831f754ed3b6f10441a0.js
Edit
3182.831f754ed3b6f10441a0.js.map
Edit
3192.2cb90eadf3399270363e.js
Edit
3192.2cb90eadf3399270363e.js.map
Edit
3217.c6faaa4f5637068f90f3.js
Edit
3217.c6faaa4f5637068f90f3.js.map
Edit
3259.c8e4d6ad93201a56e49f.js
Edit
3259.c8e4d6ad93201a56e49f.js.map
Edit
3284.79c2897655286b0c1f6d.js
Edit
3284.79c2897655286b0c1f6d.js.map
Edit
3303.225dae64cff0c2280c3b.js
Edit
3303.225dae64cff0c2280c3b.js.map
Edit
3326.cabc370d66d7ecfbd2c3.js
Edit
3326.cabc370d66d7ecfbd2c3.js.map
Edit
344.85cff3029cbbb5463c7e.js
Edit
344.85cff3029cbbb5463c7e.js.map
Edit
3466.fda7da0cb4150e59da98.js
Edit
3466.fda7da0cb4150e59da98.js.map
Edit
3474.74dfd856a9528c758a57.js
Edit
3474.74dfd856a9528c758a57.js.map
Edit
348.fd20e2547f12dbed76c7.js
Edit
348.fd20e2547f12dbed76c7.js.map
Edit
3495.9c1ae6f61edf7aef207b.js
Edit
3495.9c1ae6f61edf7aef207b.js.map
Edit
3501.a0ee7c2b24136aa91eb5.js
Edit
3501.a0ee7c2b24136aa91eb5.js.map
Edit
3520.a3c2b474e2dcaf9879fc.js
Edit
3520.a3c2b474e2dcaf9879fc.js.map
Edit
3605.41e3c44dfe2ca2966198.js
Edit
3605.41e3c44dfe2ca2966198.js.map
Edit
362.e5ce68af98ee6713a4e7.js
Edit
362.e5ce68af98ee6713a4e7.js.map
Edit
3622.0b196041f825b42c5233.js
Edit
3622.0b196041f825b42c5233.js.map
Edit
3630.1ffe9229d5c27fd0823a.js
Edit
3630.1ffe9229d5c27fd0823a.js.map
Edit
3659.f5dc1bb19d36546aadb8.js
Edit
3659.f5dc1bb19d36546aadb8.js.map
Edit
3688.ec5e74c60569e9498687.js
Edit
3688.ec5e74c60569e9498687.js.map
Edit
3718.b570aa4fa35f8dfc686e.js
Edit
3718.b570aa4fa35f8dfc686e.js.map
Edit
3726.84ef8bb1304f7adbc7f3.js
Edit
3726.84ef8bb1304f7adbc7f3.js.map
Edit
398.ceeafcf522343c717c4b.js
Edit
398.ceeafcf522343c717c4b.js.map
Edit
4064.e52eb763993ad947e4a1.js
Edit
4064.e52eb763993ad947e4a1.js.map
Edit
407.594046bd73cc88c29e80.js
Edit
407.594046bd73cc88c29e80.js.map
Edit
4113.3fa5432815c4662eb03e.js
Edit
4113.3fa5432815c4662eb03e.js.map
Edit
4114.c4741f0a73781d3f87dc.js
Edit
4114.c4741f0a73781d3f87dc.js.map
Edit
4120.968e1408d894f8515330.js
Edit
4120.968e1408d894f8515330.js.map
Edit
4162.8b8a683fa98d677f9137.js
Edit
4162.8b8a683fa98d677f9137.js.map
Edit
4209.de7f2b850ee1292a67e5.js
Edit
4209.de7f2b850ee1292a67e5.js.map
Edit
4224.cc13db0c6e3f7fdb05c9.js
Edit
4224.cc13db0c6e3f7fdb05c9.js.map
Edit
4251.28e90ad13c8fe749062c.js
Edit
4251.28e90ad13c8fe749062c.js.map
Edit
4334.396d65b7ba31733108e9.js
Edit
4334.396d65b7ba31733108e9.js.map
Edit
4350.6db49924324f8061d361.js
Edit
4350.6db49924324f8061d361.js.map
Edit
4463.24a3e34bed64cbbb8b99.js
Edit
4463.24a3e34bed64cbbb8b99.js.map
Edit
4514.03e966fee9064d7305dd.js
Edit
4514.03e966fee9064d7305dd.js.map
Edit
4564.ea4a09ba96ddbf74a0ee.js
Edit
4564.ea4a09ba96ddbf74a0ee.js.map
Edit
46.7809585ddbb4791e248a.js
Edit
46.7809585ddbb4791e248a.js.map
Edit
4630.54d7f3b9d384c6b95bbc.js
Edit
4630.54d7f3b9d384c6b95bbc.js.map
Edit
4656.a07d832134b096826a58.js
Edit
4656.a07d832134b096826a58.js.map
Edit
468.d3a2ba8b0d226ca1475b.js
Edit
468.d3a2ba8b0d226ca1475b.js.map
Edit
4680.abd86af55b75e75326ab.js
Edit
4680.abd86af55b75e75326ab.js.map
Edit
4691.2f69f76af87a66a1513c.js
Edit
4691.2f69f76af87a66a1513c.js.map
Edit
4698.c9a2c562b12da12dc66e.js
Edit
4698.c9a2c562b12da12dc66e.js.map
Edit
4791.fc3ef0337811ab73b164.js
Edit
4791.fc3ef0337811ab73b164.js.map
Edit
4814.2d8cb562606e508512d8.js
Edit
4814.2d8cb562606e508512d8.js.map
Edit
4824.2da8107f19d58bf153e0.js
Edit
4824.2da8107f19d58bf153e0.js.map
Edit
4839.f4d2edd5c2678ef2b624.js
Edit
4839.f4d2edd5c2678ef2b624.js.map
Edit
4857.4971a98037d2ec3b663d.js
Edit
4857.4971a98037d2ec3b663d.js.map
Edit
4865.be02c1283a83523c4414.js
Edit
4865.be02c1283a83523c4414.js.map
Edit
494.5463fc5a297eaedd150f.js
Edit
494.5463fc5a297eaedd150f.js.map
Edit
4958.226af5f19bf47305a407.js
Edit
4958.226af5f19bf47305a407.js.map
Edit
4962.bbff24c5a85e9314600a.js
Edit
4962.bbff24c5a85e9314600a.js.map
Edit
4964.1f2cc5acc0078feb7b08.js
Edit
4964.1f2cc5acc0078feb7b08.js.map
Edit
4965.ccdc00d808390be53820.js
Edit
4965.ccdc00d808390be53820.js.map
Edit
5065.a2c71dab50ccb4174ee2.js
Edit
5065.a2c71dab50ccb4174ee2.js.map
Edit
5074.92e2d1ae98dcd913506e.js
Edit
5074.92e2d1ae98dcd913506e.js.map
Edit
5091.987ffc33b70121541e5d.js
Edit
5091.987ffc33b70121541e5d.js.map
Edit
5106.581eaf66a6592320d97a.js
Edit
5106.581eaf66a6592320d97a.js.map
Edit
5110.96d49ea826be96c65045.js
Edit
5110.96d49ea826be96c65045.js.map
Edit
5130.cbdddcd716a093bdbaac.js
Edit
5130.cbdddcd716a093bdbaac.js.map
Edit
5196.9b7364caf64a8583ad01.js
Edit
5196.9b7364caf64a8583ad01.js.map
Edit
5198.2cd64d4e16a385dd9b91.js
Edit
5198.2cd64d4e16a385dd9b91.js.map
Edit
5280.2c29942977baa2dfbe0e.js
Edit
5280.2c29942977baa2dfbe0e.js.map
Edit
5364.0288d9c98f74f26b73e7.js
Edit
5364.0288d9c98f74f26b73e7.js.map
Edit
5446.ad01d0b233122dd49849.js
Edit
5446.ad01d0b233122dd49849.js.map
Edit
5550.5bf3e7d23d6b104740fd.js
Edit
5550.5bf3e7d23d6b104740fd.js.map
Edit
5618.909592bbe054b70f2377.js
Edit
5618.909592bbe054b70f2377.js.map
Edit
5648.a1fc2b0cbbca9bfa1d94.js
Edit
5648.a1fc2b0cbbca9bfa1d94.js.map
Edit
5664.c55be32f6d459ac3f3d8.js
Edit
5664.c55be32f6d459ac3f3d8.js.map
Edit
5671.e1e396b75d7b95ef461f.js
Edit
5671.e1e396b75d7b95ef461f.js.map
Edit
5742.117597ec799ab75cb2f4.js
Edit
5742.117597ec799ab75cb2f4.js.map
Edit
5747.b9389680058c12ffba68.js
Edit
5747.b9389680058c12ffba68.js.map
Edit
5757.5a4b7f2368dd09da42be.js
Edit
5786.c45dfaf9e1d969472e5e.js
Edit
5786.c45dfaf9e1d969472e5e.js.map
Edit
5790.29b0a5797fd46e9664f5.js
Edit
5790.29b0a5797fd46e9664f5.js.map
Edit
5923.b9c876b4bf528d8511cb.js
Edit
5923.b9c876b4bf528d8511cb.js.map
Edit
5984.1efdc4bb85100bd19ca9.js
Edit
5984.1efdc4bb85100bd19ca9.js.map
Edit
5995.5c7a375f33ea1cd16daa.js
Edit
5995.5c7a375f33ea1cd16daa.js.map
Edit
6018.befdd11bf701ea71f7bf.js
Edit
6018.befdd11bf701ea71f7bf.js.map
Edit
6029.bdcbf27bcdd36812f646.js
Edit
6029.bdcbf27bcdd36812f646.js.map
Edit
6088.7f526abfdb4003574c68.js
Edit
6088.7f526abfdb4003574c68.js.map
Edit
613.084d33252856771cf6e1.js
Edit
613.084d33252856771cf6e1.js.map
Edit
6185.2a7c893c6b3f2f0dadb8.js
Edit
6185.2a7c893c6b3f2f0dadb8.js.map
Edit
6208.571f272269524cfd14e7.js
Edit
6208.571f272269524cfd14e7.js.map
Edit
6236.30d1fa6aee173c946c50.js
Edit
6236.30d1fa6aee173c946c50.js.map
Edit
6244.64f83fc5d05560979c51.js
Edit
6244.64f83fc5d05560979c51.js.map
Edit
6260.b8be95165766a81dade2.js
Edit
6260.b8be95165766a81dade2.js.map
Edit
630.56b78dcdaeeb9d9c2967.js
Edit
630.56b78dcdaeeb9d9c2967.js.map
Edit
6302.a2ffa52069511df9772f.js
Edit
6302.a2ffa52069511df9772f.js.map
Edit
6315.f4d87fc6f8ae3cb40e38.js
Edit
6315.f4d87fc6f8ae3cb40e38.js.map
Edit
6414.7520859a2d9cc0a63d7f.js
Edit
6414.7520859a2d9cc0a63d7f.js.map
Edit
6446.1d75a8140260005fffbd.js
Edit
6446.1d75a8140260005fffbd.js.map
Edit
6743.67a52a99e2fdd1ae1e10.js
Edit
6743.67a52a99e2fdd1ae1e10.js.map
Edit
6759.0454d3c1e41385379bdc.js
Edit
6759.0454d3c1e41385379bdc.js.map
Edit
6772.0d4a074848bc323be8f8.js
Edit
6772.0d4a074848bc323be8f8.js.map
Edit
680.726adca366b4ecb272db.js
Edit
680.726adca366b4ecb272db.js.map
Edit
6830.a4b0ecf3a6d784ca7609.js
Edit
6830.a4b0ecf3a6d784ca7609.js.map
Edit
6834.0c9ef40e2f2b5428983d.js
Edit
6834.0c9ef40e2f2b5428983d.js.map
Edit
6857.252a60422ee275193aa7.js
Edit
6857.252a60422ee275193aa7.js.map
Edit
6940.b6c74df14413f0188f0d.js
Edit
6940.b6c74df14413f0188f0d.js.map
Edit
6990.d663924714fc213b17c6.js
Edit
6990.d663924714fc213b17c6.js.map
Edit
7018.5a037d2577fedc8d10f1.js
Edit
7018.5a037d2577fedc8d10f1.js.map
Edit
7031.047b15171c23b248efa0.js
Edit
7031.047b15171c23b248efa0.js.map
Edit
7033.141597840e42815ef6a4.js
Edit
7033.141597840e42815ef6a4.js.map
Edit
7048.3746fc9a274bf8ff72f1.js
Edit
7048.3746fc9a274bf8ff72f1.js.map
Edit
7051.604a402d305e093c00c2.js
Edit
7051.604a402d305e093c00c2.js.map
Edit
7061.f18464bcd6c6d7455662.js
Edit
7061.f18464bcd6c6d7455662.js.map
Edit
7080.9cdd1b7a0bf62b48e1fe.js
Edit
7080.9cdd1b7a0bf62b48e1fe.js.map
Edit
7200.d4425528f6cee80f9931.js
Edit
7200.d4425528f6cee80f9931.js.map
Edit
7235.46f071d3e4d0bb976223.js
Edit
7235.46f071d3e4d0bb976223.js.map
Edit
7246.03f5a8496e53f64602e2.js
Edit
7246.03f5a8496e53f64602e2.js.map
Edit
7249.3bea4aaf890f89fdad45.js
Edit
7249.3bea4aaf890f89fdad45.js.map
Edit
7299.cdff402b076dfea09ead.js
Edit
7299.cdff402b076dfea09ead.js.map
Edit
7348.6fd722455e8c7e077815.js
Edit
7348.6fd722455e8c7e077815.js.map
Edit
7396.ded473b7a47dc42fbb59.js
Edit
7396.ded473b7a47dc42fbb59.js.map
Edit
7466.b7c17c526c7b734dd5f7.js
Edit
7466.b7c17c526c7b734dd5f7.js.map
Edit
7539.5f405cae3b15e1e2f6fa.js
Edit
7539.5f405cae3b15e1e2f6fa.js.map
Edit
7585.084552e02c66201a55be.js
Edit
7585.084552e02c66201a55be.js.map
Edit
7626.38819cc0696f2d25cf99.js
Edit
7626.38819cc0696f2d25cf99.js.map
Edit
7651.5024ed8dd1beb08d01ab.js
Edit
7651.5024ed8dd1beb08d01ab.js.map
Edit
7681.7ef7b4f86e99abd7b7e1.js
Edit
7681.7ef7b4f86e99abd7b7e1.js.map
Edit
7691.0ad86f0c686b19ce829e.js
Edit
7691.0ad86f0c686b19ce829e.js.map
Edit
7790.4c141092868e7208a087.js
Edit
7790.4c141092868e7208a087.js.map
Edit
7806.dff3509790e494ca5a45.js
Edit
7806.dff3509790e494ca5a45.js.map
Edit
7836.afe37ef4be354f0a3b91.js
Edit
7836.afe37ef4be354f0a3b91.js.map
Edit
7882.e1721e9d6ac2d421bcda.js
Edit
7882.e1721e9d6ac2d421bcda.js.map
Edit
7886.8499ded396232466be7d.js
Edit
7886.8499ded396232466be7d.js.map
Edit
7887.a6dcfd824d57598ba1c3.js
Edit
7887.a6dcfd824d57598ba1c3.js.map
Edit
7969.a048d8060cabf1aede33.js
Edit
7969.a048d8060cabf1aede33.js.map
Edit
7996.bd232896e4559d37a26f.js
Edit
7996.bd232896e4559d37a26f.js.map
Edit
8016.8145cd87abcdd0646db2.js
Edit
8016.8145cd87abcdd0646db2.js.map
Edit
8018.c31846109f2dff21d8c4.js
Edit
8018.c31846109f2dff21d8c4.js.map
Edit
8056.4e8f71ed4d507f89b487.js
Edit
8056.4e8f71ed4d507f89b487.js.map
Edit
8177.52abd0953ac914f69e26.js
Edit
8177.52abd0953ac914f69e26.js.map
Edit
8220.aeea4a8f0893b3447b56.js
Edit
8220.aeea4a8f0893b3447b56.js.map
Edit
8224.75bd73bf51ff7a2fc4a0.js
Edit
8224.75bd73bf51ff7a2fc4a0.js.map
Edit
8230.d65bce2998eec95c6082.js
Edit
8230.d65bce2998eec95c6082.js.map
Edit
8260.c1da67af19b9259d5651.js
Edit
8260.c1da67af19b9259d5651.js.map
Edit
8271.0ee36e030014244adb47.js
Edit
8271.0ee36e030014244adb47.js.map
Edit
8332.a62e8632a336661f2969.js
Edit
8332.a62e8632a336661f2969.js.map
Edit
8334.1196f5ddcef25711fc25.js
Edit
8334.1196f5ddcef25711fc25.js.map
Edit
8347.de402f9280cd7a316c57.js
Edit
8347.de402f9280cd7a316c57.js.map
Edit
8390.9de755da2e214cc845a3.js
Edit
8390.9de755da2e214cc845a3.js.map
Edit
8393.30e95ae45cbe5455dcda.js
Edit
8393.30e95ae45cbe5455dcda.js.map
Edit
8477.4dad0537d13cf9315e86.js
Edit
8477.4dad0537d13cf9315e86.js.map
Edit
8494.659892f00c9d15ae441a.js
Edit
8494.659892f00c9d15ae441a.js.map
Edit
8530.0460c988ee4a40ce7769.js
Edit
8530.0460c988ee4a40ce7769.js.map
Edit
8542.317c15ed57f68fcf0c97.js
Edit
8542.317c15ed57f68fcf0c97.js.map
Edit
8547.390120a5caf7646e0e3e.js
Edit
8547.390120a5caf7646e0e3e.js.map
Edit
8566.5c8f392bb383ab92eed0.js
Edit
8566.5c8f392bb383ab92eed0.js.map
Edit
8622.5acf73c1485a11dfb0ab.js
Edit
8622.5acf73c1485a11dfb0ab.js.map
Edit
8706.f17afa6bcdfd511d5b03.js
Edit
8706.f17afa6bcdfd511d5b03.js.map
Edit
874.d24410518317d605c708.js
Edit
874.d24410518317d605c708.js.map
Edit
8813.e5137844631f6ddedbce.js
Edit
8813.e5137844631f6ddedbce.js.map
Edit
8856.2720526447b3adb5c75f.js
Edit
8856.2720526447b3adb5c75f.js.map
Edit
886.5f3383e84b10a6530b97.js
Edit
886.5f3383e84b10a6530b97.js.map
Edit
8864.2f4ee982114c25634e55.js
Edit
8864.2f4ee982114c25634e55.js.map
Edit
8902.71f14964ec6cea84dc8e.js
Edit
8902.71f14964ec6cea84dc8e.js.map
Edit
8932.e59e50ddb63414e0f2b9.js
Edit
8932.e59e50ddb63414e0f2b9.js.map
Edit
8990.665213a5c89afd6b2f83.js
Edit
8990.665213a5c89afd6b2f83.js.map
Edit
9034.a32e36472481cbe5d72d.js
Edit
9034.a32e36472481cbe5d72d.js.map
Edit
9038.f03b25f160057d4a0bf6.js
Edit
9038.f03b25f160057d4a0bf6.js.map
Edit
904.b68cd2a0cd6d68c5f1ae.js
Edit
904.b68cd2a0cd6d68c5f1ae.js.map
Edit
9044.441f64d6d946cc93be46.js
Edit
9044.441f64d6d946cc93be46.js.map
Edit
9147.8309cadbc384209d62e5.js
Edit
9147.8309cadbc384209d62e5.js.map
Edit
9150.38487365ffd149b730af.js
Edit
9150.38487365ffd149b730af.js.map
Edit
9292.e6befb57f8f116ad95a8.js
Edit
9292.e6befb57f8f116ad95a8.js.map
Edit
9355.95d7e1782f93f339549e.js
Edit
9355.95d7e1782f93f339549e.js.map
Edit
9388.88d95a230e9432e7037b.js
Edit
9388.88d95a230e9432e7037b.js.map
Edit
9390.c72fcd228017f7647b38.js
Edit
9390.c72fcd228017f7647b38.js.map
Edit
9414.642bfe0d5eb16efd0c16.js
Edit
9414.642bfe0d5eb16efd0c16.js.map
Edit
9449.502f2a824d0203e88d4d.js
Edit
9449.502f2a824d0203e88d4d.js.map
Edit
946.48c5e8c688cf29424295.js
Edit
946.48c5e8c688cf29424295.js.map
Edit
9473.e6fc327da88d88712828.js
Edit
9473.e6fc327da88d88712828.js.map
Edit
9510.1e255e96fe40aad2ed6f.js
Edit
9510.1e255e96fe40aad2ed6f.js.map
Edit
9521.e65411d726c29d77c526.js
Edit
9521.e65411d726c29d77c526.js.map
Edit
9538.a2289ff9ad06e24e391f.js
Edit
9538.a2289ff9ad06e24e391f.js.map
Edit
957.3c35d66aa698d8bdfe05.js
Edit
957.3c35d66aa698d8bdfe05.js.map
Edit
9571.41558d40bff9ea8c0726.js
Edit
9571.41558d40bff9ea8c0726.js.map
Edit
9578.9cfae16465bb9bc1f336.js
Edit
9578.9cfae16465bb9bc1f336.js.map
Edit
968.d4b150f9211c478b7b05.js
Edit
968.d4b150f9211c478b7b05.js.map
Edit
970.46f17b76711e4961a575.js
Edit
970.46f17b76711e4961a575.js.map
Edit
9700.02180b7a06c8a1f7606b.js
Edit
9700.02180b7a06c8a1f7606b.js.map
Edit
9744.aa6baaf988a68fa6a9ba.js
Edit
9744.aa6baaf988a68fa6a9ba.js.map
Edit
9820.6b462d83575efd05c883.js
Edit
9820.6b462d83575efd05c883.js.map
Edit
9838.06bd7dfd4290786f80e3.js
Edit
9838.06bd7dfd4290786f80e3.js.map
Edit
9992.fb08517d3ff77e887443.js
Edit
9992.fb08517d3ff77e887443.js.map
Edit
9996.21c451f22ff76b4bb683.js
Edit
9996.21c451f22ff76b4bb683.js.map
Edit
AdminAuthentication.076c98c6380fd1e42f7e.js
Edit
AdminAuthentication.076c98c6380fd1e42f7e.js.map
Edit
AdminEditOrgPage.8df8167ea6ff8f4803bd.js
Edit
AdminEditOrgPage.8df8167ea6ff8f4803bd.js.map
Edit
AdminListOrgsPage.176dac9ed391bda8952b.js
Edit
AdminListOrgsPage.176dac9ed391bda8952b.js.map
Edit
AdminSettings.7373ed8fa9b943bb2098.js
Edit
AdminSettings.7373ed8fa9b943bb2098.js.map
Edit
AlertGroups.81264e6e5009c36eed6e.js
Edit
AlertGroups.81264e6e5009c36eed6e.js.map
Edit
AlertRuleListIndex.98e7328feeaa2ffe67eb.js
Edit
AlertRuleListIndex.98e7328feeaa2ffe67eb.js.map
Edit
AlertingDisabled.b2c834be0ca4666dd793.js
Edit
AlertingDisabled.b2c834be0ca4666dd793.js.map
Edit
AlertingGroupDetails.3a2c6ef8085b505852e4.js
Edit
AlertingGroupDetails.3a2c6ef8085b505852e4.js.map
Edit
AlertingGroupEdit.69cfe9d5f37a1fc65326.js
Edit
AlertingGroupEdit.69cfe9d5f37a1fc65326.js.map
Edit
AlertingHome.06f307ab9a2a5d8b7f93.js
Edit
AlertingHome.06f307ab9a2a5d8b7f93.js.map
Edit
AlertingImportFromDSRules.f1224bcb622d25e2c94f.js
Edit
AlertingImportFromDSRules.f1224bcb622d25e2c94f.js.map
Edit
AlertingRedirectToRule.9ed1d16829d6833d2827.js
Edit
AlertingRedirectToRule.9ed1d16829d6833d2827.js.map
Edit
AlertingRuleForm.2e69d3f00eb6221e7355.js
Edit
AlertingRuleForm.2e69d3f00eb6221e7355.js.map
Edit
AlertingSettings.7a5f782f877cec4790cb.js
Edit
AlertingSettings.7a5f782f877cec4790cb.js.map
Edit
AlertingTriage.1174f36b4937ad0047c1.js
Edit
AlertingTriage.1174f36b4937ad0047c1.js.map
Edit
BenchmarksPage.ef387f4598ba2b2236ad.js
Edit
BenchmarksPage.ef387f4598ba2b2236ad.js.map
Edit
BookmarksPage.8fe93eb7377073f0c985.js
Edit
BookmarksPage.8fe93eb7377073f0c985.js.map
Edit
ChangePasswordPage.f21b0b1dd107ccd33c1a.js
Edit
ChangePasswordPage.f21b0b1dd107ccd33c1a.js.map
Edit
Connections.949b6389e73bcadb2109.js
Edit
Connections.949b6389e73bcadb2109.js.map
Edit
ContactPoints.9ae2d1927d60c6169b87.js
Edit
ContactPoints.9ae2d1927d60c6169b87.js.map
Edit
CorrelationsFeatureToggle.ec2f1aefce6b456e15eb.js
Edit
CorrelationsFeatureToggle.ec2f1aefce6b456e15eb.js.map
Edit
CorrelationsPage.bd7fcd24ed0b5fe8ac3e.js
Edit
CorrelationsPage.bd7fcd24ed0b5fe8ac3e.js.map
Edit
CreateTeam.429acf93986740280312.js
Edit
CreateTeam.429acf93986740280312.js.map
Edit
DashboardImport.3e9b6f980b81d6f1c755.js
Edit
DashboardImport.3e9b6f980b81d6f1c755.js.map
Edit
DashboardListPage.abeb0c29f072f888f9fb.js
Edit
DashboardListPage.abeb0c29f072f888f9fb.js.map
Edit
DashboardPage.72557fe6dd1a022b7d48.js
Edit
DashboardPage.72557fe6dd1a022b7d48.js.map
Edit
DashboardPageProxy.80adfefad8a885d8e2ef.js
Edit
DashboardPageProxy.80adfefad8a885d8e2ef.js.map
Edit
DashboardScenePage.83fe1fa9509b50120d65.js
Edit
DashboardScenePage.83fe1fa9509b50120d65.js.map
Edit
EditContactPoint.0c33428ddc8ba974d946.js
Edit
EditContactPoint.0c33428ddc8ba974d946.js.map
Edit
EditMuteTiming.8760cc9c77560acf0cd6.js
Edit
EditMuteTiming.8760cc9c77560acf0cd6.js.map
Edit
EditRepositoryPage.d71faaab1af2c8d70a22.js
Edit
EditRepositoryPage.d71faaab1af2c8d70a22.js.map
Edit
EmbeddedDashboard.57de550bce819e3d52e6.js
Edit
EmbeddedDashboard.57de550bce819e3d52e6.js.map
Edit
FileHistoryPage.154ab77c19bbe0ebed20.js
Edit
FileHistoryPage.154ab77c19bbe0ebed20.js.map
Edit
FileStatusPage.36f58cd61202ec603d22.js
Edit
FileStatusPage.36f58cd61202ec603d22.js.map
Edit
FolderAlerting.0b9acb6c42276aaee57d.js
Edit
FolderAlerting.0b9acb6c42276aaee57d.js.map
Edit
FolderLibraryPanelsPage.44f8cabf542ec314d176.js
Edit
FolderLibraryPanelsPage.44f8cabf542ec314d176.js.map
Edit
GettingStartedPage.4bea37f1c9bdcfd0f41b.js
Edit
GettingStartedPage.4bea37f1c9bdcfd0f41b.js.map
Edit
GlobalConfig.1377596507974d18caf6.js
Edit
GlobalConfig.1377596507974d18caf6.js.map
Edit
HistoryPage.4da98f4fa313ee3676ca.js
Edit
HistoryPage.4da98f4fa313ee3676ca.js.map
Edit
LdapSettingsPage.0e9f08d5e59150ecf466.js
Edit
LdapSettingsPage.0e9f08d5e59150ecf466.js.map
Edit
LibraryPanelsPage.824580d7751526c658e2.js
Edit
LibraryPanelsPage.824580d7751526c658e2.js.map
Edit
ListPublicDashboardPage.64c26ffd3ebe6c9076f3.js
Edit
ListPublicDashboardPage.64c26ffd3ebe6c9076f3.js.map
Edit
LoginPage.db48423ed1b455431daa.js
Edit
LoginPage.db48423ed1b455431daa.js.map
Edit
MetricsDrilldownRedirect.fcad4bdff346974952f4.js
Edit
MetricsDrilldownRedirect.fcad4bdff346974952f4.js.map
Edit
MigrateToCloud.5b474ad00e8a3d979750.js
Edit
MigrateToCloud.5b474ad00e8a3d979750.js.map
Edit
NewMuteTiming.2f6302420674f1c73aba.js
Edit
NewMuteTiming.2f6302420674f1c73aba.js.map
Edit
NewOrgPage.be31eaee06e2043d609b.js
Edit
NewOrgPage.be31eaee06e2043d609b.js.map
Edit
NewReceiverView.f1d83eb66a39882b8661.js
Edit
NewReceiverView.f1d83eb66a39882b8661.js.map
Edit
NewSilencePage.2643a48031f7e5d8f376.js
Edit
NewSilencePage.2643a48031f7e5d8f376.js.map
Edit
NotificationPoliciesPage.9333d10ecad1452ebf27.js
Edit
NotificationPoliciesPage.9333d10ecad1452ebf27.js.map
Edit
NotificationsPage.57df4ff5ba1433a4345d.js
Edit
NotificationsPage.57df4ff5ba1433a4345d.js.map
Edit
OrgDetailsPage.7b5835c30585aae81343.js
Edit
OrgDetailsPage.7b5835c30585aae81343.js.map
Edit
PlaylistEditPage.8310e384af659e40c313.js
Edit
PlaylistEditPage.8310e384af659e40c313.js.map
Edit
PlaylistNewPage.f45b642a98a747e28c0d.js
Edit
PlaylistNewPage.f45b642a98a747e28c0d.js.map
Edit
PlaylistPage.9af74957a1cdfb125338.js
Edit
PlaylistPage.9af74957a1cdfb125338.js.map
Edit
PlaylistStartPage.8011a98267ac64c7fa05.js
Edit
PlaylistStartPage.8011a98267ac64c7fa05.js.map
Edit
PluginExtensionsLog.54c02047d569b0c05823.js
Edit
PluginExtensionsLog.54c02047d569b0c05823.js.map
Edit
PluginListPage.e50c18fed21c23ca4ee8.js
Edit
PluginListPage.e50c18fed21c23ca4ee8.js.map
Edit
PluginPage.ae424531bce63dd4721e.js
Edit
PluginPage.ae424531bce63dd4721e.js.map
Edit
ProfileFeatureTogglePage.27378dcbb7520611348e.js
Edit
ProfileFeatureTogglePage.27378dcbb7520611348e.js.map
Edit
ProvisioningWizardPage.c4e4a8f431b4719b0e95.js
Edit
ProvisioningWizardPage.c4e4a8f431b4719b0e95.js.map
Edit
PublicDashboardPage.33d6ec8f685f1b70b9a6.js
Edit
PublicDashboardPage.33d6ec8f685f1b70b9a6.js.map
Edit
RecentlyDeleted.5e0ec16474d939fd9683.js
Edit
RecentlyDeleted.5e0ec16474d939fd9683.js.map
Edit
RecentlyDeletedPage.1dbc2b80b28204de8237.js
Edit
RecentlyDeletedPage.1dbc2b80b28204de8237.js.map
Edit
RepositoryListPage.ec3a0af1cbe2740800bf.js
Edit
RepositoryListPage.ec3a0af1cbe2740800bf.js.map
Edit
RepositoryStatusPage.9aee60589e35a4a19ec2.js
Edit
RepositoryStatusPage.9aee60589e35a4a19ec2.js.map
Edit
SelectOrgPage.910a8d842019a6d7fe93.js
Edit
SelectOrgPage.910a8d842019a6d7fe93.js.map
Edit
SendResetMailPage.513361d6980f98ff8139.js
Edit
SendResetMailPage.513361d6980f98ff8139.js.map
Edit
ServerStats.2830ca154f465dbdecea.js
Edit
ServerStats.2830ca154f465dbdecea.js.map
Edit
ServiceAccountCreatePage.80fcbdd2b7f5aa4e2da1.js
Edit
ServiceAccountCreatePage.80fcbdd2b7f5aa4e2da1.js.map
Edit
ServiceAccountPage.48944056459bb412ff33.js
Edit
ServiceAccountPage.48944056459bb412ff33.js.map
Edit
ServiceAccountsPage.d20b1eb9f87661f10b45.js
Edit
ServiceAccountsPage.d20b1eb9f87661f10b45.js.map
Edit
SignupInvited.fe2c29f380e9888c28cf.js
Edit
SignupInvited.fe2c29f380e9888c28cf.js.map
Edit
SilencesTablePage.b998fdbdcc3d60a81739.js
Edit
SilencesTablePage.b998fdbdcc3d60a81739.js.map
Edit
SnapshotListPage.6feaf24adb92e6a302ec.js
Edit
SnapshotListPage.6feaf24adb92e6a302ec.js.map
Edit
SoloPanelPage.7fc6a934aaadf4c1f84d.js
Edit
SoloPanelPage.7fc6a934aaadf4c1f84d.js.map
Edit
SoloPanelPageOld.bde57e000dd0a0108685.js
Edit
SoloPanelPageOld.bde57e000dd0a0108685.js.map
Edit
SupportBundles.1f46603ad3494624d67a.js
Edit
SupportBundles.1f46603ad3494624d67a.js.map
Edit
SupportBundlesCreate.5eaea61a9713f057277b.js
Edit
SupportBundlesCreate.5eaea61a9713f057277b.js.map
Edit
TeamList.6b088f83e6e8cb66b21d.js
Edit
TeamList.6b088f83e6e8cb66b21d.js.map
Edit
TeamPages.9d8b5dceef8be43c6923.js
Edit
TeamPages.9d8b5dceef8be43c6923.js.map
Edit
Templates.7a02a8497ebca052dcfb.js
Edit
Templates.7a02a8497ebca052dcfb.js.map
Edit
TestStuffPage.982c641592b2f7c9db40.js
Edit
TestStuffPage.982c641592b2f7c9db40.js.map
Edit
ThemePlayground.aeeec77fd8e9c1482f55.js
Edit
ThemePlayground.aeeec77fd8e9c1482f55.js.map
Edit
UserAdminPage.fc4d562eef05d9f59aca.js
Edit
UserAdminPage.fc4d562eef05d9f59aca.js.map
Edit
UserCreatePage.b7036214c66612fb31e9.js
Edit
UserCreatePage.b7036214c66612fb31e9.js.map
Edit
UserInvitePage.4a9bcd4084d7ae454c73.js
Edit
UserInvitePage.4a9bcd4084d7ae454c73.js.map
Edit
UserListPage.a452e1153ae820f58ac9.js
Edit
UserListPage.a452e1153ae820f58ac9.js.map
Edit
UserProfileEditPage.82c11690282e669eabb1.js
Edit
UserProfileEditPage.82c11690282e669eabb1.js.map
Edit
alert-rules-drawer-content.c95bb5ddd3fc813cae92.js
Edit
alert-rules-drawer-content.c95bb5ddd3fc813cae92.js.map
Edit
alert-rules-toolbar-button.0d86c1adae7edb55ff76.js
Edit
alert-rules-toolbar-button.0d86c1adae7edb55ff76.js.map
Edit
alertListPanel.0110106a8d1ab70d65d5.js
Edit
alertListPanel.0110106a8d1ab70d65d5.js.map
Edit
alertmanagerPlugin.2b59de5e7b7a556f87f1.js
Edit
alertmanagerPlugin.2b59de5e7b7a556f87f1.js.map
Edit
annoListPanel.0005a0eab0b05e24d970.js
Edit
annoListPanel.0005a0eab0b05e24d970.js.map
Edit
app.8385deda1df49aa75ec2.js
Edit
app.8385deda1df49aa75ec2.js.map
Edit
assets-manifest.json
Edit
barChartPanel.eecdaeab7d146d477721.js
Edit
barChartPanel.eecdaeab7d146d477721.js.map
Edit
barGaugePanel.6d9e94bbb72ba92a0e9b.js
Edit
barGaugePanel.6d9e94bbb72ba92a0e9b.js.map
Edit
candlestickPanel.af0e0decd06e7b7ab286.js
Edit
candlestickPanel.af0e0decd06e7b7ab286.js.map
Edit
canvasPanel.ddab72fab6e58c3419b2.js
Edit
canvasPanel.ddab72fab6e58c3419b2.js.map
Edit
cloudwatchPlugin.06ef34f60000c4f7ea37.js
Edit
cloudwatchPlugin.06ef34f60000c4f7ea37.js.map
Edit
dark.b66fa87185b9a313ec14.js
Edit
dashListPanel.23b954da0c4888602048.js
Edit
dashListPanel.23b954da0c4888602048.js.map
Edit
dataGridPanel.bb5d4b678cba38dd380b.js
Edit
debugPanel.fff63da32084d7a2e236.js
Edit
debugPanel.fff63da32084d7a2e236.js.map
Edit
elasticsearchPlugin.3f2edb012f5162b48903.js
Edit
elasticsearchPlugin.3f2edb012f5162b48903.js.map
Edit
explore-feature-toggle-page.3de03fa91c88d05cea1c.js
Edit
explore-feature-toggle-page.3de03fa91c88d05cea1c.js.map
Edit
explore.dd32637df83326225e0d.js
Edit
explore.dd32637df83326225e0d.js.map
Edit
flamegraphPanel.cc6c5b4bcd69e406fbb7.js
Edit
flamegraphPanel.cc6c5b4bcd69e406fbb7.js.map
Edit
gaugePanel.5da3c4e39a652e281cc4.js
Edit
gaugePanel.5da3c4e39a652e281cc4.js.map
Edit
gazetteer
Edit
geomapPanel.67ebb4567e9b5fa5074b.js
Edit
gettingStartedPanel.833059170dbbf8d5c4bf.js
Edit
gettingStartedPanel.833059170dbbf8d5c4bf.js.map
Edit
grafana.1492.25120d27db88f863e058.css
Edit
grafana.4350.a45e45977094df4a0bc9.css
Edit
grafana.5790.ffb3a9cd952d3cd7471b.css
Edit
grafana.DashboardPage.a66335f88cd003e4a44f.css
Edit
grafana.DashboardPageProxy.a66335f88cd003e4a44f.css
Edit
grafana.app.1f6473bb54b1e1647be8.css
Edit
grafana.dark.1e8d85816912aadbbba5.css
Edit
grafana.dataGridPanel.c1fc5db1829b1b31eb4d.css
Edit
grafana.geomapPanel.0057d964fa972bb207ec.css
Edit
grafana.light.111a5a99fcebc0962ddc.css
Edit
grafana.livePanel.25120d27db88f863e058.css
Edit
grafana.react-monaco-editor.ffb3a9cd952d3cd7471b.css
Edit
grafana.swagger.d0a2da197b9827204ac1.css
Edit
grafana.tablePanel.25120d27db88f863e058.css
Edit
grafanaPlugin.f21cdb4b84a732cc9dd8.js
Edit
grafanaPlugin.f21cdb4b84a732cc9dd8.js.map
Edit
heatmapPanel.7834b997bc573eddba88.js
Edit
heatmapPanel.7834b997bc573eddba88.js.map
Edit
histogramPanel.9953bfeccf8774500c0c.js
Edit
histogramPanel.9953bfeccf8774500c0c.js.map
Edit
img
Edit
influxdbPlugin.7a899e63be0a65d41e13.js
Edit
influxdbPlugin.7a899e63be0a65d41e13.js.map
Edit
light.827d442410485e491818.js
Edit
livePanel.2a43f499bc746d928d45.js
Edit
livePanel.2a43f499bc746d928d45.js.map
Edit
logsPanel.a328022d248508a083c1.js
Edit
logsPanel.a328022d248508a083c1.js.map
Edit
loki-query-field.f9a0b82b636d4821760c.js
Edit
loki-query-field.f9a0b82b636d4821760c.js.map
Edit
maps
Edit
mixedPlugin.3a69de93f366afbb2f85.js
Edit
newsPanel.c17f40f7c88ea14620e7.js
Edit
newsPanel.c17f40f7c88ea14620e7.js.map
Edit
nodeGraphPanel.f717a9075d994a9a8af4.js
Edit
nodeGraphPanel.f717a9075d994a9a8af4.js.map
Edit
opentsdbPlugin.1795eab1c223ea030c2e.js
Edit
opentsdbPlugin.1795eab1c223ea030c2e.js.map
Edit
pieChartPanel.45166aa6d57d163817ea.js
Edit
pieChartPanel.45166aa6d57d163817ea.js.map
Edit
prometheusPlugin.c3a55eb5353085fc3d2b.js
Edit
prometheusPlugin.c3a55eb5353085fc3d2b.js.map
Edit
radialBarPanel.294c52d497d8f5c2bebb.js
Edit
radialBarPanel.294c52d497d8f5c2bebb.js.map
Edit
runtime.a37cc2f12a959f33871a.js
Edit
runtime.a37cc2f12a959f33871a.js.map
Edit
sql-query-editor.e767d4a2aef360034bd9.js
Edit
sql-query-editor.e767d4a2aef360034bd9.js.map
Edit
statPanel.3a7f191bfb27fd320014.js
Edit
statPanel.3a7f191bfb27fd320014.js.map
Edit
stateTimelinePanel.08d857b143ef89dc195f.js
Edit
stateTimelinePanel.08d857b143ef89dc195f.js.map
Edit
static
Edit
statusHistoryPanel.29f7b8dc01039ba795af.js
Edit
statusHistoryPanel.29f7b8dc01039ba795af.js.map
Edit
swagger.06875a6266679f54141d.js
Edit
swagger.06875a6266679f54141d.js.map
Edit
tablePanel.43861ce2a60617dcd19d.js
Edit
tablePanel.43861ce2a60617dcd19d.js.map
Edit
textPanel.867ee60d01b2039aa159.js
Edit
textPanel.867ee60d01b2039aa159.js.map
Edit
timeseriesPanel.b4a947da450030262a31.js
Edit
timeseriesPanel.b4a947da450030262a31.js.map
Edit
tracesPanel.35bfc3e5ff6bea4212a3.js
Edit
tracesPanel.35bfc3e5ff6bea4212a3.js.map
Edit
trendPanel.001aff2bd153e737c464.js
Edit
trendPanel.001aff2bd153e737c464.js.map
Edit
vis-data.b34535ebabc0fcb91557.js
Edit
vis-data.b34535ebabc0fcb91557.js.map
Edit
vis-network.1b41caf21892c9525709.js
Edit
vis-network.1b41caf21892c9525709.js.map
Edit
welcomeBanner.1a693c9dc02006be4f0b.js
Edit
welcomeBanner.1a693c9dc02006be4f0b.js.map
Edit
xychart.cb20af67a6c495ba6ccd.js
Edit
xychart.cb20af67a6c495ba6ccd.js.map
Edit