@perses-dev/prometheus-plugin 0.56.0 → 0.57.0-rc.1
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.3cac2d10.js +6 -0
- package/__mf/js/async/1233.0ab88b51.js +1 -0
- package/__mf/js/async/1324.ce01eced.js +1 -0
- package/__mf/js/async/1432.0c3e4ed0.js +1 -0
- package/__mf/js/async/1605.dc180cb8.js +110 -0
- package/__mf/js/async/1616.7587ce79.js +1 -0
- package/__mf/js/async/1728.46efbfb8.js +1 -0
- package/__mf/js/async/1969.372d36b8.js +1 -0
- package/__mf/js/async/2043.d0fbb886.js +2 -0
- package/__mf/js/async/2186.e58838a5.js +38 -0
- package/__mf/js/async/2506.1e336b3b.js +1 -0
- package/__mf/js/async/3184.6b4ad42e.js +1 -0
- package/__mf/js/async/3499.bef2e2e5.js +1 -0
- package/__mf/js/async/3652.fc1e5f95.js +7 -0
- package/__mf/js/async/392.7cda691a.js +2 -0
- package/__mf/js/async/3963.5fef6ffb.js +1 -0
- package/__mf/js/async/3996.69a9c1dc.js +1 -0
- package/__mf/js/async/{1964.1d168a86.js → 4121.828d661d.js} +2 -2
- package/__mf/js/async/425.1ec8867f.js +1 -0
- package/__mf/js/async/4626.173e602a.js +1 -0
- package/__mf/js/async/4657.e3d53a21.js +2 -0
- package/__mf/js/async/4987.c12b89cb.js +1 -0
- package/__mf/js/async/{8930.700a5439.js → 5002.e4f54e8e.js} +1 -1
- package/__mf/js/async/5071.e1c33fa7.js +1 -0
- package/__mf/js/async/529.2303b01b.js +1 -0
- package/__mf/js/async/54.f6f480ef.js +22 -0
- package/__mf/js/async/5440.8ced5513.js +2 -0
- package/__mf/js/async/{6377.c40920f2.js.LICENSE.txt → 5440.8ced5513.js.LICENSE.txt} +3 -3
- package/__mf/js/async/{5214.0fca84ed.js → 5587.4d72fc35.js} +1 -1
- package/__mf/js/async/5763.4ba478ff.js +1 -0
- package/__mf/js/async/5922.d1619ac1.js +1 -0
- package/__mf/js/async/6274.478a68f8.js +2 -0
- package/__mf/js/async/6283.181cb622.js +2 -0
- package/__mf/js/async/6969.b959b6f8.js +1 -0
- package/__mf/js/async/{4062.06f48b93.js → 7177.205c9aaf.js} +1 -1
- package/__mf/js/async/7192.d835931b.js +1 -0
- package/__mf/js/async/7894.9c5245d7.js +1 -0
- package/__mf/js/async/7968.6ac0ce96.js +1 -0
- package/__mf/js/async/7978.9532d5b8.js +1 -0
- package/__mf/js/async/8356.789e1dfb.js +1 -0
- package/__mf/js/async/8470.9b14a625.js +2 -0
- package/__mf/js/async/873.448eab23.js +1 -0
- package/__mf/js/async/8888.59eb50a2.js +1 -0
- package/__mf/js/async/9010.15208552.js +2 -0
- package/__mf/js/async/9020.662dc353.js +1 -0
- package/__mf/js/async/9184.43a8d927.js +1 -0
- package/__mf/js/async/9235.36c3cd8c.js +1 -0
- package/__mf/js/async/9351.715f25c3.js +1 -0
- package/__mf/js/async/941.53b13124.js +2 -0
- package/__mf/js/async/9518.38e38a33.js +1 -0
- package/__mf/js/async/9588.9081c7de.js +1 -0
- package/__mf/js/async/9605.a92ec9c1.js +1 -0
- package/__mf/js/async/9836.00da6086.js +1 -0
- package/__mf/js/async/__federation_expose_PrometheusDatasource.caac7bfc.js +1 -0
- package/__mf/js/async/__federation_expose_PrometheusExplorer.22434cd0.js +1 -0
- package/__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.087a9360.js +1 -0
- package/__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.f9135d9a.js +1 -0
- package/__mf/js/async/__federation_expose_PrometheusPromQLVariable.d3f9f4b7.js +1 -0
- package/__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.95a9abcc.js +1 -0
- package/__mf/js/main.8eeb4292.js +6 -0
- package/lib/bootstrap.js +2 -2
- package/lib/bootstrap.js.map +1 -1
- package/lib/cjs/bootstrap.js +1 -1
- package/lib/cjs/components/PromQLEditor.js +5 -8
- package/lib/cjs/components/TreeNode.js +1 -1
- package/lib/cjs/components/index.js +1 -1
- package/lib/cjs/components/promql/ast.js +11 -11
- package/lib/cjs/components/promql/format.js +4 -4
- package/lib/cjs/components/promql/functionSignatures.js +1 -1
- package/lib/cjs/components/promql/serialize.js +1 -1
- package/lib/cjs/components/promql/utils.js +6 -6
- package/lib/cjs/components/query.js +4 -4
- package/lib/cjs/env.d.js +1 -1
- package/lib/cjs/explore/PrometheusExplorer.js +11 -7
- package/lib/cjs/explore/PrometheusMetricsFinder/PrometheusMetricsFinder.js +5 -5
- package/lib/cjs/explore/PrometheusMetricsFinder/display/MetricChip.js +1 -1
- package/lib/cjs/explore/PrometheusMetricsFinder/display/list/MetricList.js +4 -4
- package/lib/cjs/explore/PrometheusMetricsFinder/filter/FilterInputs.js +5 -5
- package/lib/cjs/explore/PrometheusMetricsFinder/filter/FinderFilters.js +1 -1
- package/lib/cjs/explore/PrometheusMetricsFinder/index.js +1 -1
- package/lib/cjs/explore/PrometheusMetricsFinder/overview/MetricOverview.js +4 -4
- package/lib/cjs/explore/PrometheusMetricsFinder/overview/tabs/JobTab.js +5 -5
- package/lib/cjs/explore/PrometheusMetricsFinder/overview/tabs/OverviewTab.js +5 -5
- package/lib/cjs/explore/PrometheusMetricsFinder/overview/tabs/SimilarTab.js +1 -1
- package/lib/cjs/explore/PrometheusMetricsFinder/types.js +1 -1
- package/lib/cjs/explore/PrometheusMetricsFinder/utils.js +6 -6
- package/lib/cjs/explore/index.js +12 -0
- package/lib/cjs/getPluginModule.js +12 -0
- package/lib/cjs/index-federation.js +12 -12
- package/lib/cjs/index.js +12 -0
- package/lib/cjs/model/api-types.js +1 -1
- package/lib/cjs/model/index.js +1 -1
- package/lib/cjs/model/parse-sample-values.js +4 -4
- package/lib/cjs/model/prometheus-client.js +30 -20
- package/lib/cjs/model/prometheus-selectors.js +6 -6
- package/lib/cjs/model/time.js +5 -5
- package/lib/cjs/plugins/MatcherEditor.js +1 -1
- package/lib/cjs/plugins/PrometheusDatasourceEditor.js +176 -3
- package/lib/cjs/plugins/PrometheusLabelNamesVariable.js +12 -0
- package/lib/cjs/plugins/PrometheusLabelValuesVariable.js +12 -0
- package/lib/cjs/plugins/PrometheusPromQLVariable.js +12 -0
- package/lib/cjs/plugins/index.js +12 -0
- package/lib/cjs/plugins/prometheus-datasource.js +18 -10
- package/lib/cjs/plugins/prometheus-time-series-query/PrometheusTimeSeriesQuery.js +1 -1
- package/lib/cjs/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.js +37 -2
- package/lib/cjs/plugins/prometheus-time-series-query/get-time-series-data.js +1 -1
- package/lib/cjs/plugins/prometheus-time-series-query/index.js +1 -1
- package/lib/cjs/plugins/prometheus-time-series-query/query-editor-model.js +5 -5
- package/lib/cjs/plugins/prometheus-time-series-query/replace-prom-builtin-variables.js +1 -1
- package/lib/cjs/plugins/prometheus-time-series-query/time-series-query-model.js +1 -1
- package/lib/cjs/plugins/prometheus-variables.js +53 -34
- package/lib/cjs/plugins/test/setup-tests.js +1 -1
- package/lib/cjs/plugins/types.js +1 -1
- package/lib/cjs/plugins/variable.js +1 -1
- package/lib/cjs/setup-tests.js +1 -1
- package/lib/cjs/utils/index.js +1 -1
- package/lib/cjs/utils/utils.js +5 -5
- package/lib/components/PromQLEditor.d.ts +5 -1
- package/lib/components/PromQLEditor.d.ts.map +1 -1
- package/lib/components/PromQLEditor.js +6 -9
- package/lib/components/PromQLEditor.js.map +1 -1
- package/lib/components/TreeNode.js +2 -2
- package/lib/components/TreeNode.js.map +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/index.js.map +1 -1
- package/lib/components/promql/ast.js +1 -1
- package/lib/components/promql/ast.js.map +1 -1
- package/lib/components/promql/format.js +2 -2
- package/lib/components/promql/format.js.map +1 -1
- package/lib/components/promql/functionSignatures.js +1 -1
- package/lib/components/promql/functionSignatures.js.map +1 -1
- package/lib/components/promql/serialize.js +1 -1
- package/lib/components/promql/serialize.js.map +1 -1
- package/lib/components/promql/utils.js +1 -1
- package/lib/components/promql/utils.js.map +1 -1
- package/lib/components/query.js +1 -1
- package/lib/components/query.js.map +1 -1
- package/lib/env.d.js +1 -1
- package/lib/env.d.js.map +1 -1
- package/lib/explore/PrometheusExplorer.d.ts.map +1 -1
- package/lib/explore/PrometheusExplorer.js +11 -7
- package/lib/explore/PrometheusExplorer.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/PrometheusMetricsFinder.js +2 -2
- package/lib/explore/PrometheusMetricsFinder/PrometheusMetricsFinder.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/display/MetricChip.js +2 -2
- package/lib/explore/PrometheusMetricsFinder/display/MetricChip.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/display/list/MetricList.js +2 -2
- package/lib/explore/PrometheusMetricsFinder/display/list/MetricList.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/filter/FilterInputs.js +2 -2
- package/lib/explore/PrometheusMetricsFinder/filter/FilterInputs.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/filter/FinderFilters.js +2 -2
- package/lib/explore/PrometheusMetricsFinder/filter/FinderFilters.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/index.js +1 -1
- package/lib/explore/PrometheusMetricsFinder/index.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/MetricOverview.js +2 -2
- package/lib/explore/PrometheusMetricsFinder/overview/MetricOverview.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/tabs/JobTab.js +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/tabs/JobTab.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/tabs/OverviewTab.js +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/tabs/OverviewTab.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/tabs/SimilarTab.js +1 -1
- package/lib/explore/PrometheusMetricsFinder/overview/tabs/SimilarTab.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/types.js +1 -1
- package/lib/explore/PrometheusMetricsFinder/types.js.map +1 -1
- package/lib/explore/PrometheusMetricsFinder/utils.js +1 -1
- package/lib/explore/PrometheusMetricsFinder/utils.js.map +1 -1
- package/lib/explore/index.d.ts.map +1 -1
- package/lib/explore/index.js +12 -0
- package/lib/explore/index.js.map +1 -1
- package/lib/getPluginModule.d.ts.map +1 -1
- package/lib/getPluginModule.js +12 -0
- package/lib/getPluginModule.js.map +1 -1
- package/lib/index-federation.js +1 -1
- package/lib/index-federation.js.map +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +12 -0
- package/lib/index.js.map +1 -1
- package/lib/model/api-types.js +1 -1
- package/lib/model/api-types.js.map +1 -1
- package/lib/model/index.js +1 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/parse-sample-values.js +1 -1
- package/lib/model/parse-sample-values.js.map +1 -1
- package/lib/model/prometheus-client.d.ts +1 -0
- package/lib/model/prometheus-client.d.ts.map +1 -1
- package/lib/model/prometheus-client.js +20 -10
- package/lib/model/prometheus-client.js.map +1 -1
- package/lib/model/prometheus-selectors.js +1 -1
- package/lib/model/prometheus-selectors.js.map +1 -1
- package/lib/model/time.js +1 -1
- package/lib/model/time.js.map +1 -1
- package/lib/plugins/MatcherEditor.js +2 -2
- package/lib/plugins/MatcherEditor.js.map +1 -1
- package/lib/plugins/PrometheusDatasourceEditor.d.ts.map +1 -1
- package/lib/plugins/PrometheusDatasourceEditor.js +136 -4
- package/lib/plugins/PrometheusDatasourceEditor.js.map +1 -1
- package/lib/plugins/PrometheusLabelNamesVariable.d.ts.map +1 -1
- package/lib/plugins/PrometheusLabelNamesVariable.js +12 -0
- package/lib/plugins/PrometheusLabelNamesVariable.js.map +1 -1
- package/lib/plugins/PrometheusLabelValuesVariable.d.ts.map +1 -1
- package/lib/plugins/PrometheusLabelValuesVariable.js +12 -0
- package/lib/plugins/PrometheusLabelValuesVariable.js.map +1 -1
- package/lib/plugins/PrometheusPromQLVariable.d.ts.map +1 -1
- package/lib/plugins/PrometheusPromQLVariable.js +12 -0
- package/lib/plugins/PrometheusPromQLVariable.js.map +1 -1
- package/lib/plugins/index.d.ts.map +1 -1
- package/lib/plugins/index.js +12 -0
- package/lib/plugins/index.js.map +1 -1
- package/lib/plugins/prometheus-datasource.js +18 -10
- package/lib/plugins/prometheus-datasource.js.map +1 -1
- package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQuery.js +1 -1
- package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQuery.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 +40 -5
- package/lib/plugins/prometheus-time-series-query/PrometheusTimeSeriesQueryEditor.js.map +1 -1
- package/lib/plugins/prometheus-time-series-query/get-time-series-data.d.ts.map +1 -1
- package/lib/plugins/prometheus-time-series-query/get-time-series-data.js +1 -1
- package/lib/plugins/prometheus-time-series-query/get-time-series-data.js.map +1 -1
- package/lib/plugins/prometheus-time-series-query/index.js +1 -1
- package/lib/plugins/prometheus-time-series-query/index.js.map +1 -1
- package/lib/plugins/prometheus-time-series-query/query-editor-model.js +1 -1
- package/lib/plugins/prometheus-time-series-query/query-editor-model.js.map +1 -1
- package/lib/plugins/prometheus-time-series-query/replace-prom-builtin-variables.js +1 -1
- package/lib/plugins/prometheus-time-series-query/replace-prom-builtin-variables.js.map +1 -1
- package/lib/plugins/prometheus-time-series-query/time-series-query-model.js +1 -1
- package/lib/plugins/prometheus-time-series-query/time-series-query-model.js.map +1 -1
- package/lib/plugins/prometheus-variables.d.ts.map +1 -1
- package/lib/plugins/prometheus-variables.js +48 -29
- package/lib/plugins/prometheus-variables.js.map +1 -1
- package/lib/plugins/test/setup-tests.js +1 -1
- package/lib/plugins/test/setup-tests.js.map +1 -1
- package/lib/plugins/types.d.ts +1 -0
- package/lib/plugins/types.d.ts.map +1 -1
- package/lib/plugins/types.js +1 -1
- package/lib/plugins/types.js.map +1 -1
- package/lib/plugins/variable.js +1 -1
- package/lib/plugins/variable.js.map +1 -1
- package/lib/setup-tests.js +1 -1
- package/lib/setup-tests.js.map +1 -1
- package/lib/utils/index.js +1 -1
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/utils.js +1 -1
- package/lib/utils/utils.js.map +1 -1
- package/mf-manifest.json +270 -255
- package/mf-stats.json +276 -259
- package/package.json +7 -7
- package/__mf/js/Prometheus.4d0d5812.js +0 -5
- package/__mf/js/async/1339.194207db.js +0 -1
- package/__mf/js/async/1441.c735f7dd.js +0 -1
- package/__mf/js/async/1576.8eac7ce9.js +0 -1
- package/__mf/js/async/212.5fcca998.js +0 -1
- package/__mf/js/async/2292.57d8fd0d.js +0 -2
- package/__mf/js/async/3224.b63f87bf.js +0 -1
- package/__mf/js/async/3507.f1653337.js +0 -101
- package/__mf/js/async/3749.3ecd9372.js +0 -1
- package/__mf/js/async/3863.7192dfdf.js +0 -2
- package/__mf/js/async/3960.3eedafbd.js +0 -2
- package/__mf/js/async/3980.0b0d272c.js +0 -2
- package/__mf/js/async/4075.dab1b7b8.js +0 -1
- package/__mf/js/async/4238.c48b1950.js +0 -1
- package/__mf/js/async/4421.1fcb466e.js +0 -1
- package/__mf/js/async/4535.f24704ea.js +0 -1
- package/__mf/js/async/4557.f3eb9456.js +0 -2
- package/__mf/js/async/4576.f42daf99.js +0 -1
- package/__mf/js/async/4665.cad36935.js +0 -1
- package/__mf/js/async/4676.b7a22f90.js +0 -22
- package/__mf/js/async/5257.ce463cb7.js +0 -1
- package/__mf/js/async/5409.955ffd51.js +0 -1
- package/__mf/js/async/5614.cce8ba96.js +0 -1
- package/__mf/js/async/5724.794828e3.js +0 -1
- package/__mf/js/async/5774.a3fae698.js +0 -1
- package/__mf/js/async/5790.a9b31ca8.js +0 -1
- package/__mf/js/async/58.1c9a8daa.js +0 -2
- package/__mf/js/async/5981.eb502d27.js +0 -2
- package/__mf/js/async/6292.2afe0c6d.js +0 -1
- package/__mf/js/async/6341.20eccf91.js +0 -7
- package/__mf/js/async/6377.c40920f2.js +0 -2
- package/__mf/js/async/6770.7099bb3b.js +0 -1
- package/__mf/js/async/684.4495f632.js +0 -1
- package/__mf/js/async/694.8462a746.js +0 -1
- package/__mf/js/async/7272.6fa2f127.js +0 -1
- package/__mf/js/async/7376.2e948f2b.js +0 -1
- package/__mf/js/async/738.a1ffff79.js +0 -1
- package/__mf/js/async/7740.a8777825.js +0 -1
- package/__mf/js/async/8045.7f554a45.js +0 -10
- package/__mf/js/async/8164.bb3d3363.js +0 -1
- package/__mf/js/async/8216.e689c178.js +0 -1
- package/__mf/js/async/8488.cbbe542b.js +0 -1
- package/__mf/js/async/8587.40df6f5c.js +0 -1
- package/__mf/js/async/8706.89677575.js +0 -1
- package/__mf/js/async/9010.bdb2ef97.js +0 -1
- package/__mf/js/async/9173.915b80af.js +0 -2
- package/__mf/js/async/9550.642ce5ad.js +0 -38
- package/__mf/js/async/9817.70eae424.js +0 -1
- package/__mf/js/async/__federation_expose_PrometheusDatasource.45ee94e2.js +0 -1
- package/__mf/js/async/__federation_expose_PrometheusExplorer.b8e555e1.js +0 -1
- package/__mf/js/async/__federation_expose_PrometheusLabelNamesVariable.00dfb1dd.js +0 -1
- package/__mf/js/async/__federation_expose_PrometheusLabelValuesVariable.956ef2d0.js +0 -1
- package/__mf/js/async/__federation_expose_PrometheusPromQLVariable.59f2d170.js +0 -1
- package/__mf/js/async/__federation_expose_PrometheusTimeSeriesQuery.d7143352.js +0 -1
- package/__mf/js/main.afc2ee60.js +0 -5
- /package/__mf/css/async/{1339.d3010b86.css → 1233.d3010b86.css} +0 -0
- /package/__mf/css/async/{1576.d3010b86.css → 1324.d3010b86.css} +0 -0
- /package/__mf/css/async/{4576.d3010b86.css → 9518.d3010b86.css} +0 -0
- /package/__mf/js/async/{8045.7f554a45.js.LICENSE.txt → 1605.dc180cb8.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{2292.57d8fd0d.js.LICENSE.txt → 2043.d0fbb886.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6341.20eccf91.js.LICENSE.txt → 3652.fc1e5f95.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5981.eb502d27.js.LICENSE.txt → 392.7cda691a.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{1964.1d168a86.js.LICENSE.txt → 4121.828d661d.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{58.1c9a8daa.js.LICENSE.txt → 4657.e3d53a21.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{4676.b7a22f90.js.LICENSE.txt → 54.f6f480ef.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{3960.3eedafbd.js.LICENSE.txt → 6274.478a68f8.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{3980.0b0d272c.js.LICENSE.txt → 6283.181cb622.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{9173.915b80af.js.LICENSE.txt → 8470.9b14a625.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{4557.f3eb9456.js.LICENSE.txt → 9010.15208552.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{3863.7192dfdf.js.LICENSE.txt → 941.53b13124.js.LICENSE.txt} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
2
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
3
|
// you may not use this file except in compliance with the License.
|
|
4
4
|
// You may obtain a copy of the License at
|
|
@@ -17,17 +17,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
17
17
|
function _export(target, all) {
|
|
18
18
|
for(var name in all)Object.defineProperty(target, name, {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: all
|
|
20
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
LabelFilterInput
|
|
24
|
+
get LabelFilterInput () {
|
|
25
25
|
return LabelFilterInput;
|
|
26
26
|
},
|
|
27
|
-
ListboxComponent
|
|
27
|
+
get ListboxComponent () {
|
|
28
28
|
return ListboxComponent;
|
|
29
29
|
},
|
|
30
|
-
RawFilterInput
|
|
30
|
+
get RawFilterInput () {
|
|
31
31
|
return RawFilterInput;
|
|
32
32
|
}
|
|
33
33
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
2
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
3
|
// you may not use this file except in compliance with the License.
|
|
4
4
|
// You may obtain a copy of the License at
|
|
@@ -17,14 +17,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
17
17
|
function _export(target, all) {
|
|
18
18
|
for(var name in all)Object.defineProperty(target, name, {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: all
|
|
20
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
MetricOverview
|
|
24
|
+
get MetricOverview () {
|
|
25
25
|
return MetricOverview;
|
|
26
26
|
},
|
|
27
|
-
OverviewPanel
|
|
27
|
+
get OverviewPanel () {
|
|
28
28
|
return OverviewPanel;
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
2
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
3
|
// you may not use this file except in compliance with the License.
|
|
4
4
|
// You may obtain a copy of the License at
|
|
@@ -17,17 +17,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
17
17
|
function _export(target, all) {
|
|
18
18
|
for(var name in all)Object.defineProperty(target, name, {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: all
|
|
20
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
JobList
|
|
24
|
+
get JobList () {
|
|
25
25
|
return JobList;
|
|
26
26
|
},
|
|
27
|
-
JobSection
|
|
27
|
+
get JobSection () {
|
|
28
28
|
return JobSection;
|
|
29
29
|
},
|
|
30
|
-
JobTab
|
|
30
|
+
get JobTab () {
|
|
31
31
|
return JobTab;
|
|
32
32
|
}
|
|
33
33
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
2
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
3
|
// you may not use this file except in compliance with the License.
|
|
4
4
|
// You may obtain a copy of the License at
|
|
@@ -17,17 +17,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
17
17
|
function _export(target, all) {
|
|
18
18
|
for(var name in all)Object.defineProperty(target, name, {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: all
|
|
20
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
LabelValuesRow
|
|
24
|
+
get LabelValuesRow () {
|
|
25
25
|
return LabelValuesRow;
|
|
26
26
|
},
|
|
27
|
-
LabelValuesTable
|
|
27
|
+
get LabelValuesTable () {
|
|
28
28
|
return LabelValuesTable;
|
|
29
29
|
},
|
|
30
|
-
OverviewTab
|
|
30
|
+
get OverviewTab () {
|
|
31
31
|
return OverviewTab;
|
|
32
32
|
}
|
|
33
33
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
2
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
3
|
// you may not use this file except in compliance with the License.
|
|
4
4
|
// You may obtain a copy of the License at
|
|
@@ -17,20 +17,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
17
17
|
function _export(target, all) {
|
|
18
18
|
for(var name in all)Object.defineProperty(target, name, {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: all
|
|
20
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
useLabelValues
|
|
24
|
+
get useLabelValues () {
|
|
25
25
|
return useLabelValues;
|
|
26
26
|
},
|
|
27
|
-
useLabels
|
|
27
|
+
get useLabels () {
|
|
28
28
|
return useLabels;
|
|
29
29
|
},
|
|
30
|
-
useMetricMetadata
|
|
30
|
+
get useMetricMetadata () {
|
|
31
31
|
return useMetricMetadata;
|
|
32
32
|
},
|
|
33
|
-
useSeriesStates
|
|
33
|
+
get useSeriesStates () {
|
|
34
34
|
return useSeriesStates;
|
|
35
35
|
}
|
|
36
36
|
});
|
package/lib/cjs/explore/index.js
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the \"License\");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an \"AS IS\" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
1
13
|
"use strict";
|
|
2
14
|
Object.defineProperty(exports, "__esModule", {
|
|
3
15
|
value: true
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the \"License\");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an \"AS IS\" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
1
13
|
"use strict";
|
|
2
14
|
Object.defineProperty(exports, "__esModule", {
|
|
3
15
|
value: true
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
// Copyright 2024 The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
1
|
"use strict";
|
|
14
2
|
function _getRequireWildcardCache(nodeInterop) {
|
|
15
3
|
if (typeof WeakMap !== "function") return null;
|
|
@@ -52,4 +40,16 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
52
40
|
}
|
|
53
41
|
return newObj;
|
|
54
42
|
}
|
|
43
|
+
// Copyright The Perses Authors
|
|
44
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
45
|
+
// you may not use this file except in compliance with the License.
|
|
46
|
+
// You may obtain a copy of the License at
|
|
47
|
+
//
|
|
48
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
49
|
+
//
|
|
50
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
51
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
52
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
53
|
+
// See the License for the specific language governing permissions and
|
|
54
|
+
// limitations under the License.
|
|
55
55
|
Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./bootstrap")));
|
package/lib/cjs/index.js
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
|
+
// Licensed under the Apache License, Version 2.0 (the \"License\");
|
|
3
|
+
// you may not use this file except in compliance with the License.
|
|
4
|
+
// You may obtain a copy of the License at
|
|
5
|
+
//
|
|
6
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
+
//
|
|
8
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
+
// distributed under the License is distributed on an \"AS IS\" BASIS,
|
|
10
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
+
// See the License for the specific language governing permissions and
|
|
12
|
+
// limitations under the License.
|
|
1
13
|
"use strict";
|
|
2
14
|
Object.defineProperty(exports, "__esModule", {
|
|
3
15
|
value: true
|
package/lib/cjs/model/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
2
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
3
|
// you may not use this file except in compliance with the License.
|
|
4
4
|
// You may obtain a copy of the License at
|
|
@@ -17,14 +17,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
17
17
|
function _export(target, all) {
|
|
18
18
|
for(var name in all)Object.defineProperty(target, name, {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: all
|
|
20
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
parseSampleValue
|
|
24
|
+
get parseSampleValue () {
|
|
25
25
|
return parseSampleValue;
|
|
26
26
|
},
|
|
27
|
-
parseValueTuple
|
|
27
|
+
get parseValueTuple () {
|
|
28
28
|
return parseValueTuple;
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
2
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
3
|
// you may not use this file except in compliance with the License.
|
|
4
4
|
// You may obtain a copy of the License at
|
|
@@ -17,42 +17,56 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
17
17
|
function _export(target, all) {
|
|
18
18
|
for(var name in all)Object.defineProperty(target, name, {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: all
|
|
20
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
fetchResults
|
|
24
|
+
get fetchResults () {
|
|
25
25
|
return fetchResults;
|
|
26
26
|
},
|
|
27
|
-
healthCheck
|
|
27
|
+
get healthCheck () {
|
|
28
28
|
return healthCheck;
|
|
29
29
|
},
|
|
30
|
-
instantQuery
|
|
30
|
+
get instantQuery () {
|
|
31
31
|
return instantQuery;
|
|
32
32
|
},
|
|
33
|
-
labelNames
|
|
33
|
+
get labelNames () {
|
|
34
34
|
return labelNames;
|
|
35
35
|
},
|
|
36
|
-
labelValues
|
|
36
|
+
get labelValues () {
|
|
37
37
|
return labelValues;
|
|
38
38
|
},
|
|
39
|
-
metricMetadata
|
|
39
|
+
get metricMetadata () {
|
|
40
40
|
return metricMetadata;
|
|
41
41
|
},
|
|
42
|
-
parseQuery
|
|
42
|
+
get parseQuery () {
|
|
43
43
|
return parseQuery;
|
|
44
44
|
},
|
|
45
|
-
rangeQuery
|
|
45
|
+
get rangeQuery () {
|
|
46
46
|
return rangeQuery;
|
|
47
47
|
},
|
|
48
|
-
series
|
|
48
|
+
get series () {
|
|
49
49
|
return series;
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
const _core = require("@perses-dev/core");
|
|
53
|
+
/**
|
|
54
|
+
* Builds a query string from datasource-level query parameters.
|
|
55
|
+
* Optionally merges with existing URLSearchParams.
|
|
56
|
+
* Returns empty string if no parameters, otherwise returns query string with leading '?'.
|
|
57
|
+
*/ function buildQueryString(queryParams, initialParams) {
|
|
58
|
+
const urlParams = initialParams || new URLSearchParams();
|
|
59
|
+
if (queryParams) {
|
|
60
|
+
Object.entries(queryParams).forEach(([key, value])=>{
|
|
61
|
+
urlParams.set(key, value);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
const queryString = urlParams.toString();
|
|
65
|
+
return queryString !== '' ? `?${queryString}` : '';
|
|
66
|
+
}
|
|
53
67
|
function healthCheck(queryOptions) {
|
|
54
68
|
return async ()=>{
|
|
55
|
-
const url = `${queryOptions.datasourceUrl}/-/healthy`;
|
|
69
|
+
const url = `${queryOptions.datasourceUrl}/-/healthy${buildQueryString(queryOptions.queryParams)}`;
|
|
56
70
|
try {
|
|
57
71
|
const resp = await (0, _core.fetch)(url, {
|
|
58
72
|
headers: queryOptions.headers,
|
|
@@ -100,20 +114,16 @@ function parseQuery(params, queryOptions) {
|
|
|
100
114
|
return fetchWithPost(apiURI, params, queryOptions);
|
|
101
115
|
}
|
|
102
116
|
function fetchWithGet(apiURI, params, queryOptions) {
|
|
103
|
-
const { datasourceUrl, headers } = queryOptions;
|
|
104
|
-
|
|
105
|
-
const urlParams = createSearchParams(params).toString();
|
|
106
|
-
if (urlParams !== '') {
|
|
107
|
-
url += `?${urlParams}`;
|
|
108
|
-
}
|
|
117
|
+
const { datasourceUrl, headers, queryParams } = queryOptions;
|
|
118
|
+
const url = `${datasourceUrl}${apiURI}${buildQueryString(queryParams, createSearchParams(params))}`;
|
|
109
119
|
return (0, _core.fetchJson)(url, {
|
|
110
120
|
method: 'GET',
|
|
111
121
|
headers
|
|
112
122
|
});
|
|
113
123
|
}
|
|
114
124
|
function fetchWithPost(apiURI, params, queryOptions) {
|
|
115
|
-
const { datasourceUrl, headers, abortSignal: signal } = queryOptions;
|
|
116
|
-
const url = `${datasourceUrl}${apiURI}`;
|
|
125
|
+
const { datasourceUrl, headers, abortSignal: signal, queryParams } = queryOptions;
|
|
126
|
+
const url = `${datasourceUrl}${apiURI}${buildQueryString(queryParams)}`;
|
|
117
127
|
const init = {
|
|
118
128
|
method: 'POST',
|
|
119
129
|
headers: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
2
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
3
|
// you may not use this file except in compliance with the License.
|
|
4
4
|
// You may obtain a copy of the License at
|
|
@@ -17,20 +17,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
17
17
|
function _export(target, all) {
|
|
18
18
|
for(var name in all)Object.defineProperty(target, name, {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: all
|
|
20
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
DEFAULT_PROM
|
|
24
|
+
get DEFAULT_PROM () {
|
|
25
25
|
return DEFAULT_PROM;
|
|
26
26
|
},
|
|
27
|
-
PROM_DATASOURCE_KIND
|
|
27
|
+
get PROM_DATASOURCE_KIND () {
|
|
28
28
|
return PROM_DATASOURCE_KIND;
|
|
29
29
|
},
|
|
30
|
-
isDefaultPromSelector
|
|
30
|
+
get isDefaultPromSelector () {
|
|
31
31
|
return isDefaultPromSelector;
|
|
32
32
|
},
|
|
33
|
-
isPrometheusDatasourceSelector
|
|
33
|
+
get isPrometheusDatasourceSelector () {
|
|
34
34
|
return isPrometheusDatasourceSelector;
|
|
35
35
|
}
|
|
36
36
|
});
|
package/lib/cjs/model/time.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright The Perses Authors
|
|
2
2
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
3
|
// you may not use this file except in compliance with the License.
|
|
4
4
|
// You may obtain a copy of the License at
|
|
@@ -17,17 +17,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
17
17
|
function _export(target, all) {
|
|
18
18
|
for(var name in all)Object.defineProperty(target, name, {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: all
|
|
20
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
_export(exports, {
|
|
24
|
-
getDurationStringSeconds
|
|
24
|
+
get getDurationStringSeconds () {
|
|
25
25
|
return getDurationStringSeconds;
|
|
26
26
|
},
|
|
27
|
-
getPrometheusTimeRange
|
|
27
|
+
get getPrometheusTimeRange () {
|
|
28
28
|
return getPrometheusTimeRange;
|
|
29
29
|
},
|
|
30
|
-
getRangeStep
|
|
30
|
+
get getRangeStep () {
|
|
31
31
|
return getRangeStep;
|
|
32
32
|
}
|
|
33
33
|
});
|