@perses-dev/prometheus-plugin 0.51.0-rc.2 → 0.51.0

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.
Files changed (33) hide show
  1. package/__mf/js/{622.f8d6828c.js → 622.81d47848.js} +1 -1
  2. package/__mf/js/{Prometheus.b8130f02.js → Prometheus.ce1e9458.js} +2 -2
  3. package/__mf/js/async/{5503.7153681d.js → 5503.d391f0fc.js} +1 -1
  4. package/__mf/js/async/__federation_expose_PrometheusExplorer.3f83dfda.js +1 -0
  5. package/__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.8551745e.js +1 -0
  6. package/__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.a4085adb.js +1 -0
  7. package/__mf/js/async/__federation_expose_PrometheusPromQLVariable.46f99477.js +1 -0
  8. package/__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.b4228802.js +1 -0
  9. package/__mf/js/{main.855882c0.js → main.02b2cf43.js} +1 -1
  10. package/lib/cjs/explore/PrometheusMetricsFinder/filter/FilterInputs.js +85 -69
  11. package/lib/cjs/explore/PrometheusMetricsFinder/filter/FinderFilters.js +16 -14
  12. package/lib/cjs/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.js +9 -16
  13. package/lib/cjs/plugins/prometheus-variables.js +27 -45
  14. package/lib/explore/PrometheusMetricsFinder/filter/FilterInputs.d.ts.map +1 -1
  15. package/lib/explore/PrometheusMetricsFinder/filter/FilterInputs.js +87 -72
  16. package/lib/explore/PrometheusMetricsFinder/filter/FilterInputs.js.map +1 -1
  17. package/lib/explore/PrometheusMetricsFinder/filter/FinderFilters.d.ts.map +1 -1
  18. package/lib/explore/PrometheusMetricsFinder/filter/FinderFilters.js +17 -15
  19. package/lib/explore/PrometheusMetricsFinder/filter/FinderFilters.js.map +1 -1
  20. package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.d.ts.map +1 -1
  21. package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.js +10 -17
  22. package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.js.map +1 -1
  23. package/lib/plugins/prometheus-variables.d.ts.map +1 -1
  24. package/lib/plugins/prometheus-variables.js +28 -46
  25. package/lib/plugins/prometheus-variables.js.map +1 -1
  26. package/mf-manifest.json +33 -33
  27. package/mf-stats.json +36 -36
  28. package/package.json +9 -1
  29. package/__mf/js/async/__federation_expose_PrometheusExplorer.f3fe63da.js +0 -1
  30. package/__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.873e5f4d.js +0 -1
  31. package/__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.6696e340.js +0 -1
  32. package/__mf/js/async/__federation_expose_PrometheusPromQLVariable.ab45c7cc.js +0 -1
  33. package/__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.66611c9d.js +0 -1
@@ -11,7 +11,7 @@
11
11
  // See the License for the specific language governing permissions and
12
12
  // limitations under the License.
13
13
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
- import { FormControl, InputLabel, Stack, TextField } from '@mui/material';
14
+ import { FormControl, Stack, TextField } from '@mui/material';
15
15
  import { DatasourceSelect, useDatasourceClient } from '@perses-dev/plugin-system';
16
16
  import { produce } from 'immer';
17
17
  import { PromQLEditor } from '../components';
@@ -34,22 +34,16 @@ export function PrometheusLabelValuesVariableEditor(props) {
34
34
  return /*#__PURE__*/ _jsxs(Stack, {
35
35
  spacing: 2,
36
36
  children: [
37
- /*#__PURE__*/ _jsxs(FormControl, {
37
+ /*#__PURE__*/ _jsx(FormControl, {
38
38
  margin: "dense",
39
- children: [
40
- /*#__PURE__*/ _jsx(InputLabel, {
41
- id: "prom-datasource-label",
42
- children: "Prometheus Datasource"
43
- }),
44
- /*#__PURE__*/ _jsx(DatasourceSelect, {
45
- datasourcePluginKind: "PrometheusDatasource",
46
- value: selectedDatasource,
47
- onChange: handleDatasourceChange,
48
- readOnly: props.isReadonly,
49
- labelId: "prom-datasource-label",
50
- label: "Prometheus Datasource"
51
- })
52
- ]
39
+ children: /*#__PURE__*/ _jsx(DatasourceSelect, {
40
+ datasourcePluginKind: "PrometheusDatasource",
41
+ value: selectedDatasource,
42
+ onChange: handleDatasourceChange,
43
+ readOnly: props.isReadonly,
44
+ labelId: "prom-datasource-label",
45
+ label: "Prometheus Datasource"
46
+ })
53
47
  }),
54
48
  /*#__PURE__*/ _jsx(TextField, {
55
49
  label: "Label Name",
@@ -95,22 +89,16 @@ export function PrometheusLabelNamesVariableEditor(props) {
95
89
  return /*#__PURE__*/ _jsxs(Stack, {
96
90
  spacing: 2,
97
91
  children: [
98
- /*#__PURE__*/ _jsxs(FormControl, {
92
+ /*#__PURE__*/ _jsx(FormControl, {
99
93
  margin: "dense",
100
- children: [
101
- /*#__PURE__*/ _jsx(InputLabel, {
102
- id: "prom-datasource-label",
103
- children: "Prometheus Datasource"
104
- }),
105
- /*#__PURE__*/ _jsx(DatasourceSelect, {
106
- datasourcePluginKind: "PrometheusDatasource",
107
- value: selectedDatasource,
108
- onChange: handleDatasourceChange,
109
- disabled: props.isReadonly,
110
- labelId: "prom-datasource-label",
111
- label: "Prometheus Datasource"
112
- })
113
- ]
94
+ children: /*#__PURE__*/ _jsx(DatasourceSelect, {
95
+ datasourcePluginKind: "PrometheusDatasource",
96
+ value: selectedDatasource,
97
+ onChange: handleDatasourceChange,
98
+ disabled: props.isReadonly,
99
+ labelId: "prom-datasource-label",
100
+ label: "Prometheus Datasource"
101
+ })
114
102
  }),
115
103
  /*#__PURE__*/ _jsx(MatcherEditor, {
116
104
  matchers: props.value.matchers ?? [],
@@ -144,22 +132,16 @@ export function PrometheusPromQLVariableEditor(props) {
144
132
  return /*#__PURE__*/ _jsxs(Stack, {
145
133
  spacing: 2,
146
134
  children: [
147
- /*#__PURE__*/ _jsxs(FormControl, {
135
+ /*#__PURE__*/ _jsx(FormControl, {
148
136
  margin: "dense",
149
- children: [
150
- /*#__PURE__*/ _jsx(InputLabel, {
151
- id: "prom-datasource-label",
152
- children: "Prometheus Datasource"
153
- }),
154
- /*#__PURE__*/ _jsx(DatasourceSelect, {
155
- datasourcePluginKind: PROM_DATASOURCE_KIND,
156
- value: selectedDatasource,
157
- onChange: handleDatasourceChange,
158
- labelId: "prom-datasource-label",
159
- label: "Prometheus Datasource",
160
- disabled: props.isReadonly
161
- })
162
- ]
137
+ children: /*#__PURE__*/ _jsx(DatasourceSelect, {
138
+ datasourcePluginKind: PROM_DATASOURCE_KIND,
139
+ value: selectedDatasource,
140
+ onChange: handleDatasourceChange,
141
+ labelId: "prom-datasource-label",
142
+ label: "Prometheus Datasource",
143
+ disabled: props.isReadonly
144
+ })
163
145
  }),
164
146
  /*#__PURE__*/ _jsx(PromQLEditor, {
165
147
  completeConfig: {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/plugins/prometheus-variables.tsx"],"sourcesContent":["// Copyright 2024 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.\nimport { FormControl, InputLabel, Stack, TextField } from '@mui/material';\nimport {\n DatasourceSelect,\n DatasourceSelectProps,\n OptionsEditorProps,\n useDatasourceClient,\n VariableOption,\n} from '@perses-dev/plugin-system';\nimport { produce } from 'immer';\nimport { ReactElement } from 'react';\nimport { PromQLEditor } from '../components';\nimport {\n DEFAULT_PROM,\n isDefaultPromSelector,\n isPrometheusDatasourceSelector,\n MatrixData,\n PROM_DATASOURCE_KIND,\n PrometheusClient,\n VectorData,\n} from '../model';\nimport { MatcherEditor } from './MatcherEditor';\nimport {\n PrometheusLabelNamesVariableOptions,\n PrometheusLabelValuesVariableOptions,\n PrometheusPromQLVariableOptions,\n} from './types';\n\nexport function PrometheusLabelValuesVariableEditor(\n props: OptionsEditorProps<PrometheusLabelValuesVariableOptions>\n): ReactElement {\n const { onChange, value } = props;\n const { datasource } = value;\n const selectedDatasource = datasource ?? DEFAULT_PROM;\n\n const handleDatasourceChange: DatasourceSelectProps['onChange'] = (next) => {\n if (isPrometheusDatasourceSelector(next)) {\n onChange(\n produce(value, (draft) => {\n // If they're using the default, just omit the datasource prop (i.e. set to undefined)\n draft.datasource = isDefaultPromSelector(next) ? undefined : next;\n })\n );\n return;\n }\n\n throw new Error('Got unexpected non-Prometheus datasource selector');\n };\n\n return (\n <Stack spacing={2}>\n <FormControl margin=\"dense\">\n <InputLabel id=\"prom-datasource-label\">Prometheus Datasource</InputLabel>\n <DatasourceSelect\n datasourcePluginKind=\"PrometheusDatasource\"\n value={selectedDatasource}\n onChange={handleDatasourceChange}\n readOnly={props.isReadonly}\n labelId=\"prom-datasource-label\"\n label=\"Prometheus Datasource\"\n />\n </FormControl>\n <TextField\n label=\"Label Name\"\n required\n value={props.value.labelName}\n onChange={(e) => {\n props.onChange({ ...props.value, labelName: e.target.value });\n }}\n InputProps={{\n readOnly: props.isReadonly,\n }}\n />\n <MatcherEditor\n matchers={props.value.matchers ?? []}\n onChange={(e) => {\n props.onChange({ ...props.value, matchers: e });\n }}\n isReadonly={props.isReadonly}\n />\n </Stack>\n );\n}\n\nexport function PrometheusLabelNamesVariableEditor(\n props: OptionsEditorProps<PrometheusLabelNamesVariableOptions>\n): ReactElement {\n const { onChange, value } = props;\n const { datasource } = value;\n const selectedDatasource = datasource ?? DEFAULT_PROM;\n\n const handleDatasourceChange: DatasourceSelectProps['onChange'] = (next) => {\n if (isPrometheusDatasourceSelector(next)) {\n onChange(\n produce(value, (draft) => {\n // If they're using the default, just omit the datasource prop (i.e. set to undefined)\n draft.datasource = isDefaultPromSelector(next) ? undefined : next;\n })\n );\n return;\n }\n\n throw new Error('Got unexpected non-Prometheus datasource selector');\n };\n\n return (\n <Stack spacing={2}>\n <FormControl margin=\"dense\">\n <InputLabel id=\"prom-datasource-label\">Prometheus Datasource</InputLabel>\n <DatasourceSelect\n datasourcePluginKind=\"PrometheusDatasource\"\n value={selectedDatasource}\n onChange={handleDatasourceChange}\n disabled={props.isReadonly}\n labelId=\"prom-datasource-label\"\n label=\"Prometheus Datasource\"\n />\n </FormControl>\n <MatcherEditor\n matchers={props.value.matchers ?? []}\n isReadonly={props.isReadonly}\n onChange={(e) => {\n props.onChange({ ...props.value, matchers: e });\n }}\n />\n </Stack>\n );\n}\n\nexport function PrometheusPromQLVariableEditor(\n props: OptionsEditorProps<PrometheusPromQLVariableOptions>\n): ReactElement {\n const { onChange, value } = props;\n const { datasource } = value;\n const selectedDatasource = datasource ?? DEFAULT_PROM;\n\n const { data: client } = useDatasourceClient<PrometheusClient>(selectedDatasource);\n const promURL = client?.options.datasourceUrl;\n\n const handleDatasourceChange: DatasourceSelectProps['onChange'] = (next) => {\n if (isPrometheusDatasourceSelector(next)) {\n onChange(\n produce(value, (draft) => {\n // If they're using the default, just omit the datasource prop (i.e. set to undefined)\n draft.datasource = isDefaultPromSelector(next) ? undefined : next;\n })\n );\n return;\n }\n\n throw new Error('Got unexpected non-Prometheus datasource selector');\n };\n\n return (\n <Stack spacing={2}>\n <FormControl margin=\"dense\">\n <InputLabel id=\"prom-datasource-label\">Prometheus Datasource</InputLabel>\n <DatasourceSelect\n datasourcePluginKind={PROM_DATASOURCE_KIND}\n value={selectedDatasource}\n onChange={handleDatasourceChange}\n labelId=\"prom-datasource-label\"\n label=\"Prometheus Datasource\"\n disabled={props.isReadonly}\n />\n </FormControl>\n <PromQLEditor\n completeConfig={{ remote: { url: promURL } }}\n value={value.expr}\n datasource={selectedDatasource}\n onBlur={(event) => {\n props.onChange({ ...props.value, expr: event.target.textContent ?? '' });\n }}\n readOnly={props.isReadonly}\n width=\"100%\"\n />\n <TextField\n label=\"Label Name\"\n value={props.value.labelName}\n InputProps={{\n readOnly: props.isReadonly,\n }}\n onChange={(e) => {\n props.onChange({ ...props.value, labelName: e.target.value });\n }}\n />\n </Stack>\n );\n}\n\nexport function capturingMatrix(matrix: MatrixData, labelName: string): string[] {\n const captured = new Set<string>();\n for (const sample of matrix.result) {\n const value = sample.metric[labelName];\n if (value !== undefined) {\n captured.add(value);\n }\n }\n return Array.from(captured.values());\n}\n\nexport function capturingVector(vector: VectorData, labelName: string): string[] {\n const captured = new Set<string>();\n for (const sample of vector.result) {\n const value = sample.metric[labelName];\n if (value !== undefined) {\n captured.add(value);\n }\n }\n return Array.from(captured.values());\n}\n\n/**\n * Takes a list of strings and returns a list of VariableOptions\n */\nexport const stringArrayToVariableOptions = (values?: string[]): VariableOption[] => {\n if (!values) return [];\n return values.map((value) => ({\n value,\n label: value,\n }));\n};\n"],"names":["FormControl","InputLabel","Stack","TextField","DatasourceSelect","useDatasourceClient","produce","PromQLEditor","DEFAULT_PROM","isDefaultPromSelector","isPrometheusDatasourceSelector","PROM_DATASOURCE_KIND","MatcherEditor","PrometheusLabelValuesVariableEditor","props","onChange","value","datasource","selectedDatasource","handleDatasourceChange","next","draft","undefined","Error","spacing","margin","id","datasourcePluginKind","readOnly","isReadonly","labelId","label","required","labelName","e","target","InputProps","matchers","PrometheusLabelNamesVariableEditor","disabled","PrometheusPromQLVariableEditor","data","client","promURL","options","datasourceUrl","completeConfig","remote","url","expr","onBlur","event","textContent","width","capturingMatrix","matrix","captured","Set","sample","result","metric","add","Array","from","values","capturingVector","vector","stringArrayToVariableOptions","map"],"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;;AACjC,SAASA,WAAW,EAAEC,UAAU,EAAEC,KAAK,EAAEC,SAAS,QAAQ,gBAAgB;AAC1E,SACEC,gBAAgB,EAGhBC,mBAAmB,QAEd,4B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iB;IACnE,MAAMuB,WAAW,IAAIC;IACrB,KAAK,MAAMC,UAAUQ,OAAOP,MAAM,CAAE;QAClC,MAAM3C,QAAQ0C,OAAOE,MAAM,CAAC3B,UAAU;QACtC,IAAIjB,UAAUM,WAAW;YACvBkC,SAASK,GAAG,CAAC7C;QACf;IACF;IACA,OAAO8C,MAAMC,IAAI,CAACP,SAASQ,MAAM;AACnC;AAEA;;CAEC,GACD,OAAO,MAAMG,+BAA+B,CAACH;IAC3C,IAAI,CAACA,QAAQ,OAAO,EAAE;IACtB,OAAOA,OAAOI,GAAG,CAAC,CAACpD,QAAW,CAAA;YAC5BA;YACAe,OAAOf;QACT,CAAA;AACF,EAAE"}
1
+ {"version":3,"sources":["../../../src/plugins/prometheus-variables.tsx"],"sourcesContent":["// Copyright 2024 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.\nimport { FormControl, Stack, TextField } from '@mui/material';\nimport {\n DatasourceSelect,\n DatasourceSelectProps,\n OptionsEditorProps,\n useDatasourceClient,\n VariableOption,\n} from '@perses-dev/plugin-system';\nimport { produce } from 'immer';\nimport { ReactElement } from 'react';\nimport { PromQLEditor } from '../components';\nimport {\n DEFAULT_PROM,\n isDefaultPromSelector,\n isPrometheusDatasourceSelector,\n MatrixData,\n PROM_DATASOURCE_KIND,\n PrometheusClient,\n VectorData,\n} from '../model';\nimport { MatcherEditor } from './MatcherEditor';\nimport {\n PrometheusLabelNamesVariableOptions,\n PrometheusLabelValuesVariableOptions,\n PrometheusPromQLVariableOptions,\n} from './types';\n\nexport function PrometheusLabelValuesVariableEditor(\n props: OptionsEditorProps<PrometheusLabelValuesVariableOptions>\n): ReactElement {\n const { onChange, value } = props;\n const { datasource } = value;\n const selectedDatasource = datasource ?? DEFAULT_PROM;\n\n const handleDatasourceChange: DatasourceSelectProps['onChange'] = (next) => {\n if (isPrometheusDatasourceSelector(next)) {\n onChange(\n produce(value, (draft) => {\n // If they're using the default, just omit the datasource prop (i.e. set to undefined)\n draft.datasource = isDefaultPromSelector(next) ? undefined : next;\n })\n );\n return;\n }\n\n throw new Error('Got unexpected non-Prometheus datasource selector');\n };\n\n return (\n <Stack spacing={2}>\n <FormControl margin=\"dense\">\n <DatasourceSelect\n datasourcePluginKind=\"PrometheusDatasource\"\n value={selectedDatasource}\n onChange={handleDatasourceChange}\n readOnly={props.isReadonly}\n labelId=\"prom-datasource-label\"\n label=\"Prometheus Datasource\"\n />\n </FormControl>\n <TextField\n label=\"Label Name\"\n required\n value={props.value.labelName}\n onChange={(e) => {\n props.onChange({ ...props.value, labelName: e.target.value });\n }}\n InputProps={{\n readOnly: props.isReadonly,\n }}\n />\n <MatcherEditor\n matchers={props.value.matchers ?? []}\n onChange={(e) => {\n props.onChange({ ...props.value, matchers: e });\n }}\n isReadonly={props.isReadonly}\n />\n </Stack>\n );\n}\n\nexport function PrometheusLabelNamesVariableEditor(\n props: OptionsEditorProps<PrometheusLabelNamesVariableOptions>\n): ReactElement {\n const { onChange, value } = props;\n const { datasource } = value;\n const selectedDatasource = datasource ?? DEFAULT_PROM;\n\n const handleDatasourceChange: DatasourceSelectProps['onChange'] = (next) => {\n if (isPrometheusDatasourceSelector(next)) {\n onChange(\n produce(value, (draft) => {\n // If they're using the default, just omit the datasource prop (i.e. set to undefined)\n draft.datasource = isDefaultPromSelector(next) ? undefined : next;\n })\n );\n return;\n }\n\n throw new Error('Got unexpected non-Prometheus datasource selector');\n };\n\n return (\n <Stack spacing={2}>\n <FormControl margin=\"dense\">\n <DatasourceSelect\n datasourcePluginKind=\"PrometheusDatasource\"\n value={selectedDatasource}\n onChange={handleDatasourceChange}\n disabled={props.isReadonly}\n labelId=\"prom-datasource-label\"\n label=\"Prometheus Datasource\"\n />\n </FormControl>\n <MatcherEditor\n matchers={props.value.matchers ?? []}\n isReadonly={props.isReadonly}\n onChange={(e) => {\n props.onChange({ ...props.value, matchers: e });\n }}\n />\n </Stack>\n );\n}\n\nexport function PrometheusPromQLVariableEditor(\n props: OptionsEditorProps<PrometheusPromQLVariableOptions>\n): ReactElement {\n const { onChange, value } = props;\n const { datasource } = value;\n const selectedDatasource = datasource ?? DEFAULT_PROM;\n\n const { data: client } = useDatasourceClient<PrometheusClient>(selectedDatasource);\n const promURL = client?.options.datasourceUrl;\n\n const handleDatasourceChange: DatasourceSelectProps['onChange'] = (next) => {\n if (isPrometheusDatasourceSelector(next)) {\n onChange(\n produce(value, (draft) => {\n // If they're using the default, just omit the datasource prop (i.e. set to undefined)\n draft.datasource = isDefaultPromSelector(next) ? undefined : next;\n })\n );\n return;\n }\n\n throw new Error('Got unexpected non-Prometheus datasource selector');\n };\n\n return (\n <Stack spacing={2}>\n <FormControl margin=\"dense\">\n <DatasourceSelect\n datasourcePluginKind={PROM_DATASOURCE_KIND}\n value={selectedDatasource}\n onChange={handleDatasourceChange}\n labelId=\"prom-datasource-label\"\n label=\"Prometheus Datasource\"\n disabled={props.isReadonly}\n />\n </FormControl>\n <PromQLEditor\n completeConfig={{ remote: { url: promURL } }}\n value={value.expr}\n datasource={selectedDatasource}\n onBlur={(event) => {\n props.onChange({ ...props.value, expr: event.target.textContent ?? '' });\n }}\n readOnly={props.isReadonly}\n width=\"100%\"\n />\n <TextField\n label=\"Label Name\"\n value={props.value.labelName}\n InputProps={{\n readOnly: props.isReadonly,\n }}\n onChange={(e) => {\n props.onChange({ ...props.value, labelName: e.target.value });\n }}\n />\n </Stack>\n );\n}\n\nexport function capturingMatrix(matrix: MatrixData, labelName: string): string[] {\n const captured = new Set<string>();\n for (const sample of matrix.result) {\n const value = sample.metric[labelName];\n if (value !== undefined) {\n captured.add(value);\n }\n }\n return Array.from(captured.values());\n}\n\nexport function capturingVector(vector: VectorData, labelName: string): string[] {\n const captured = new Set<string>();\n for (const sample of vector.result) {\n const value = sample.metric[labelName];\n if (value !== undefined) {\n captured.add(value);\n }\n }\n return Array.from(captured.values());\n}\n\n/**\n * Takes a list of strings and returns a list of VariableOptions\n */\nexport const stringArrayToVariableOptions = (values?: string[]): VariableOption[] => {\n if (!values) return [];\n return values.map((value) => ({\n value,\n label: value,\n }));\n};\n"],"names":["FormControl","Stack","TextField","DatasourceSelect","useDatasourceClient","produce","PromQLEditor","DEFAULT_PROM","isDefaultPromSelector","isPrometheusDatasourceSelector","PROM_DATASOURCE_KIND","MatcherEditor","PrometheusLabelValuesVariableEditor","props","onChange","value","datasource","selectedDatasource","handleDatasourceChange","next","draft","undefined","Error","spacing","margin","datasourcePluginKind","readOnly","isReadonly","labelId","label","required","labelName","e","target","InputProps","matchers","PrometheusLabelNamesVariableEditor","disabled","PrometheusPromQLVariableEditor","data","client","promURL","options","datasourceUrl","completeConfig","remote","url","expr","onBlur","event","textContent","width","capturingMatrix","matrix","captured","Set","sample","result","metric","add","Array","from","values","capturingVector","vector","stringArrayToVariableOptions","map"],"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;;AACjC,SAASA,WAAW,EAAEC,KAAK,EAAEC,SAAS,QAAQ,gBAAgB;AAC9D,SACEC,gBAAgB,EAGhBC,mBAAmB,QAEd,4BAA4B;AACnC,SAASC,OAAO,QAAQ,QAAQ;AAEhC,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SACEC,YAAY,EACZC,qBAAqB,EACrBC,8BAA8B,EAE9BC,oBAAoB,QAGf,WAAW;AAClB,SAASC,aAAa,QAAQ,kBAAkB;AAOhD,OAAO,SAASC,oCACdC,KAA+D;IAE/D,MAAM,EAAEC,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I,GAAG,CAAC,CAACnD,QAAW,CAAA;YAC5BA;YACAc,OAAOd;QACT,CAAA;AACF,EAAE"}
package/mf-manifest.json CHANGED
@@ -5,11 +5,11 @@
5
5
  "name": "Prometheus",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "0.51.0-rc.2",
8
+ "buildVersion": "0.51.0",
9
9
  "buildName": "@perses-dev/prometheus-plugin"
10
10
  },
11
11
  "remoteEntry": {
12
- "name": "__mf/js/Prometheus.b8130f02.js",
12
+ "name": "__mf/js/Prometheus.ce1e9458.js",
13
13
  "path": "",
14
14
  "type": "global"
15
15
  },
@@ -152,7 +152,7 @@
152
152
  "__mf/js/async/738.aca54e25.js",
153
153
  "__mf/js/async/3980.7cea5715.js",
154
154
  "__mf/js/async/6377.ca974d89.js",
155
- "__mf/js/async/5503.7153681d.js",
155
+ "__mf/js/async/5503.d391f0fc.js",
156
156
  "__mf/js/async/1465.3b5e12d5.js",
157
157
  "__mf/js/async/4421.42e889f6.js",
158
158
  "__mf/js/async/4062.3ab7f987.js",
@@ -209,7 +209,7 @@
209
209
  "__mf/js/async/738.aca54e25.js",
210
210
  "__mf/js/async/3980.7cea5715.js",
211
211
  "__mf/js/async/6377.ca974d89.js",
212
- "__mf/js/async/5503.7153681d.js",
212
+ "__mf/js/async/5503.d391f0fc.js",
213
213
  "__mf/js/async/4062.3ab7f987.js",
214
214
  "__mf/js/async/5913.4e5abd09.js",
215
215
  "__mf/js/async/2285.15378f70.js",
@@ -257,7 +257,7 @@
257
257
  "__mf/js/async/738.aca54e25.js",
258
258
  "__mf/js/async/3980.7cea5715.js",
259
259
  "__mf/js/async/6377.ca974d89.js",
260
- "__mf/js/async/5503.7153681d.js",
260
+ "__mf/js/async/5503.d391f0fc.js",
261
261
  "__mf/js/async/1465.3b5e12d5.js",
262
262
  "__mf/js/async/4421.42e889f6.js",
263
263
  "__mf/js/async/4062.3ab7f987.js",
@@ -329,7 +329,7 @@
329
329
  "js": {
330
330
  "async": [],
331
331
  "sync": [
332
- "__mf/js/async/5503.7153681d.js"
332
+ "__mf/js/async/5503.d391f0fc.js"
333
333
  ]
334
334
  },
335
335
  "css": {
@@ -492,16 +492,16 @@
492
492
  "__mf/js/async/5724.6ee6ec51.js",
493
493
  "__mf/js/async/537.6911ea2e.js",
494
494
  "__mf/js/async/5345.2e531d76.js",
495
- "__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.66611c9d.js",
495
+ "__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.b4228802.js",
496
496
  "__mf/js/async/7272.a763aa92.js",
497
- "__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.6696e340.js",
498
- "__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.873e5f4d.js",
499
- "__mf/js/async/__federation_expose_PrometheusPromQLVariable.ab45c7cc.js",
497
+ "__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.a4085adb.js",
498
+ "__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.8551745e.js",
499
+ "__mf/js/async/__federation_expose_PrometheusPromQLVariable.46f99477.js",
500
500
  "__mf/js/async/5769.f14c9663.js",
501
501
  "__mf/js/async/7376.c7eb05b9.js",
502
502
  "__mf/js/async/9550.e19763f8.js",
503
503
  "__mf/js/async/3818.dde21d04.js",
504
- "__mf/js/async/__federation_expose_PrometheusExplorer.f3fe63da.js",
504
+ "__mf/js/async/__federation_expose_PrometheusExplorer.3f83dfda.js",
505
505
  "__mf/js/async/3871.6915e369.js",
506
506
  "__mf/js/async/1465.3b5e12d5.js",
507
507
  "__mf/js/async/528.d364bb0e.js",
@@ -513,7 +513,7 @@
513
513
  "__mf/js/async/738.aca54e25.js",
514
514
  "__mf/js/async/3980.7cea5715.js",
515
515
  "__mf/js/async/6377.ca974d89.js",
516
- "__mf/js/async/5503.7153681d.js",
516
+ "__mf/js/async/5503.d391f0fc.js",
517
517
  "__mf/js/async/4421.42e889f6.js",
518
518
  "__mf/js/async/4062.3ab7f987.js",
519
519
  "__mf/js/async/212.bd5d617a.js",
@@ -547,7 +547,7 @@
547
547
  "__mf/js/async/5724.6ee6ec51.js",
548
548
  "__mf/js/async/537.6911ea2e.js",
549
549
  "__mf/js/async/5345.2e531d76.js",
550
- "__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.66611c9d.js"
550
+ "__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.b4228802.js"
551
551
  ],
552
552
  "async": [
553
553
  "__mf/js/async/1964.95da06f6.js",
@@ -568,14 +568,14 @@
568
568
  "__mf/js/async/5724.6ee6ec51.js",
569
569
  "__mf/js/async/537.6911ea2e.js",
570
570
  "__mf/js/async/5345.2e531d76.js",
571
- "__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.6696e340.js",
572
- "__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.873e5f4d.js",
573
- "__mf/js/async/__federation_expose_PrometheusPromQLVariable.ab45c7cc.js",
571
+ "__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.a4085adb.js",
572
+ "__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.8551745e.js",
573
+ "__mf/js/async/__federation_expose_PrometheusPromQLVariable.46f99477.js",
574
574
  "__mf/js/async/5769.f14c9663.js",
575
575
  "__mf/js/async/7376.c7eb05b9.js",
576
576
  "__mf/js/async/9550.e19763f8.js",
577
577
  "__mf/js/async/3818.dde21d04.js",
578
- "__mf/js/async/__federation_expose_PrometheusExplorer.f3fe63da.js",
578
+ "__mf/js/async/__federation_expose_PrometheusExplorer.3f83dfda.js",
579
579
  "__mf/js/async/3871.6915e369.js",
580
580
  "__mf/js/async/1465.3b5e12d5.js",
581
581
  "__mf/js/async/528.d364bb0e.js",
@@ -586,7 +586,7 @@
586
586
  "__mf/js/async/6292.7b8efa78.js",
587
587
  "__mf/js/async/738.aca54e25.js",
588
588
  "__mf/js/async/6377.ca974d89.js",
589
- "__mf/js/async/5503.7153681d.js",
589
+ "__mf/js/async/5503.d391f0fc.js",
590
590
  "__mf/js/async/4421.42e889f6.js",
591
591
  "__mf/js/async/4062.3ab7f987.js",
592
592
  "__mf/js/async/212.bd5d617a.js",
@@ -622,7 +622,7 @@
622
622
  "__mf/js/async/5724.6ee6ec51.js",
623
623
  "__mf/js/async/537.6911ea2e.js",
624
624
  "__mf/js/async/5345.2e531d76.js",
625
- "__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.6696e340.js"
625
+ "__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.a4085adb.js"
626
626
  ],
627
627
  "async": [
628
628
  "__mf/js/async/1964.95da06f6.js",
@@ -643,7 +643,7 @@
643
643
  "__mf/js/async/7376.c7eb05b9.js",
644
644
  "__mf/js/async/9550.e19763f8.js",
645
645
  "__mf/js/async/3818.dde21d04.js",
646
- "__mf/js/async/__federation_expose_PrometheusExplorer.f3fe63da.js",
646
+ "__mf/js/async/__federation_expose_PrometheusExplorer.3f83dfda.js",
647
647
  "__mf/js/async/3871.6915e369.js",
648
648
  "__mf/js/async/1465.3b5e12d5.js",
649
649
  "__mf/js/async/528.d364bb0e.js",
@@ -654,7 +654,7 @@
654
654
  "__mf/js/async/6292.7b8efa78.js",
655
655
  "__mf/js/async/738.aca54e25.js",
656
656
  "__mf/js/async/6377.ca974d89.js",
657
- "__mf/js/async/5503.7153681d.js",
657
+ "__mf/js/async/5503.d391f0fc.js",
658
658
  "__mf/js/async/4421.42e889f6.js",
659
659
  "__mf/js/async/4062.3ab7f987.js",
660
660
  "__mf/js/async/212.bd5d617a.js",
@@ -690,7 +690,7 @@
690
690
  "__mf/js/async/5724.6ee6ec51.js",
691
691
  "__mf/js/async/537.6911ea2e.js",
692
692
  "__mf/js/async/5345.2e531d76.js",
693
- "__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.873e5f4d.js"
693
+ "__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.8551745e.js"
694
694
  ],
695
695
  "async": [
696
696
  "__mf/js/async/1964.95da06f6.js",
@@ -711,7 +711,7 @@
711
711
  "__mf/js/async/7376.c7eb05b9.js",
712
712
  "__mf/js/async/9550.e19763f8.js",
713
713
  "__mf/js/async/3818.dde21d04.js",
714
- "__mf/js/async/__federation_expose_PrometheusExplorer.f3fe63da.js",
714
+ "__mf/js/async/__federation_expose_PrometheusExplorer.3f83dfda.js",
715
715
  "__mf/js/async/3871.6915e369.js",
716
716
  "__mf/js/async/1465.3b5e12d5.js",
717
717
  "__mf/js/async/528.d364bb0e.js",
@@ -722,7 +722,7 @@
722
722
  "__mf/js/async/6292.7b8efa78.js",
723
723
  "__mf/js/async/738.aca54e25.js",
724
724
  "__mf/js/async/6377.ca974d89.js",
725
- "__mf/js/async/5503.7153681d.js",
725
+ "__mf/js/async/5503.d391f0fc.js",
726
726
  "__mf/js/async/4421.42e889f6.js",
727
727
  "__mf/js/async/4062.3ab7f987.js",
728
728
  "__mf/js/async/212.bd5d617a.js",
@@ -758,7 +758,7 @@
758
758
  "__mf/js/async/5724.6ee6ec51.js",
759
759
  "__mf/js/async/537.6911ea2e.js",
760
760
  "__mf/js/async/5345.2e531d76.js",
761
- "__mf/js/async/__federation_expose_PrometheusPromQLVariable.ab45c7cc.js"
761
+ "__mf/js/async/__federation_expose_PrometheusPromQLVariable.46f99477.js"
762
762
  ],
763
763
  "async": [
764
764
  "__mf/js/async/1964.95da06f6.js",
@@ -779,7 +779,7 @@
779
779
  "__mf/js/async/7376.c7eb05b9.js",
780
780
  "__mf/js/async/9550.e19763f8.js",
781
781
  "__mf/js/async/3818.dde21d04.js",
782
- "__mf/js/async/__federation_expose_PrometheusExplorer.f3fe63da.js",
782
+ "__mf/js/async/__federation_expose_PrometheusExplorer.3f83dfda.js",
783
783
  "__mf/js/async/3871.6915e369.js",
784
784
  "__mf/js/async/1465.3b5e12d5.js",
785
785
  "__mf/js/async/528.d364bb0e.js",
@@ -790,7 +790,7 @@
790
790
  "__mf/js/async/6292.7b8efa78.js",
791
791
  "__mf/js/async/738.aca54e25.js",
792
792
  "__mf/js/async/6377.ca974d89.js",
793
- "__mf/js/async/5503.7153681d.js",
793
+ "__mf/js/async/5503.d391f0fc.js",
794
794
  "__mf/js/async/4421.42e889f6.js",
795
795
  "__mf/js/async/4062.3ab7f987.js",
796
796
  "__mf/js/async/212.bd5d617a.js",
@@ -826,7 +826,7 @@
826
826
  "__mf/js/async/7376.c7eb05b9.js",
827
827
  "__mf/js/async/9550.e19763f8.js",
828
828
  "__mf/js/async/3818.dde21d04.js",
829
- "__mf/js/async/__federation_expose_PrometheusExplorer.f3fe63da.js"
829
+ "__mf/js/async/__federation_expose_PrometheusExplorer.3f83dfda.js"
830
830
  ],
831
831
  "async": [
832
832
  "__mf/js/async/1964.95da06f6.js",
@@ -849,11 +849,11 @@
849
849
  "__mf/js/async/5724.6ee6ec51.js",
850
850
  "__mf/js/async/537.6911ea2e.js",
851
851
  "__mf/js/async/5345.2e531d76.js",
852
- "__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.66611c9d.js",
852
+ "__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.b4228802.js",
853
853
  "__mf/js/async/7272.a763aa92.js",
854
- "__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.6696e340.js",
855
- "__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.873e5f4d.js",
856
- "__mf/js/async/__federation_expose_PrometheusPromQLVariable.ab45c7cc.js",
854
+ "__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.a4085adb.js",
855
+ "__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.8551745e.js",
856
+ "__mf/js/async/__federation_expose_PrometheusPromQLVariable.46f99477.js",
857
857
  "__mf/js/async/3871.6915e369.js",
858
858
  "__mf/js/async/528.d364bb0e.js",
859
859
  "__mf/js/async/212.bd5d617a.js",
@@ -861,7 +861,7 @@
861
861
  "__mf/js/async/6292.7b8efa78.js",
862
862
  "__mf/js/async/6377.ca974d89.js",
863
863
  "__mf/js/async/3090.9fb5fe73.js",
864
- "__mf/js/async/5503.7153681d.js",
864
+ "__mf/js/async/5503.d391f0fc.js",
865
865
  "__mf/js/async/4323.4266fd6a.js",
866
866
  "__mf/js/async/3057.e568f9b6.js",
867
867
  "__mf/js/async/7740.0c5363fd.js",