Commit Graph

656 Commits

Author SHA1 Message Date
renovate[bot] 64617886d9
Update dependency sass to v1.83.4 (#98936)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-14 10:30:40 +00:00
renovate[bot] 1281b0f094
Update dependency @types/node to v22.10.6 (#98934)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-14 12:09:54 +02:00
Josh Hunt 65f5a176a8
Chore: Import Combobox from main grafana-ui package (#98897) 2025-01-14 09:35:27 +00:00
Josh Hunt c3b0eb6277
Reverts "MetricCombobox: Fix overflowing parents" (#98868)
Revert MetricCombobox: Fix overflowing parents

https://github.com/grafana/grafana/pull/97049
2025-01-13 16:44:35 +00:00
renovate[bot] 460dab57c7
Update dependency eslint to v9.18.0 (#98880)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-13 14:58:57 +00:00
renovate[bot] a3a1fa7f2c
Update dependency eslint-plugin-react to v7.37.4 (#98858)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-13 10:05:16 +00:00
Matheus Macabu 4e398bf2bd
Datasources: Add toggle to control default behaviour of 'Manage alerts via Alerts UI' toggle (#98441)
* Datasources: Add toggle to control default behaviour of 'Manage alerts via Alerts UI' toggle

* Update documentation with suggestions

Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>
2025-01-10 15:20:09 +01:00
renovate[bot] ac2345a3c0
Update dependency eslint-plugin-jest to v28.10.0 (#98815)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 16:03:56 +02:00
renovate[bot] 6e8bbe7964
Update dependency uuid to v11.0.5 (#98796)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 11:29:48 +00:00
renovate[bot] ae257246bc
Update dependency glob to v11.0.1 (#98793)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 11:02:30 +00:00
renovate[bot] c62864a7ea
Update dependency @swc/core to v1.10.7 (#98791)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 10:41:04 +00:00
renovate[bot] a0a32fc5df
Update dependency @prometheus-io/lezer-promql to v0.301.0 (#98770)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 09:49:33 +00:00
renovate[bot] bf8524e5a6
Update dependency typescript to v5.7.3 (#98753)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-09 17:47:23 +00:00
renovate[bot] e0121055fb
Update dependency typescript to v5.7.2 (#93749)
* Update dependency typescript to v5.7.2

* typescript fixes

* don't need this change

* remaining typescript fixes

* remove emotion/react aliasing

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2025-01-09 15:20:45 +00:00
renovate[bot] 0ff033c422
Update dependency @leeoniya/ufuzzy to v1.0.18 (#98667)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-08 15:52:47 +00:00
renovate[bot] e19058c2c4
Update dependency @floating-ui/react to v0.27.3 (#98664)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-08 11:16:58 +00:00
renovate[bot] 69af0f7ab6
Update dependency webpack-cli to v6.0.1 (#98559)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-06 21:26:39 +00:00
renovate[bot] cca9b0d2d3
Update dependency uuid to v11.0.4 (#98558)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-06 20:31:25 +00:00
renovate[bot] 09c4543d11
Update dependency sass to v1.83.1 (#98556)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-06 20:00:57 +00:00
renovate[bot] 14369c53ed
Update dependency marked to v15.0.6 (#98534)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-06 16:57:51 +00:00
renovate[bot] cef0b8249a
Update dependency marked to v15.0.5 (#98527)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-06 13:35:50 +00:00
renovate[bot] ee53c6c970
Update dependency eslint-plugin-react to v7.37.3 (#98524)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-06 13:15:04 +00:00
renovate[bot] 0d8a71c664
Update dependency @types/node to v22.10.5 (#98522)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-06 12:25:31 +00:00
renovate[bot] 5482742891
Update dependency @types/lodash to v4.17.14 (#98520)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-06 11:59:23 +00:00
renovate[bot] ea9973ac16
Update dependency @swc/core to v1.10.4 (#98518)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-06 11:16:11 +00:00
renovate[bot] 166e86a0c6
Update dependency esbuild to v0.24.2 (#98308)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-06 09:53:31 +00:00
ismail simsek a798bb74e5
Prometheus: Add double_exponential_smoothing function (#98312)
* add double_exponential_smoothing function

* add in operations
2025-01-02 22:19:49 +01:00
Brendan O'Handley d935fa1ea0
Prometheus: Remove prometheusMetricEncyclopedia feature toggle (#98414)
* remove toggle from registry

* remove from metric combobox

* remove toggle from metric select

* remove toggle from promQueryBuilderContainer

* prettier
2024-12-30 23:16:04 +02:00
Pepe Cano e72ba20ff6
Update `docsUrl` in Prometheus DS Settings page (#98382) 2024-12-27 17:25:56 +01:00
renovate[bot] 293a90f76f
Update dependency webpack-cli to v6 (#98284)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-20 11:11:07 +01:00
renovate[bot] 78b867804d
Update dependency uuid to v11 (#98255)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-19 13:52:55 +00:00
renovate[bot] 67a7731ca9
Update dependency marked to v15 (#98199)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-19 11:48:57 +00:00
Nick Richmond 721c50a304
Prometheus: Improve handling of special chars in label values (#96067)
* fix: handling of special chars

* docs: add clarity

* fix: escaping

* refactor: put changes behind new feature toggle

* docs: use consistent comment style

* refactor: rename feature toggle for brevity

* use single quotes

* fix unit tests

* remove redundant json entry

* fix: keep all changes behind feature toggle

* fix: support builder mode

* fix: don't escape when using regex operators

* fix: code mode label values completions with special chars

* refactor: remove unneeded changes

* move feature toggle up so new changes from main won't conflict with ours

* fix: escape label values in metric select scene

* refactor: ensure changes are behind feature toggle

---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-12-18 16:31:08 -05:00
Konstantin Kornienko 3a8113889a
Annotations: Fix `min step` parameter interpolation in Prometheus annotations query (#97734)
* Fix `min step` parameter interpolation in prometheus annotations query

Looks like the step is interpolated in annotationQuery, but not interpolated in processAnnotationResponse. Fixing that.

* Update packages/grafana-prometheus/src/datasource.ts

Co-authored-by: Brendan O'Handley <brendan.ohandley@grafana.com>

* Added test for non-default step

* modified tests

* apply prettier manually

---------

Co-authored-by: Brendan O'Handley <brendan.ohandley@grafana.com>
2024-12-18 14:27:07 -06:00
renovate[bot] 54e603e552
Update dependency rollup-plugin-node-externals to v8 (#98211)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-18 18:57:09 +02:00
renovate[bot] 9532f738d5
Update dependency lru-cache to v11 (#98194)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-18 14:23:43 +00:00
renovate[bot] 89774f3c8d
Replace usage of `react-test-renderer` and `@testing-library/react-hooks` (#98152)
* Update dependency @types/react-test-renderer to v19

* replace usage of react-test-renderer

* use renderHook from @testing-library/react in most tests

* update tests to work without @testing-library/react-hooks

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-12-18 11:55:25 +00:00
renovate[bot] b710e26a40
Update dependency date-fns to v4 (#98172)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-18 11:52:16 +00:00
renovate[bot] 3dac836bf9
Update dependency @types/uuid to v10 (#98161)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-18 10:27:59 +00:00
renovate[bot] d8ddbcda51
Update dependency @grafana/experimental to v2.1.6 (#98121)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-17 16:22:17 +00:00
renovate[bot] 77fafd887a
Update dependency @rollup/plugin-node-resolve to v16 (#98114)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-17 15:32:14 +00:00
renovate[bot] 8b8606326a
Update typescript-eslint monorepo to v8.18.1 (#98109)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-17 14:46:18 +00:00
renovate[bot] 8188d623c8
Update dependency webpack to v5.97.1 (#98095)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-17 13:39:47 +00:00
renovate[bot] fba02f5fae
Update dependency react-window to v1.8.11 (#98082)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-17 10:53:59 +00:00
renovate[bot] dbe273d0eb
Update dependency tslib to v2.8.1 (#98068)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-17 09:57:45 +00:00
renovate[bot] 188df1edca
Update dependency sass to v1.83.0 (#98050)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-16 18:21:05 +02:00
renovate[bot] b310b6f8c5
Update dependency react-use to v17.6.0 (#98042)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-16 16:00:27 +00:00
renovate[bot] 22a9770ec5
Update dependency react-select to v5.9.0 (#98037)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-16 14:30:19 +00:00
renovate[bot] 954bd9f312
Update dependency @floating-ui/react to v0.27.2 (#98011)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-16 11:57:53 +00:00
renovate[bot] b36b7ec18e
Update dependency eslint to v9.17.0 (#98014)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-16 11:20:06 +00:00
renovate[bot] 9f416e1428
Update dependency prettier to v3.4.2 (#97972)
* Update dependency prettier to v3.4.2

* run prettier

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-12-16 11:18:17 +00:00
renovate[bot] e85e658343
Update dependency @floating-ui/react to v0.27.1 (#98004)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-16 09:40:12 +00:00
renovate[bot] a0558749f0
Update dependency eslint-plugin-jsdoc to v50.6.1 (#97958)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-16 10:10:01 +01:00
renovate[bot] fe1ec098dc
Update dependency eslint to v9.16.0 (#97952)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-13 15:38:53 +00:00
renovate[bot] 630b7d3c0d
Update dependency @testing-library/react to v16.1.0 (#97939)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-13 14:21:40 +00:00
renovate[bot] d506c1b9d2
Update dependency @swc/core to v1.10.1 (#97931)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-13 13:39:15 +00:00
renovate[bot] b2df6733f1
Update dependency @reduxjs/toolkit to v2.5.0 (#97926)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-13 13:38:13 +00:00
renovate[bot] af2475415e
Update dependency @floating-ui/react to v0.27.0 (#97912)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-13 09:48:54 +00:00
Ashley Harrison 08bb66ba72
Chore: Update to node 22 (#97779)
* update to node 22

* downgrade to 22.11.0

* switch to using node-version-file

* update @types/node

* revert back to using node-version
2024-12-12 16:39:52 +00:00
renovate[bot] 47e58d5903
Update dependency @grafana/experimental to v2.1.5 (#97846)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-12 14:07:38 +00:00
Laura Fernández 1a22575613
MetricCombobox: Fix overflowing parents (#97049) 2024-12-11 15:45:20 +01:00
renovate[bot] 0437fd0703
Update dependency sass-loader to v16.0.4 (#97676)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-09 16:26:45 +00:00
renovate[bot] 4f1307edb1
Update dependency @prometheus-io/lezer-promql to v0.300.1 (#97227)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-09 10:02:05 +00:00
Jev Forsberg 4ea109593b
Chore: Update dep version (#97507)
* update dep versions

* run gen-cue
2024-12-05 13:01:59 -07:00
Javier Ruiz 016351c7ed
[getTagKeys] Ensure we're not using suggestions when no scopes are present (#97353)
* Ensure we're not using suggestions when no scopes are present

* Simplify scopes check

Co-authored-by: Bogdan Matei <bogdan.matei@grafana.com>

---------

Co-authored-by: Bogdan Matei <bogdan.matei@grafana.com>
2024-12-04 10:30:32 +01:00
renovate[bot] 21117c85dd
Update dependency @leeoniya/ufuzzy to v1.0.17 (#97226)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-02 09:35:09 +00:00
Jack Westbrook 8915e03f56
Yarn: Dedupe lock file and fix swc errors (#97202)
* chore(yarn): dedupe lock file and fix swc errors

* chore(renovate): remove swc/core from ignore list
2024-12-02 09:38:45 +01:00
renovate[bot] 2fdac80488
Update dependency @prometheus-io/lezer-promql to v0.300.0 (#96532)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-28 16:38:25 +01:00
Brendan O'Handley ae27382be5
Prometheus: Add metrics explorer feature tracking for combobox (#97006)
add metrics explorer feature tracking for combobox
2024-11-25 14:53:40 -06:00
renovate[bot] a3fb210979
Update dependency @grafana/faro-web-sdk to v1.12.2 (#96789)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-20 18:40:38 +00:00
renovate[bot] 3aa5811b1e
Update emotion monorepo (#96780)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-20 17:06:44 +00:00
renovate[bot] c3c4c6b49f
Update dependency @grafana/experimental to v2.1.4 (#96777)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-20 17:31:53 +01:00
renovate[bot] 01b7fe0cd5
Update dependency @leeoniya/ufuzzy to v1.0.16 (#96743)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-20 10:14:52 +00:00
renovate[bot] 6d97d170f6
Update dependency @grafana/faro-web-sdk to v1.12.1 (#96688)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-19 15:48:08 +00:00
Nick Richmond 466688436e
Prometheus: Performant Code Mode autocomplete with long metric names (#96580)
* fix: autocomplete performance

* refactor: simplify the complex search strategy

* chore: allow json imports to aid testing

* perf: prefer for loop for perf-critical path

* perf: use ufuzzy in intraMode: 0 (#96584)

* refactor: add clarity

* refactor: simplify

---------

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-11-18 12:12:25 -05:00
Mohammad Iskandarany 4e3e50bf91
Chore: Update native histogram hints in prometheus data source (#96270)
* [Prometheus] Update native histogram hints

* update unit tests
2024-11-15 10:12:01 -06:00
renovate[bot] 70601a5367
Update dependency @floating-ui/react to v0.26.28 (#96528)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-15 12:11:09 +02:00
renovate[bot] 4f095bcd65
Update dependency @grafana/faro-web-sdk to v1.12.0 (#96485)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-14 17:02:42 +00:00
renovate[bot] c865958292
Update dependency sass to v1.80.7 (#96459)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-14 15:43:26 +02:00
Ashley Harrison 192423956b
GrafanaUI: Mark `ScrollContainer` as stable and deprecate `CustomScrollbar` (#96331)
* deprecate CustomScrollbar, promote ScrollContainer

* add documentation start

* use the properly exported ScrollContainer

* Update packages/grafana-ui/src/components/ScrollContainer/ScrollContainer.mdx

Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com>

---------

Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com>
2024-11-14 12:06:21 +00:00
renovate[bot] 20fa35f931
Update dependency eslint-plugin-jsdoc to v50.5.0 (#96385)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-13 15:26:28 +02:00
renovate[bot] 85caabf8e4
Update dependency eslint-plugin-jest to v28.9.0 (#96383)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-13 13:02:12 +00:00
renovate[bot] ed707098e1
Update dependency eslint to v9.14.0 (#96382)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-13 13:01:43 +00:00
renovate[bot] 3e9033c3bc
Update dependency @testing-library/jest-dom to v6.6.3 (#96374)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-13 11:04:40 +00:00
renovate[bot] 33b4c71cb2
Update dependency @reduxjs/toolkit to v2.3.0 (#96370)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-13 10:18:43 +00:00
Ashley Harrison 1e001451bd
ScrollContainer: Replace `CustomScrollbar` usage (#96229)
* replace CustomScrollbar

* use ScrollContainer in RolePickerMenu and PanelDataPane
2024-11-12 15:43:04 +00:00
renovate[bot] 108d611205
Update dependency sass-loader to v16.0.3 (#96322)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-12 15:34:09 +00:00
renovate[bot] 095be20f8e
Update dependency react-select to v5.8.3 (#96302)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-12 14:30:09 +00:00
renovate[bot] be7a1d8805
Update dependency marked-mangle to v1.1.10 (#96278)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-12 11:25:17 +00:00
renovate[bot] 7812cb83e9
Update dependency eslint-plugin-jsdoc to v50.4.3 (#96238)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-12 10:46:13 +00:00
renovate[bot] 2799e5aa75
Update dependency @types/lodash to v4.17.13 (#96159)
* Update dependency @types/lodash to v4.17.13

* fix types

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-11-11 18:16:20 +02:00
renovate[bot] 27a0491f30
Update dependency @swc/helpers to v0.5.15 (#96224)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-11 15:11:53 +00:00
Josh Hunt e8241636b8
Combobox: Improve async UX (#96054)
* Refactor basic usage with stateReducer

This is a combination of 3 commits.
This is the 1st commit message:
more wip

This is the commit message #2:
even more wip

This is the commit message #3:
got basic usage working well with stateReducer

remove unrelated change

todo tests

* fix behaviour for async

* clean up dev stuff

* story

* Fix options being cleared for non-async combobox

* Fill out tests!

* put story back

* clean up metriccombobox test

* show selected value as placeholder while menu is open

* properly fallback placeholder to the prop
2024-11-11 16:35:37 +02:00
renovate[bot] c04236b60d
Update dependency @floating-ui/react to v0.26.27 (#96158)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-11 09:43:56 +00:00
renovate[bot] b1c5aa0929
Update dependency @prometheus-io/lezer-promql to v0.55.1 (#95272)
* Update dependency @prometheus-io/lezer-promql to v0.55.1

* chore(grafana-prometheus): update type import

* fix duration resolver

* fix unit test

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-11-09 01:16:51 +02:00
ismail simsek 40637a221e
Chore: Don't require exemplar query for instant query when "Both" query type is selected (#96122)
Don't require exemplar for instant query
2024-11-08 17:51:14 +02:00
ismail simsek 21ba507bcb
Revert "Prometheus: Fix escaping of quotation marks for variables" (#96038)
Revert "Prometheus: Fix escaping of quotation marks for variables (#93415)"

This reverts commit 2bfdee73e3.
2024-11-07 16:38:05 +01:00
Jack Westbrook 8c41137bcf
Frontend: Update to Eslint 9 (#94823)
* chore(eslint): bump all eslint related packages to latest

* chore(eslint): update linting scripts work with v9

* chore(eslint): introduce flat config

* chore(eslint): delete legacy configs

* feat(grafana-eslint-rules): update rules to use eslint 9 APIs

* chore(eslint): migrate all nested eslintrc files over to root config

* chore(packages): bump eslint dependencies

* feat(betterer): make it work with eslint 9

* style(grafana-data): remove non-existant ban-types rule from disable declarations

* chore(wip): [wip] link eslint-config-grafana

* chore(packages): add @eslint/compat

* chore(eslint): add compat to testing library and fix alerting rules

* chore(eslint): bump grafana eslint-config to v8

* chore(explore): delete legacy eslint config

* chore: clean codeowners file, remove grafana/eslint-config from e2e plugins

* test(eslint-rules): fix no-border-radius-literal and no-aria-label-e2e-selectors rule tests

* Add .js to prettier checks so new eslint.config.js file isn't missed

* chore(eslint): move emotion/syntax-preference to grafana/defaults

* test(eslint): use core-js structured-clone

* revert(services): undo merge backend-format githook changes

* test(eslint-rules): remove structured-clone polyfill from tests

* chore(eslint): add back public/lib/monaco to ignore list, sort alphabetically

* chore(e2e-plugins): remove eslint config 7 from plugins package.json

---------

Co-authored-by: Tom Ratcliffe <tom.ratcliffe@grafana.com>
2024-11-07 16:31:06 +01:00
Josh Hunt 8d765cfba1
Prometheus: enable custom values in MetricCombobox (#95950) 2024-11-06 13:59:55 +00:00
Brad Cowie 2bfdee73e3
Prometheus: Fix escaping of quotation marks for variables (#93415)
* Prometheus: Fix escaping of quotation marks for non-regex variables

* Prometheus: Fix escaping of double quotation marks for regex variables

* Prometheus: Add escaping for adhoc filter label queries
2024-11-06 11:19:09 +01:00
Luis Rodrigues bfa1f03315
Prometheus: Fix query editor crash in response to invalid query (#94421)
* Quick fix for RenderParams Function

* Removing unnecessary optional chaining

Co-authored-by: Nick Richmond <5732000+NWRichmond@users.noreply.github.com>

* Removing unittests for RenderParams

---------

Co-authored-by: Nick Richmond <5732000+NWRichmond@users.noreply.github.com>
2024-11-05 10:29:52 -05:00
Josh Hunt eb781dd46d
Prometheus: Add Metrics Explorer button next to MetricCombobox (#95647) 2024-11-01 15:32:17 +00:00
Josh Hunt bf6056f2fa
Prometheus: Use Combobox for metric select (#93262)
* Uses Combobox in Prometheus for the metrics select, behind feature toggle

* switch to new async combobox api

* clean up MetricCombobox, add in dev slowness

* wip

* reset combobox changes to other pr https://github.com/grafana/grafana/pull/95191

* restore placeholder

* wip

* tests :)

* remove history comment

* use main import
2024-10-31 10:36:27 +00:00
Josh Hunt c9abe04d46
Prometheus: Add instrumentation for query patterns (#95288)
Prometheus: Add instrumentation for query patterns/kickstart your query
2024-10-28 20:46:08 +02:00
renovate[bot] d68b5d222a Update dependency react-select to v5.8.2 2024-10-28 16:38:06 +00:00
renovate[bot] 865be67dd1 Update dependency eslint-plugin-jsx-a11y to v6.10.2 2024-10-28 15:20:29 +00:00
renovate[bot] 3f47621065 Update dependency eslint-plugin-react to v7.37.2 2024-10-23 14:21:14 +00:00
ismail simsek 78a00d09cd
Prometheus: Fix passing query timeout to upstream queries (#95104)
* remove queryTimeout from constructor

* use queryTimeout for range and instant queries

* remove comment

* remove default query timeout

* fix linting
2024-10-23 16:16:00 +02:00
renovate[bot] f6354339ef Update dependency @types/prismjs to v1.26.5 2024-10-23 13:45:32 +00:00
renovate[bot] b512e7be0a Update dependency @types/node to v20.16.15 2024-10-23 12:59:48 +00:00
renovate[bot] 3103776892 Update dependency @types/jquery to v3.5.32 2024-10-23 10:08:04 +00:00
renovate[bot] 5f8af8860f Update dependency @types/jest to v29.5.14 2024-10-23 09:40:48 +00:00
renovate[bot] 3ec178ae44
Update dependency @grafana/faro-web-sdk to v1.11.0 (#95167)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-22 15:32:42 +01:00
renovate[bot] 059c5a4d02 Update dependency @types/node to v20.16.14 2024-10-22 09:00:43 +00:00
renovate[bot] 40f0a72db0 Update dependency eslint-plugin-jsx-a11y to v6.10.1 2024-10-21 15:27:56 +00:00
renovate[bot] b43425b527 Update dependency @types/node to v20.16.13 2024-10-21 13:59:11 +00:00
renovate[bot] 2974ab634f Update dependency @types/lodash to v4.17.12 2024-10-21 16:15:42 +03:00
renovate[bot] 532cee2ee3 Update dependency @lezer/common to v1.2.3 2024-10-21 09:32:05 +00:00
renovate[bot] b64a5848aa
Update dependency @floating-ui/react to v0.26.25 (#94957)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-18 13:24:04 +01:00
renovate[bot] afeb0fc792
Update dependency @types/testing-library__jest-dom to v6 (#94607)
* Update dependency @types/testing-library__jest-dom to v6

* remove package and fix types

* don't include setupTests in the build tsconfig

* exclude testUtils

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-10-18 11:59:47 +01:00
Jack Westbrook 9e50866356
Build: Nx improvements (#88341)
* feat(frontend): introduce project.json for every workspace to improve caching

* refactor(frontend): use nx tags for grafana dependson

* refactor(frontend): clean up nx tags for packages and plugins

* build(nx): make grafana dependent on cacheable generate icons command

* build(nx): clean up project files
2024-10-15 14:25:45 +02:00
Chirag Gomber 67cbbf84ca
Prometheus: Display multiple hints at the same time on query code editor (#89775)
* Added Query hints for Prometheus query code editor

* ES Lint fixes

* Remoed displayName from queryEditorHints as it was unused

* Added the logic on button click to difference function

* extracted data to constants from props

* added css style to hints
2024-10-14 12:15:42 +02:00
renovate[bot] 77effa6d90
Update testing-library monorepo (#94632)
* Update testing-library monorepo

* add @testing-library/dom

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-10-14 12:22:34 +03:00
renovate[bot] 7ef38bd6c1 Update dependency sass to v1.79.5 2024-10-11 10:32:48 +00:00
grafana-delivery-bot[bot] 032d0669cd
Release: Bump version to 11.4.0-pre (#94569)
bump version 11.4.0-pre

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-10-11 11:31:04 +01:00
renovate[bot] 773030f15c
Update dependency @types/eslint to v9 (#94564)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-11 10:47:01 +01:00
renovate[bot] e30c398087
Update dependency @hello-pangea/dnd to v17 (#94543)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-10 15:56:59 +01:00
renovate[bot] e8bcc5e831 Update dependency sass to v1.79.4 2024-10-09 16:15:35 +00:00
renovate[bot] d5ff74ebac Update dependency @grafana/experimental to v2.1.2 2024-10-09 16:13:52 +00:00
Brendan O'Handley 748bfff601
Prometheus: Add series endpoint configuration (#94443)
* add series endpoint configuration

* gf-form is unnecessary and deprecated
2024-10-09 10:25:18 -05:00
renovate[bot] 8fbd8eabec Update dependency @types/node to v20.16.11 2024-10-08 11:48:39 +00:00
renovate[bot] 1e3009e665 Update dependency @reduxjs/toolkit to v2.2.8 2024-10-08 10:45:43 +00:00
renovate[bot] 6190499f03
Update dependency moment-timezone to v0.5.46 (#94331)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-08 10:04:06 +01:00
renovate[bot] 65fc40385a Update dependency eslint-plugin-react to v7.37.1 2024-10-07 13:33:33 +00:00
renovate[bot] 32c55555cb Update dependency @types/node to v20.16.10 2024-10-07 13:00:31 +00:00
renovate[bot] 45835f7ea2 Update dependency @types/lodash to v4.17.10 2024-10-07 10:54:58 +00:00
renovate[bot] 797da67467 Update dependency @lezer/common to v1.2.2 2024-10-04 17:27:16 +00:00
renovate[bot] 6344eeac3b Update dependency @grafana/faro-web-sdk to v1.10.2 2024-10-04 16:52:13 +00:00
renovate[bot] 6ed3868921 Update dependency @emotion/css to v11.13.4 2024-10-04 14:22:51 +00:00
renovate[bot] 93b8243da7
Update dependency @grafana/experimental to v2 (#93919)
* Update dependency @grafana/experimental to v2

* add data-testid to old save button so it works properly in e2e test

* fix azure monitor e2e tests

* use raw selectors

* remove .only

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-10-04 14:21:10 +01:00
Bogdan Matei a87df0528b
Prometheus: Interpolate vars in adhoc filters request (#94087)
* Interpolate vars in adhoc filters request

* interpolate variables on BE

---------

Co-authored-by: Kyle Brandt <kyle@grafana.com>
2024-10-01 18:33:06 +03:00
Kyle Brandt 2a73b89374
Prometheus: Add resource for suggestions that include scopes/adhoc filters (#94001)
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Co-authored-by: Bogdan Matei <bogdan.matei@grafana.com>
2024-10-01 07:17:59 -04:00
renovate[bot] 8338e92a70
Update dependency sass-loader to v16 (#94006)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-01 10:30:32 +01:00
ismail simsek f8fd45892d
Chore: Fix legend changing when using incremental querying (#93529)
* rename variables

* fix setting legend

* yarn prettier:write

* only update displayNameFromDS
2024-10-01 10:58:08 +02:00
renovate[bot] 0e4c90dd87
Update emotion monorepo (#93914)
* Update emotion monorepo

* add @emotion/serialize package + update unit test

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-09-27 15:16:12 +01:00
Jack Westbrook 012d62782c
Fix: Prevent import errors caused by Rollup 4 (#93903)
fix(packages): prevent import errors by injecting exports.esmodule and check for default prop
2024-09-27 12:18:52 +01:00
renovate[bot] 08dab3f816
Update dependency eslint-plugin-react to v7.37.0 (#93891)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-27 10:48:11 +01:00
Jack Westbrook f22bee8ca2
Build: Migrate packages to rollup v4 (#93731)
* chore(packages): bump rollup and rollup plugins to latest

* chore(packages): fix rollup node-externals plugin imports

* chore(packages): update build/bundle scripts to pass configPlugin arg to rollup

* feat(packages): migrate rollup configs to be esm compliant

* feat(packages): build using es2018 target and use same tsconfig and tsc for rollup
2024-09-27 11:00:13 +02:00
renovate[bot] efe8739864 Update dependency @types/node to v20.16.9 2024-09-26 14:55:59 +00:00
renovate[bot] ad960827cc Update dependency @types/jquery to v3.5.31 2024-09-26 14:33:05 +00:00
renovate[bot] eee53810c0 Update dependency @grafana/faro-web-sdk to v1.10.1 2024-09-26 13:31:09 +00:00
renovate[bot] 2c98767d17
Update dependency webpack to v5.95.0 [SECURITY] (#93751)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-25 16:19:58 +01:00
renovate[bot] 5880579be8
Update dependency sass to v1.79.3 (#93741)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-25 17:30:12 +03:00
ismail simsek 5472478ee8
Prometheus: Fix e2e selector by using "data-test-id" instead of "id" (#93736)
* use data-test-id instead of id

* don't skip
2024-09-25 15:29:19 +02:00
renovate[bot] a0de3ef867 Update dependency @types/node to v20.16.7 2024-09-25 10:46:05 +00:00
ismail simsek 18f8f38418
Prometheus: Fix query interval string interpolation in query cache (#93678)
fix query interval string interpolation in query cache
2024-09-24 18:03:16 +02:00
renovate[bot] db697a3e23
Update dependency @rollup/plugin-node-resolve to v15.3.0 (#93677)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-24 15:43:03 +01:00
renovate[bot] b04799dab9 Update dependency @types/node to v20.16.6 2024-09-24 12:58:22 +00:00
renovate[bot] 5193318c56 Update dependency @types/lodash to v4.17.9 2024-09-24 11:47:46 +00:00
renovate[bot] fa25b10bf8
Update dependency @floating-ui/react to v0.26.24 (#93580)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-24 09:58:58 +01:00
renovate[bot] ff37d477fd Update dependency react-select to v5.8.1 2024-09-23 17:15:58 +00:00
renovate[bot] 07f11e9222 Update dependency @rollup/plugin-node-resolve to v15.2.4 2024-09-23 13:37:26 +00:00
Galen Kistler 26b039bb81
Prometheus: Incremental query cache keep extra datapoint before new 'from' (#93186)
* fix: keep extra datapoint before new 'from' when evicting datapoints in incremental query cache

* remove redundant comments

* Update todo

* move prometheus specific code in a new function

* add unit test

---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-09-23 14:45:31 +02:00
renovate[bot] 08b2805d07
Update dependency esbuild to v0.24.0 (#87650)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-23 12:27:38 +01:00
renovate[bot] bb69afed7c
Update dependency @grafana/faro-web-sdk to v1.10.0 (#93347)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-20 11:32:47 +01:00
renovate[bot] dc2a777edb Update dependency @types/jest to v29.5.13 2024-09-13 10:27:38 +00:00
renovate[bot] 1783b47545
Update dependency eslint-plugin-react to v7.36.1 (#93255)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-13 10:46:49 +01:00
renovate[bot] b5dd8a5e89
Update dependency sass to v1.78.0 (#93237)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-11 17:25:03 +01:00
renovate[bot] baa0f073d8 Update dependency eslint-plugin-jest to v28.8.3 2024-09-09 20:08:40 +00:00
renovate[bot] 1e6735706d Update dependency @types/node to v20.16.5 2024-09-09 19:39:19 +00:00
Kyle Brandt b89f3f8115
Ad-Hoc Filters & Scopes: don't remap one-of to regex in frontend (#92995)
* send "one-of" and "not-one-of" directly to datasource (instead of changing them to regex)
* Added to Ad-hoc and and Scope Filters: The "values" prop ([]string) and the "one-of" and "not-one-"of" operators. "values" is used with one-of and not-one-of. 
* adds prometheus support for the above 


---------

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Todd Treece <todd.treece@grafana.com>
2024-09-09 16:56:43 +03:00
Leon Sorokin fc4b3a2b03
Prometheus: Retain time field's interval with Table formatted queries (#93065) 2024-09-08 13:18:58 -05:00
Brendan O'Handley 4bf350cc62
Prometheus: Variable query editor, display selected label when using query type of label values (#92513)
display label, add test
2024-09-04 08:11:17 -05:00
renovate[bot] 468c1fcb9c
Update dependency glob to v11 (#92920)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-04 14:03:38 +03:00
renovate[bot] d9dc7cba50
Update dependency eslint-plugin-jsx-a11y to v6.10.0 (#92917)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-04 11:48:21 +01:00
renovate[bot] 9c837407bf Update dependency eslint-plugin-react to v7.35.2 2024-09-04 09:57:10 +00:00
renovate[bot] 7933cbd204 Update dependency @types/node to v20.16.4 2024-09-04 09:25:17 +00:00
renovate[bot] cb9c7de0ff Update dependency eslint-plugin-react to v7.35.1 2024-09-03 13:57:20 +00:00
renovate[bot] 6244c2be2c Update dependency eslint-plugin-jest to v28.8.2 2024-09-03 13:33:28 +00:00
renovate[bot] 9d974f7560
Update dependency @swc/helpers to v0.5.13 (#92858)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-03 13:44:51 +01:00
renovate[bot] 1395cd89da Update dependency @types/node to v20.16.3 2024-09-02 13:05:54 +00:00
renovate[bot] cf541b8869
Update dependency tslib to v2.7.0 (#92744)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-02 10:00:07 +01:00
renovate[bot] a0e237dacf Update dependency eslint-plugin-jest to v28.8.1 2024-08-30 10:05:24 +00:00
Ashley Harrison c16cc488c9
AdHocFilters: Add support for new `isOneOf` multi value operator (#91837)
* handle oneOf operator in prometheus

* use new supportsMultiValueOperators

* remap oneOf to regex in prometheus datasource

* Remap one of operators for scope filters

* use plugin.json property instead of feature toggle

* optional chaining

* fix unit tests

* use getInstanceSettings

* update to latest scenes

* fix unit tests

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-08-30 11:03:44 +01:00
renovate[bot] 909d0fac35
Update dependency @types/node to v20.16.2 (#92576)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-28 12:15:38 +01:00
renovate[bot] c92f5169d1
Update dependency @prometheus-io/lezer-promql to v0.54.1 (#92556)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-28 10:16:31 +01:00
renovate[bot] 72be3e861e
Update dependency webpack to v5.94.0 [SECURITY] (#92545)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-28 09:29:33 +01:00
renovate[bot] e66979765d Update dependency @grafana/faro-web-sdk to v1.9.1 2024-08-27 12:18:44 +00:00
renovate[bot] a99e32947a
Update dependency @floating-ui/react to v0.26.23 (#92470)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-27 13:44:26 +03:00
Kyle Brandt 84e5c3af22
Prometheus/Promlib: Remove the PrometheusDataplane feature so always enabled (#92218)
This has been default behavior since v10

---------

Co-authored-by: Brendan O'Handley <brendan.ohandley@grafana.com>
2024-08-26 08:53:38 -04:00
renovate[bot] 81935a3af1
Update dependency @grafana/experimental to v1.8.0 (#92283)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-22 15:50:27 +01:00
renovate[bot] a8c6000c19
Update dependency @prometheus-io/lezer-promql to v0.53.2 (#92148)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-21 09:49:14 +01:00
renovate[bot] 1525ee1a04 Update dependency @lezer/highlight to v1.2.1 2024-08-20 10:23:17 +00:00
renovate[bot] d9812153dd
Update dependency typescript to v5.5.4 (#91678)
* Update dependency typescript to v5.5.4

* fix missing typeof

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-08-20 10:11:57 +01:00
renovate[bot] 8d197387ed
Update dependency @grafana/tsconfig to v2 (#92056)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-19 13:13:33 +03:00
Brendan O'Handley 68f545210d
Prometheus: Fix label names select component when there are too many options (#92026)
* add more doc info for truncate function and how we use it

* truncate label names and allow users to search all labels on typing

* remove unused import

* handle labels select in variable query in addition with truncated list
2024-08-16 13:55:03 -05:00
Brendan O'Handley f01263803a
Prometheus: Add a limit for the series resource api in metrics browser (#91555)
* add a limit for the series resource api in metrics browser

* decouple serieslimit from options and only use in metrics browser

* add series limit input to metrics browser

* add warning

* add and fix tests

* add new param to jsdoc

* do not use the limit in other calls outside metrics browser

* update test

* trim limit

* fix tests, remove limit from non labels calls
2024-08-15 23:39:42 +03:00
grafana-delivery-bot[bot] 675a58b680
Release: Bump version to 11.3.0-pre (#91863)
* bump version 11.3.0-pre

* fix linters with: yarn run prettier:write

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Diego Augusto Molina <diegoaugustomolina@gmail.com>
2024-08-14 18:34:14 -03:00
Brendan O'Handley e0b8a00e78
Prometheus: Histogram table format should keep `le` values as strings (#91662)
* remove le value parsing as numbers

* add tests
2024-08-13 10:06:53 -05:00
ismail simsek b8ebc5d463
Chore: Update lezer package of prometheus frontend (#91252)
* update lezer package

* Use UnquotedLabelMatcher instead of LabelMatcher

* Use UnquotedLabelMatcher instead of LabelMatcher in parsing.ts
2024-08-11 23:48:04 +02:00
renovate[bot] ebc7355284
Update dependency eslint-plugin-jest to v28.8.0 (#91668)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-08 10:33:43 +01:00
renovate[bot] 9cfcc16d1a
Update dependency eslint-plugin-jest to v28.7.0 (#91637)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-07 16:48:32 +01:00
renovate[bot] f0d0fa901a
Update dependency @floating-ui/react to v0.26.22 (#91622)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-07 14:05:58 +01:00
renovate[bot] 7ccf79aa62 Update dependency marked-mangle to v1.1.9 2024-08-07 12:37:07 +00:00
renovate[bot] 0dbfeb0c6e
Update dependency @floating-ui/react to v0.26.21 (#91572)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-06 15:28:05 +03:00
renovate[bot] 4de68e3774
Update dependency eslint-plugin-jsdoc to v48.11.0 (#91473)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-02 12:44:01 +02:00
renovate[bot] 670132ead8 Update dependency @types/node to v20.14.14 2024-08-02 09:56:04 +00:00
renovate[bot] 85e2ea2488
Update dependency @grafana/faro-web-sdk to v1.9.0 (#91403)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 18:07:34 +03:00
Brendan O'Handley e39a131110
Prometheus: Add group function to aggregations (#91363)
add group function to aggregations
2024-08-01 08:58:12 -05:00
renovate[bot] 796f2994f9
Update dependency eslint-plugin-jsx-a11y to v6.9.0 (#91374)
* Update dependency eslint-plugin-jsx-a11y to v6.9.0

* ignore new violation and add comment to fix

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-08-01 13:34:02 +03:00
renovate[bot] 596c08e8f4
Update dependency eslint-plugin-react to v7.35.0 (#91378)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 11:11:09 +01:00
renovate[bot] 6cda2f67de
Update dependency eslint-plugin-jsdoc to v48.10.2 (#91370)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 11:46:59 +03:00
renovate[bot] 0590a42895
Update dependency eslint-plugin-jest to v28.6.0 (#91343)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 09:28:51 +01:00
renovate[bot] ad8e317987
Update dependency @grafana/faro-web-sdk to v1.8.2 (#91244)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-31 10:40:50 +01:00
renovate[bot] e3842df675 Update dependency @types/node to v20.14.13 2024-07-30 11:57:59 +00:00
renovate[bot] 22ad5395d5 Update dependency @reduxjs/toolkit to v2.2.7 2024-07-30 11:35:34 +00:00
renovate[bot] 8e006fedda Update dependency @grafana/experimental to v1.7.13 2024-07-26 15:42:50 +00:00
renovate[bot] 671f278ee1 Update dependency @types/node to v20.14.12 2024-07-23 19:21:07 +00:00
renovate[bot] b85700e386 Update dependency semver to v7.6.3 2024-07-23 17:34:17 +00:00
renovate[bot] d30f8a01cc Update dependency sass to v1.77.8 2024-07-23 17:13:23 +00:00
renovate[bot] 546d9991fa Update dependency react-use to v17.5.1 2024-07-23 15:42:41 +00:00
Ashley Harrison 219f4776a2 run prettier 2024-07-23 14:45:54 +01:00
renovate[bot] 486815606c Update dependency prettier to v3.3.3 2024-07-23 14:45:54 +01:00
renovate[bot] e5a0117bb8 Update dependency marked-mangle to v1.1.8 2024-07-23 09:59:48 +00:00
renovate[bot] 296b14b360
Update dependency @floating-ui/react to v0.26.20 (#90723)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-22 14:07:38 +03:00
renovate[bot] 63cc01fe80 Update dependency @types/node to v20.14.11 2024-07-22 07:57:16 +00:00
renovate[bot] f259f99485 Update dependency @types/lodash to v4.17.7 2024-07-19 17:40:32 +00:00
renovate[bot] c5775b3778
Update dependency @swc/helpers to v0.5.12 (#90670)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-19 17:50:47 +03:00
renovate[bot] 21d1669bfc Update dependency @reduxjs/toolkit to v2.2.6 2024-07-19 14:29:02 +00:00
renovate[bot] ec432fa314
Update dependency @floating-ui/react to v0.26.19 (#90614)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-19 13:26:07 +01:00
ismail simsek f8645f73ea
Prometheus: Improve expanding ruleIs with identifier label checking (#90336)
* define rule mapping type

* introduce a new mapping type

* add type comments

* add identifier check

* remove tests from wrong file

* add tests to the right file

* define function body

* unit tests and logic for getQueryLabelsForRuleName

* update logic of getRecordingRuleIdentifierIdx

* update logic and tests getRecordingRuleIdentifierIdx

* fix unit tests

* fix tests

* update how we return the options

* update message

* update type

* update expandRecordingRules unit tests

* remove identifier from end result

* fix unit tests once more

* remove fix action from expand rules warning

* remove generic type

* update warning text

* betterer
2024-07-18 13:17:33 +02:00
Ashley Harrison b321dc7280
Chore: Migrate from `react-beautiful-dnd` to `@hello-pangea/dnd` (#90328)
* migrate from react-beautiful-dnd to @hello-pangea/dnd

* revert comment
2024-07-12 10:23:29 +01:00
ismail simsek 7f5dde6ed3
Chore: Cleanup duplicated code in grafana-prometheus package (#89542)
* remove redundant test matchers

* use amendTable, trimTable functions from @grafana/data package

* move getMockDataSource function into the mocks.ts

* use LocalStorageValueProvider from @grafana/o11y-ds-frontend

* move all mocks under __mocks__ directory

* use store from @grafana/o11y-ds-frontend

* move test related files under test directory

* use getNextRefId from @grafana/data instead of deprecated getNextRefIdChar
See: https://github.com/grafana/grafana/pull/87460

* betterer

* remove unnecessary mockings

* import from @grafana/data

* import from @grafana/data
2024-07-03 16:21:29 +02:00
ismail simsek 5b6edc96d9
Chore: Use SelectMenuOptions from @grafana/ui in grafana-prometheus (#89562)
use SelectMenuOptions from @grafana/ui
2024-07-03 01:27:19 +02:00
ismail simsek 8f2daacf78
Chore: Remove CancelablePromise (#89564)
* Remove CancelablePromise.ts as it wasn't used in anywhere

* Move cancelable-promise to the place where it is used
2024-06-27 13:33:35 +02:00
Jake Leahy 2bd95b2eb5
Prometheus: Fix quote stripping in parser (#87675)
* Prometheus: Fix quote stripping in parser

Currently only double quotes are stripped from the end, while single quotes are left. Moreover, double quotes are stripped even when part of the value

* Prometheus: Double escape the string, apply linting fixes for files that I touched
2024-06-25 17:39:32 +02:00
Ashley Harrison 47f8717149
React: Use new JSX transform (#88802)
* update eslint, tsconfig + esbuild to handle new jsx transform

* remove thing that breaks the new jsx transform

* remove react imports

* adjust grafana-icons build

* is this the correct syntax?

* try this

* well this was much easier than expected...

* change grafana-plugin-configs webpack config

* fixes

* fix lockfile

* fix 2 more violations

* use path.resolve instead of require.resolve

* remove react import

* fix react imports

* more fixes

* remove React import

* remove import React from docs

* remove another react import
2024-06-25 12:43:47 +01:00
Chirag Gomber ca1afff886
Chore: Remove deprecated Layout components (#89376)
* Removed depricated HorizontalLayout from PrometheusMetricsBrowser

* Removed commented import

* typo fix

* Removed depricated HorizontalLayout from RawInfluxQLEditor

* Replaced InlineFormLabel to InlineField in RawInlfuxEditor.tsx

* Removed depricated HorizontalLayout from GraphiteFunctionEditor

* Changed div to instead use stack

* Changed htmlFor attribute from selectElementId to aliasElementId

* Updated the betterer results

* Updated prettier write to the updated files

* Changed htmlFor label to fix the text
2024-06-24 20:59:41 +02:00
ismail simsek 2a714601a7
Chore: Remove prometheusIncrementalQueryInstrumentation feature toggle (#89463)
* remove prometheusIncrementalQueryInstrumentation feature toggle

* remove profile method

* remove more about profiling
2024-06-20 15:04:22 +02:00
Ashley Harrison ceaf510a7d
Chore: SCSS cleanup (#89355)
* remove/migrate normalize.scss

* fix typo

* migrate _explore styles

* make json-formatter styles global
2024-06-19 13:28:00 +01:00
Stéphane Cazeaux 6b876f1e38
Prometheus: Fix interpolating adhoc filters with template variables (#88626)
* Prometheus: replace variables on adhoc filters

Fixes #87979

Signed-off-by: Stéphane Cazeaux <stephane.cazeaux@orange.com>

* Prometheus: replace variable filters on adhoc variables also when promQLScope=true

Signed-off-by: Stéphane Cazeaux <stephane.cazeaux@orange.com>

---------

Signed-off-by: Stéphane Cazeaux <stephane.cazeaux@orange.com>
2024-06-19 14:02:17 +02:00
ismail simsek 76047d9365
Prometheus: Don't use match[] parameter if there is no metric (#89352)
don't use match[] parameter if there is no metric
2024-06-19 08:19:49 +02:00
Yuri Kotov a5e02f033a
Prometheus: Fix query builder visualization when a query has by() clause for quantile (#88480)
Prometheus query builder: add support for by() clause for quantile aggregation
2024-06-19 08:19:27 +02:00
grafana-delivery-bot[bot] 40e3601982
Release: Bump version to 11.2.0-pre (#89184)
* "Release: Updated versions in package to 11.2.0-pre"

* fix newline

---------

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Minehart <kmineh0151@gmail.com>
2024-06-13 15:08:07 -05:00
Matias Chomicki 7e9e5f5346
Chore: bump @grafana/experimental (#89119)
* Chore: bump @grafana/experimental

* chore: upgrade all package.json
2024-06-13 08:46:59 +00:00
Jack Westbrook 0e73c4d387
Storybook: Bump to 8.1.6 (#88899)
* chore(storybook): bump to latest 8.1.6

* chore(yarn): dedupe yarn.lock post storybook update

* chore(typescript): align react types across repo
2024-06-07 14:31:31 +02:00
Andreas Christou c9778c3332
AzureMonitor: Prometheus exemplars support (#87742)
* Update types

* Mark datasource as supporting traces

* Add logic to transform exemplar query to traces query

* Render appropriate editor

* Run trace query for exemplars

* Refactor out common functions

- Add function to retrieve first/default subscription

* Add route for trace exemplars

* Update logic to appropriately query exemplars

* Update traces query builder

* Update instance test

* Remove unneeded import

* Set traces pseudo data source

* Replace deprecated function calls

* Add helper for setting default traces query

* Don't show resource field for exemplars query

* When resetting operation ID for exemplars set query to default

- Update tests

* Update query header to appropriately set the service value

* Fix response frame creation and update tests

* Correctly select resource

* Convert subscriptionsApiVersion to const

* Add feature toggle
2024-06-06 17:53:17 +01:00
Ashley Harrison 5f33943397
Select: Revert "preserving custom value" changes (#88856)
* revert Select changes as we can handle it outside of the base select component

* update scenes

* update scenes properly

* revert changes to azure-monitor e2e tests
2024-06-06 17:33:31 +01:00
Staton Hysell 0e62c200dd
Update QuerySuggestionItem.tsx (#86950)
* Update QuerySuggestionItem.tsx

Adjusts the styling of the "no" button in the explainer feedback section to a standard secondary variant instead of the success styling

* run prettier for drone

---------

Co-authored-by: Brendan O'Handley <brendan.ohandley@grafana.com>
2024-06-06 17:17:01 +03:00
renovate[bot] b0e73590ef Update dependency eslint-plugin-jsdoc to v48.2.8 2024-06-06 10:22:39 +00:00