@perses-dev/prometheus-plugin 0.53.1 → 0.53.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__mf/js/Prometheus.81a70cf0.js +6 -0
- package/__mf/js/async/{4368.5aeca58a.js → 4368.d32ad5d2.js} +2 -2
- package/__mf/js/async/{8706.9a6f6579.js → 8706.a36614fb.js} +1 -1
- package/__mf/js/async/__federation_expose_PrometheusExplorer.9c1f411b.js +1 -0
- package/__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.baa5cd15.js +1 -0
- package/__mf/js/main.66fbbecd.js +6 -0
- package/lib/cjs/components/PromQLEditor.js +3 -1
- package/lib/cjs/explore/PrometheusMetricsFinder/PrometheusMetricsFinder.js +8 -6
- package/lib/cjs/explore/PrometheusMetricsFinder/filter/FilterInputs.js +16 -0
- package/lib/cjs/explore/PrometheusMetricsFinder/overview/tabs/OverviewTab.js +20 -9
- package/lib/cjs/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.js +22 -4
- package/lib/components/PromQLEditor.d.ts +2 -1
- package/lib/components/PromQLEditor.d.ts.map +1 -1
- package/lib/components/PromQLEditor.js +3 -1
- package/lib/components/PromQLEditor.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/PrometheusMetricsFinder.d.ts.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/PrometheusMetricsFinder.js +8 -6
- package/lib/explore/PrometheusMetricsFinder/PrometheusMetricsFinder.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/filter/FilterInputs.d.ts.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/filter/FilterInputs.js +16 -0
- package/lib/explore/PrometheusMetricsFinder/filter/FilterInputs.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/tabs/OverviewTab.d.ts.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/tabs/OverviewTab.js +20 -9
- package/lib/explore/PrometheusMetricsFinder/overview/tabs/OverviewTab.js.map +1 -1
- package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.d.ts.map +1 -1
- package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.js +22 -4
- package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.js.map +1 -1
- package/mf-manifest.json +20 -20
- package/mf-stats.json +23 -23
- package/package.json +1 -1
- package/__mf/js/Prometheus.c0c6219f.js +0 -5
- package/__mf/js/async/__federation_expose_PrometheusExplorer.80dd9b47.js +0 -1
- package/__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.c29461ad.js +0 -1
- package/__mf/js/main.afd47409.js +0 -5
- /package/__mf/js/async/{4368.5aeca58a.js.LICENSE.txt → 4368.d32ad5d2.js.LICENSE.txt} +0 -0
|
@@ -23,7 +23,7 @@ import { useQueryState, useFormatState, useMinStepState } from './query-editor-m
|
|
|
23
23
|
/**
|
|
24
24
|
* The options editor component for editing a PrometheusTimeSeriesQuery's spec.
|
|
25
25
|
*/ export function PrometheusTimeSeriesQueryEditor(props) {
|
|
26
|
-
const { onChange, value, value: { query, datasource }, queryHandlerSettings } = props;
|
|
26
|
+
const { onChange, value, value: { query, datasource }, queryHandlerSettings, isReadonly } = props;
|
|
27
27
|
const datasourceSelectValue = datasource ?? DEFAULT_PROM;
|
|
28
28
|
const datasourceSelectLabelID = useId('prom-datasource-label'); // for panels with multiple queries, this component is rendered multiple times on the same page
|
|
29
29
|
const selectedDatasource = useDatasourceSelectValueToSelector(datasourceSelectValue, PROM_DATASOURCE_KIND);
|
|
@@ -95,7 +95,8 @@ import { useQueryState, useFormatState, useMinStepState } from './query-editor-m
|
|
|
95
95
|
onChange: handleDatasourceChange,
|
|
96
96
|
labelId: datasourceSelectLabelID,
|
|
97
97
|
label: "Prometheus Datasource",
|
|
98
|
-
notched: true
|
|
98
|
+
notched: true,
|
|
99
|
+
readOnly: isReadonly
|
|
99
100
|
})
|
|
100
101
|
}),
|
|
101
102
|
/*#__PURE__*/ _jsx(PromQLEditor, {
|
|
@@ -107,7 +108,8 @@ import { useQueryState, useFormatState, useMinStepState } from './query-editor-m
|
|
|
107
108
|
value: query,
|
|
108
109
|
datasource: selectedDatasource,
|
|
109
110
|
onChange: handlePromQlEditorChanges,
|
|
110
|
-
onBlur: queryHandlerSettings?.runWithOnBlur ? handleQueryBlur : undefined
|
|
111
|
+
onBlur: queryHandlerSettings?.runWithOnBlur ? handleQueryBlur : undefined,
|
|
112
|
+
isReadOnly: isReadonly
|
|
111
113
|
}),
|
|
112
114
|
/*#__PURE__*/ _jsxs(Stack, {
|
|
113
115
|
direction: "row",
|
|
@@ -120,7 +122,15 @@ import { useQueryState, useFormatState, useMinStepState } from './query-editor-m
|
|
|
120
122
|
helperText: "Text to be displayed in the legend and the tooltip. Use {{label_name}} to interpolate label values.",
|
|
121
123
|
value: format ?? '',
|
|
122
124
|
onChange: handleLegendSpecChange,
|
|
123
|
-
onBlur: queryHandlerSettings?.runWithOnBlur ? handleFormatBlur : undefined
|
|
125
|
+
onBlur: queryHandlerSettings?.runWithOnBlur ? handleFormatBlur : undefined,
|
|
126
|
+
slotProps: {
|
|
127
|
+
inputLabel: {
|
|
128
|
+
shrink: isReadonly ? true : undefined
|
|
129
|
+
},
|
|
130
|
+
input: {
|
|
131
|
+
readOnly: isReadonly
|
|
132
|
+
}
|
|
133
|
+
}
|
|
124
134
|
}),
|
|
125
135
|
/*#__PURE__*/ _jsx(TextField, {
|
|
126
136
|
label: "Min Step",
|
|
@@ -131,6 +141,14 @@ import { useQueryState, useFormatState, useMinStepState } from './query-editor-m
|
|
|
131
141
|
onBlur: queryHandlerSettings?.runWithOnBlur ? handleMinStepBlur : undefined,
|
|
132
142
|
sx: {
|
|
133
143
|
width: '250px'
|
|
144
|
+
},
|
|
145
|
+
slotProps: {
|
|
146
|
+
inputLabel: {
|
|
147
|
+
shrink: isReadonly ? true : undefined
|
|
148
|
+
},
|
|
149
|
+
input: {
|
|
150
|
+
readOnly: isReadonly
|
|
151
|
+
}
|
|
134
152
|
}
|
|
135
153
|
})
|
|
136
154
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.tsx"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { produce } from 'immer';\nimport {\n DatasourceSelect,\n DatasourceSelectProps,\n useDatasource,\n useDatasourceClient,\n useDatasourceSelectValueToSelector,\n} from '@perses-dev/plugin-system';\nimport { useId } from '@perses-dev/components';\nimport { FormControl, Stack, TextField } from '@mui/material';\nimport { ReactElement, useCallback } from 'react';\nimport {\n DEFAULT_PROM,\n DurationString,\n isDefaultPromSelector,\n isPrometheusDatasourceSelector,\n PROM_DATASOURCE_KIND,\n PrometheusClient,\n PrometheusDatasourceSelector,\n} from '../../model';\nimport { DEFAULT_SCRAPE_INTERVAL, PrometheusDatasourceSpec } from '../types';\nimport { PromQLEditor } from '../../components';\nimport {\n PrometheusTimeSeriesQueryEditorProps,\n useQueryState,\n useFormatState,\n useMinStepState,\n} from './query-editor-model';\n\n/**\n * The options editor component for editing a PrometheusTimeSeriesQuery's spec.\n */\nexport function PrometheusTimeSeriesQueryEditor(props: PrometheusTimeSeriesQueryEditorProps): ReactElement {\n const {\n onChange,\n value,\n value: { query, datasource },\n queryHandlerSettings,\n } = props;\n\n const datasourceSelectValue = datasource ?? DEFAULT_PROM;\n\n const datasourceSelectLabelID = useId('prom-datasource-label'); // for panels with multiple queries, this component is rendered multiple times on the same page\n\n const selectedDatasource = useDatasourceSelectValueToSelector(\n datasourceSelectValue,\n PROM_DATASOURCE_KIND\n ) as PrometheusDatasourceSelector;\n\n const { data: client } = useDatasourceClient<PrometheusClient>(selectedDatasource);\n const promURL = client?.options.datasourceUrl;\n const { data: datasourceResource } = useDatasource(selectedDatasource);\n\n const { handleQueryChange, handleQueryBlur } = useQueryState(props);\n const { format, handleFormatChange, handleFormatBlur } = useFormatState(props);\n const { minStep, handleMinStepChange, handleMinStepBlur } = useMinStepState(props);\n const minStepPlaceholder =\n minStep ??\n (datasourceResource && (datasourceResource?.plugin.spec as PrometheusDatasourceSpec).scrapeInterval) ??\n DEFAULT_SCRAPE_INTERVAL;\n\n const handleDatasourceChange: DatasourceSelectProps['onChange'] = (next) => {\n if (isPrometheusDatasourceSelector(next)) {\n /* Good to know: The usage of onchange here causes an immediate spec update which eventually updates the panel\n This was probably intentional to allow for quick switching between datasources.\n Could have been triggered only with Run Query button as well.\n */\n onChange(\n produce(value, (draft) => {\n // If they're using the default, just omit the datasource prop (i.e. set to undefined)\n const nextDatasource = isDefaultPromSelector(next) ? undefined : next;\n draft.datasource = nextDatasource;\n })\n );\n if (queryHandlerSettings?.setWatchOtherSpecs)\n queryHandlerSettings.setWatchOtherSpecs({ ...value, datasource: next });\n return;\n }\n\n throw new Error('Got unexpected non-Prometheus datasource selector');\n };\n\n const handlePromQlEditorChanges = useCallback(\n (e: string) => {\n handleQueryChange(e);\n if (queryHandlerSettings?.watchQueryChanges) {\n queryHandlerSettings?.watchQueryChanges(e);\n }\n },\n [queryHandlerSettings, handleQueryChange]\n );\n\n const handleLegendSpecChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {\n handleFormatChange(e.target.value);\n if (queryHandlerSettings?.setWatchOtherSpecs)\n queryHandlerSettings.setWatchOtherSpecs({ ...value, seriesNameFormat: e.target.value });\n },\n [queryHandlerSettings, handleFormatChange, value]\n );\n\n const handleMinStepSpecChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {\n handleMinStepChange(e.target.value ? (e.target.value as DurationString) : undefined);\n if (queryHandlerSettings?.setWatchOtherSpecs)\n queryHandlerSettings.setWatchOtherSpecs({ ...value, minStep: e.target.value });\n },\n [queryHandlerSettings, handleMinStepChange, value]\n );\n\n return (\n <Stack spacing={2}>\n <FormControl margin=\"dense\" fullWidth={false}>\n <DatasourceSelect\n datasourcePluginKind={PROM_DATASOURCE_KIND}\n value={datasourceSelectValue}\n onChange={handleDatasourceChange}\n labelId={datasourceSelectLabelID}\n label=\"Prometheus Datasource\"\n notched\n />\n </FormControl>\n <PromQLEditor\n completeConfig={{ remote: { url: promURL } }}\n value={query} // here we are passing `value.query` and not `query` from useQueryState in order to get updates only on onBlur events\n datasource={selectedDatasource}\n onChange={handlePromQlEditorChanges}\n onBlur={queryHandlerSettings?.runWithOnBlur ? handleQueryBlur : undefined}\n />\n <Stack direction=\"row\" spacing={2}>\n <TextField\n fullWidth\n label=\"Legend\"\n placeholder=\"Example: '{{instance}}' will generate series names like 'webserver-123', 'webserver-456'...\"\n helperText=\"Text to be displayed in the legend and the tooltip. Use {{label_name}} to interpolate label values.\"\n value={format ?? ''}\n onChange={handleLegendSpecChange}\n onBlur={queryHandlerSettings?.runWithOnBlur ? handleFormatBlur : undefined}\n />\n <TextField\n label=\"Min Step\"\n placeholder={minStepPlaceholder}\n helperText=\"Lower bound for the step. If not provided, the scrape interval of the datasource is used.\"\n value={minStep ?? ''}\n onChange={handleMinStepSpecChange}\n onBlur={queryHandlerSettings?.runWithOnBlur ? handleMinStepBlur : undefined}\n sx={{ width: '250px' }}\n />\n </Stack>\n </Stack>\n );\n}\n"],"names":["produce","DatasourceSelect","useDatasource","useDatasourceClient","useDatasourceSelectValueToSelector","useId","FormControl","Stack","TextField","useCallback","DEFAULT_PROM","isDefaultPromSelector","isPrometheusDatasourceSelector","PROM_DATASOURCE_KIND","DEFAULT_SCRAPE_INTERVAL","PromQLEditor","useQueryState","useFormatState","useMinStepState","PrometheusTimeSeriesQueryEditor","props","onChange","value","query","datasource","queryHandlerSettings","datasourceSelectValue","datasourceSelectLabelID","selectedDatasource","data","client","promURL","options","datasourceUrl","datasourceResource","handleQueryChange","handleQueryBlur","format","handleFormatChange","handleFormatBlur","minStep","handleMinStepChange","handleMinStepBlur","minStepPlaceholder","plugin","spec","scrapeInterval","handleDatasourceChange","next","draft","nextDatasource","undefined","setWatchOtherSpecs","Error","handlePromQlEditorChanges","e","watchQueryChanges","handleLegendSpecChange","target","seriesNameFormat","handleMinStepSpecChange","spacing","margin","fullWidth","datasourcePluginKind","labelId","label","notched","completeConfig","remote","url","onBlur","runWithOnBlur","direction","placeholder","helperText","sx","width"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAEjC,SAASA,OAAO,QAAQ,QAAQ;AAChC,SACEC,gBAAgB,EAEhBC,aAAa,EACbC,mBAAmB,EACnBC,kCAAkC,QAC7B,4BAA4B;AACnC,SAASC,KAAK,QAAQ,yBAAyB;AAC/C,SAASC,WAAW,EAAEC,KAAK,EAAEC,SAAS,QAAQ,gBAAgB;AAC9D,SAAuBC,WAAW,QAAQ,QAAQ;AAClD,SACEC,YAAY,EAEZC,qBAAqB,EACrBC,8BAA8B,EAC9BC,oBAAoB,QAGf,cAAc;AACrB,SAASC,uBAAuB,QAAkC,WAAW;AAC7E,SAASC,YAAY,QAAQ,mBAAmB;AAChD,SAEEC,aAAa,EACbC,cAAc,EACdC,eAAe,QACV,uBAAuB;AAE9B;;CAEC,GACD,OAAO,SAASC,gCAAgCC,KAA2C;IACzF,MAAM,EACJC,QAAQ,EACRC,KAAK,EACLA,OAAO,EAAEC,KAAK,EAAEC,UAAU,EAAE,EAC5BC,oBAAoB,EACrB,GAAGL;IAEJ,MAAMM,wBAAwBF,cAAcd;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3,"sources":["../../../../src/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.tsx"],"sourcesContent":["// Copyright 2023 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { produce } from 'immer';\nimport {\n DatasourceSelect,\n DatasourceSelectProps,\n useDatasource,\n useDatasourceClient,\n useDatasourceSelectValueToSelector,\n} from '@perses-dev/plugin-system';\nimport { useId } from '@perses-dev/components';\nimport { FormControl, Stack, TextField } from '@mui/material';\nimport { ReactElement, useCallback } from 'react';\nimport {\n DEFAULT_PROM,\n DurationString,\n isDefaultPromSelector,\n isPrometheusDatasourceSelector,\n PROM_DATASOURCE_KIND,\n PrometheusClient,\n PrometheusDatasourceSelector,\n} from '../../model';\nimport { DEFAULT_SCRAPE_INTERVAL, PrometheusDatasourceSpec } from '../types';\nimport { PromQLEditor } from '../../components';\nimport {\n PrometheusTimeSeriesQueryEditorProps,\n useQueryState,\n useFormatState,\n useMinStepState,\n} from './query-editor-model';\n\n/**\n * The options editor component for editing a PrometheusTimeSeriesQuery's spec.\n */\nexport function PrometheusTimeSeriesQueryEditor(props: PrometheusTimeSeriesQueryEditorProps): ReactElement {\n const {\n onChange,\n value,\n value: { query, datasource },\n queryHandlerSettings,\n isReadonly,\n } = props;\n\n const datasourceSelectValue = datasource ?? DEFAULT_PROM;\n\n const datasourceSelectLabelID = useId('prom-datasource-label'); // for panels with multiple queries, this component is rendered multiple times on the same page\n\n const selectedDatasource = useDatasourceSelectValueToSelector(\n datasourceSelectValue,\n PROM_DATASOURCE_KIND\n ) as PrometheusDatasourceSelector;\n\n const { data: client } = useDatasourceClient<PrometheusClient>(selectedDatasource);\n const promURL = client?.options.datasourceUrl;\n const { data: datasourceResource } = useDatasource(selectedDatasource);\n\n const { handleQueryChange, handleQueryBlur } = useQueryState(props);\n const { format, handleFormatChange, handleFormatBlur } = useFormatState(props);\n const { minStep, handleMinStepChange, handleMinStepBlur } = useMinStepState(props);\n const minStepPlaceholder =\n minStep ??\n (datasourceResource && (datasourceResource?.plugin.spec as PrometheusDatasourceSpec).scrapeInterval) ??\n DEFAULT_SCRAPE_INTERVAL;\n\n const handleDatasourceChange: DatasourceSelectProps['onChange'] = (next) => {\n if (isPrometheusDatasourceSelector(next)) {\n /* Good to know: The usage of onchange here causes an immediate spec update which eventually updates the panel\n This was probably intentional to allow for quick switching between datasources.\n Could have been triggered only with Run Query button as well.\n */\n onChange(\n produce(value, (draft) => {\n // If they're using the default, just omit the datasource prop (i.e. set to undefined)\n const nextDatasource = isDefaultPromSelector(next) ? undefined : next;\n draft.datasource = nextDatasource;\n })\n );\n if (queryHandlerSettings?.setWatchOtherSpecs)\n queryHandlerSettings.setWatchOtherSpecs({ ...value, datasource: next });\n return;\n }\n\n throw new Error('Got unexpected non-Prometheus datasource selector');\n };\n\n const handlePromQlEditorChanges = useCallback(\n (e: string) => {\n handleQueryChange(e);\n if (queryHandlerSettings?.watchQueryChanges) {\n queryHandlerSettings?.watchQueryChanges(e);\n }\n },\n [queryHandlerSettings, handleQueryChange]\n );\n\n const handleLegendSpecChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {\n handleFormatChange(e.target.value);\n if (queryHandlerSettings?.setWatchOtherSpecs)\n queryHandlerSettings.setWatchOtherSpecs({ ...value, seriesNameFormat: e.target.value });\n },\n [queryHandlerSettings, handleFormatChange, value]\n );\n\n const handleMinStepSpecChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {\n handleMinStepChange(e.target.value ? (e.target.value as DurationString) : undefined);\n if (queryHandlerSettings?.setWatchOtherSpecs)\n queryHandlerSettings.setWatchOtherSpecs({ ...value, minStep: e.target.value });\n },\n [queryHandlerSettings, handleMinStepChange, value]\n );\n\n return (\n <Stack spacing={2}>\n <FormControl margin=\"dense\" fullWidth={false}>\n <DatasourceSelect\n datasourcePluginKind={PROM_DATASOURCE_KIND}\n value={datasourceSelectValue}\n onChange={handleDatasourceChange}\n labelId={datasourceSelectLabelID}\n label=\"Prometheus Datasource\"\n notched\n readOnly={isReadonly}\n />\n </FormControl>\n <PromQLEditor\n completeConfig={{ remote: { url: promURL } }}\n value={query} // here we are passing `value.query` and not `query` from useQueryState in order to get updates only on onBlur events\n datasource={selectedDatasource}\n onChange={handlePromQlEditorChanges}\n onBlur={queryHandlerSettings?.runWithOnBlur ? handleQueryBlur : undefined}\n isReadOnly={isReadonly}\n />\n <Stack direction=\"row\" spacing={2}>\n <TextField\n fullWidth\n label=\"Legend\"\n placeholder=\"Example: '{{instance}}' will generate series names like 'webserver-123', 'webserver-456'...\"\n helperText=\"Text to be displayed in the legend and the tooltip. Use {{label_name}} to interpolate label values.\"\n value={format ?? ''}\n onChange={handleLegendSpecChange}\n onBlur={queryHandlerSettings?.runWithOnBlur ? handleFormatBlur : undefined}\n slotProps={{\n inputLabel: { shrink: isReadonly ? true : undefined },\n input: { readOnly: isReadonly },\n }}\n />\n <TextField\n label=\"Min Step\"\n placeholder={minStepPlaceholder}\n helperText=\"Lower bound for the step. If not provided, the scrape interval of the datasource is used.\"\n value={minStep ?? ''}\n onChange={handleMinStepSpecChange}\n onBlur={queryHandlerSettings?.runWithOnBlur ? handleMinStepBlur : undefined}\n sx={{ width: '250px' }}\n slotProps={{\n inputLabel: { shrink: isReadonly ? true : undefined },\n input: { readOnly: isReadonly },\n }}\n />\n </Stack>\n </Stack>\n );\n}\n"],"names":["produce","DatasourceSelect","useDatasource","useDatasourceClient","useDatasourceSelectValueToSelector","useId","FormControl","Stack","TextField","useCallback","DEFAULT_PROM","isDefaultPromSelector","isPrometheusDatasourceSelector","PROM_DATASOURCE_KIND","DEFAULT_SCRAPE_INTERVAL","PromQLEditor","useQueryState","useFormatState","useMinStepState","PrometheusTimeSeriesQueryEditor","props","onChange","value","query","datasource","queryHandlerSettings","isReadonly","datasourceSelectValue","datasourceSelectLabelID","selectedDatasource","data","client","promURL","options","datasourceUrl","datasourceResource","handleQueryChange","handleQueryBlur","format","handleFormatChange","handleFormatBlur","minStep","handleMinStepChange","handleMinStepBlur","minStepPlaceholder","plugin","spec","scrapeInterval","handleDatasourceChange","next","draft","nextDatasource","undefined","setWatchOtherSpecs","Error","handlePromQlEditorChanges","e","watchQueryChanges","handleLegendSpecChange","target","seriesNameFormat","handleMinStepSpecChange","spacing","margin","fullWidth","datasourcePluginKind","labelId","label","notched","readOnly","completeConfig","remote","url","onBlur","runWithOnBlur","isReadOnly","direction","placeholder","helperText","slotProps","inputLabel","shrink","input","sx","width"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAEjC,SAASA,OAAO,QAAQ,QAAQ;AAChC,SACEC,gBAAgB,EAEhBC,aAAa,EACbC,mBAAmB,EACnBC,kCAAkC,QAC7B,4BAA4B;AACnC,SAASC,KAAK,QAAQ,yBAAyB;AAC/C,SAASC,WAAW,EAAEC,KAAK,EAAEC,SAAS,QAAQ,gBAAgB;AAC9D,SAAuBC,WAAW,QAAQ,QAAQ;AAClD,SACEC,YAAY,EAEZC,qBAAqB,EACrBC,8BAA8B,EAC9BC,oBAAoB,QAGf,cAAc;AACrB,SAASC,uBAAuB,QAAkC,WAAW;AAC7E,SAASC,YAAY,QAAQ,mBAAmB;AAChD,SAEEC,aAAa,EACbC,cAAc,EACdC,eAAe,QACV,uBAAuB;AAE9B;;CAEC,GACD,OAAO,SAASC,gCAAgCC,KAA2C;IACzF,MAAM,EACJC,QAAQ,E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;4BACpD8B,OAAO;gCAAEb,UAAU3C;4BAAW;wBAChC;;kCAEF,KAAClB;wBACC2D,OAAM;wBACNU,aAAajC;wBACbkC,YAAW;wBACXxD,OAAOmB,WAAW;wBAClBpB,UAAUwC;wBACVY,QAAQhD,sBAAsBiD,gBAAgB/B,oBAAoBS;wBAClE+B,IAAI;4BAAEC,OAAO;wBAAQ;wBACrBL,WAAW;4BACTC,YAAY;gCAAEC,QAAQvD,aAAa,OAAO0B;4BAAU;4BACpD8B,OAAO;gCAAEb,UAAU3C;4BAAW;wBAChC;;;;;;AAKV"}
|
package/mf-manifest.json
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"name": "Prometheus",
|
|
6
6
|
"type": "app",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "0.53.
|
|
8
|
+
"buildVersion": "0.53.3",
|
|
9
9
|
"buildName": "@perses-dev/prometheus-plugin"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
12
|
-
"name": "__mf/js/Prometheus.
|
|
12
|
+
"name": "__mf/js/Prometheus.81a70cf0.js",
|
|
13
13
|
"path": "",
|
|
14
14
|
"type": "global"
|
|
15
15
|
},
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"api": ""
|
|
21
21
|
},
|
|
22
22
|
"globalName": "Prometheus",
|
|
23
|
-
"pluginVersion": "0.
|
|
23
|
+
"pluginVersion": "0.19.1",
|
|
24
24
|
"prefetchInterface": false,
|
|
25
25
|
"publicPath": "/plugins/Prometheus/"
|
|
26
26
|
},
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"js": {
|
|
153
153
|
"async": [],
|
|
154
154
|
"sync": [
|
|
155
|
-
"__mf/js/async/4368.
|
|
155
|
+
"__mf/js/async/4368.d32ad5d2.js"
|
|
156
156
|
]
|
|
157
157
|
},
|
|
158
158
|
"css": {
|
|
@@ -356,8 +356,8 @@
|
|
|
356
356
|
"__mf/js/async/2675.27451820.js",
|
|
357
357
|
"__mf/js/async/5724.794828e3.js",
|
|
358
358
|
"__mf/js/async/537.82230699.js",
|
|
359
|
-
"__mf/js/async/8706.
|
|
360
|
-
"__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.
|
|
359
|
+
"__mf/js/async/8706.a36614fb.js",
|
|
360
|
+
"__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.baa5cd15.js",
|
|
361
361
|
"__mf/js/async/7272.6fa2f127.js",
|
|
362
362
|
"__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.e5e35f24.js",
|
|
363
363
|
"__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.86bf76a6.js",
|
|
@@ -366,7 +366,7 @@
|
|
|
366
366
|
"__mf/js/async/7376.2e948f2b.js",
|
|
367
367
|
"__mf/js/async/9550.642ce5ad.js",
|
|
368
368
|
"__mf/js/async/4665.cad36935.js",
|
|
369
|
-
"__mf/js/async/__federation_expose_PrometheusExplorer.
|
|
369
|
+
"__mf/js/async/__federation_expose_PrometheusExplorer.9c1f411b.js",
|
|
370
370
|
"__mf/js/async/9817.70eae424.js",
|
|
371
371
|
"__mf/js/async/5876.1976752d.js",
|
|
372
372
|
"__mf/js/async/4535.f24704ea.js",
|
|
@@ -400,8 +400,8 @@
|
|
|
400
400
|
"__mf/js/async/2675.27451820.js",
|
|
401
401
|
"__mf/js/async/5724.794828e3.js",
|
|
402
402
|
"__mf/js/async/537.82230699.js",
|
|
403
|
-
"__mf/js/async/8706.
|
|
404
|
-
"__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.
|
|
403
|
+
"__mf/js/async/8706.a36614fb.js",
|
|
404
|
+
"__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.baa5cd15.js"
|
|
405
405
|
],
|
|
406
406
|
"async": [
|
|
407
407
|
"__mf/js/async/4238.422a1b1c.js",
|
|
@@ -415,7 +415,7 @@
|
|
|
415
415
|
"__mf/js/async/2675.27451820.js",
|
|
416
416
|
"__mf/js/async/5724.794828e3.js",
|
|
417
417
|
"__mf/js/async/537.82230699.js",
|
|
418
|
-
"__mf/js/async/8706.
|
|
418
|
+
"__mf/js/async/8706.a36614fb.js",
|
|
419
419
|
"__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.e5e35f24.js",
|
|
420
420
|
"__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.86bf76a6.js",
|
|
421
421
|
"__mf/js/async/__federation_expose_PrometheusPromQLVariable.b2270799.js",
|
|
@@ -423,7 +423,7 @@
|
|
|
423
423
|
"__mf/js/async/7376.2e948f2b.js",
|
|
424
424
|
"__mf/js/async/9550.642ce5ad.js",
|
|
425
425
|
"__mf/js/async/4665.cad36935.js",
|
|
426
|
-
"__mf/js/async/__federation_expose_PrometheusExplorer.
|
|
426
|
+
"__mf/js/async/__federation_expose_PrometheusExplorer.9c1f411b.js",
|
|
427
427
|
"__mf/js/async/9817.70eae424.js",
|
|
428
428
|
"__mf/js/async/5876.1976752d.js",
|
|
429
429
|
"__mf/js/async/4535.f24704ea.js",
|
|
@@ -460,7 +460,7 @@
|
|
|
460
460
|
"__mf/js/async/7272.6fa2f127.js",
|
|
461
461
|
"__mf/js/async/5724.794828e3.js",
|
|
462
462
|
"__mf/js/async/537.82230699.js",
|
|
463
|
-
"__mf/js/async/8706.
|
|
463
|
+
"__mf/js/async/8706.a36614fb.js",
|
|
464
464
|
"__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.e5e35f24.js"
|
|
465
465
|
],
|
|
466
466
|
"async": [
|
|
@@ -476,7 +476,7 @@
|
|
|
476
476
|
"__mf/js/async/7376.2e948f2b.js",
|
|
477
477
|
"__mf/js/async/9550.642ce5ad.js",
|
|
478
478
|
"__mf/js/async/4665.cad36935.js",
|
|
479
|
-
"__mf/js/async/__federation_expose_PrometheusExplorer.
|
|
479
|
+
"__mf/js/async/__federation_expose_PrometheusExplorer.9c1f411b.js",
|
|
480
480
|
"__mf/js/async/9817.70eae424.js",
|
|
481
481
|
"__mf/js/async/5876.1976752d.js",
|
|
482
482
|
"__mf/js/async/4535.f24704ea.js",
|
|
@@ -513,7 +513,7 @@
|
|
|
513
513
|
"__mf/js/async/7272.6fa2f127.js",
|
|
514
514
|
"__mf/js/async/5724.794828e3.js",
|
|
515
515
|
"__mf/js/async/537.82230699.js",
|
|
516
|
-
"__mf/js/async/8706.
|
|
516
|
+
"__mf/js/async/8706.a36614fb.js",
|
|
517
517
|
"__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.86bf76a6.js"
|
|
518
518
|
],
|
|
519
519
|
"async": [
|
|
@@ -529,7 +529,7 @@
|
|
|
529
529
|
"__mf/js/async/7376.2e948f2b.js",
|
|
530
530
|
"__mf/js/async/9550.642ce5ad.js",
|
|
531
531
|
"__mf/js/async/4665.cad36935.js",
|
|
532
|
-
"__mf/js/async/__federation_expose_PrometheusExplorer.
|
|
532
|
+
"__mf/js/async/__federation_expose_PrometheusExplorer.9c1f411b.js",
|
|
533
533
|
"__mf/js/async/9817.70eae424.js",
|
|
534
534
|
"__mf/js/async/5876.1976752d.js",
|
|
535
535
|
"__mf/js/async/4535.f24704ea.js",
|
|
@@ -566,7 +566,7 @@
|
|
|
566
566
|
"__mf/js/async/7272.6fa2f127.js",
|
|
567
567
|
"__mf/js/async/5724.794828e3.js",
|
|
568
568
|
"__mf/js/async/537.82230699.js",
|
|
569
|
-
"__mf/js/async/8706.
|
|
569
|
+
"__mf/js/async/8706.a36614fb.js",
|
|
570
570
|
"__mf/js/async/__federation_expose_PrometheusPromQLVariable.b2270799.js"
|
|
571
571
|
],
|
|
572
572
|
"async": [
|
|
@@ -582,7 +582,7 @@
|
|
|
582
582
|
"__mf/js/async/7376.2e948f2b.js",
|
|
583
583
|
"__mf/js/async/9550.642ce5ad.js",
|
|
584
584
|
"__mf/js/async/4665.cad36935.js",
|
|
585
|
-
"__mf/js/async/__federation_expose_PrometheusExplorer.
|
|
585
|
+
"__mf/js/async/__federation_expose_PrometheusExplorer.9c1f411b.js",
|
|
586
586
|
"__mf/js/async/9817.70eae424.js",
|
|
587
587
|
"__mf/js/async/5876.1976752d.js",
|
|
588
588
|
"__mf/js/async/4535.f24704ea.js",
|
|
@@ -620,7 +620,7 @@
|
|
|
620
620
|
"__mf/js/async/7376.2e948f2b.js",
|
|
621
621
|
"__mf/js/async/9550.642ce5ad.js",
|
|
622
622
|
"__mf/js/async/4665.cad36935.js",
|
|
623
|
-
"__mf/js/async/__federation_expose_PrometheusExplorer.
|
|
623
|
+
"__mf/js/async/__federation_expose_PrometheusExplorer.9c1f411b.js"
|
|
624
624
|
],
|
|
625
625
|
"async": [
|
|
626
626
|
"__mf/js/async/4238.422a1b1c.js",
|
|
@@ -635,8 +635,8 @@
|
|
|
635
635
|
"__mf/js/async/2675.27451820.js",
|
|
636
636
|
"__mf/js/async/5724.794828e3.js",
|
|
637
637
|
"__mf/js/async/537.82230699.js",
|
|
638
|
-
"__mf/js/async/8706.
|
|
639
|
-
"__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.
|
|
638
|
+
"__mf/js/async/8706.a36614fb.js",
|
|
639
|
+
"__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.baa5cd15.js",
|
|
640
640
|
"__mf/js/async/7272.6fa2f127.js",
|
|
641
641
|
"__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.e5e35f24.js",
|
|
642
642
|
"__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.86bf76a6.js",
|
package/mf-stats.json
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
"name": "Prometheus",
|
|
6
6
|
"type": "app",
|
|
7
7
|
"buildInfo": {
|
|
8
|
-
"buildVersion": "0.53.
|
|
8
|
+
"buildVersion": "0.53.3",
|
|
9
9
|
"buildName": "@perses-dev/prometheus-plugin"
|
|
10
10
|
},
|
|
11
11
|
"remoteEntry": {
|
|
12
|
-
"name": "__mf/js/Prometheus.
|
|
12
|
+
"name": "__mf/js/Prometheus.81a70cf0.js",
|
|
13
13
|
"path": "",
|
|
14
14
|
"type": "global"
|
|
15
15
|
},
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"api": ""
|
|
21
21
|
},
|
|
22
22
|
"globalName": "Prometheus",
|
|
23
|
-
"pluginVersion": "0.
|
|
23
|
+
"pluginVersion": "0.19.1",
|
|
24
24
|
"prefetchInterface": false,
|
|
25
25
|
"publicPath": "/plugins/Prometheus/"
|
|
26
26
|
},
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
"js": {
|
|
180
180
|
"async": [],
|
|
181
181
|
"sync": [
|
|
182
|
-
"__mf/js/async/4368.
|
|
182
|
+
"__mf/js/async/4368.d32ad5d2.js"
|
|
183
183
|
]
|
|
184
184
|
},
|
|
185
185
|
"css": {
|
|
@@ -188,12 +188,12 @@
|
|
|
188
188
|
}
|
|
189
189
|
},
|
|
190
190
|
"usedIn": [
|
|
191
|
-
"./
|
|
191
|
+
"./PrometheusPromQLVariable",
|
|
192
192
|
"./PrometheusExplorer",
|
|
193
193
|
"./PrometheusLabelNamesVariable",
|
|
194
194
|
"./PrometheusLabelValuesVariable",
|
|
195
|
-
"./
|
|
196
|
-
"./
|
|
195
|
+
"./PrometheusDatasource",
|
|
196
|
+
"./PrometheusTimeSeriesQuery"
|
|
197
197
|
]
|
|
198
198
|
},
|
|
199
199
|
{
|
|
@@ -434,8 +434,8 @@
|
|
|
434
434
|
"__mf/js/async/2675.27451820.js",
|
|
435
435
|
"__mf/js/async/5724.794828e3.js",
|
|
436
436
|
"__mf/js/async/537.82230699.js",
|
|
437
|
-
"__mf/js/async/8706.
|
|
438
|
-
"__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.
|
|
437
|
+
"__mf/js/async/8706.a36614fb.js",
|
|
438
|
+
"__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.baa5cd15.js",
|
|
439
439
|
"__mf/js/async/7272.6fa2f127.js",
|
|
440
440
|
"__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.e5e35f24.js",
|
|
441
441
|
"__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.86bf76a6.js",
|
|
@@ -444,7 +444,7 @@
|
|
|
444
444
|
"__mf/js/async/7376.2e948f2b.js",
|
|
445
445
|
"__mf/js/async/9550.642ce5ad.js",
|
|
446
446
|
"__mf/js/async/4665.cad36935.js",
|
|
447
|
-
"__mf/js/async/__federation_expose_PrometheusExplorer.
|
|
447
|
+
"__mf/js/async/__federation_expose_PrometheusExplorer.9c1f411b.js",
|
|
448
448
|
"__mf/js/async/9817.70eae424.js",
|
|
449
449
|
"__mf/js/async/5876.1976752d.js",
|
|
450
450
|
"__mf/js/async/4535.f24704ea.js",
|
|
@@ -485,8 +485,8 @@
|
|
|
485
485
|
"__mf/js/async/2675.27451820.js",
|
|
486
486
|
"__mf/js/async/5724.794828e3.js",
|
|
487
487
|
"__mf/js/async/537.82230699.js",
|
|
488
|
-
"__mf/js/async/8706.
|
|
489
|
-
"__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.
|
|
488
|
+
"__mf/js/async/8706.a36614fb.js",
|
|
489
|
+
"__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.baa5cd15.js"
|
|
490
490
|
],
|
|
491
491
|
"async": [
|
|
492
492
|
"__mf/js/async/4238.422a1b1c.js",
|
|
@@ -500,7 +500,7 @@
|
|
|
500
500
|
"__mf/js/async/2675.27451820.js",
|
|
501
501
|
"__mf/js/async/5724.794828e3.js",
|
|
502
502
|
"__mf/js/async/537.82230699.js",
|
|
503
|
-
"__mf/js/async/8706.
|
|
503
|
+
"__mf/js/async/8706.a36614fb.js",
|
|
504
504
|
"__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.e5e35f24.js",
|
|
505
505
|
"__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.86bf76a6.js",
|
|
506
506
|
"__mf/js/async/__federation_expose_PrometheusPromQLVariable.b2270799.js",
|
|
@@ -508,7 +508,7 @@
|
|
|
508
508
|
"__mf/js/async/7376.2e948f2b.js",
|
|
509
509
|
"__mf/js/async/9550.642ce5ad.js",
|
|
510
510
|
"__mf/js/async/4665.cad36935.js",
|
|
511
|
-
"__mf/js/async/__federation_expose_PrometheusExplorer.
|
|
511
|
+
"__mf/js/async/__federation_expose_PrometheusExplorer.9c1f411b.js",
|
|
512
512
|
"__mf/js/async/9817.70eae424.js",
|
|
513
513
|
"__mf/js/async/5876.1976752d.js",
|
|
514
514
|
"__mf/js/async/4535.f24704ea.js",
|
|
@@ -549,7 +549,7 @@
|
|
|
549
549
|
"__mf/js/async/7272.6fa2f127.js",
|
|
550
550
|
"__mf/js/async/5724.794828e3.js",
|
|
551
551
|
"__mf/js/async/537.82230699.js",
|
|
552
|
-
"__mf/js/async/8706.
|
|
552
|
+
"__mf/js/async/8706.a36614fb.js",
|
|
553
553
|
"__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.e5e35f24.js"
|
|
554
554
|
],
|
|
555
555
|
"async": [
|
|
@@ -565,7 +565,7 @@
|
|
|
565
565
|
"__mf/js/async/7376.2e948f2b.js",
|
|
566
566
|
"__mf/js/async/9550.642ce5ad.js",
|
|
567
567
|
"__mf/js/async/4665.cad36935.js",
|
|
568
|
-
"__mf/js/async/__federation_expose_PrometheusExplorer.
|
|
568
|
+
"__mf/js/async/__federation_expose_PrometheusExplorer.9c1f411b.js",
|
|
569
569
|
"__mf/js/async/9817.70eae424.js",
|
|
570
570
|
"__mf/js/async/5876.1976752d.js",
|
|
571
571
|
"__mf/js/async/4535.f24704ea.js",
|
|
@@ -606,7 +606,7 @@
|
|
|
606
606
|
"__mf/js/async/7272.6fa2f127.js",
|
|
607
607
|
"__mf/js/async/5724.794828e3.js",
|
|
608
608
|
"__mf/js/async/537.82230699.js",
|
|
609
|
-
"__mf/js/async/8706.
|
|
609
|
+
"__mf/js/async/8706.a36614fb.js",
|
|
610
610
|
"__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.86bf76a6.js"
|
|
611
611
|
],
|
|
612
612
|
"async": [
|
|
@@ -622,7 +622,7 @@
|
|
|
622
622
|
"__mf/js/async/7376.2e948f2b.js",
|
|
623
623
|
"__mf/js/async/9550.642ce5ad.js",
|
|
624
624
|
"__mf/js/async/4665.cad36935.js",
|
|
625
|
-
"__mf/js/async/__federation_expose_PrometheusExplorer.
|
|
625
|
+
"__mf/js/async/__federation_expose_PrometheusExplorer.9c1f411b.js",
|
|
626
626
|
"__mf/js/async/9817.70eae424.js",
|
|
627
627
|
"__mf/js/async/5876.1976752d.js",
|
|
628
628
|
"__mf/js/async/4535.f24704ea.js",
|
|
@@ -663,7 +663,7 @@
|
|
|
663
663
|
"__mf/js/async/7272.6fa2f127.js",
|
|
664
664
|
"__mf/js/async/5724.794828e3.js",
|
|
665
665
|
"__mf/js/async/537.82230699.js",
|
|
666
|
-
"__mf/js/async/8706.
|
|
666
|
+
"__mf/js/async/8706.a36614fb.js",
|
|
667
667
|
"__mf/js/async/__federation_expose_PrometheusPromQLVariable.b2270799.js"
|
|
668
668
|
],
|
|
669
669
|
"async": [
|
|
@@ -679,7 +679,7 @@
|
|
|
679
679
|
"__mf/js/async/7376.2e948f2b.js",
|
|
680
680
|
"__mf/js/async/9550.642ce5ad.js",
|
|
681
681
|
"__mf/js/async/4665.cad36935.js",
|
|
682
|
-
"__mf/js/async/__federation_expose_PrometheusExplorer.
|
|
682
|
+
"__mf/js/async/__federation_expose_PrometheusExplorer.9c1f411b.js",
|
|
683
683
|
"__mf/js/async/9817.70eae424.js",
|
|
684
684
|
"__mf/js/async/5876.1976752d.js",
|
|
685
685
|
"__mf/js/async/4535.f24704ea.js",
|
|
@@ -727,7 +727,7 @@
|
|
|
727
727
|
"__mf/js/async/7376.2e948f2b.js",
|
|
728
728
|
"__mf/js/async/9550.642ce5ad.js",
|
|
729
729
|
"__mf/js/async/4665.cad36935.js",
|
|
730
|
-
"__mf/js/async/__federation_expose_PrometheusExplorer.
|
|
730
|
+
"__mf/js/async/__federation_expose_PrometheusExplorer.9c1f411b.js"
|
|
731
731
|
],
|
|
732
732
|
"async": [
|
|
733
733
|
"__mf/js/async/4238.422a1b1c.js",
|
|
@@ -742,8 +742,8 @@
|
|
|
742
742
|
"__mf/js/async/2675.27451820.js",
|
|
743
743
|
"__mf/js/async/5724.794828e3.js",
|
|
744
744
|
"__mf/js/async/537.82230699.js",
|
|
745
|
-
"__mf/js/async/8706.
|
|
746
|
-
"__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.
|
|
745
|
+
"__mf/js/async/8706.a36614fb.js",
|
|
746
|
+
"__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.baa5cd15.js",
|
|
747
747
|
"__mf/js/async/7272.6fa2f127.js",
|
|
748
748
|
"__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.e5e35f24.js",
|
|
749
749
|
"__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.86bf76a6.js",
|