Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
build
/
File Content:
84.a6f8658e6a033d642231.js.map
{"version":3,"file":"84.a6f8658e6a033d642231.js","mappings":"sGACA,EAA6C,CAAE,MAAO,EAAK,EAC3DA,EAAQ,GAAkBA,EAAQ,GAAwB,OAC1DA,EAAQ,GAAwB,CAE5B,YAAa,6DACb,SAAU,CACN,YAAa,GACjB,EACA,SAAU,CACN,CAAC,IAAK,GAAG,EACT,CAAC,IAAK,GAAG,EACT,CAAC,IAAK,GAAG,CACb,EACA,iBAAkB,CACd,CAAE,KAAM,IAAK,MAAO,GAAI,EACxB,CAAE,KAAM,IAAK,MAAO,GAAI,EACxB,CAAE,KAAM,IAAK,MAAO,GAAI,EACxB,CAAE,KAAM,IAAK,MAAO,GAAI,EACxB,CAAE,KAAM,IAAK,MAAO,GAAI,EACxB,CAAE,KAAM,IAAK,MAAO,GAAI,CAC5B,EACA,iBAAkB,CACd,CAAE,KAAM,IAAK,MAAO,GAAI,EACxB,CAAE,KAAM,IAAK,MAAO,GAAI,EACxB,CAAE,KAAM,IAAK,MAAO,GAAI,EACxB,CAAE,KAAM,IAAK,MAAO,GAAI,EACxB,CAAE,KAAM,IAAK,MAAO,GAAI,EACxB,CAAE,KAAM,IAAK,MAAO,GAAI,EACxB,CAAE,KAAM,IAAK,MAAO,GAAI,CAC5B,EACA,QAAS,CAAC,CACd,EAGA,IAAIC,EAAe,CACf,MACA,MACA,MACA,MACA,SACA,SACA,QACA,OACA,SACJ,EAGIC,EAAU,CAAC,OAAQ,SAAU,SAAU,SAAU,SAAS,EAG1DC,EAAqB,CAAC,cAAe,cAAc,EAGnDC,EAAsB,CACtB,kBACA,OACA,kBACA,aACA,gBACA,gBACA,gBACA,gBACA,mBACA,mBACA,qBACA,kBACA,iBACA,kBACJ,EAEIC,EAAkB,CAAC,KAAM,SAAS,EAElCC,GAAsB,IAAI,OAAOD,EAAgB,OAAO,SAAUE,GAAMC,GAAM,CAAE,MAAO,GAAG,OA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E,QAAAC,EAAQ,EAAIvD,EAAO,UAAU,+BAA+BiB,EAASmC,CAA2B,EAExGhB,GAA4B,QAAUmB,GAKtC,MAAMC,GAAe,IAAM,CACzB,MAAMC,EAAe1B,EAAa,QAClC,GAAI0B,IAAiB,KAAM,CACzB,MAAMC,EAAcnB,EAAO,iBAAiB,EAC5CkB,EAAa,MAAM,OAAS,GAAGC,EAAc1C,OAC7C,MAAM2C,EAAaF,EAAa,YAChClB,EAAO,OAAO,CAAE,MAAOoB,EAAY,OAAQD,CAAY,CAAC,EAE5D,EAEAnB,EAAO,uBAAuBiB,EAAY,EAC1CA,GAAa,EAGbjB,EAAO,WACLvC,EAAO,OAAO,MAAQA,EAAO,QAAQ,MACrC,IAAM,CACJkC,EAAc,QAAQK,EAAO,SAAS,CAAC,CACzC,EACA,kBAAoBV,CACtB,EAEAU,EAAO,qBAAqB,IAAM,CAChCO,GAAgB,IAAI,EAAI,EACpBP,EAAO,SAAS,EAAE,KAAK,IAAM,IAC/BA,EAAO,QAAQ,GAAI,+BAAgC,CAAC,CAAC,CAEzD,CAAC,EAEDD,GAAetC,EAAQuC,CAAM,CAC/B,EACF,CACF,CAEJ,C,mDC5QIN,EAAY,SAAUtL,EAAO,CAC7B,IAAIuO,KAAM,UAAOvO,CAAK,EACtB,OAAAuO,EAAI,QAAUvO,EACPuO,CACX,EACA,QAAejD,C","sources":["webpack://grafana/./node_modules/@grafana/monaco-logql/index.js","webpack://grafana/./public/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/./public/app/plugins/datasource/tempo/_importedDependencies/datasources/loki/monaco-query-field/getOverrideServices.ts","webpack://grafana/./public/app/plugins/datasource/tempo/_importedDependencies/datasources/loki/monaco-query-field/monaco-completion-provider/NeverCaseError.ts","webpack://grafana/./public/app/plugins/datasource/tempo/_importedDependencies/datasources/loki/monaco-query-field/monaco-completion-provider/situation.ts","webpack://grafana/./public/app/plugins/datasource/tempo/_importedDependencies/datasources/loki/monaco-query-field/monaco-completion-provider/index.ts","webpack://grafana/./public/app/plugins/datasource/tempo/_importedDependencies/datasources/loki/monaco-query-field/monaco-completion-provider/CompletionDataProvider.ts","webpack://grafana/./public/app/plugins/datasource/tempo/_importedDependencies/datasources/loki/monaco-query-field/monaco-completion-provider/validation.ts","webpack://grafana/./public/app/plugins/datasource/tempo/_importedDependencies/datasources/loki/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+(?:ms|[smhdwy])/, \"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 getHistory() {\n return chain(this.historyRef.current)\n .map((history: HistoryItem<LokiQuery>) => history.query.expr)\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 have to use a special endpoint\n return this.languageProvider.getLabelKeys();\n }\n const data = await this.getSeriesLabels(otherLabels);\n const possibleLabelNames = Object.keys(data); // all names from datasource\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 if (otherLabels.length === 0) {\n // if there is no filtering, we have to use a special endpoint\n return await this.languageProvider.fetchLabelValues(labelName, { timeRange: this.timeRange });\n }\n\n const data = await this.getSeriesLabels(otherLabels);\n return data[labelName] ?? [];\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 this.queryToLabelKeysCache.delete(firstKey);\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 async getSeriesLabels(labels: Label[]) {\n return await this.languageProvider\n .fetchSeriesLabels(this.buildSelector(labels), { timeRange: this.timeRange })\n .then((data) => data ?? {});\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: [[Selector], [Selector, Matchers], [Matchers], [ERROR_NODE_ID, Matchers, Selector]],\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 =\n node.type.id === ERROR_NODE_ID\n ? walk(node, [\n ['parent', Matchers],\n ['parent', Selector],\n ])\n : 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 React, { 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 border-radius: ${theme.shape.radius.default};\n border: 1px solid ${theme.components.input.borderColor};\n width: 100%;\n .monaco-editor .suggest-widget {\n min-width: 50%;\n }\n `,\n placeholder: css`\n ::after {\n content: '${placeholder}';\n font-family: ${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\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 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 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 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 { 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","// 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","export 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\n/**\n * THIS METHOD IS KNOWN TO BE INCOMPLETE due to the decoupling of the Tempo datasource from Grafana core:\n * Incomplete support for LogQL autocomplete from 'public/app/plugins/datasource/loki/components/monaco-query-field/monaco-completion-provider/situation.ts';\n */\nexport const getSituation = (text: string, pos: number): Situation | null => {\n return {\n type: 'EMPTY',\n };\n};\n","import type { Monaco, monacoTypes } from '@grafana/ui';\n\nimport { CompletionDataProvider } from './CompletionDataProvider';\nimport { NeverCaseError } from './NeverCaseError';\nimport { Situation, getSituation } from './situation';\n\ntype 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 DURATION_COMPLETIONS: Completion[] = ['$__auto', '1m', '5m', '10m', '30m', '1h', '1d'].map((text) => ({\n type: 'DURATION',\n label: text,\n insertText: text,\n}));\nconst getCompletions = async (situation: Situation, dataProvider: CompletionDataProvider) => {\n return DURATION_COMPLETIONS;\n};\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 as never);\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 { chain } from 'lodash';\n\nimport { HistoryItem } from '@grafana/data';\n\nimport { LokiQuery, ParserAndLabelKeysResult, LanguageProvider } from '../../types';\n\nexport function escapeLabelValueInExactSelector(labelValue: string): string {\n return labelValue.replace(/\\\\/g, '\\\\\\\\').replace(/\\n/g, '\\\\n').replace(/\"/g, '\\\\\"');\n}\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 ) {\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 getHistory() {\n return chain(this.historyRef.current)\n .map((history: HistoryItem<LokiQuery>) => history.query.expr)\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 have to use a special endpoint\n return this.languageProvider.getLabelKeys();\n }\n const data = await this.getSeriesLabels(otherLabels);\n const possibleLabelNames = Object.keys(data); // all names from datasource\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 if (otherLabels.length === 0) {\n // if there is no filtering, we have to use a special endpoint\n return await this.languageProvider.fetchLabelValues(labelName);\n }\n\n const data = await this.getSeriesLabels(otherLabels);\n return data[labelName] ?? [];\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 this.queryToLabelKeysCache.delete(firstKey);\n }\n // Fetch a fresh result from the backend\n const labelKeys = await this.languageProvider.getParserAndLabelKeys(logQuery);\n // Add the result to the cache\n this.queryToLabelKeysCache.set(logQuery, labelKeys);\n return labelKeys;\n }\n }\n\n async getSeriesLabels(labels: Label[]) {\n return await this.languageProvider.fetchSeriesLabels(this.buildSelector(labels)).then((data: any) => data ?? {});\n }\n}\n","import { SyntaxNode } from '@lezer/common';\nimport { LRParser } from '@lezer/lr';\n\n// import { ErrorId } from 'app/plugins/datasource/prometheus/querybuilder/shared/parsingUtils';\nconst ErrorId = 0;\n\ninterface ParserErrorBoundary {\n startLineNumber: number;\n startColumn: number;\n endLineNumber: number;\n endColumn: number;\n error: string;\n}\n\ninterface ParseError {\n text: string;\n node: SyntaxNode;\n}\n\n/**\n * Conceived to work in combination with the MonacoQueryField component.\n * Given an original query, and it's interpolated version, it will return an array of ParserErrorBoundary\n * objects containing nodes which are actual errors. The interpolated version (even with placeholder variables)\n * is required because variables look like errors for Lezer.\n * @internal\n */\nexport function validateQuery(\n query: string,\n interpolatedQuery: string,\n queryLines: string[],\n parser: LRParser\n): ParserErrorBoundary[] | false {\n if (!query) {\n return false;\n }\n\n /**\n * To provide support to variable interpolation in query validation, we run the parser in the interpolated\n * query. If there are errors there, we trace them back to the original unparsed query, so we can more\n * accurately highlight the error in the query, since it's likely that the variable name and variable value\n * have different lengths. With this, we also exclude irrelevant parser errors that are produced by\n * lezer not understanding $variables and $__variables, which usually generate 2 or 3 error SyntaxNode.\n */\n const interpolatedErrors: ParseError[] = parseQuery(interpolatedQuery, parser);\n if (!interpolatedErrors.length) {\n return false;\n }\n\n let parseErrors: ParseError[] = interpolatedErrors;\n if (query !== interpolatedQuery) {\n const queryErrors: ParseError[] = parseQuery(query, parser);\n parseErrors = interpolatedErrors.flatMap(\n (interpolatedError) =>\n queryErrors.filter((queryError) => interpolatedError.text === queryError.text) || interpolatedError\n );\n }\n\n return parseErrors.map((parseError) => findErrorBoundary(query, queryLines, parseError)).filter(isErrorBoundary);\n}\n\nfunction parseQuery(query: string, parser: LRParser) {\n const parseErrors: ParseError[] = [];\n const tree = parser.parse(query);\n tree.iterate({\n enter: (nodeRef): false | void => {\n if (nodeRef.type.id === ErrorId) {\n const node = nodeRef.node;\n parseErrors.push({\n node: node,\n text: query.substring(node.from, node.to),\n });\n }\n },\n });\n return parseErrors;\n}\n\nfunction findErrorBoundary(query: string, queryLines: string[], parseError: ParseError): ParserErrorBoundary | null {\n if (queryLines.length === 1) {\n const isEmptyString = parseError.node.from === parseError.node.to;\n const errorNode = isEmptyString && parseError.node.parent ? parseError.node.parent : parseError.node;\n const error = isEmptyString ? query.substring(errorNode.from, errorNode.to) : parseError.text;\n return {\n startLineNumber: 1,\n startColumn: errorNode.from + 1,\n endLineNumber: 1,\n endColumn: errorNode.to + 1,\n error,\n };\n }\n\n let startPos = 0,\n endPos = 0;\n for (let line = 0; line < queryLines.length; line++) {\n endPos = startPos + queryLines[line].length;\n\n if (parseError.node.from > endPos) {\n startPos += queryLines[line].length + 1;\n continue;\n }\n\n return {\n startLineNumber: line + 1,\n startColumn: parseError.node.from - startPos + 1,\n endLineNumber: line + 1,\n endColumn: parseError.node.to - startPos + 1,\n error: parseError.text,\n };\n }\n\n return null;\n}\n\nfunction isErrorBoundary(boundary: ParserErrorBoundary | null): boundary is ParserErrorBoundary {\n return boundary !== null;\n}\n\nexport const placeHolderScopedVars = {\n __interval: { text: '1s', value: '1s' },\n __rate_interval: { text: '1s', value: '1s' },\n __auto: { text: '1s', value: '1s' },\n __interval_ms: { text: '1000', value: 1000 },\n __range_ms: { text: '1000', value: 1000 },\n __range_s: { text: '1', value: 1 },\n __range: { text: '1s', value: '1s' },\n};\n","import { css } from '@emotion/css';\nimport { debounce } from 'lodash';\nimport React, { 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 { getCompletionProvider, getSuggestOptions } from './monaco-completion-provider';\nimport { CompletionDataProvider } from './monaco-completion-provider/CompletionDataProvider';\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 border-radius: ${theme.shape.radius.default};\n border: 1px solid ${theme.components.input.borderColor};\n width: 100%;\n .monaco-editor .suggest-widget {\n min-width: 50%;\n }\n `,\n placeholder: css`\n ::after {\n content: '${placeholder}';\n font-family: ${theme.typography.fontFamilyMonospace};\n opacity: 0.3;\n }\n `,\n };\n};\n\nconst MonacoQueryField = ({ history, onBlur, onRunQuery, initialValue, datasource, placeholder, onChange }: 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\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 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 aria-label={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 }: any) => ({\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);\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 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","autocompleteCleanupCallback","styles","setPlaceholder","editor","placeholderDecorators","decorators","checkDecorators","newDecorators","onTypeDebounced","selectors","isEditorFocused","e","markers","error","boundary","completionProvider","filteringCompletionProvider","context","token","dispose","handleResize","containerDiv","pixelHeight","pixelWidth","escapeLabelValueInExactSelector","labelValue","ErrorId","validateQuery","interpolatedQuery","queryLines","interpolatedErrors","parseQuery","parseErrors","queryErrors","interpolatedError","queryError","parseError","findErrorBoundary","isErrorBoundary","nodeRef","isEmptyString","errorNode","startPos","endPos","line","placeHolderScopedVars","ref"],"sourceRoot":""}
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
static
---
0755
0.c88fc16b6533c8976681.js
11857 bytes
0644
0.c88fc16b6533c8976681.js.map
46011 bytes
0644
1118.6d1cbbd2070e00a7483d.js
9459 bytes
0644
1118.6d1cbbd2070e00a7483d.js.map
22012 bytes
0644
1121.6c31bf81768d3312b0d4.js
11557 bytes
0644
1121.6c31bf81768d3312b0d4.js.map
40274 bytes
0644
1122.1b3b5a9bdf4a2fc70a83.js
4310 bytes
0644
1122.1b3b5a9bdf4a2fc70a83.js.map
9301 bytes
0644
1133.cd705902767ed2e9bf55.js
107191 bytes
0644
1133.cd705902767ed2e9bf55.js.map
459177 bytes
0644
1216.ddb58ad09e0c4e3f4079.js
12860 bytes
0644
1216.ddb58ad09e0c4e3f4079.js.map
47906 bytes
0644
1282.2347f27d5b3a18a42a1e.js
2965 bytes
0644
1282.2347f27d5b3a18a42a1e.js.map
6699 bytes
0644
1345.8570fef914aafab94513.js
2223 bytes
0644
1345.8570fef914aafab94513.js.map
5201 bytes
0644
1347.8ad23b870a6e21306189.js
32035 bytes
0644
1347.8ad23b870a6e21306189.js.map
89851 bytes
0644
1420.f2553cafc235b7c32261.js
14576 bytes
0644
1420.f2553cafc235b7c32261.js.map
32839 bytes
0644
1438.897db349b7f48a15b9eb.js
2830 bytes
0644
1438.897db349b7f48a15b9eb.js.map
6911 bytes
0644
1446.babd36e7134aac1046c4.js
1832 bytes
0644
1446.babd36e7134aac1046c4.js.map
3282 bytes
0644
1488.ff35935a06f41b02b6cc.js
316 bytes
0644
1488.ff35935a06f41b02b6cc.js.map
1206 bytes
0644
1560.30962127c91e5eae9982.js
8916 bytes
0644
1560.30962127c91e5eae9982.js.map
20515 bytes
0644
1660.e1f66118fb028d12074f.js
21866 bytes
0644
1660.e1f66118fb028d12074f.js.map
71039 bytes
0644
1698.68ff1ef08e94a87836b3.js
12570 bytes
0644
1698.68ff1ef08e94a87836b3.js.map
46006 bytes
0644
1708.f42a783c0f6c7a317d49.js
2249 bytes
0644
1708.f42a783c0f6c7a317d49.js.map
2954 bytes
0644
1710.d96221051fceaf8c89dd.js
10172 bytes
0644
1710.d96221051fceaf8c89dd.js.map
22097 bytes
0644
1740.e57d920c47a11759ade4.js
6204 bytes
0644
1740.e57d920c47a11759ade4.js.map
13740 bytes
0644
1888.0ede69d3190c536744b9.js
6822 bytes
0644
1888.0ede69d3190c536744b9.js.map
15421 bytes
0644
1914.58113477b565d57e8bfe.js
10710 bytes
0644
1914.58113477b565d57e8bfe.js.map
23555 bytes
0644
198.b84c0e4f5759344ae05a.js
8267 bytes
0644
198.b84c0e4f5759344ae05a.js.map
19446 bytes
0644
205.6c51b5e35c8147226738.js
3542 bytes
0644
205.6c51b5e35c8147226738.js.map
8376 bytes
0644
2058.0e5df44647184aaf02e2.js
1252 bytes
0644
2058.0e5df44647184aaf02e2.js.map
4744 bytes
0644
2077.12b2df3682085a92a810.js
34133 bytes
0644
2077.12b2df3682085a92a810.js.map
122011 bytes
0644
2094.259625d8acf28b9c7361.js
16518 bytes
0644
2094.259625d8acf28b9c7361.js.map
41269 bytes
0644
21.afca69f2d336e287a655.js
6172 bytes
0644
21.afca69f2d336e287a655.js.map
17305 bytes
0644
2136.9c8dcd43d3af327f51f5.js
498667 bytes
0644
2136.9c8dcd43d3af327f51f5.js.map
1908011 bytes
0644
2228.cf629cf4a83c5b6c2671.js
269 bytes
0644
2228.cf629cf4a83c5b6c2671.js.map
457 bytes
0644
2244.9324c28eca7d2ffb7568.js
3396 bytes
0644
2244.9324c28eca7d2ffb7568.js.map
7683 bytes
0644
2261.ac6a26854d5acee00776.js
106373 bytes
0644
2261.ac6a26854d5acee00776.js.map
478562 bytes
0644
2278.bdd73b14b6337c6b14e4.js
5754 bytes
0644
2278.bdd73b14b6337c6b14e4.js.map
13399 bytes
0644
2398.3de0e7aa3057b7dcf9da.js
8016 bytes
0644
2398.3de0e7aa3057b7dcf9da.js.map
18383 bytes
0644
2514.c86950e9813e27962050.js
1983 bytes
0644
2514.c86950e9813e27962050.js.map
4863 bytes
0644
2571.345ecfd2b82551018f2e.js
162139 bytes
0644
2571.345ecfd2b82551018f2e.js.map
2046 bytes
0644
2586.972e9a7d564398afee76.js
6385 bytes
0644
2586.972e9a7d564398afee76.js.map
14676 bytes
0644
2658.f4100815829c4d37d35c.js
5432 bytes
0644
2658.f4100815829c4d37d35c.js.map
13650 bytes
0644
2686.2fbaa7db9c01d59cad8d.js
2815 bytes
0644
2686.2fbaa7db9c01d59cad8d.js.map
6564 bytes
0644
2692.20098ad0182743d98d62.js
2282 bytes
0644
2692.20098ad0182743d98d62.js.map
5680 bytes
0644
2694.a31d749361a36eb167da.js
2726 bytes
0644
2694.a31d749361a36eb167da.js.map
3618 bytes
0644
2745.2e5ec1fdf377d2940fb4.js
33584 bytes
0644
2745.2e5ec1fdf377d2940fb4.js.map
120277 bytes
0644
2962.4c3147d8ee365fe296ef.js
7640 bytes
0644
2962.4c3147d8ee365fe296ef.js.map
17621 bytes
0644
3042.248a4194805a8500fd28.js
19010 bytes
0644
3042.248a4194805a8500fd28.js.map
38148 bytes
0644
3062.4e9a427c2a59d53f902e.js
4663 bytes
0644
3062.4e9a427c2a59d53f902e.js.map
10650 bytes
0644
3082.c09cff56c35d736ee8b6.js
52872 bytes
0644
3082.c09cff56c35d736ee8b6.js.map
56822 bytes
0644
3096.8d41728a4f5010bc56a2.js
4378 bytes
0644
3096.8d41728a4f5010bc56a2.js.map
10739 bytes
0644
3098.f22ad6dab13d06477be0.js
31462 bytes
0644
3098.f22ad6dab13d06477be0.js.map
85588 bytes
0644
3182.1d531f28507c00e391fc.js
13817 bytes
0644
3182.1d531f28507c00e391fc.js.map
26653 bytes
0644
3407.666eb88a718e66b93f72.js
34425 bytes
0644
3407.666eb88a718e66b93f72.js.map
103716 bytes
0644
3418.d31d882b87bd5a2ef66f.js
33061 bytes
0644
3418.d31d882b87bd5a2ef66f.js.map
114234 bytes
0644
3541.8d063e3d43d55745d89b.js
20582 bytes
0644
3541.8d063e3d43d55745d89b.js.map
67154 bytes
0644
3543.eecef49ce94da5ee0418.js
136752 bytes
0644
3543.eecef49ce94da5ee0418.js.map
446118 bytes
0644
3622.976b1aef94b333e450b9.js
1260 bytes
0644
3622.976b1aef94b333e450b9.js.map
2819 bytes
0644
3686.102abfc00452299017bb.js
87 bytes
0644
3718.3993946b7a0eb8f64b4d.js
23620 bytes
0644
3718.3993946b7a0eb8f64b4d.js.map
92024 bytes
0644
3726.3adfe210678d2cd26969.js
31765 bytes
0644
3726.3adfe210678d2cd26969.js.map
118227 bytes
0644
398.4e93ffb675609ea7a9c6.js
2990 bytes
0644
398.4e93ffb675609ea7a9c6.js.map
7145 bytes
0644
4114.953b39a9ce57caa0e87a.js
2536 bytes
0644
4114.953b39a9ce57caa0e87a.js.map
6028 bytes
0644
4120.67bf5d203ed4a2eb5f1b.js
3229 bytes
0644
4120.67bf5d203ed4a2eb5f1b.js.map
7533 bytes
0644
4209.c7060d489834063658f5.js
17352 bytes
0644
4209.c7060d489834063658f5.js.map
30980 bytes
0644
4254.c5f4a5512b252e3a5796.js
71716 bytes
0644
4254.c5f4a5512b252e3a5796.js.map
237783 bytes
0644
4289.d5662b0904798ff437e9.js
16496 bytes
0644
4289.d5662b0904798ff437e9.js.map
32015 bytes
0644
4334.bc078c368a20ed3257b6.js
2598 bytes
0644
4334.bc078c368a20ed3257b6.js.map
6308 bytes
0644
4630.b604ea691184ba563d59.js
5585 bytes
0644
4630.b604ea691184ba563d59.js.map
11866 bytes
0644
4680.358dfdd92851f69ecc97.js
4573 bytes
0644
4680.358dfdd92851f69ecc97.js.map
10841 bytes
0644
4698.696713071ff5d9929a11.js
3682 bytes
0644
4698.696713071ff5d9929a11.js.map
8967 bytes
0644
4787.bd938ea7cb58d64ee246.js
738 bytes
0644
4787.bd938ea7cb58d64ee246.js.map
2168 bytes
0644
4839.17a10e0ceca3eb8954b4.js
39585 bytes
0644
4839.17a10e0ceca3eb8954b4.js.map
145699 bytes
0644
494.8cf705bc1ea509187c88.js
3796 bytes
0644
494.8cf705bc1ea509187c88.js.map
8987 bytes
0644
4958.cd447d877778fc5af081.js
4923 bytes
0644
4958.cd447d877778fc5af081.js.map
11000 bytes
0644
4962.0da526ad79f816a15985.js
2242 bytes
0644
4962.0da526ad79f816a15985.js.map
4978 bytes
0644
50.7b1e44d5b9dbbed566be.js
617497 bytes
0644
50.7b1e44d5b9dbbed566be.js.map
2271464 bytes
0644
5017.003cacead1bba1cba035.js
3567142 bytes
0644
5017.003cacead1bba1cba035.js.map
13214665 bytes
0644
5130.4d31108de97088a3b014.js
2850 bytes
0644
5130.4d31108de97088a3b014.js.map
6536 bytes
0644
5196.064b914693b6a5591a48.js
4035 bytes
0644
5196.064b914693b6a5591a48.js.map
10273 bytes
0644
5240.eceb5f73f807ac22d800.js
704 bytes
0644
5240.eceb5f73f807ac22d800.js.map
2618 bytes
0644
5277.ce6608b6f47246e32767.js
269 bytes
0644
5277.ce6608b6f47246e32767.js.map
457 bytes
0644
5280.4348c762594edebf7d0e.js
16657 bytes
0644
5280.4348c762594edebf7d0e.js.map
89146 bytes
0644
5356.eabc0dc2021a3814a65f.js
10156 bytes
0644
5356.eabc0dc2021a3814a65f.js.map
25249 bytes
0644
5358.7c5e9e1b192582f3082d.js
6173 bytes
0644
5358.7c5e9e1b192582f3082d.js.map
19652 bytes
0644
5364.ac21c32fd45a27bc998a.js
3070 bytes
0644
5364.ac21c32fd45a27bc998a.js.map
7368 bytes
0644
5398.d0c11aa7c1232f4afe44.js
81872 bytes
0644
5398.d0c11aa7c1232f4afe44.js.map
769414 bytes
0644
5428.e85b0800b30feca9d7dc.js
330175 bytes
0644
5428.e85b0800b30feca9d7dc.js.map
530929 bytes
0644
5511.93023985e5c5efe49ae2.js
21275 bytes
0644
5511.93023985e5c5efe49ae2.js.map
93188 bytes
0644
5550.9284e42acc3f2bbdfc9d.js
7039 bytes
0644
5550.9284e42acc3f2bbdfc9d.js.map
16382 bytes
0644
558.701e8b4db7b852c4a10d.js
12211 bytes
0644
558.701e8b4db7b852c4a10d.js.map
24505 bytes
0644
5618.638c32d58d896f3f7261.js
3348 bytes
0644
5618.638c32d58d896f3f7261.js.map
8181 bytes
0644
5648.cb3fd92dbbc06f7d45d2.js
57392 bytes
0644
5648.cb3fd92dbbc06f7d45d2.js.map
60585 bytes
0644
5786.db7abc3b8e4f474a8f7b.js
5325 bytes
0644
5786.db7abc3b8e4f474a8f7b.js.map
11885 bytes
0644
5807.f05d997ece5811bbc849.js
2922915 bytes
0644
5807.f05d997ece5811bbc849.js.map
10524334 bytes
0644
5950.30ec6aaa9dcece6c3b3c.js
4616249 bytes
0644
5950.30ec6aaa9dcece6c3b3c.js.map
19277501 bytes
0644
6018.f4de7ac19ac8f0c774e6.js
5861 bytes
0644
6018.f4de7ac19ac8f0c774e6.js.map
13314 bytes
0644
6029.0549a3fcb50e73c4b256.js
409895 bytes
0644
6029.0549a3fcb50e73c4b256.js.map
998408 bytes
0644
6185.883629fcc773b4968b24.js
2258 bytes
0644
6185.883629fcc773b4968b24.js.map
4788 bytes
0644
6263.e4ef9aaa3073ebacc3a5.js
54594 bytes
0644
6263.e4ef9aaa3073ebacc3a5.js.map
242030 bytes
0644
6302.257b2eb06c25ee74090e.js
8440 bytes
0644
6302.257b2eb06c25ee74090e.js.map
19322 bytes
0644
6359.f824c85233ec703f8cea.js
11411 bytes
0644
6359.f824c85233ec703f8cea.js.map
41881 bytes
0644
6377.45d36c143a694fc45bd3.js
20571 bytes
0644
6377.45d36c143a694fc45bd3.js.map
79590 bytes
0644
6378.27b1e6d863a0a3b85962.js
977993 bytes
0644
6378.27b1e6d863a0a3b85962.js.map
3865587 bytes
0644
6414.192cf271de6ecbbbcb11.js
3984 bytes
0644
6414.192cf271de6ecbbbcb11.js.map
9134 bytes
0644
6446.b4b93ee91aa1bb57ea93.js
7731 bytes
0644
6446.b4b93ee91aa1bb57ea93.js.map
17485 bytes
0644
6464.f379e014f9909e621de6.js
34429 bytes
0644
6464.f379e014f9909e621de6.js.map
113303 bytes
0644
6499.9f52e0855fd4782a8b45.js
78297 bytes
0644
6499.9f52e0855fd4782a8b45.js.map
273155 bytes
0644
6587.bfb1ca0c32c6f325b0df.js
135004 bytes
0644
6587.bfb1ca0c32c6f325b0df.js.map
541974 bytes
0644
660.838743295c2108f3492d.js
43101 bytes
0644
660.838743295c2108f3492d.js.map
100340 bytes
0644
6678.a615dbe07b8a3e591e66.js
14725 bytes
0644
6678.a615dbe07b8a3e591e66.js.map
51145 bytes
0644
680.1a328432fae403eacab3.js
53846 bytes
0644
680.1a328432fae403eacab3.js.map
57615 bytes
0644
6830.0c200fec1efc2be388e2.js
5811 bytes
0644
6830.0c200fec1efc2be388e2.js.map
13972 bytes
0644
6934.fa19d392db34411fb300.js
168944 bytes
0644
6934.fa19d392db34411fb300.js.map
540337 bytes
0644
6940.9c5d3a2dcf9d7d58fa2c.js
3408 bytes
0644
6940.9c5d3a2dcf9d7d58fa2c.js.map
8039 bytes
0644
6969.f8f153735314f9426000.js
1119 bytes
0644
6969.f8f153735314f9426000.js.map
4230 bytes
0644
6990.cc2f5674128929a3f870.js
4418 bytes
0644
6990.cc2f5674128929a3f870.js.map
10503 bytes
0644
7048.117de444b1e1cb5a1360.js
4365 bytes
0644
7048.117de444b1e1cb5a1360.js.map
10316 bytes
0644
7166.480da6892ee84ee8bb53.js
593985 bytes
0644
7166.480da6892ee84ee8bb53.js.map
2430098 bytes
0644
7200.dc60128b9d612fc7b5b0.js
3634 bytes
0644
7200.dc60128b9d612fc7b5b0.js.map
8184 bytes
0644
7246.3adf293a34fa2043387b.js
4306 bytes
0644
7246.3adf293a34fa2043387b.js.map
9084 bytes
0644
7400.024c96bd5b99b8b47a63.js
14112 bytes
0644
7400.024c96bd5b99b8b47a63.js.map
64001 bytes
0644
7409.24316c87d08c1053c46a.js
3287 bytes
0644
7409.24316c87d08c1053c46a.js.map
11649 bytes
0644
7455.845968885abe369e6479.js
19801 bytes
0644
7455.845968885abe369e6479.js.map
77213 bytes
0644
7466.09e6e197d2507f62097d.js
11670 bytes
0644
7466.09e6e197d2507f62097d.js.map
24830 bytes
0644
7515.95323f0dfbd0de010e5c.js
1083 bytes
0644
7515.95323f0dfbd0de010e5c.js.map
1321 bytes
0644
7613.6334cff4df12cc157522.js
808779 bytes
0644
7613.6334cff4df12cc157522.js.map
991378 bytes
0644
7836.6a7e4207e70fc2dc235f.js
7192 bytes
0644
7836.6a7e4207e70fc2dc235f.js.map
17613 bytes
0644
7882.1a3cc418752c83396970.js
3743 bytes
0644
7882.1a3cc418752c83396970.js.map
14950 bytes
0644
7886.485c46f14540aa23cf70.js
8668 bytes
0644
7886.485c46f14540aa23cf70.js.map
20124 bytes
0644
7914.2b1a06c504df18e20fe4.js
2390 bytes
0644
7914.2b1a06c504df18e20fe4.js.map
6418 bytes
0644
7982.6761217193d3060dbf0e.js
188973 bytes
0644
7982.6761217193d3060dbf0e.js.map
1737667 bytes
0644
8054.094788468423bb88ee68.js
38124 bytes
0644
8054.094788468423bb88ee68.js.map
132296 bytes
0644
8107.92bd414247a1d05c014f.js
5144 bytes
0644
8107.92bd414247a1d05c014f.js.map
15320 bytes
0644
8230.2eedae6021a4715c6dea.js
2413 bytes
0644
8230.2eedae6021a4715c6dea.js.map
5812 bytes
0644
8332.f4b05d2f028641445650.js
3177 bytes
0644
8332.f4b05d2f028641445650.js.map
7186 bytes
0644
8334.c95ec0eb6900c0cf7e89.js
7803 bytes
0644
8334.c95ec0eb6900c0cf7e89.js.map
17714 bytes
0644
8390.1fd9505094c8cf8830ab.js
2096 bytes
0644
8390.1fd9505094c8cf8830ab.js.map
5157 bytes
0644
84.a6f8658e6a033d642231.js
30608 bytes
0644
84.a6f8658e6a033d642231.js.map
142543 bytes
0644
8494.4470c87b7093ddf70db7.js
2180 bytes
0644
8494.4470c87b7093ddf70db7.js.map
4863 bytes
0644
8542.1391ab96a455b01963a7.js
1514 bytes
0644
8542.1391ab96a455b01963a7.js.map
3249 bytes
0644
8566.e05562713181c6ca30fe.js
3852 bytes
0644
8566.e05562713181c6ca30fe.js.map
8781 bytes
0644
8730.3dcdd8cbf22c63b45d78.js
2109 bytes
0644
8730.3dcdd8cbf22c63b45d78.js.map
2893 bytes
0644
8786.1b0e43b80c82c73e2096.js
1535 bytes
0644
8786.1b0e43b80c82c73e2096.js.map
4055 bytes
0644
8902.37d0b14aa6ef24687b7b.js
2673 bytes
0644
8902.37d0b14aa6ef24687b7b.js.map
5993 bytes
0644
8990.5a822b8788ebf0bdba81.js
3969 bytes
0644
8990.5a822b8788ebf0bdba81.js.map
9161 bytes
0644
9034.200fc7a09b466256c9a9.js
3486 bytes
0644
9034.200fc7a09b466256c9a9.js.map
8180 bytes
0644
9038.7ae2448b9cc5c423aeca.js
4937 bytes
0644
9038.7ae2448b9cc5c423aeca.js.map
11973 bytes
0644
9118.3121c6b96ec7dc211973.js
48311 bytes
0644
9118.3121c6b96ec7dc211973.js.map
62149 bytes
0644
9150.9eb62d45f9b21cb38850.js
10056 bytes
0644
9150.9eb62d45f9b21cb38850.js.map
21143 bytes
0644
9199.9897e268d6d13e834d4c.js
2307 bytes
0644
9199.9897e268d6d13e834d4c.js.map
8853 bytes
0644
9320.c403e78b78aa6df1d0bd.js
336139 bytes
0644
9320.c403e78b78aa6df1d0bd.js.map
1624993 bytes
0644
9355.421530b20c759bb75633.js
22098 bytes
0644
9355.421530b20c759bb75633.js.map
66961 bytes
0644
9384.a0d5fc49f1b15b3e311e.js
2855 bytes
0644
9384.a0d5fc49f1b15b3e311e.js.map
3717 bytes
0644
9390.fa2af7f3d3d9600c08ee.js
4201 bytes
0644
9390.fa2af7f3d3d9600c08ee.js.map
9682 bytes
0644
946.f2494c0c39a9590349b9.js
9194 bytes
0644
946.f2494c0c39a9590349b9.js.map
22193 bytes
0644
9510.4cfa85a51931dc20573a.js
2949 bytes
0644
9510.4cfa85a51931dc20573a.js.map
6939 bytes
0644
9521.de2a74ca5eb365810ca5.js
46306 bytes
0644
9521.de2a74ca5eb365810ca5.js.map
51040 bytes
0644
9538.996ade7a03ccdb01942d.js
64493 bytes
0644
9538.996ade7a03ccdb01942d.js.map
49212 bytes
0644
9569.a8d60b39654a160cb917.js
27965 bytes
0644
9569.a8d60b39654a160cb917.js.map
99160 bytes
0644
9643.b408884004ca73c102bc.js
627 bytes
0644
9643.b408884004ca73c102bc.js.map
2195 bytes
0644
968.22e079d28acb4131d34c.js
4001 bytes
0644
968.22e079d28acb4131d34c.js.map
9740 bytes
0644
970.a61e37b9b897c8098261.js
5239 bytes
0644
970.a61e37b9b897c8098261.js.map
13858 bytes
0644
9711.d6e977bd60f0e5ba673d.js
13555 bytes
0644
9711.d6e977bd60f0e5ba673d.js.map
43973 bytes
0644
9737.3340c89ea96d33307cc7.js
1001 bytes
0644
9737.3340c89ea96d33307cc7.js.map
3504 bytes
0644
9739.5a801055fcf72bf4d06f.js
1147 bytes
0644
9739.5a801055fcf72bf4d06f.js.map
4390 bytes
0644
9772.49e918c9331237552c0b.js
141 bytes
0644
9772.49e918c9331237552c0b.js.map
416 bytes
0644
9838.b8f01dc360f0c2151291.js
4003 bytes
0644
9838.b8f01dc360f0c2151291.js.map
8118 bytes
0644
AdminAuthentication.b7044adf53b669e61a87.js
22504 bytes
0644
AdminAuthentication.b7044adf53b669e61a87.js.map
67352 bytes
0644
AdminEditOrgPage.96fb6c37346641f44246.js
6369 bytes
0644
AdminEditOrgPage.96fb6c37346641f44246.js.map
20602 bytes
0644
AdminFeatureTogglesPage.22157fe31f358f1c4f09.js
4939 bytes
0644
AdminFeatureTogglesPage.22157fe31f358f1c4f09.js.map
16531 bytes
0644
AdminListOrgsPage.f01c8496fd635e20124b.js
2702 bytes
0644
AdminListOrgsPage.f01c8496fd635e20124b.js.map
7735 bytes
0644
AdminSettings.845c6def917892a0c1f9.js
1903 bytes
0644
AdminSettings.845c6def917892a0c1f9.js.map
5580 bytes
0644
AlertAmRoutes.10a0d9a23a082caf12c8.js
54554 bytes
0644
AlertAmRoutes.10a0d9a23a082caf12c8.js.map
208792 bytes
0644
AlertGroups.efd523dc41621f9f7935.js
10088 bytes
0644
AlertGroups.efd523dc41621f9f7935.js.map
39108 bytes
0644
AlertRuleListIndex.f0b17a6119cc5ea575ed.js
44623 bytes
0644
AlertRuleListIndex.f0b17a6119cc5ea575ed.js.map
156842 bytes
0644
AlertRuleListLegacy.8e675db4469232c87308.js
6270 bytes
0644
AlertRuleListLegacy.8e675db4469232c87308.js.map
18086 bytes
0644
AlertSilences.4ff252ad4c0057124d5d.js
24687 bytes
0644
AlertSilences.4ff252ad4c0057124d5d.js.map
83377 bytes
0644
AlertTabCtrl.d3377d127a336a69beb5.js
9844 bytes
0644
AlertTabCtrl.d3377d127a336a69beb5.js.map
27934 bytes
0644
AlertingAdmin.e62f9c73a69abe6a1ac0.js
10523 bytes
0644
AlertingAdmin.e62f9c73a69abe6a1ac0.js.map
37393 bytes
0644
AlertingFeatureTogglePage.f971bb7b2ad4ceb0acbd.js
672 bytes
0644
AlertingFeatureTogglePage.f971bb7b2ad4ceb0acbd.js.map
1220 bytes
0644
AlertingHome.0d6be993ef4a3df37345.js
33492 bytes
0644
AlertingHome.0d6be993ef4a3df37345.js.map
106868 bytes
0644
AlertingRedirectToRule.37a0040f89e20b99b751.js
3648 bytes
0644
AlertingRedirectToRule.37a0040f89e20b99b751.js.map
10875 bytes
0644
AlertingRuleForm.66bb5b2724b31ae6a5a4.js
79931 bytes
0644
AlertingRuleForm.66bb5b2724b31ae6a5a4.js.map
292923 bytes
0644
AlertingUpgrade.c757b99e306db50cdb16.js
31333 bytes
0644
AlertingUpgrade.c757b99e306db50cdb16.js.map
98330 bytes
0644
AngularApp.7e72879caebef22a5217.js
72809 bytes
0644
AngularApp.7e72879caebef22a5217.js.map
102853 bytes
0644
ApiKeysPage.12b0cd511f7b1e9c50dc.js
8422 bytes
0644
ApiKeysPage.12b0cd511f7b1e9c50dc.js.map
23375 bytes
0644
BenchmarksPage.3a183df3d44714f9a96a.js
2941 bytes
0644
BenchmarksPage.3a183df3d44714f9a96a.js.map
9749 bytes
0644
ChangePasswordPage.5e0562f6a9674bd95cfe.js
470 bytes
0644
ChangePasswordPage.5e0562f6a9674bd95cfe.js.map
1195 bytes
0644
Connections.b53c715b9b9a782d8647.js
32448 bytes
0644
Connections.b53c715b9b9a782d8647.js.map
112998 bytes
0644
CorrelationsFeatureToggle.71addced22f59948b708.js
674 bytes
0644
CorrelationsFeatureToggle.71addced22f59948b708.js.map
1149 bytes
0644
CorrelationsPage.4e02feddf752bdf7cfe6.js
22725 bytes
0644
CorrelationsPage.4e02feddf752bdf7cfe6.js.map
69262 bytes
0644
CreateTeam.dbde5b87278cf087cc5e.js
3046 bytes
0644
CreateTeam.dbde5b87278cf087cc5e.js.map
9594 bytes
0644
DashboardImport.06e6c4c03113061aae6c.js
18153 bytes
0644
DashboardImport.06e6c4c03113061aae6c.js.map
58242 bytes
0644
DashboardListPage.dac1fe75fbaa4f9b1c23.js
30967 bytes
0644
DashboardListPage.dac1fe75fbaa4f9b1c23.js.map
108517 bytes
0644
DashboardPage.5e50193556ad6b828f5d.js
2786 bytes
0644
DashboardPage.5e50193556ad6b828f5d.js.map
8754 bytes
0644
DashboardPageProxy.9a6d60e5cac89c11c71c.js
65136 bytes
0644
DashboardPageProxy.9a6d60e5cac89c11c71c.js.map
226791 bytes
0644
DataTrailsPage.aa19ca6750eb3f91ac5d.js
331 bytes
0644
DataTrailsPage.aa19ca6750eb3f91ac5d.js.map
582 bytes
0644
EditNotificationChannelLegacy.75122e6dbfb215d89d81.js
10507 bytes
0644
EditNotificationChannelLegacy.75122e6dbfb215d89d81.js.map
37444 bytes
0644
EmbeddedDashboard.3856404d3d608c739864.js
1768 bytes
0644
EmbeddedDashboard.3856404d3d608c739864.js.map
5917 bytes
0644
FolderAlerting.a0fe69e3574320c8a74a.js
9633 bytes
0644
FolderAlerting.a0fe69e3574320c8a74a.js.map
29985 bytes
0644
FolderLibraryPanelsPage.95dd7bf6735e202a79d2.js
8599 bytes
0644
FolderLibraryPanelsPage.95dd7bf6735e202a79d2.js.map
25919 bytes
0644
LibraryPanelsPage.4a952d4aa9c21984995a.js
2704 bytes
0644
LibraryPanelsPage.4a952d4aa9c21984995a.js.map
7623 bytes
0644
ListPublicDashboardPage.469a693c4011a5193fcd.js
4713 bytes
0644
ListPublicDashboardPage.469a693c4011a5193fcd.js.map
14309 bytes
0644
MuteTimings.cb66b37f52c9ee3ce1da.js
20855 bytes
0644
MuteTimings.cb66b37f52c9ee3ce1da.js.map
58932 bytes
0644
NewNotificationChannelLegacy.1d57814bc534bb1a3681.js
9785 bytes
0644
NewNotificationChannelLegacy.1d57814bc534bb1a3681.js.map
32951 bytes
0644
NewOrgPage.2bb0e1cab09f0cbd0310.js
1325 bytes
0644
NewOrgPage.2bb0e1cab09f0cbd0310.js.map
3158 bytes
0644
NotificationsListLegacyPage.33212668898a6db361a8.js
2547 bytes
0644
NotificationsListLegacyPage.33212668898a6db361a8.js.map
6671 bytes
0644
NotificationsListPage.1eb9cb05bf88eee08291.js
1620 bytes
0644
NotificationsListPage.1eb9cb05bf88eee08291.js.map
3378 bytes
0644
NotificationsPage.d26b90d7348139106351.js
4646 bytes
0644
NotificationsPage.d26b90d7348139106351.js.map
25381 bytes
0644
OrgDetailsPage.2d5c98f188683c2e1d3b.js
6742 bytes
0644
OrgDetailsPage.2d5c98f188683c2e1d3b.js.map
17850 bytes
0644
PlaylistEditPage.d14b3673a1bb03ca0dbb.js
6892 bytes
0644
PlaylistEditPage.d14b3673a1bb03ca0dbb.js.map
19989 bytes
0644
PlaylistNewPage.13696f39b95b8416ede2.js
6583 bytes
0644
PlaylistNewPage.13696f39b95b8416ede2.js.map
19084 bytes
0644
PlaylistPage.8f45dcc09add615f90e8.js
7895 bytes
0644
PlaylistPage.8f45dcc09add615f90e8.js.map
25502 bytes
0644
PlaylistStartPage.8be462b13a24cddee188.js
275 bytes
0644
PlaylistStartPage.8be462b13a24cddee188.js.map
698 bytes
0644
PluginListPage.815b65d32380d0a800f7.js
12167 bytes
0644
PluginListPage.815b65d32380d0a800f7.js.map
43537 bytes
0644
PluginPage.c790de5e17a0b728dd3a.js
314 bytes
0644
PluginPage.c790de5e17a0b728dd3a.js.map
668 bytes
0644
ProfileFeatureTogglePage.a14257ebc5da1e8c85e0.js
552 bytes
0644
ProfileFeatureTogglePage.a14257ebc5da1e8c85e0.js.map
1012 bytes
0644
PublicDashboardPage.51c7c24941781e091898.js
4295 bytes
0644
PublicDashboardPage.51c7c24941781e091898.js.map
14393 bytes
0644
SelectOrgPage.695c19a5101a3a03ee28.js
1124 bytes
0644
SelectOrgPage.695c19a5101a3a03ee28.js.map
2993 bytes
0644
SendResetMailPage.f16b7172a87070f57227.js
1736 bytes
0644
SendResetMailPage.f16b7172a87070f57227.js.map
4350 bytes
0644
ServerStats.3fbd2493deb8f4598755.js
3863 bytes
0644
ServerStats.3fbd2493deb8f4598755.js.map
11534 bytes
0644
ServiceAccountCreatePage.4f989fb6cd2a41193ff0.js
2440 bytes
0644
ServiceAccountCreatePage.4f989fb6cd2a41193ff0.js.map
7939 bytes
0644
ServiceAccountPage.bc7c35b63b03ccc89628.js
14806 bytes
0644
ServiceAccountPage.bc7c35b63b03ccc89628.js.map
51593 bytes
0644
ServiceAccountsPage.baaa08c045390c05e276.js
14565 bytes
0644
ServiceAccountsPage.baaa08c045390c05e276.js.map
46399 bytes
0644
SignupInvited.81ad56aceb8dd1839e15.js
2360 bytes
0644
SignupInvited.81ad56aceb8dd1839e15.js.map
6096 bytes
0644
SnapshotListPage.519c760ed66124a771ff.js
3061 bytes
0644
SnapshotListPage.519c760ed66124a771ff.js.map
9043 bytes
0644
SoloPanelPage.c729750a88c3fa90d1cc.js
3229 bytes
0644
SoloPanelPage.c729750a88c3fa90d1cc.js.map
12316 bytes
0644
SoloPanelPageOld.6518c21ccaf29701fa97.js
1727 bytes
0644
SoloPanelPageOld.6518c21ccaf29701fa97.js.map
5509 bytes
0644
StoragePage.9b93a99e75f7f2842c11.js
14081 bytes
0644
StoragePage.9b93a99e75f7f2842c11.js.map
48740 bytes
0644
SupportBundles.567d512b3f919b8112e4.js
3058 bytes
0644
SupportBundles.567d512b3f919b8112e4.js.map
8751 bytes
0644
SupportBundlesCreate.fc6b6e4cf6366f751081.js
2779 bytes
0644
SupportBundlesCreate.fc6b6e4cf6366f751081.js.map
8882 bytes
0644
TeamList.2e23d37c91734f608f09.js
9019 bytes
0644
TeamList.2e23d37c91734f608f09.js.map
30348 bytes
0644
TeamPages.4f6177b4c6ec769c72d8.js
22839 bytes
0644
TeamPages.4f6177b4c6ec769c72d8.js.map
66001 bytes
0644
TestStuffPage.8ddabdd17d265b771b17.js
2654 bytes
0644
TestStuffPage.8ddabdd17d265b771b17.js.map
8058 bytes
0644
UserCreatePage.72e86cf2c9a3ce50cff3.js
1470 bytes
0644
UserCreatePage.72e86cf2c9a3ce50cff3.js.map
3788 bytes
0644
UserInvitePage.c8243c9cee4b06e10222.js
2576 bytes
0644
UserInvitePage.c8243c9cee4b06e10222.js.map
6594 bytes
0644
UserListPage.acbb5778a782ca90c7ba.js
25463 bytes
0644
UserListPage.acbb5778a782ca90c7ba.js.map
79671 bytes
0644
UserProfileEditPage.7cc4c218d9e4664250e3.js
14593 bytes
0644
UserProfileEditPage.7cc4c218d9e4664250e3.js.map
42901 bytes
0644
UsersListPage.1b61c82d62ca416b6f2f.js
8800 bytes
0644
UsersListPage.1b61c82d62ca416b6f2f.js.map
30059 bytes
0644
alert-rules-drawer-content.1fd9de3b496d077a5f3a.js
957 bytes
0644
alert-rules-drawer-content.1fd9de3b496d077a5f3a.js.map
3199 bytes
0644
alert-rules-toolbar-button.6f275f0d03748b6c297d.js
1429 bytes
0644
alert-rules-toolbar-button.6f275f0d03748b6c297d.js.map
4041 bytes
0644
alertmanagerPlugin.d13ca72afb3f996bb284.js
3810 bytes
0644
alertmanagerPlugin.d13ca72afb3f996bb284.js.map
10753 bytes
0644
app.b11fde05d43f9632a473.js
920821 bytes
0644
app.b11fde05d43f9632a473.js.map
69088 bytes
0644
assets-manifest.json
280835 bytes
0644
azureMonitorPlugin.0bc37a9d4e3bd8421cc0.js
232 bytes
0644
azureMonitorPlugin.0bc37a9d4e3bd8421cc0.js.map
600 bytes
0644
brace.fcd4b1c7e8b9264ab02c.js
371235 bytes
0644
brace.fcd4b1c7e8b9264ab02c.js.map
1132097 bytes
0644
canvasPanel.a46aa5e57d26b1fcc380.js
485254 bytes
0644
canvasPanel.a46aa5e57d26b1fcc380.js.map
2136916 bytes
0644
cloudMonitoringPlugin.c6ea431eae8e9ad2c7b1.js
198 bytes
0644
cloudMonitoringPlugin.c6ea431eae8e9ad2c7b1.js.map
555 bytes
0644
cloudwatchPlugin.06ef34f60000c4f7ea37.js
192 bytes
0644
cloudwatchPlugin.06ef34f60000c4f7ea37.js.map
544 bytes
0644
dark.7fa24d1908c1c96e6fcc.js
134 bytes
0644
elasticsearchPlugin.3f2edb012f5162b48903.js
214 bytes
0644
elasticsearchPlugin.3f2edb012f5162b48903.js.map
583 bytes
0644
explore-feature-toggle-page.897d9f08c342ad4c0702.js
612 bytes
0644
explore-feature-toggle-page.897d9f08c342ad4c0702.js.map
1280 bytes
0644
explore.476912733278e2a99729.js
165810 bytes
0644
explore.476912733278e2a99729.js.map
579148 bytes
0644
geomapPanel.14b9605971a38c51d262.js
417078 bytes
0644
geomapPanel.14b9605971a38c51d262.js.map
540371 bytes
0644
grafana.dark.8c716fbcf630eae84ced.css
209089 bytes
0644
grafana.light.b8b3904788f25480f4a1.css
209047 bytes
0644
grafanaPlugin.1cb208185a89de28dc3a.js
8654 bytes
0644
grafanaPlugin.1cb208185a89de28dc3a.js.map
28174 bytes
0644
graphPlugin.f47f722cdfc0ceb85136.js
70277 bytes
0644
graphPlugin.f47f722cdfc0ceb85136.js.map
243430 bytes
0644
graphitePlugin.d59175976346917781fe.js
75305 bytes
0644
graphitePlugin.d59175976346917781fe.js.map
272016 bytes
0644
heatmapPanel.f6f29a53ed0f682b4404.js
37545 bytes
0644
heatmapPanel.f6f29a53ed0f682b4404.js.map
158066 bytes
0644
influxdbPlugin.140a7777089f9559c11c.js
68843 bytes
0644
influxdbPlugin.140a7777089f9559c11c.js.map
265085 bytes
0644
jaegerPlugin.d254fd4a19ef0cb5b4f5.js
19727 bytes
0644
jaegerPlugin.d254fd4a19ef0cb5b4f5.js.map
65603 bytes
0644
light.af65e5ce03b9ed0aa2b1.js
134 bytes
0644
loki-query-field.a588d587d9d762b18f22.js
191 bytes
0644
loki-query-field.a588d587d9d762b18f22.js.map
548 bytes
0644
lokiPlugin.77364509de280321b6f8.js
185 bytes
0644
lokiPlugin.77364509de280321b6f8.js.map
536 bytes
0644
mixedPlugin.f36bd557a883d9a67538.js
180 bytes
0644
mssqlPlugin.88775f59ced74c2283c5.js
20457 bytes
0644
mssqlPlugin.88775f59ced74c2283c5.js.map
61420 bytes
0644
mysqlPlugin.72fb44411afd8165d201.js
17323 bytes
0644
mysqlPlugin.72fb44411afd8165d201.js.map
45415 bytes
0644
nodeGraphPanel.9a7cdd8efdae281cbe28.js
2107 bytes
0644
nodeGraphPanel.9a7cdd8efdae281cbe28.js.map
7132 bytes
0644
opentsdbPlugin.418b8c8ea0d97ed99edb.js
22866 bytes
0644
opentsdbPlugin.418b8c8ea0d97ed99edb.js.map
82180 bytes
0644
parcaPlugin.7f2e6dde7161b08ceed2.js
11184 bytes
0644
parcaPlugin.7f2e6dde7161b08ceed2.js.map
42340 bytes
0644
postgresPlugin.f88c598bae2653ae177b.js
18902 bytes
0644
postgresPlugin.f88c598bae2653ae177b.js.map
54304 bytes
0644
prom-query-field.ff217c474ea457bdd65e.js
14104 bytes
0644
prom-query-field.ff217c474ea457bdd65e.js.map
76811 bytes
0644
prometheusPlugin.2ba02c28d3f7293e903e.js
224 bytes
0644
prometheusPlugin.2ba02c28d3f7293e903e.js.map
699 bytes
0644
pyroscopePlugin.eb14b78419d619d90dca.js
22269 bytes
0644
pyroscopePlugin.eb14b78419d619d90dca.js.map
86896 bytes
0644
react-monaco-editor.988b1aa5e90b11f9941a.js
15759 bytes
0644
react-monaco-editor.988b1aa5e90b11f9941a.js.map
51544 bytes
0644
runtime.4b7e1b5735d2ed64b824.js
13640 bytes
0644
runtime.4b7e1b5735d2ed64b824.js.map
35122 bytes
0644
tableOldPlugin.8c72b8399d197aeebe16.js
25242 bytes
0644
tableOldPlugin.8c72b8399d197aeebe16.js.map
80497 bytes
0644
tempoPlugin.efa8c2a55984263b4b61.js
182 bytes
0644
tempoPlugin.efa8c2a55984263b4b61.js.map
529 bytes
0644
testDataDSPlugin.9717509b124d754e4f35.js
120550 bytes
0644
testDataDSPlugin.9717509b124d754e4f35.js.map
303302 bytes
0644
visjs-network.d93b3aa71ac24c8cde84.js
459653 bytes
0644
visjs-network.d93b3aa71ac24c8cde84.js.map
1951742 bytes
0644
zipkinPlugin.70f0f24b6d0b6e673ccb.js
13172 bytes
0644
zipkinPlugin.70f0f24b6d0b6e673ccb.js.map
46861 bytes
0644
N4ST4R_ID | Naxtarrr