Compare commits

...

4401 Commits

Author SHA1 Message Date
grafana-delivery-bot[bot]
beac3bdbcb [v11.1.x] Alerting docs: updates icon on landing page (#90884)
Alerting docs: updates icon on landing page (#90881)

* Alerting docs: updates icon on landing page

* adds svg

(cherry picked from commit 745eb60775)

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-07-24 13:16:59 +03:00
grafana-delivery-bot[bot]
00614f2813 [v11.1.x] Docs: Updates to the Query management in Explore page (#90843)
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>
2024-07-23 17:59:15 +03:00
Dominik Prokop
16bca1736d [v11.1.x] TemplateSrv: Backportable version of 90808 (#90837)
TemplateSrv: Backportable version of 90808  (#90833)

TemplateSrv: Backportable version of 90808 (#90816)

* TemplateSrv: Add test case for SafeSerializableSceneObject

* Update dashboard data source to use scoped vars scene object valueOf

* 11.1.x Backportable version of 90808

* lint

(cherry picked from commit 2e5b41cbcb)
2024-07-23 16:30:25 +02:00
grafana-delivery-bot[bot]
907916dc39 [v11.1.x] Scenes: Save height as itemHeight for repeat panels (#90606)
Scenes: Save height as itemHeight for repeat panels (#90487)

(cherry picked from commit 5afb1c6ce0)

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
2024-07-23 14:15:44 +02:00
Andreas Christou
417edf5c43 [v11.1.x] Prometheus: Reintroduce Azure audience override feature flag (#90560)
Prometheus: Reintroduce Azure audience override feature flag (#90339)

* Re-add feature flag with deprecation note

* Hide the field in frontend if ff disabled

* Block scope overriding if ff is disabled in backend

- Update promlib to forward logger to extendOptions
- Add warning
- Update tests

* Default toggle to true for now

* Update description

* Update prom tests

* Fix lint

(cherry picked from commit 2616366a0a)

# Conflicts:
#	packages/grafana-data/src/types/featureToggles.gen.ts
#	pkg/services/featuremgmt/registry.go
#	pkg/services/featuremgmt/toggles_gen.csv
#	pkg/services/featuremgmt/toggles_gen.go
#	pkg/services/featuremgmt/toggles_gen.json
#	pkg/tsdb/prometheus/prometheus.go
2024-07-23 11:31:31 +01:00
grafana-delivery-bot[bot]
a034ed6f1b [v11.1.x] [DOC] Update span filters doc for Tempo data source (#90773)
Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>
2024-07-22 13:29:20 -05:00
grafana-delivery-bot[bot]
bf264b2df3 [v11.1.x] Docs: Remove duplicate row (chore) (#90767)
Co-authored-by: Nikolaos Pothitos <pothitos@di.uoa.gr>
2024-07-22 13:08:56 -04:00
grafana-delivery-bot[bot]
bd59be01e8 [v11.1.x] CI: post changelog to forum in release-comms (#90751)
CI: post changelog to forum in release-comms (#90742)

* post changelog to forum in post-release workflow

(cherry picked from commit 9a3672c2bb)

Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com>
2024-07-22 18:23:25 +03:00
Piotr Jamróz
8ecf1dff7e Chore: Update What's new URL (#90736)
Update what's new URL
2024-07-22 09:24:47 -05:00
Ashley Harrison
12a3a261a2 [v11.1.x] Select: Fix scrolling virtualized menu on mobile (#90740)
Select: Fix scrolling virtualized menu on mobile (#90724)

pass select-menu innerRef to virtualized list

(cherry picked from commit dc30858e9d)
2024-07-22 15:59:46 +02:00
grafana-delivery-bot[bot]
b4f4b3e9b4 [v11.1.x] CI: For every release PR created, also push a changelog PR to main (#90704)
CI: For every release PR created, also push a changelog PR to main (#90698)

For every release PR created, also push a changelog PR to main

(cherry picked from commit 9232db2416)

Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com>
2024-07-20 01:14:38 +03:00
Serge Zaitsev
c2e78f5cd6 [v11.1.x] Chore: update changelog workflow (#90685)
Chore: update changelog workflow (#90608)

* try integrating

* pass tags

* change section order

* use better terminology

* one more attempt

* keep delimiters

* attempt to patch changelog

* quotes, bash quotes...

* use proper content file

* parens around date

* time for a pr

* first checkout, then create user

* add latest input

* git push

* use square brackets

* formatting

* update release-pr

* fix typo

* try sparse checkout

* fetch depth zero

* clean up after changelog generator

(cherry picked from commit f8b092aba6)
2024-07-19 21:36:25 +02:00
grafana-delivery-bot[bot]
f5cebcca1b [v11.1.x] Docs: Replaces Agent with Alloy (#90691)
Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-07-19 15:07:59 -04:00
grafana-delivery-bot[bot]
009a75f796 [v11.1.x] Docs: added heading identifiers (#90665)
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-07-19 09:52:11 -04:00
Isabel Matwawana
7e742cdaa2 [v11.1.x] Docs: Refactor time series page - part 1 (#90624)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-07-18 14:25:00 -04:00
Kevin Minehart
17fce96f7f [v11.1.x] CI: replace publish image step with a much simpler one that supports LATEST (#90622)
CI: replace publish image step with a much simpler one that supports LATEST (#90498)

* replace publish image step with a much simpler one that supports LATEST

(cherry picked from commit 6a2a6b0fbc)
2024-07-18 12:19:03 -06:00
grafana-delivery-bot[bot]
220f0a5b42 [v11.1.x] docs: added video to gauge panel doc (#90603)
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Señor Performo - Leandro Melendez <54183040+srperf@users.noreply.github.com>
2024-07-18 08:57:14 -04:00
grafana-delivery-bot[bot]
61662f3574 [v11.1.x] Docs: replace broken link (#90599)
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-07-18 08:21:51 -04:00
Ivan Ortega Alba
2c8c2199a1 [v11.1.x] Revert \"Frontend: Use safe stringifier in parseBody\" (#90532)
Revert "Frontend: Use safe stringifier in parseBody" (#90522)

Revert "Frontend: Use safe stringifier in parseBody (#90047)"

This reverts commit 434f386982.

(cherry picked from commit 3559c5c297)
2024-07-18 12:30:15 +02:00
grafana-delivery-bot[bot]
6a9fc2ac93 [v11.1.x] Docs: make heading fix in content.ts file (#90511)
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
fix in content.ts file (#90473)
2024-07-17 13:16:50 -04:00
grafana-delivery-bot[bot]
af6b53420b [v11.1.x] alerting:docs>google chat (#90516)
alerting:docs>google chat (#90257)

* alerting:docs>google chat

* pretty

* weight

* changed weight

* typo

(cherry picked from commit 2186676f55)

Co-authored-by: antonio <45235678+tonypowa@users.noreply.github.com>
2024-07-17 09:01:20 +02:00
grafana-delivery-bot[bot]
ed0cd7ee06 [v11.1.x] highlighting the part of the Grafana enterprise section so easir for … (#90503)
highlighting the part of the Grafana enterprise section so easir for … (#90177)

highlighting the part of the Grafana enterprise section so easir for users to find it

(cherry picked from commit 677d2a8b70)

Co-authored-by: Usman Ahmad <usman.ahmad@grafana.com>
2024-07-16 20:28:38 +02:00
grafana-delivery-bot[bot]
104daa45db [v11.1.x] Scrollbar: fix scrollTo being called on stale reference (#90491)
Scrollbar: fix scrollTo being called on stale reference (#90346)

* fix: fix scrollTo being called on stale reference

(cherry picked from commit bb52c340cc)

Co-authored-by: Galen Kistler <109082771+gtk-grafana@users.noreply.github.com>
2024-07-16 19:52:29 +03:00
grafana-delivery-bot[bot]
7e9f8a8779 [v11.1.x] Revert "Scenes: Fixes issue with panel repeat height calculation (#90221)" (#90486)
Revert "Scenes: Fixes issue with panel repeat height calculation (#90221)" (#90478)

This reverts commit 5cab595f45.

(cherry picked from commit e7f9d592f0)

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
2024-07-16 18:38:34 +03:00
grafana-delivery-bot[bot]
1d30eb36d9 [v11.1.x] Docs: Update group to nested tables transformation header to match naming in UI (#90475)
Co-authored-by: Nathan Marrs <nathanielmarrs@gmail.com>
2024-07-16 10:04:31 -04:00
grafana-delivery-bot[bot]
27cd35a97b [v11.1.x] docs: updated table panel visualization (#90474)
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Señor Performo - Leandro Melendez <54183040+srperf@users.noreply.github.com>
2024-07-16 10:00:59 -04:00
Isabel Matwawana
41bd47700a [v11.1.x] Docs: Update dashboard URL variables docs (#90445)
Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
2024-07-15 11:50:31 -04:00
grafana-delivery-bot[bot]
6f27663318 [v11.1.x] SoloPanel: Avoid fatal error when panelId correspond to a row (#90422)
SoloPanel: Avoid fatal error when panelId correspond to a row (#90271)

(cherry picked from commit 51fab9adf4)

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
2024-07-15 15:04:53 +02:00
Jev Forsberg
be8ff40d58 [v11.1.x] Automation: Verify DEB and RPM packages (#90402)
Automation: Verify DEB and RPM packages (#90146)

* baldm0mma/verify_aptyum/ add verify_linux_packages_step

* baldm0mma/verify_aptyum/ add name and image

* baldm0mma/verify_aptyum/ add commands

* baldm0mma/verify_aptyum/ add test pipeline

* baldm0mma/verify_aptyum/ update deps for verify_linux_packages_step

* baldm0mma/verify_aptyum/ update ubuntu image

* baldm0mma/verify_aptyum/ add rockylinux9 image

* baldm0mma/verify_aptyum/ update to verify_linux_DEB_packages_step naming

* baldm0mma/verify_aptyum/ add verify_linux_RPM_packages_step

* baldm0mma/verify_aptyum/ update commands for RPM check

* baldm0mma/verify_aptyum/ update test pipeline

* baldm0mma/verify_aptyum/ update annos

* baldm0mma/verify_aptyum/ update annos

* baldm0mma/verify_aptyum/ update args

* baldm0mma/verify_aptyum/ add arg to verify_linux_RPM_packages_step

* baldm0mma/verify_aptyum/ update oss_steps

* baldm0mma/verify_aptyum/ update deps args

* baldm0mma/verify_aptyum/ update sec hash

* baldm0mma/verify_aptyum/ make format-drone

* baldm0mma/verify_aptyum/ update sec hash

* baldm0mma/verify_aptyum/ update drone

* baldm0mma/verify_aptyum/ update function styles

* baldm0mma/verify_aptyum/ revert changes

* baldm0mma/verify_aptyum/ make drone

* baldm0mma/verify_aptyum/ redirect install logs

* baldm0mma/verify_aptyum/ restructure args

* baldm0mma/verify_aptyum/ update verify_linux_DEB_packages_step

* baldm0mma/verify_aptyum/ make format drone

* baldm0mma/verify_aptyum/ update verify_linux_RPM_packages_step

* baldm0mma/verify_aptyum/ add retry_command

* baldm0mma/verify_aptyum/ make drone

* baldm0mma/verify_aptyum/ update attempts to 10 minutes

* baldm0mma/verify_aptyum/ handle is_preview

* baldm0mma/verify_aptyum/ add doc strings to satisfy starlark linter

* baldm0mma/verify_aptyum/ revert is_preview

* baldm0mma/verify_aptyum/ update to rpm repo download

* baldm0mma/verify_aptyum/ add back logging for rpm

* baldm0mma/verify_aptyum/ revert to working

* baldm0mma/verify_aptyum/ update to use RPM repo

* baldm0mma/verify_aptyum/ remove redirect for logging

* baldm0mma/verify_aptyum/ rem gpg check

* baldm0mma/verify_aptyum/ fromat drone

* baldm0mma/verify_aptyum/ rem comment

* baldm0mma/verify_aptyum/ add single comment on timing

(cherry picked from commit d781ec2daa)
2024-07-12 15:54:55 -06:00
grafana-delivery-bot[bot]
e0dbd8f3f2 [v11.1.x] CloudWatch: Fix raw queries with dimensions set (#90387)
CloudWatch: Fix raw queries with dimensions set (#90348)

(cherry picked from commit 9a8be1785a)

Co-authored-by: Isabella Siu <Isabella.siu@grafana.com>
2024-07-12 17:33:49 -04:00
grafana-delivery-bot[bot]
af1aaab3a6 [v11.1.x] docs: updated logs panel visualization (#90399)
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Señor Performo - Leandro Melendez <54183040+srperf@users.noreply.github.com>
2024-07-12 17:08:35 -04:00
grafana-delivery-bot[bot]
b1a552bd07 [v11.1.x] docs: updated time series panel visualization (#90394)
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Señor Performo - Leandro Melendez <54183040+srperf@users.noreply.github.com>
2024-07-12 16:46:40 -04:00
Yuri Tseretyan
26822fae62 Alerting: Update grafana/alerting to 20240712181403-02e012d6dd7f (#90386)
update alerting to 02e012d6dd7fc889194cac5e7d3cf2c1db6b0b54
2024-07-12 15:24:39 -04:00
grafana-delivery-bot[bot]
abd9e86fe6 [v11.1.x] Table: Fix state bug with initialRowIndex (#90370)
Table: Fix state bug with initialRowIndex (#90308)

* fix: fix state bug

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
(cherry picked from commit 8400b54a53)

Co-authored-by: Galen Kistler <109082771+gtk-grafana@users.noreply.github.com>
2024-07-12 17:33:51 +03:00
grafana-delivery-bot[bot]
eab471a17c [v11.1.x] RBAC: List only the folders that the user has access to (#89016)
RBAC: List only the folders that the user has access to (#88599)

only check folder permissions when listing folders

(cherry picked from commit 095ca66d9f)

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2024-07-12 14:54:31 +03:00
Ieva
c5ea48aec9 [v11.1.x] Admin: Fixes an issue where user accounts could not be enabled (#90361)
Fix: unable to enable user
Co-authored-by: gonvee <gonvee@users.noreply.github.com>
2024-07-12 12:12:21 +02:00
grafana-delivery-bot[bot]
5c39ab885d [v11.1.x] CI: fix release pr condition (#90305)
CI: fix release pr condition (#90299)

* Release comms should only run when the source PR is

* Fix release-comms workflow condition

(cherry picked from commit a28db90dd5)

Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com>
2024-07-10 15:49:37 -05:00
grafana-delivery-bot[bot]
2efd32d5e4 [v11.1.x] Docs: Updated the Query inspector page (#90297)
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>
2024-07-10 23:11:30 +03:00
grafana-delivery-bot[bot]
1af63c69f8 [v11.1.x] CI: remove missing dependency from workflow action (#90293)
CI: remove missing dependency from workflow action (#90285)

remove missing dep from workflow action

(cherry picked from commit f411d85749)

Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com>
2024-07-10 14:24:26 -05:00
grafana-delivery-bot[bot]
3124df86a9 [v11.1.x] Azure: Fix default subscription setting (#90263)
* Azure: Fix default subscription setting (#90185)

* Ensure default subscription is set

* Include some info for when the default subscription is required

* Rename settings mock

- Add mockDatasourceSettings function

* Add MonitorConfig test

* Revert "Rename settings mock"

- Avoid issues when backporting

* Remove description

* Remove required field

* Remove unused import

(cherry picked from commit bba26f8e13)

* Add react

---------

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
2024-07-10 12:24:18 +01:00
kay delaney
e5bbc6f17a [v11.1.x] Frontend: Use safe stringifier in parseBody (#90234)
Frontend: Use safe stringifier in parseBody (#90047)

* Frontend: Use safe stringifier in parseBody

Closes #88064

(cherry picked from commit 434f386982)
2024-07-10 10:42:33 +01:00
grafana-delivery-bot[bot]
64b649e407 [v11.1.x] Docs: Fix link to send report API (#90248)
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Davidson Francis <davidsondfgl@gmail.com>
Fix link to send report API (#90242)
2024-07-09 17:23:14 -04:00
grafana-delivery-bot[bot]
b8c48273db [v11.1.x] InfluxDB: Fix returning InfluxDB error messages (#90087)
InfluxDB: Fix returning InfluxDB error messages (#89973)

* Revert "Chore: Return influxdb query error early before parsing the result (#88549)"

This reverts commit a87c155c06.

* Handle error in buffered parser

* handle error message in streaming parser

(cherry picked from commit 4fcd348366)

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-07-09 19:50:04 +02:00
grafana-delivery-bot[bot]
06a25efb55 [v11.1.x] [DOC] Fix broken links in profiles and traces content (#90241)
Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>
Fix broken links in profiles and traces content (#90237)
2024-07-09 18:21:58 +01:00
grafana-delivery-bot[bot]
d4241ea163 [v11.1.x] Scenes: Fixes issue with panel repeat height calculation (#90232)
Scenes: Fixes issue with panel repeat height calculation (#90221)

* Scenes: Fixes issue with panel repeat height calculation

(cherry picked from commit 5cab595f45)

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
2024-07-09 18:19:40 +03:00
grafana-delivery-bot[bot]
0d3206db83 [v11.1.x] CI: Sync branch and tag after release (#90206)
CI: Sync branch and tag after release (#89967)

* Added `workflow_call` event to allow other workflows to invoke the "Create or update GitHub release"
* Added `dry_run` to `github-release.yml`
* Added `latest` to `release-pr.yml` which will cause the release PR to add a `release/latest` label.
* Removed unnecessary github app creation from github-release workflow and just used permissions.

(cherry picked from commit 63e715f6a9)

Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com>
2024-07-08 14:53:05 -05:00
grafana-delivery-bot[bot]
6920f9118c [v11.1.x] Fix panel paste button in nav toolbar (#90147)
* Fix panel paste button in nav toolbar (#90143)

fix panel paste button in nav toolbar

(cherry picked from commit f88bf474bd)

* modify store import

---------

Co-authored-by: Victor Marin <36818606+mdvictor@users.noreply.github.com>
Co-authored-by: Victor Marin <victor.marin@grafana.com>
2024-07-08 14:26:29 +03:00
grafana-delivery-bot[bot]
cbf4bd59fa [v11.1.x] alerting/integrations:opsgenie (#90158)
alerting/integrations:opsgenie (#90133)

* alerting/integrations:opsgenie

* Update _index.md

* new line

* all pretty no pity

* numbering

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-opsgenie.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-opsgenie.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update configure-opsgenie.md

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
(cherry picked from commit e061f2886f)

Co-authored-by: antonio <45235678+tonypowa@users.noreply.github.com>
2024-07-07 13:30:09 +02:00
grafana-delivery-bot[bot]
c20fd6e7f5 [v11.1.x] [DOC] Update the Pyroscope data source config doc (#90150)
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>
2024-07-05 15:00:47 -04:00
grafana-delivery-bot[bot]
37b9d659a7 [v11.1.x] Alerting: Support utf8_strict_mode: false in Mimir (#90148)
Alerting: Support `utf8_strict_mode: false` in Mimir (#90092)

(cherry picked from commit 650616a404)

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-07-05 18:33:39 +03:00
grafana-delivery-bot[bot]
6452e9665e [v11.1.x] Loki datasource: interpolate query before adding adhoc filters (#90114)
Loki datasource: interpolate query before adding adhoc filters (#89849)

* Loki datasource: interpolate query before adding adhoc filters

* Chore: remove unused export

* Prettier

* Chore: made test case more obvious

(cherry picked from commit cc7aae154c)

Co-authored-by: Matias Chomicki <matyax@gmail.com>
2024-07-05 12:15:25 +03:00
grafana-delivery-bot[bot]
2d0723ffc8 [v11.1.x] alerting/integrations:telegram-update (#90109)
alerting/integrations:telegram-update (#90105)

* alerting/integrations:telegram-update

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-telegram.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-telegram.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
(cherry picked from commit 8bc8b4b31f)

Co-authored-by: antonio <45235678+tonypowa@users.noreply.github.com>
2024-07-05 10:33:19 +02:00
grafana-delivery-bot[bot]
a56e351bc8 [v11.1.x] alerting/docs:discord (#90086)
* alerting/docs:discord (#90068)

* alerting/docs:discord

* 'pretty'

(cherry picked from commit d563db63e7)

* Update configure-discord.md

---------

Co-authored-by: antonio <45235678+tonypowa@users.noreply.github.com>
2024-07-04 22:36:27 +02:00
grafana-delivery-bot[bot]
cae1635c8f [v11.1.x] Docs: Fix typo in text (#90090)
Co-authored-by: ANURAG RANJAN <61619621+1md3nd@users.noreply.github.com>
Fix typo in text (#89325)
2024-07-04 12:26:19 -04:00
grafana-delivery-bot[bot]
b1751659c7 [v11.1.x] Alerting: Skip fetching alerts for unsaved dashboards (#90074)
* Alerting: Skip fetching alerts for unsaved dashboards (#90061)

skip fetching alerts for dashboards with null uid

(cherry picked from commit dd4e254900)

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-07-04 17:36:12 +02:00
grafana-delivery-bot[bot]
2835a1c9c7 [v11.1.x] Update make docs procedure (#90073)
Co-authored-by: grafanabot <bot@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-04 16:27:38 +01:00
grafana-delivery-bot[bot]
460dfdd63d [v11.1.x] Tempo: Fix grpc streaming support over pdc-agent (#90055)
Tempo: Fix grpc streaming support over pdc-agent (#89883)

* Tempo: Fix grpc streaming support over pdc-agent

* Fix a spelling error and formatting

* Ignore lint issue for reasons listed in source code comment

---------

Co-authored-by: Joey Tawadrous <joey.tawadrous@grafana.com>
(cherry picked from commit d5b21f77aa)

Co-authored-by: Taylor Dean <taylor@makeshift.dev>
2024-07-04 15:48:00 +01:00
grafana-delivery-bot[bot]
69139f20a5 [v11.1.x] Scenes: Fix issue where "get help" drawer was empty in panel edit mode (#90041)
Scenes: Fix issue where "get help" drawer was empty in panel edit mode (#89431)

(cherry picked from commit 4671b7d5ae)

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
2024-07-04 11:26:28 +01:00
antonio
8c8a2d77bf alerting:oncall-11.1.x (#89985)
added title
2024-07-03 14:57:51 +02:00
antonio
e60254c952 alerting:docs>oncall (#89780) (#89980)
* alerting:docs>oncall (#89780)

* alerting:docs>oncall

* removed refs

* links

* dot

* all pretty no pity

(cherry picked from commit 9740ce3f58)

* Update configure-oncall.md
2024-07-03 11:36:26 +02:00
grafana-delivery-bot[bot]
8caf0df5a4 [v11.1.x] Docs: Clarify query and tags search in dashboard list (#89970)
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-07-02 16:49:29 -04:00
grafana-delivery-bot[bot]
11b8626b36 [v11.1.x] DashboardScene: Disable edit related shortcuts for Viewer (#89941)
DashboardScene: Disable edit related shortcuts for Viewer (#89936)

check if can edit before adding edit shortcuts

(cherry picked from commit 527071aed6)

Co-authored-by: Sergej-Vlasov <37613182+Sergej-Vlasov@users.noreply.github.com>
2024-07-02 14:54:02 +03:00
grafana-delivery-bot[bot]
c032def097 [v11.1.x] alerting:mute-timings>api (#89943)
alerting:mute-timings>api (#89902)

* alerting:mute-timings>api

* added type go-type

* all pretty

(cherry picked from commit 92ad6c71d1)

Co-authored-by: antonio <45235678+tonypowa@users.noreply.github.com>
2024-07-02 13:22:51 +02:00
grafana-delivery-bot[bot]
5510541ae7 [v11.1.x] Table Panel: Fix Image hover without datalinks (#89922)
Table Panel: Fix Image hover without datalinks (#89751)

* Fix image hover

* Prettier

* Fix height offset

(cherry picked from commit c575c06d63)

Co-authored-by: Kyle Cunningham <codeincarnate@users.noreply.github.com>
2024-07-01 20:11:48 +03:00
grafana-delivery-bot[bot]
81c03daac3 [v11.1.x] Frontend: InteractiveTable fix - prevent styles from leaking into tables added in expanded rows (#89917)
Frontend: InteractiveTable fix - prevent styles from leaking into tables added in expanded rows (#88948)

* fix: prevent styles from leaking into tables added in expanded rows

(cherry picked from commit 1f967a89b6)

Co-authored-by: Galen Kistler <109082771+gtk-grafana@users.noreply.github.com>
2024-07-01 10:55:33 -05:00
grafana-delivery-bot[bot]
244d0cf46a [v11.1.x] Alerting: Skip loading alert rules for dashboards when disabled (#89905)
Alerting: Skip loading alert rules for dashboards when disabled (#89361)

(cherry picked from commit 781e394118)

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-07-01 13:36:39 +03:00
grafana-delivery-bot[bot]
fbcdaccb6d [v11.1.x] Alerting docs: Update View alert groups (#89899)
Alerting docs: Update `View alert groups` (#89461)

* Alerting docs: Update `View alert groups`
Rename to `View the status of notifications` and extend on this topic

* Update docs/sources/alerting/manage-notifications/view-alert-groups.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/manage-notifications/view-alert-groups.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/manage-notifications/view-alert-groups.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Use `1` always for numbered list

* refer to `grouping settings of notification policies`

* Update `View notification errors` with latest instructions

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
(cherry picked from commit c168f2acec)

Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com>
2024-07-01 11:46:39 +02:00
grafana-delivery-bot[bot]
bd64166681 [v11.1.x] Alerting docs: adds silence RBAC 11.1 (#89814)
Alerting docs: adds silence RBAC 11.1 (#89176)

* Alerting docs: adds silence RBAC 11.1

* ran prettier

* Improve docs with new rule-specific silence RBAC information

* Apply suggestions from code review

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Apply suggestions from code review

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* prettier

---------

Co-authored-by: Matt Jacobson <matthew.jacobson@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
(cherry picked from commit f833b782b6)

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-06-27 10:27:52 +02:00
grafana-delivery-bot[bot]
60ea823a60 [v11.1.x] CI: fix release comms workflow (#89789)
CI: fix release comms workflow (#89744)

* add runs-on key

* remove unneeded env key

* use more specific quotes in commands

* fix block syntax

* fix workflow dispatch event check

(cherry picked from commit 16b050f676)

Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com>
2024-06-26 17:37:06 +03:00
Jack Baldry
b908b86d22 Link to v11.1.x What's new page from the home (#89778) 2024-06-26 10:03:21 -04:00
grafana-delivery-bot[bot]
9cafc1abe4 [v11.1.x] CI: add release comms workflow (#89738)
CI: add release comms workflow (#89718)

* add release comms workflow

* add version input

* Add release-comms workflow to CODEOWNERS

(cherry picked from commit 3ede2dba24)

Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com>
2024-06-25 17:14:13 -05:00
grafana-delivery-bot[bot]
e0c2a0a219 [v11.1.x] advertise RBAC for silences better (#89720)
Co-authored-by: Mitch Seaman <mjseaman@users.noreply.github.com>
2024-06-25 15:20:11 -04:00
grafana-delivery-bot[bot]
801dd891b8 [v11.1.x] Docs: Add more info and link to text wrap content (#89715)
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Mitch Seaman <mjseaman@users.noreply.github.com>
2024-06-25 21:31:12 +03:00
grafana-delivery-bot[bot]
bf610cb029 [v11.1.x] Docs: Add youtube links to What's new 11.1 (#89713)
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-06-25 14:16:32 -04:00
grafana-delivery-bot[bot]
36102bbaef [v11.1.x] alerting: teams contact point + updates (#89702)
alerting: teams contact point + updates (#89695)

* alerting: teams contact point + updates

* typo

* all pretty no pity

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-email.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-email.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/pager-duty.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/webhook-notifier.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/webhook-notifier.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/webhook-notifier.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* formatting

* formatting

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
(cherry picked from commit 891cc0512f)

Co-authored-by: antonio <45235678+tonypowa@users.noreply.github.com>
2024-06-25 18:08:05 +02:00
grafana-delivery-bot[bot]
66034f5eb7 [v11.1.x] Scenes: Repeat horizontally set the width to 24 even if repeat variab… (#89680)
Scenes: Repeat horizontally set the width to 24 even if repeat variable is not set (#89658)

(cherry picked from commit 6773f7f4ce)

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
2024-06-25 15:26:13 +03:00
grafana-delivery-bot[bot]
6f5e8414b3 [v11.1.x] Changelog: Updated changelog for 11.1.0 (#89660)
Changelog: Updated changelog for 11.1.0 (#89659)

* Changelog: Updated changelog for 11.1.0

* Linting

---------

Co-authored-by: grafanabot <bot@grafana.com>
Co-authored-by: Fabrizio <fabrizio.casati@grafana.com>
(cherry picked from commit 91628158f2)

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2024-06-25 13:00:04 +02:00
grafana-delivery-bot[bot]
4cf941e19f Release: Bump version to 11.1.1 (#89667)
bump version 11.1.1

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-25 13:57:13 +03:00
grafana-delivery-bot[bot]
64e4b0ec6a [v11.1.x] Docs: What’s new & Upgrade guide v11.1 (#89642)
Co-authored-by: Mitch Seaman <mjseaman@users.noreply.github.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-06-24 16:51:04 -04:00
Kevin Minehart
80b3b5d292 [11.1.x] backport CI / release changes (#89641)
* CI: Make pkg/build its own module, remove unused Grafana modules in go.mo… (#89243)

* Make pkg/build its own module, remove unused Grafana modules in go.mod/go.sum

* fix go.work format

* log errors on file close errors

* CI: Add release-pr workflow (#89005)

* Add release-pr workflow

* update CODEOWNERS

* CI: Trigger release pr workflow when a release is completed (#89062)

* CI: Add bump-version action to the release PR workflow (#89491)

* Automation: Verify release artifacts on grafana.com (#89197)

* baldm0mma/verify_release/ create verify_release_for_download function

* baldm0mma/verify_release/ add name, image, env

* baldm0mma/verify_release/ add initial commands

* baldm0mma/verify_release/ add deps?

* baldm0mma/verify_release/ update location

* baldm0mma/verify_release/ add anno to lib-star

* bald0mma/verify_release/ update func name to verify_grafanacom_step

* baldm0mma/verify_release/ add verify shell script

* baldm0mma/verify_release/ add script content, first attempt

* baldm0mma/verify_release/ add node image to verify_grafanacom_step

* baldm0mma/verify_release/ add gcom secret note

* baldm0mma/verify_release/ add sudo to apt-get

* baldm0mma/verify_release/ add anno

* baldm0mma/verify_release/ add anno to secrets

* baldm0mma/verify_release/ update commands to reflect node env image

* baldm0mma/verify_release/ update annos

* baldm0mma/verify_release/ update tag variable

* baldm0mma/verify release/ add whitespace

* baldm0mma/verify_releases/ update with no bash loops

* baldm0mma/verify_release/ update exit logic

* baldm0mma/verify_release/ remove annos

* baldm0mma/verify_releasse/ resign and build yml

* baldm0mma/verify_release/ remove annos

* baldm0mma/verify_release/ update signature

* baldm0mma/verify_release/ download curl

* baldm0mma/verify_release/ remove temp key folder removal

* baldm0mma/verify_release/ account for artifact download time

* baldm0mma/verify_release/ add anno

* baldm0mma/verify_release/ update location

* baldm0mma/verify_release/ update script

* baldm0mma/verify_release/ make drone

* baldm0mma/verify_release/ update script for oss or ent

* baldm0mma/verify_release/ add promotion option

* baldm0mma/verify_release/ make drone

* Update scripts/drone/events/release.star

Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com>

* Update scripts/drone/steps/lib.star

Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com>

* Update scripts/drone/steps/lib.star

Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com>

* baldm0mma/verify_release/ update drone

* Update scripts/drone/events/release.star

Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com>

* baldm0mma/verify_release/ update drone

* Update scripts/drone/steps/lib.star

Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com>

* baldm0mma/update drone

* baldm0mma/verify_release/ update path

* baldm0mma/verify_release/ make drone

* baldm0mma/update drone

* Apply suggestions from code review

Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com>

* baldm0mma/verify_release/ update for loop to account for failure

* baldm0mma/verify_release/ make drone

* baldm0mma/verify_release/ make format-drone

* baldm0mma/verify_release/ rem unused var

---------

Co-authored-by: Kevin Minehart <5140827+kminehart@users.noreply.github.com>

---------

Co-authored-by: Jev Forsberg <46619047+baldm0mma@users.noreply.github.com>
2024-06-24 15:07:01 -05:00
grafana-delivery-bot[bot]
82eccf0672 [v11.1.x] NavToolbarActions: Make sure ToolbarActions are renrendered when needed (#89620)
NavToolbarActions: Make sure ToolbarActions are renrendered when needed (#89615)

(cherry picked from commit 96fda0d6ea)

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-06-24 15:37:56 +02:00
grafana-delivery-bot[bot]
6a89d906cc [v11.1.x] Fix typo in API key (#89593)
Co-authored-by: pmo <philmoses@gmail.com>
Fix typo in API key (#89568)
2024-06-24 10:15:59 +01:00
grafana-delivery-bot[bot]
795025156e [v11.1.x] DashboardScene: Fix dashboard clear when row repeating with non-existing variable (#89561)
DashboardScene: Fix dashboard clear when row repeating with non-existing variable (#89559)

---------

Co-authored-by: Sergej-Vlasov <sergej.s.vlasov@gmail.com>
(cherry picked from commit 7feea32602)

Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com>
2024-06-24 09:09:03 +02:00
Ivan Ortega Alba
b5eeb5fd92 [v11.1.x] Home: Remove extra padding for dashboard home (#89544)
Home: Remove extra padding for dashboard home (#89432)

(cherry picked from commit aea894191b)
2024-06-21 14:35:27 +03:00
grafana-delivery-bot[bot]
7910226cdf [v11.1.x] Scenes: Unset _changesWorker when change tracker is terminated (#89536)
Scenes: Unset _changesWorker when change tracker is terminated (#89495)

* Scenes: Unset _changesWorker when change tracker is terminated

Closes #89458

(cherry picked from commit d750af0c48)

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
2024-06-21 13:21:07 +02:00
grafana-delivery-bot[bot]
446501ffd1 [v11.1.x] Docs: Fixed broken links on Prometheus data source page (#89514)
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>
Fixed broken links on Prometheus data source page (#89485)
2024-06-20 13:44:13 -05:00
grafana-delivery-bot[bot]
fe6cc7bcb5 [v11.1.x] Notifications: Do not log email address in error message (#89502)
Notifications: Do not log email address in error message (#89314)

Do not log email address in error message

(cherry picked from commit c2c30c25ed)

Co-authored-by: William Wernert <william.wernert@grafana.com>
2024-06-20 20:12:48 +03:00
grafana-delivery-bot[bot]
0b55fd04bc [v11.1.x] Echo: Suppress errors from frontend-metrics API call failing (#89494)
Echo: Don't notify if PerformanceBackend errors when flushing (#89379)

(cherry picked from commit b43411631b)

Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
2024-06-20 19:28:20 +03:00
grafana-delivery-bot[bot]
b1a42dd55a [v11.1.x] Docs: Fix broken link (#89479)
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
Fix broken link (#89441)
2024-06-20 10:04:42 -04:00
grafana-delivery-bot[bot]
b97bf4c632 [v11.1.x] Scenes: Setting default_home_dashboard_path returns blank page and no controls (#89360)
Scenes: Setting default_home_dashboard_path returns blank page and no controls (#89304)

(cherry picked from commit 3fdc66d284)

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
2024-06-19 18:54:27 +03:00
grafana-delivery-bot[bot]
bbefb6a4eb [v11.1.x] Docs: correct tracesToLogsV2 example span time shifts (#89426)
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: jvaelen <jeroen.vaelen@gmail.com>
2024-06-19 16:07:45 +01:00
grafana-delivery-bot[bot]
9b283e650d [v11.1.x] Document Unix ms format for time type parsing (#89417)
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Oleg Zaytsev <mail@olegzaytsev.com>
2024-06-19 17:37:12 +03:00
Dominik Prokop
e4a82fedbd [v11.1.x] DashboardScene: Make Grafana usable when custom home dashboard is invalid (#89366)
DashboardScene: Make Grafana usable when custom home dashboard is invalid (#89305)

* DashboardScene: Make Grafana usable when custom home dashboard is invalid

* Tests

* Remove console.error

(cherry picked from commit ae04580e5f)
2024-06-19 11:38:12 +03:00
ismail simsek
d19a851353 [v11.1.x] InfluxDB: Fix sending range info on variable editor (#89386)
InfluxDB: Fix sending range info on variable editor (#89347)

send range info in range field

(cherry picked from commit e5a50a7db8)
2024-06-19 08:51:20 +02:00
grafana-delivery-bot[bot]
3531b585e3 [v11.1.x] Prometheus: Don't use match[] parameter if there is no metric (#89385)
Prometheus: Don't use match[] parameter if there is no metric (#89352)

don't use match[] parameter if there is no metric

(cherry picked from commit 76047d9365)

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-06-19 09:39:33 +03:00
grafana-delivery-bot[bot]
e62f0388da [v11.1.x] Fix: Portuguese Brazilian wasn't loading translations (#89375) 2024-06-18 20:23:50 +03:00
grafana-delivery-bot[bot]
6257deeae6 [v11.1.x] Alerting docs: update Introduction page (#89329)
Alerting docs: update Introduction page (#89155)

* Update Introduction page

* Update `How alerting works` image

* Update docs/sources/alerting/fundamentals/_index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/_index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Fix `alt` attribute

* alert instance are sent `in` notifications

* Clarify `Notification policies`

* Clarify Notification Policy responsibilities

* Edit existing image captions

* change `configure a contact point` to `choose a contact point`

* Update image `caption/alt`

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
(cherry picked from commit d0cf8956e2)

Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com>
2024-06-18 09:58:44 +02:00
grafana-delivery-bot[bot]
5ec9cd017b [v11.1.x] Plugin extensions: Return react components from usePluginComponents() (#89328)
Plugin extensions: Return react components from `usePluginComponents()` (#89237)

feat: return with react components from `usePluginComponents()`
(cherry picked from commit 1d6c9d4690)

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
2024-06-18 10:58:26 +03:00
grafana-delivery-bot[bot]
10e913ac79 [v11.1.x] alerting: notes on label matchers (#89326)
alerting: notes on label matchers (#89269)

* alerting: notes on label matchers

* routing clarification

* Update docs/sources/alerting/alerting-rules/templating-labels-annotations.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/notifications/templates.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
(cherry picked from commit 0cc67bb93d)

Co-authored-by: antonio <45235678+tonypowa@users.noreply.github.com>
2024-06-18 09:33:25 +02:00
grafana-delivery-bot[bot]
f96fb799a9 [v11.1.x] [DOC] Add feature toggle for admin page (#89310)
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>
2024-06-17 19:24:13 +01:00
grafana-delivery-bot[bot]
212fe5d179 [v11.1.x] Scenes: Be able to hide dashboard controls in Kiosk mode (#89306)
Scenes: Be able to show/hide dashboard controls in Kiosk mode (#88920)

(cherry picked from commit 0abe4fc709)

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
2024-06-17 19:15:47 +03:00
grafana-delivery-bot[bot]
36dbcbc78a [v11.1.x] Analytics: Fix ApplicationInsights integration (#89301)
Analytics: Fix ApplicationInsights integration (#89299)

change ApplicationInsights backend to use SystemJS to load

(cherry picked from commit 7bb883e375)

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-06-17 18:39:35 +03:00
grafana-delivery-bot[bot]
3418e01da5 [v11.1.x] Update index.md for Node, adding video to docs (#89076)
Update index.md for Node, adding video to docs (#88941)

(cherry picked from commit c98b7a712f)

Co-authored-by: Señor Performo - Leandro Melendez <54183040+srperf@users.noreply.github.com>
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-06-17 10:28:28 -04:00
grafana-delivery-bot[bot]
c4f072e4a9 [v11.1.x] DashboardScene: Emit meta analytic view event (#89266)
DashboardScene: Emit meta analytic view event (#89094)

* DashboardScene: Emit view event

* check fix

(cherry picked from commit ae80ed02e4)

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-06-17 09:38:03 +02:00
grafana-delivery-bot[bot]
ba5cc1b089 [v11.1.x] Fix typo in dashboard-variables destinations and also use Grafana Cloud docs if they exist (#89245)
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
Fix typo in dashboard-variables destinations and also use Grafana Cloud docs if they exist (#89244)
2024-06-17 08:11:59 +01:00
grafana-delivery-bot[bot]
34289b84fd [v11.1.x] Geomap: Fix data fit (#89248)
Geomap: Fix data fit (#89247)

(cherry picked from commit e53e6e7caa)

Co-authored-by: Drew Slobodnjak <60050885+drew08t@users.noreply.github.com>
2024-06-14 11:15:33 -07:00
grafana-delivery-bot[bot]
cdc07eb126 [v11.1.x] Use ref URIs with the reference style links (#89229)
Use ref URIs with the reference style links (#89204)

* Use ref URIs with the reference style links

If I remember correctly, the UI needs reference style links so it can substitute its own link destinations.
ref URIs work both inline and as the destination for reference style links.

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Remove unused ref URI

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Remove unused Data frames link

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
(cherry picked from commit f5468542ba)

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-06-14 18:05:29 +03:00
grafana-delivery-bot[bot]
1d165ba391 [v11.1.x] Docs: Fixes for 11.1 visualizations docs (#89194)
Docs: Fixes for 11.1 visualizations docs (#89193)

* Updated table wrapping and auto wording

* Fixed formatting to match other lists

* Fixed admonition styling and moved content out of note into body

* Added note re feature toggle

* Fixed typo

* Added comma

Co-authored-by: Adela Almasan <88068998+adela-almasan@users.noreply.github.com>

---------

Co-authored-by: Adela Almasan <88068998+adela-almasan@users.noreply.github.com>
(cherry picked from commit e807f4201b)

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-06-13 17:10:16 -04:00
grafana-delivery-bot[bot]
4690d88c52 [v11.1.x] BrowseDashboards: Prepend subpath to New Browse Dashboard actions (#89131)
BrowseDashboards: Prepend subpath to New Browse Dashboard actions (#89109)

(cherry picked from commit c58d09fd81)

Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
2024-06-13 15:55:20 +01:00
grafana-delivery-bot[bot]
7535629551 [v11.1.x] Inspect: Include only BOM char for excel files (#89146)
Inspect: Include only BOM char for excel files (#88994)

(cherry picked from commit 080adaf987)

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
2024-06-13 11:57:48 +03:00
grafana-delivery-bot[bot]
badcca2bb2 [v11.1.x] Alerting docs: fix example (#89150)
Alerting docs: fix example (#89132)

* Fix matching label example

* Update some wording

* Update docs/sources/alerting/fundamentals/notifications/notification-policies.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/notifications/group-alert-notifications.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Minor Timing options summary clarification

* Clarify `Disable grouping`

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
(cherry picked from commit 35fba3833b)

Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com>
2024-06-13 10:12:36 +02:00
grafana-delivery-bot[bot]
96ba44c802 [v11.1.x] DashboardScene: Fixes issue removing override rule (#89136) 2024-06-13 09:42:58 +02:00
grafana-delivery-bot[bot]
37b9dc0a37 [v11.1.x] @grafana/data: Introduce new getTagKeys/getTagValues response interface (#89120)
@grafana/data: Introduce new getTagKeys/getTagValues response interface (#88369)

* @grafana/data: Introduce new getTagKeys/getTagValues response interface

(cherry picked from commit 207672365a)

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
2024-06-12 17:37:08 +03:00
grafana-delivery-bot[bot]
9bfa4a6ce6 [v11.1.x] Alerting docs: Update Timing Options (#89105)
Alerting docs: Update Timing Options (#89036)

* first wip

* Complete changes

* Update docs/sources/alerting/fundamentals/notifications/group-alert-notifications.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/notifications/group-alert-notifications.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/notifications/group-alert-notifications.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/notifications/group-alert-notifications.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/notifications/group-alert-notifications.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/notifications/group-alert-notifications.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/notifications/group-alert-notifications.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/notifications/group-alert-notifications.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/notifications/group-alert-notifications.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/notifications/group-alert-notifications.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Edit sentence refering the previous example

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
(cherry picked from commit 57c9207a74)

Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com>
2024-06-12 11:14:00 +02:00
grafana-delivery-bot[bot]
5c6f18a18b [v11.1.x] Alerting docs: update Introduction > Notification policies (#89103)
Alerting docs: update `Introduction > Notification policies` (#88656)

* Alerting docs: Notification policies and grouping

* Update docs/sources/alerting/fundamentals/notifications/group-alert-notifications.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/notifications/group-alert-notifications.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/notifications/group-alert-notifications.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/notifications/notification-policies.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/notifications/notification-policies.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Change `alt` text in a diagram

* Clarify `siblings` and `child` policies

* Fix spelling error

* minor change

* Rewrite routing

* Update docs/sources/alerting/fundamentals/notifications/notification-policies.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/notifications/notification-policies.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Rewrite Routing

* extend routing

* Minor `Group by` example

* Clarify how Grafana groups alerts by the alert rule

* Skip bold style for `group` options

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
(cherry picked from commit ee75fc3852)

Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com>
2024-06-12 10:58:00 +02:00
Isabel Matwawana
cad1d4541b [v11.1.x] Added Grafana Play Links to Panel visualization docs (#89078)
Added Grafana Play Links to Panel visualization docs (#88995)

* Update index.md on Node panels to Grafana Play link

* Update index.md add Traces docs link to Grafana Play

* Update index.md News documentation link to Grafana Play

* Update index.md Alert list documentation link to Grafana Play

* Update index.md Alert list fixed missing link

* Update index.md Fixed title

* Update index.md Trying code fix

* Ran prettier command

* Matched link text to dashboard titles

* Replaced URL with ref URI key

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Isabel Matwawana <isabel.matwawana@grafana.com>
(cherry picked from commit 404617b33d)

Co-authored-by: Señor Performo - Leandro Melendez <54183040+srperf@users.noreply.github.com>
2024-06-11 17:03:05 -04:00
grafana-delivery-bot[bot]
36dd8f50de [v11.1.x] feat: Updated whats-new-in-v11-0.md with release video (#89077)
feat: Updated whats-new-in-v11-0.md with release video (#87953)

Update whats-new-in-v11-0.md

Grafana 11 release video added.

(cherry picked from commit 465efbf802)

Co-authored-by: Jay Clifford <45856600+Jayclifford345@users.noreply.github.com>
2024-06-11 16:55:04 -04:00
grafana-delivery-bot[bot]
1d6d252e1d [v11.1.x] Docs: Updates to the Grafana enterprise data source intro page (#89069)
Docs:  Updates to the Grafana enterprise data source intro page (#89065)

removed a dupe, deprecated data source and cleaned up a page name

(cherry picked from commit 59fbc0d9e3)

Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>
2024-06-11 14:23:43 -05:00
grafana-delivery-bot[bot]
92ba78cd95 [v11.1.x] Alerting: Fix rule storage to filter by group names using case-sensitive comparison (#89007)
Alerting: Fix rule storage to filter by group names using case-sensitive comparison (#88992)

* add test for the bug
* remove unused struct
* update db store to post process filters by group using go-lang's case-sensitive string comparison

--------

Co-authored-by: Alexander Weaver <weaver.alex.d@gmail.com>
(cherry picked from commit d4b0ac5973)

Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
2024-06-11 12:04:39 -04:00
grafana-delivery-bot[bot]
db381f3afd [v11.1.x] DashboardScene: Fixes lack of re-render when updating field override properties (#89011)
DashboardScene: Fixes lack of re-render when updating field override properties (#88796)

* DashboardScene: Fixes lack of re-render when updating field override properties

* Added unit test

(cherry picked from commit db25886f9c)

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-06-11 11:35:32 +03:00
grafana-delivery-bot[bot]
e20392c206 [v11.1.x] Transformations: Keep original field.labels.name when joining frames (#89012)
Transformations: Keep original `field.labels.name` when joining frames (#88873)

(cherry picked from commit 89a0bec208)

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-06-11 10:19:59 +02:00
Adela Almasan
52fe19249e VizTooltip: Fix heatmap histogram display (#88945) 2024-06-08 02:33:49 +03:00
Isabella Siu
114a136378 CloudWatch: Fix labels for raw metric search queries (#88943) 2024-06-07 17:37:19 -04:00
Diego Augusto Molina
7ca3ec7518 Infra: fix data race in usagestats service (#88881)
fix data race
2024-06-07 17:52:21 -03:00
Kyle Cunningham
e1530224dd Table Panel: Add docs for text wrapping (#88949)
Add docs for text wrapping
2024-06-08 03:51:09 +07:00
Todd Treece
22989acf95 K8s: Improve response writer error handling (#88926)
---------

Co-authored-by: Diego Augusto Molina <diegoaugustomolina@gmail.com>
2024-06-07 16:10:02 -04:00
Adela Almasan
d608ef4bf3 Docs: Update XY Chart docs (#88918) 2024-06-07 14:49:32 -05:00
Adela Almasan
4b55776256 Docs: Add maxWidth to tooltip docs (#88932) 2024-06-07 14:36:48 -05:00
Dave Henderson
81019f1669 chore(ci): Lint only pkg/ code, and lint all Go modules (#88940)
Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
2024-06-07 13:54:47 -04:00
Marcus Efraimsson
4a97ff45fe API Server: Enhanced profiling with godeltaprof (#88939) 2024-06-07 19:39:45 +02:00
William Wernert
63e9969c1b Alerting: Recording rule mapping logic for data frames to Prometheus metrics (#88550)
* Add stub Prometheus writer with mapping logic

* Add tests
2024-06-07 20:00:22 +03:00
lean.dev
330da7916d Chore: Add unit test for cloudmigration package (#88868) 2024-06-07 13:46:19 -03:00
Dave Henderson
3a8b59f5e8 chore(ci): Run golangci-lint in GitHub Actions (#88916)
* chore(ci): Run golangci-lint in GitHub Actions

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

* chore(ci): Remove lint-backend step from Drone

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

---------

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
2024-06-07 12:30:31 -04:00
Alexander Weaver
58fdb24b0b Alerting: Recording rules appear as type=recording in Prometheus API + better abstraction for type (#88805)
* Wire status through to prom API

* Regenerate swagger
2024-06-07 11:24:06 -05:00
Sonia Aguilar
b761153812 Alerting: Fix permissions for silences list view (#88908) 2024-06-07 19:19:28 +03:00
Kyle Cunningham
8aa1bbe27c Table Panel: Enable text wrapping (#86895)
* Calculate row height

* Move things around

* Update getItemSize to use text bounding box

* Update types

* Cleanups and reminders

* Calculate line height

* Update line height calculation

* Remove debugging

* Add cell option editing

* Prettier

* Use field configured for text wrapping

* Add TODO

* Make sure column configuration is correct

* Update height heuristic and hover behavior

* Disable overflow on hover with text wrapping

* Update heuristic

* Clean things up

* Color background cell options

* Fix tests

* Prettier

* React deps

* Remove old hook dep

* Fix type errors

* Update label and description for editor

* Fix non-wrapped case

* Make sure color background works

* Prettier

* Address review comments

* fix prettier

* Add heuristic for field sizing

* Fix up logic

* Prettier

* Fix test

* Oh prettier 🙈

* Don't wrap text on non-string fields

* Add wrapping to color text cell

* Prettier

* Fix option not showing for auto cell type

* Move longest field guessing into function

* Clean things up

* Add tests

* Make sure text won't flake

* Prettier

* Remove spurious import

* Ignore any in this case

* Add alpha label

* Prettier

* Fix typecheck

* Fix crash when sampling when there are undefined records

* Update heuristic to take into account long strings

* Prettier

* Update scale factors

* Update field index selection

* Prettier

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-06-07 23:15:33 +07:00
Drew Slobodnjak
694499ae6d StateTimeline: Fix bug with state labels using stale y position cache during panel resize (#88818)
* StateTimeline: Check for change in height

* probably it!

---------

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-06-07 09:12:25 -07:00
Levente Balogh
ebe42e1ada Plugins: Allow apps to expose components. Update the extensions API. (#87236)
* feat: introduce exposable components and update the public APIs

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>

* tests: fix the tests for `usePluginComponent()`

I broke them when I wrapped the component with the PluginContextProvider which fetches the plugin metadata.

* fix: typo

---------

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2024-06-07 18:05:00 +02:00
Fayzal Ghantiwala
27a791db12 Alerting: Update dependency owners in go.mod (#88928)
Update codeowners in go.mod
2024-06-07 16:50:13 +01:00
Yuri Tseretyan
32ea1801aa Alerting: Support AWS SNS integration in Grafana (#88867) 2024-06-07 11:49:49 -04:00
Alexander Weaver
f1dc63565e Alerting: Fix go-swagger extraction and several embedded types from Alertmanager in Swagger docs (#88879)
Drop redundant swagger model comments
2024-06-07 10:47:47 -05:00
Marcus Efraimsson
40931b6da6 Tracing: Enable traces to profiles (#88896) 2024-06-07 16:58:24 +02:00
Piotr Jamróz
c9271edfa1 Feature Toggles: Validate if a GA toggle is enabled or not explicitly (#88277) 2024-06-07 16:21:54 +02:00
Gilles De Mey
1be5c52a35 Alerting: Update SNS description mistakes (#88832)
update SNS description mistakes
2024-06-07 15:32:19 +02:00
Eric Leijonmarck
39bd13f877 User: add second migration for lowercasing login/email of users (#88915) 2024-06-07 15:07:14 +02: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
Karl Persson
f3efd95bb4 Auth: Add org to role mappings support to Google integration (#88891)
* Auth: Implement org role mapping for google oauth provider

* Update docs

* Remove unused function

Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
2024-06-07 14:07:35 +02:00
Usman Ahmad
5095ea84b2 added youtube video link (#88901)
* added youtube video link

* Update index.md
2024-06-07 12:42:19 +02:00
Ashley Harrison
c6d07194cc Chore: Migrate DashboardRow SCSS styles (#88768)
migrate dashboard-row styles
2024-06-07 11:31:58 +01:00
Sonia Aguilar
372c9d46d5 Alerting: Fix possible undefined value in the form not being protected (#88860)
Fix possible undefined value in the form not being protected
2024-06-07 13:29:09 +03:00
Zoltán Bedi
a1851b4c0a SQL: change buttons aria-label to title (#88744) 2024-06-07 11:40:11 +02:00
Steve Simpson
56ea7fd2c4 Alerting: Update grafana/alerting (#88888) 2024-06-07 10:07:23 +02:00
Jack Westbrook
036c878843 Plugins: Improve frontend loader cache (#87488)
* do it

* set empty child version to parent version

* feat(plugins): use pluginId for loader cache keys

* feat(plugins): apply caching to all js and css files systemjs loads

* remove old code and add comment

* test(plugins): update systemjs hooks tests in line with better caching

* test(plugins): wip - comment out failing backend loader tests

* fix tests and improve comment

* Update public/app/features/plugins/loader/cache.test.ts

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>

---------

Co-authored-by: Will Browne <will.browne@grafana.com>
Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
2024-06-07 10:03:41 +02:00
github-actions[bot]
897b81e566 I18n: Download translations from Crowdin (#88851)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-07 06:35:14 +00:00
Dave Henderson
c931a44503 storage: Avoid panic when no previous versions in history (#88880)
Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
2024-06-06 21:33:08 -04:00
Yuri Tseretyan
003e3efce9 Alerting: Update mute timings provisioning API to support optimistic locking (#88731)
* add version to time-interval models
* set time interval fingerprint as version
* update to check provided version
* delete to check if version is provided in query parameter 'version'
* update integration tests
* update specs
2024-06-06 18:06:37 -04:00
Alexander Weaver
a2e21d61f8 Alerting: Remove dead evalRunning guard in rule routine (#88312)
Remove dead guard
2024-06-06 16:15:01 -05:00
ismail simsek
56bf666b0c Chore: Bump promlib to v0.0.6 (#88876)
bump promlib v0.0.6
2024-06-06 22:13:01 +02:00
Steve Simpson
acbb6a1119 Alerting: Update CODEOWNERS. (#88872)
Assigns ownership of Alerting backend components to grafana/alerting-backend, due
to deprecation of the existing grafana/alerting-backend-product team.
2024-06-06 21:51:54 +02:00
Isabella Siu
cd15e9732d Cloudwatch: Use the metric map from grafana-aws-sdk (#88733) 2024-06-06 21:25:54 +03:00
Adela Almasan
79f9d529d3 VizTooltip: Format header value (#88726) 2024-06-06 13:08:05 -05:00
William Wernert
d359591dac Alerting: Support recording rule struct in provisioning API (#87849)
* Support record struct in provisioning API

* Update api spec

* Use record field

* Restrict API endpoints following toggle

* Fix swagger spec

* Add recording rule validation to store validator
2024-06-06 21:05:02 +03:00
ismail simsek
808cf75ff8 InfluxDB: Use json-iterator package for json operations (#88562)
* return error early

* enable gzip between grafana and influxdb

* use json-iterator package for json operations

* revert gzip changes

* update test

* go mod tidy
go work sync
2024-06-06 20:14:53 +03:00
Dave Henderson
e21d357d67 chore: Updating linter, fixing some new warnings (#88863) 2024-06-06 13:01:27 -04: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
Adela Almasan
3ad03d869d VizTooltip: Allow setting the maxWidth option (#88652) 2024-06-06 11:20:58 -05:00
David Harris
f8f44f28d3 chore: update mssql readme (#88859)
Adds better docs link
2024-06-06 17:18:43 +01:00
Torkel Ödegaard
bdfa96a6d3 DashboardScene: Fixes inspect with transforms issue (#88843)
* DashboardScene: Fixes inspect with transforms issue

* Update
2024-06-06 18:15:23 +02:00
Diego Augusto Molina
ae84c5fef9 Unified Storage: Fix Entity Server unconditionally starting (#88857)
fix Entity Server unconditionally starting
2024-06-06 12:17:46 -03:00
Josh Hunt
be96971289 Keybinds: Add wait to e2e test to hopefully mitigate flakiness (#88854)
Revert "remove anti-patterns"

This reverts commit 55eb0fa32a.
2024-06-06 17:55:15 +03:00
Jack Baldry
62fc451f7a [docs/sources/fundamentals] Replace docs/reference shortcode with ref URIs (#88080) 2024-06-06 15:42:40 +01:00
Joao Silva
c2dd44bc5a AppChrome: Add display flex to prevent multiple scrollbars (#88512) 2024-06-06 15:34:28 +01:00
renovate[bot]
504f64e248 Update opentelemetry-js monorepo (#88850)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-06 15:31:16 +01:00
Will Browne
7d8722b561 API server: Add shutdown func to interface (#88827)
add shutdown func to interface
2024-06-06 15:18:54 +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
Timur Olzhabayev
9704186017 Docs: Updating documentation for angular_support_enabled (#88840)
fixing docs
2024-06-06 07:15:21 -07:00
Bogdan Matei
8d36949f61 Scopes: UI Improvements (#88026) 2024-06-06 16:00:56 +02:00
renovate[bot]
d88f2734ae Update dependency type-fest to v4.19.0 (#88844)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-06 14:44:52 +01:00
Gilles De Mey
cf6a2b9f39 Alerting: Clarify that we are adding subling policies (#88829)
clarify that we are adding subling policies
2024-06-06 15:42:38 +02:00
Gilles De Mey
755fcc9838 Alerting: Update search examples for notification policies (#88830)
update search examples for notification policies
2024-06-06 15:42:26 +02:00
Timur Olzhabayev
8690e97c92 Chore: disable proxy trailing slash keep by default (#88842)
disable proxy trailing slash keep by default
2024-06-06 16:28:11 +03:00
antonio
000b5dd6ea docs: alerting: clarify which panels support alerts (#88756)
* alerting: clarify which panels support alerts

* changed note placement

* small change to link

* added links

* Update docs/sources/alerting/alerting-rules/create-grafana-managed-rule.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/alerting-rules/create-mimir-loki-managed-rule.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/panels-visualizations/visualizations/_index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/panels-visualizations/visualizations/time-series/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/panels-visualizations/visualizations/time-series/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-06-06 15:19:59 +02:00
Timur Olzhabayev
1909ad6fa8 Chore: Removing editor.html from angular patterns (#88845)
Removing editor.html from angular patterns
2024-06-06 16:12:51 +03:00
Dave Henderson
ca1379bad3 chore: A few updates for the pkg/build/wire fork (#88813)
* chore: A few updates for the pkg/build/wire fork

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

* chore: run go work sync

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

---------

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
2024-06-06 16:09:27 +03:00
brendamuir
beb8397be8 Alerting docs: adds notification policy update (#88515)
* Alerting docs: adds notiification policy update

* Adds insert below or above

* ran prettier

* few grammar adds

* Changes to child policy terminology

* adds sibling terminology

* ran prettier

* updates with new terminology

* updates child policy info

* corrects typo

* ran prettier

* changes description for child policy
2024-06-06 14:59:04 +02:00
renovate[bot]
bc7a8d6dfa Update dependency @grafana/scenes to v4.26.3 2024-06-06 12:48:28 +00:00
renovate[bot]
c6720f1c06 Update dependency nx to v19.2.0 (#88833)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-06 14:10:36 +02:00
Josh Hunt
51b3116730 Keybinds: E2E tests (#88752)
* Attempt at a keybinds e2e test

* another one, thank you

* polish e2e tests, remove console.log

* an extra test

* remove anti-patterns
2024-06-06 14:10:11 +03:00
github-actions[bot]
2cc59f1cb3 I18n: Download translations from Crowdin (#88810)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-06 13:38:47 +03:00
renovate[bot]
b0e73590ef Update dependency eslint-plugin-jsdoc to v48.2.8 2024-06-06 10:22:39 +00:00
renovate[bot]
a11ef646e4 Update dependency @grafana/scenes to v4.26.2 2024-06-06 10:03:21 +00:00
Joao Silva
a23174849c TimePicker: Fix bug where recent timeranges is cut off (#88795) 2024-06-06 10:49:59 +01:00
Matias Chomicki
a21a9b9c6c Loki: Kick start your query now applies templates to the current query (#87658)
* Kick start your query: keep pipe operations in the original query

* QueryPatternsModal: define keep operations from the operations list

* QueryPatternsModal: resolve deprecation

* QueryPatternsModal: use the correct import

* QueryPatternsModal: use category instead of order rank

* QueryPatternsModal: add unit test case

* Chore: change button cta
2024-06-06 12:47:17 +03:00
Karl Persson
d3b06f09ae Users: remove unused store function (#88784) 2024-06-06 11:43:51 +02:00
renovate[bot]
7e2305418a Update dependency stylelint to v16.6.1 (#88792)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-06 12:42:33 +03:00
Victor Marin
c79ea234db Simplify lib panel creation in dashboard (#88681)
simplify lib panel creation in dashboard
2024-06-06 11:37:44 +03:00
Misi
4f2a9a47f3 Auth: Add org to role mappings support to Okta integration (#88770)
* Add org mapping support to Okta

* Update docs and configs

* Prettier docs

* Apply suggestions from code review

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

* Improve tests

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2024-06-06 10:35:06 +02:00
Victor Marin
50b3269ef0 Dashboard Scenes: Add replace lib panel functionality (#87109)
* add replace lib panel functionality

* refactor

* locales
2024-06-06 11:34:45 +03:00
Ryan Crutchfield
8fb12cd63d Remove invisible character in SAML certificate command (#87057)
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-06-06 07:26:13 +01:00
Andre Pereira
277067ac9d AnnotationsPlugin2: Implement support for rectangular annotations in Heatmap (#88107)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-06-05 16:48:37 -05:00
Marcus Efraimsson
2403665998 Chore: Remove legacydata package (#88790)
* Chore: Remove legacydata package

* remove unused dependency

* sdk v0.234.0
2024-06-05 22:31:06 +02:00
ismail simsek
08276bd8e7 InfluxDB: Revert calculation of maxPointsEnforced value (#88809)
revert calculation of maxPointsEnforced
2024-06-05 21:43:04 +02:00
ismail simsek
a87c155c06 Chore: Return influxdb query error early before parsing the result (#88549)
return error early
2024-06-05 21:36:13 +02:00
Tom Ratcliffe
170d476bdc Alerting: Add RBAC logic for silences creation (#87322)
* Remove role requirement for editing silence (instead handled by silence editor displaying error)

* Send query params for metadata/access control silence logic

* Add new access control types to enum

* Add folder-specific checks for silences

* Remove filtering in alert manager picker

* fix flakey rule viewer test and update permissions helper

* Use `returnTo` in rule viewer page

* Fix incorrect display of duration

* Clean up some mock server behaviour in rule details tests

* Tweak styles for silences alerts table

* Remove alertmanager picker from silences drawer

* Add error if user cannot edit a silence

* Show alert rule name in silences table and consume RBAC logic

* Update mocks to include RBAC access control logic

* Update silences tests

* Update silences type to include access control info

* Update comment for missing alertmanager

* Update mock handlers and query param logic

* Tweak query params again

* Update access control mock

* Revert AM picker fix as user may not have access to Grafana AM

* Swap ternary order

* Change text for no alert rule targeted

* Don't show error alert from RTKQ query and remove alert instance preview in case of error

* Add missing translations

* Fix test adding missing mock for getting alert rule

* Add missing translations in SilencesTable

* Add translations autogenerated files

* fix allowing edit silence in external alert manager

---------

Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>
Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
2024-06-05 15:09:26 -04:00
Dave Henderson
20c90ff60d Chore: bump Go to 1.22.4 (#88794)
* chore: bump Go to 1.22.4

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

* use go-version-file for ephemeral instances workflows too

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

---------

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
2024-06-05 14:29:27 -04:00
owensmallwood
1059441ec6 GRPC Service: Use native histogram when enabled (#88804)
* use native histogram when enabled

* enable native histograms permanently for grpc service histogram
2024-06-05 12:25:09 -06:00
Diego Augusto Molina
5fc580b401 Unified Storage: Testing For Fix Create, Update and Delete wrt Resource Versions (#88568)
Add testing harness
2024-06-05 15:18:33 -03:00
Diego Augusto Molina
6fcd7d9e03 Unified Storage: Fix Create, Update and Delete wrt Resource Versions (#88183)
* add sqltemplate utilities, improve tests and documentation

* bunch of things

* remove unnecessary message

* add queries

* add queries

* add queries

* add folders support

* fix diff

* fix linters

* fix diff

* fix linters

* fix linters

* fix typo

* fix linters

* fix linters

* fix linters

* several fixes

* several fixes

* temporarily disable k8s integration tests for Entity Server

* postpone some tests

* postpone documentation changes

* Fix bug in create

* improve error reporting

* fix PostgeSQL parameters

* fix MySQL sqlmode

* fix MySQL-5.7

* reduce but document the number of database connection options

* remove unused code and improve docs
2024-06-05 14:23:32 -03:00
Alexander Weaver
cbe7521a56 Alerting: Upgrade grafana/alerting (#88803)
* upgrade grafana/alerting

* Go work sync
2024-06-05 20:23:00 +03:00
Alexander Weaver
820ee6e9db Alerting: Make all in api generator tooling now actually makes all (#88793)
* Make all now actually makes all

* Clean depends on clean-go
2024-06-05 11:52:31 -05:00
Fayzal Ghantiwala
80f54778f3 Alerting: Add option to use Redis in cluster mode for Alerting HA (#88696)
* Add config option to use Redis in cluster mode

* Use UniversalOptions
2024-06-05 17:02:25 +01:00
Carl Bergquist
16cc75b02c Scopes: Add Handler for returning dashboards related to a list of scopes. (#87758)
- Adds a find endpoint to return dashboard bindings that match any of the scopes. For example /apis/scope.grafana.app/v0alpha1/namespaces/default/find/scope_dashboard_bindings?scope=s1&scope=s2
- Updates the ScopeNode find endpoint to a new path, /find/scope_node_children , makes the key "items" for all find endpoints (instead of mix of "found" and "items"), and makes the list item type a ScopeNode instead of its own type.
- Updates kubectl get commands to return more information about scopes, scopenodes, and scopedashboard bindings to display more fields in table output

---------

Signed-off-by: bergquist <carl.bergquist@gmail.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: Kyle Brandt <kyle@grafana.com>
Co-authored-by: Todd Treece <todd.treece@grafana.com>
2024-06-05 11:47:36 -04:00
Ivana Huckova
023857625a Elasticsearch: Remove enableElasticsearchBackendQuerying feature toggle (#88668)
* wip

* Fix newly introduced any

* Remove toggle

* Remove unused code in LegacyQueryRunner
2024-06-05 17:03:29 +02:00
renovate[bot]
8dcbd74803 Update dependency rc-drawer to v7.2.0 (#88785)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-05 16:03:06 +01:00
Andreas Christou
d6a259f110 Azure: Update e2e image (#88778)
* Update e2e image

* Comment for testing
2024-06-05 08:35:09 -06:00
Ryan McKinley
41e0430f83 K8s/Dashboards: Add frontend api to switch between implementations (#88632) 2024-06-05 17:34:23 +03:00
Karl Persson
f28905f8c4 Auth: Add org to role mappings support to Gitlab integration (#88751)
* Conf: Add org_mapping and org_attribute_path to github and gitlab conf

* Gitlab: Implement org role mapping

* Update docs
---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2024-06-05 16:15:53 +02:00
renovate[bot]
1ceb9e8e9d Update babel monorepo to v7.24.7 2024-06-05 14:14:01 +00:00
Ashley Harrison
2297687ae1 Chore: Ensure all react-transition-group animations use nodeRef (#88604)
* ensure all react-transition-group animations pass nodeRef

* clone children instead of wrapping in div

* remove div wrapper

* revert back to div
2024-06-05 15:01:50 +01:00
Ivana Huckova
a2f7e208fd Elasticsearchl: In version check, include / (#88779)
Elasticsearchl: In version check, include /
2024-06-05 15:54:04 +02:00
renovate[bot]
0188fc3e1f Update dependency rc-cascader to v3.26.0 (#88777)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-05 14:52:25 +01:00
Marcus Efraimsson
0fffa31931 Chore: Remove unused code in legacydata package (#88772) 2024-06-05 15:37:32 +02:00
Dave Henderson
df784917e4 Alerting: Improve performance of tupleLablesToLabels function (#88736)
* Alerting: Improve performance of tupleLablesToLabels function

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

* use %s for string rather than %v

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>

---------

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
2024-06-05 16:19:09 +03:00
renovate[bot]
3a6034b58e Update dependency prettier to v3.3.1 (#88771)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-05 14:18:22 +01:00
renovate[bot]
a58ac462c1 Update dependency knip to v5.17.4 (#88759)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-05 15:18:39 +03:00
Dmitry Bashkatov
17525ad43f Logs: Added support for numeric log levels (#87366)
* logs: add support for numeric loglevels

* Log types: add a numeric level map to LogLevel

* getLogLevelFromKey: adapt to support numeric levels

* Formatting

* getLogLevelFromKey: accept strings or numbers

---------

Co-authored-by: Matias Chomicki <matyax@gmail.com>
2024-06-05 13:56:36 +02:00
Carl Bergquist
f262880b68 Scopes: Add field to disable selecting multiple scope under a ScopeNode (#88767)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2024-06-05 14:43:22 +03:00
Marcus Efraimsson
fe3e5917f1 Plugins: Preserve trailing slash in plugin proxy (#86859)
* Plugins: Preserve trailing slash in plugin proxy

* enable toggle by default
2024-06-05 13:36:14 +02:00
Andreas Christou
17f03882d4 Azure: Update resource group (#88690)
Update azure e2e tests
2024-06-05 12:02:46 +01:00
Gilles De Mey
33d4e59ffb Alerting: Use folder_uid instead of file for Grafana managed alert rules (#88497) 2024-06-05 12:46:23 +02:00
renovate[bot]
cd5f485df7 Update dependency tslib to v2.6.3 2024-06-05 10:08:51 +00:00
Gabriel MABILLE
b1520e93f1 Fix: Regenerate token on failed encryption/decryption (#88732)
* Add function to rotate the extsvc token

* Recover from failed token decryption

* add log

* Remove error check

* Log outside error
2024-06-05 11:56:54 +02:00
renovate[bot]
4443438fab Update dependency @types/node to v20.14.2 2024-06-05 09:48:36 +00:00
Matias Chomicki
ec9aecd82b Loki: remove query formatting (#88636)
* Loki: remove query formatting

* Loki formatting: remove feature flag

* chore: remove test

* Formatting
2024-06-05 12:46:28 +03:00
renovate[bot]
9bec35563a Update dependency @grafana/plugin-e2e to v1.3.2 2024-06-05 09:20:09 +00:00
renovate[bot]
b101b37e2c Update dependency @grafana/lezer-logql to v0.2.4 (#88745)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-05 09:53:23 +01:00
renovate[bot]
45336105b2 Update dependency glob to v10.4.1 (#88717)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-05 09:32:39 +01:00
Ryan McKinley
b640b6e8d1 K8s: Improve k8s dashboard query (#88629) 2024-06-05 11:21:51 +03:00
Karl Persson
7bc7ae2e8c Docs: Update feature toggle information for generic oauth (#88740) 2024-06-05 09:55:51 +02:00
Ieva
e653003c73 Docs: Document the UIDs of basic roles (#88742)
document the UIDs of basic roles
2024-06-05 10:30:07 +03:00
Torkel Ödegaard
e735573852 DashboardScene: Fixes issue with some query editors to not adapt to width changes (#88718)
DashboardScene: Fixes issue with panel editor causing moncao query editors to not adapt to width changes
2024-06-05 08:14:45 +02:00
Ryan McKinley
71be5c6eb4 K8s: Remove action metadata key (#88591)
* remove action

* remove action

* remove action

* fix test
2024-06-05 07:37:36 +03:00
Leonardo Boleli
d83818f8cc Cloudwatch: Update AWS DynamoDB Metrics (#88418) 2024-06-04 15:22:15 -04:00
Santiago
9f9928d41a Alerting: Update grafana/alerting (#88363)
* Alerting: Update grafana/alerting

* make tests pass by implementing yaml unmarshallers and deleting fields with omitempty in their yaml tags

* go mod tidy

* fix tests by implementing not calling GettableApiAlertingConfig.UnmarshalYAML from GettableApiAlertingConfig.UnmarshalJSON

* cleanup, reduce diff

* fix more tests

* update grafana/alerting to latest commit, delete global section from configs in tests

* bring back YAML unmarshaller for GettableApiAlertingConfig

* update alerting package dependency to point to main

* skip test for sns notifier
2024-06-04 20:29:37 +02:00
Ihor Yeromin
618c51e193 Stat: Cut the top of the chart issue (#88640)
* fix(stat): update config on range change
2024-06-04 19:09:10 +02:00
Ryan Watts
f1dce0c7d7 XYChart: Use same auto-ranging logic for X and Y axes (#88584) 2024-06-04 11:58:59 -05:00
Matias Chomicki
cd3dab2736 Logs: Infinite scrolling in Explore enabled by default (#87493)
Logs: enable infinite scrolling
2024-06-04 18:23:20 +02:00
github-actions[bot]
9bbf96d9e6 I18n: Download translations from Crowdin (#88676)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-04 19:16:36 +03:00
Matias Chomicki
1cfb21a74c Logs: improve deduplication supporting code and fix duplicated frames (#88716)
* Logs: change refId approach to deduplicate infinite scrolling rows

* Chore: update tests

* chore: add comment

* Prettier
2024-06-04 19:09:33 +03:00
Jack Westbrook
a1d41a8932 Docs: Put back section on how to work with frontend plugins (#88713)
revert(developer-guide): put back section on how to work with frontend plugins in monorepo
2024-06-04 17:57:22 +02:00
renovate[bot]
404de83b06 Update dependency eslint-webpack-plugin to v4.2.0 (#88715)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-04 18:44:58 +03:00
renovate[bot]
93b223f1e9 Update dependency esbuild-plugin-browserslist to ^0.12.0 (#88705)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-04 16:27:12 +01:00
Andreas Christou
f787418e4b AzureMonitor: Fix bug detecting app insights queries (#88572)
Make regexp case insensitive
2024-06-04 16:16:31 +01:00
Marcus Efraimsson
0af2931672 Plugins: Don't forward cookies for app plugins (#88663) 2024-06-04 16:55:54 +02:00
renovate[bot]
aaf95f7a08 Update dependency centrifuge to v5.2.0 (#88699)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-04 15:28:39 +01:00
Kyle Hounslow
36c66e3e94 Update proxy/index.md (#88261)
* Update index.md

Specify proxy support is for SOCKS5 in Title. So it is clear this is not for TCP or HTTP proxy

* update title to match header
2024-06-04 09:08:53 -05:00
Diego Augusto Molina
62b3983d08 fix bug in Makefile enabling Go Race Detector in make run (#88687)
fix bug in Makefile that always enables Go Race Detector when run with make run
2024-06-04 11:02:09 -03:00
renovate[bot]
d4c28aa757 Update dependency @types/react-highlight-words to v0.20.0 (#88693)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-04 14:54:22 +01:00
Andrej Ocenas
048194597f Explore: Align time filters properly to day boundaries in query history (#88498) 2024-06-04 15:04:36 +02:00
renovate[bot]
b8cd5bb57c Update dependency @types/node to v20.14.1 (#88689)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-04 13:58:08 +01:00
Yuri Tseretyan
a63ef42816 Alerting: Mute Timing service to prevent changing provenance status to none (#88462)
* use relaxed validation to not introduce breaking changes for now but to be able to use the service
in non-provisioning APIs.
2024-06-04 08:54:33 -04:00
Mihai Doarna
25c57f21cd SSO: Add the new role value fields for SSO SAML strategy (#88561)
added the new role value fields for SSO SAML strategy
2024-06-04 15:47:27 +03:00
Mihai Doarna
6b7e4b223d Docs: Update the SAML role mapping docs with the new fields added (#88529)
* mention the auto_assign_org_role in saml role sync

* add role_values_viewer to docs
2024-06-04 15:45:37 +03:00
Sarah Zinger
4d002d85f9 Cloudwatch Logs: Fix bug where we did not return errors to user (#87190) 2024-06-04 08:43:36 -04:00
Sonia Aguilar
2090270a13 Gops: Fix data field in incidents query (#88682)
Remove data field in incidents query
2024-06-04 14:42:56 +02:00
renovate[bot]
ee157949e4 Update dependency @grafana/scenes to v4.26.0 (#88677)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-04 13:29:20 +01:00
Joey
a52f99246f Tempo: Send current filters when retrieving tags for AdHocFilters (#88270)
* Send current filters when retrieving tags

* Tests

* Syntax update

* Update if
2024-06-04 13:20:06 +01:00
renovate[bot]
66bc0fa9e9 Update dependency nx to v19.1.2 2024-06-04 11:06:10 +00:00
renovate[bot]
de2d8fadcc Update dependency @grafana/plugin-e2e to v1.3.1 2024-06-04 10:38:46 +00:00
Laura Benz
adbb005d38 RestoreDashboards: Populate page (#88555)
* feat: add search input and filters

* feat: add state management v0

* feat: update search view and add to trash page

* refactor: fix some errors

* feat: page population

* feat: fix error

* Run betterer checks locally

* Run i18n abstraction

* refactor: clean up after merging main

* refactor: clean up after merging main

* Run i18n abstraction

* refactor: remove browse view
2024-06-04 12:08:18 +02:00
Fayzal Ghantiwala
b66cd7ef79 Alerting: Add filters for RouteGetRuleStatuses (#88295)
* Placeholder commit with rule_uid change

* Add new filters to grafana rule state API

* Revert type change

* Split rule_group and rule_name params

* remove debug line

* Change how query params are parsed

* Comment
2024-06-04 10:57:55 +01:00
github-actions[bot]
783aa1c0b4 I18n: Download translations from Crowdin (#88665)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-04 09:40:54 +00:00
Sven Grossmann
2fb63cd2e6 Loki: Fix editor history in wrong order (#88666) 2024-06-04 11:40:04 +02:00
Ashley Harrison
3f7017a471 Chore: Remove nestedFolderPicker toggle (#88660)
remove nestedFolderPicker toggle
2024-06-04 12:16:12 +03:00
renovate[bot]
de67734871 Update dependency @react-awesome-query-builder/ui to v6.5.2 (#88630)
* Update dependency @react-awesome-query-builder/ui to v6.5.2

* fix type errors

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-06-04 12:15:16 +03:00
Ashley Harrison
9f95841c45 Chore: Fix typo in lint rule file name (#88662)
rename file
2024-06-04 12:08:37 +03:00
Tobias Skarhed
4d4cfaefce Devenv: Longer provisioning update intervals (#88623)
* Change devenv provision updateinterval to one hour

* Update bulk-dashboards and bulk-folders

* Clear bulk-folders before creating new ones

* Update devenv/bulk-folders/bulk-folders.sh
2024-06-04 11:00:23 +02:00
Ryan McKinley
b02a5d6e07 FeatureFlags: Update creation timestamps (#88654) 2024-06-04 10:40:18 +02:00
Josh Hunt
407bbe1f4b Keybinds: Vendor Mousetrap (#88603)
* vendor mousetrap

* fix js lint errors

* name to .ts - start refactoring to typescript

* refactor Mousetrap to valid typescript

rename local functions/variables
update types of CallbackInfo
Specify MouseCallback and cleanup types

* Use vendored mousetrap

* use vendored mousetrap

* add globalBind, and remove dependency on external mousetrap

* Update public/app/core/services/keybindingSrv.ts

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

---------

Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com>
2024-06-04 09:35:19 +01:00
Ashley Harrison
1cb701c304 Chore: Move Switch SCSS to emotion/angular (#88553)
move switch scss to emotion/angular
2024-06-04 09:34:38 +01:00
Tobias Skarhed
799ae387ff Docs: Remove custom branding screenshot (#88657)
Update index.md
2024-06-04 10:34:17 +02:00
Pepe Cano
7372c446a4 Alerting docs: Specify Grafana alert rule evaluation (#88250)
* Alerting docs: Specify Grafana alert rule evaluation

* Mention alerts can display the same evaluation timestamp

* Specify `concurrent` behavior in alert rule evaluation

* Include a minor `Evaluation strategies` section
2024-06-04 10:31:21 +02:00
Sonia Aguilar
88a2485cc2 Alerting: Update translations in GrafanaEvaluationBehaviour component (#88638)
* Update translations

* Fix key in translations

* Interpolate point char in the Trans children text

* Use interpolation correctly in Trans component
2024-06-04 11:19:53 +03:00
github-actions[bot]
dca8ba7acd I18n: Download translations from Crowdin (#88658)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-04 08:18:10 +00:00
Oscar Kilhed
0f89f4b2d2 Grafana UI: stop input element of the react select component from overflowing and causing layout issues. (#88372)
* Grafana UI: stop input element of the react select component from overflowing the input container

* update snapshot since the css changed

---------

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-06-04 10:13:43 +02:00
Carl Bergquist
c99fe4f970 Scopes: Add DashboardTitle to scopedashboardbinding (#88609)
scopes: add title to scopedashboardbinding

Signed-off-by: bergquist <carl.bergquist@gmail.com>
2024-06-04 10:36:03 +03:00
Pepe Cano
3af72bdeee Alerting docs: fix Alertmanagers title (#88625) 2024-06-04 09:10:28 +02:00
Laura Benz
b6bd9e5352 Laura/refactor/rename trash section (#88617)
* refactor: move and rename page component

* refactor: change codeowners

* refactor: change naming in backend

* refactor: change wording of subtitle
2024-06-04 10:03:33 +03:00
Brendan O'Handley
eeabb6f066 Prometheus: Add hints for native histograms (#87017) 2024-06-03 16:59:06 -05:00
Matthew Jacobson
31d5dd0a12 Alerting: Prevent updating rule uid matcher for silences (#88519)
Prevents updating the `__alert_rule_uid__` equality matcher (used for rule-specific silences) on existing silences
2024-06-03 17:39:06 -04:00
ismail simsek
f458e57523 InfluxDB: Fix custom variable support (#88642)
* fix variable support

* prettier
2024-06-03 23:47:27 +03:00
Yuri Tseretyan
043e19afb5 SSE: Fix threshold unmarshal to avoid panic (#88521) 2024-06-03 16:16:13 -04:00
Señor Performo - Leandro Melendez
63ca00dd10 Docs: Add Installation YouTube Videos to documentation pages. (#88465)
* Added Installation video index.md

* Update index.md adding video for Debian and Ubuntu installs

* Update index.md adding install video in macOS

* Update index.md adding video to install RHEL or Fedora

* Update index.md adding install video for SUSE

* Update index.md adding video for Windows installer

* Update _index.md Updated from suggestions

* Update index.md from suggestions

* Update index.md from suggestions

* Update index.md from suggestions

* Update index.md from suggestions

* Update index.md from suggestions

* Update docs/sources/setup-grafana/installation/_index.md

Applied Chris' suggestion

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

* Update docs/sources/setup-grafana/installation/debian/index.md

Applied Chris' suggestion

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

* Update docs/sources/setup-grafana/installation/mac/index.md

Applied Chris' suggestion

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

* Update docs/sources/setup-grafana/installation/redhat-rhel-fedora/index.md

Applied Chris' suggestion

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

* Update docs/sources/setup-grafana/installation/suse-opensuse/index.md

Applied Chris' suggestion

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

* Update docs/sources/setup-grafana/installation/windows/index.md

Applied Chris' suggestion

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2024-06-03 11:38:02 -06:00
Leon Sorokin
87cafbf9af XYChart2: Implement color-by-field (#88467) 2024-06-03 11:53:59 -05:00
Gilles De Mey
e419c76842 Alerting: update CODEOWNERS (#88628)
update CODEOWNERS
2024-06-03 16:25:43 +00:00
Artur Wierzbicki
6523bf4b8e Chore: fix typo in contribute/developer-guide.md to make codespell happy (#88639)
make codespell happy
2024-06-03 19:12:28 +03:00
Ashley Harrison
3f3f95fe0c Betterer: force update results file (#88637)
force update results file
2024-06-03 18:43:47 +03:00
Ashley Harrison
16099c9913 Drawer: Fix overflow to stop drag handle being cut off (#88500)
fix drawer overflow to stop drag handle being cut off
2024-06-03 15:35:46 +01:00
EduardZaydler
dbec8465e5 Graphite: Fix splitting expressions in tag_value with template variables (#86958)
fix spilitting expressions in tag_value with template variables
2024-06-03 09:27:14 -05:00
renovate[bot]
f902e16d26 Update dependency @grafana/plugin-e2e to v1.3.0 (#88624)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-03 15:08:02 +01:00
github-actions[bot]
034a43d066 I18n: Download translations from Crowdin (#88535) 2024-06-03 14:49:07 +01:00
Pepe Cano
2a8a6d755f Alerting: update Set evaluation behavior text (#88301)
* Alerting: update `Set evaluation behavior` text

* Update `Evaluation group` description for the `Evaluation group` modal view
2024-06-03 15:41:34 +02:00
renovate[bot]
54a3ed1c7c Update dependency yaml to v2.4.3 2024-06-03 13:32:11 +00:00
Ieva
c16f502ec5 Access Control: Clean up permissions for deprovisioned data sources (#88483)
* make sure that DS permissions get correctly cleaned up when a DS is deleted through provisioning

* don't attempt to delete a DS if it's not found

* fixes for tests

* fix ds tests

* rename DS service used by DS provisioner to BaseDataSourceService to avoid confusions with the full DS service
2024-06-03 16:19:53 +03:00
renovate[bot]
f204dd5bf1 Update dependency type-fest to v4.18.3 2024-06-03 13:05:43 +00:00
renovate[bot]
0ba54152dc Update dependency ts-jest to v29.1.4 2024-06-03 12:27:33 +00:00
Misi
eacf6e0a4d Auth: Add org to role mappings support to GitHub integration (#88537)
* wip: add extra tests for verifying current logic

* Add OrgRole mapping and tests

* Update docs

* Clean up

* Update docs/sources/setup-grafana/configure-security/configure-authentication/github/index.md

Co-authored-by: Mihai Doarna <mihai.doarna@grafana.com>

* Update docs with None role

* Apply suggestions from code review

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Fix

* Prettier docs

* Cleanup tests

---------

Co-authored-by: Mihai Doarna <mihai.doarna@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-06-03 14:24:58 +02:00
Alexa V
e147c58a7b Dashboard: Fix Variables query hides fields with non-supported datasources (#88516)
* Show queryVariable editor even if the variable does not support variables

* Fix VariableQueryRunner unit test, now takes into account the new function
2024-06-03 13:58:30 +02:00
renovate[bot]
44c62dd536 Update dependency sass to v1.77.4 2024-06-03 11:44:55 +00:00
brendamuir
b6145fcb4c Alerting docs: delete screensbots (#88608)
* Alerting docs: delete screensbots

* deletes screenshot 2
2024-06-03 13:42:58 +02:00
renovate[bot]
6003d26088 Update dependency rudder-sdk-js to v2.48.8 2024-06-03 10:50:13 +00:00
Tobias Skarhed
44ca89fe77 KeyboardShortcuts: Support panel attention for scenes (#88476)
* Support panel attention for scenes

* Remove console.log

* Bump scenes version for good measure

* Mock appEvents

* Remove unused import
2024-06-03 12:49:13 +02:00
Ashley Harrison
e781716a38 Chore: move PageHeader component to angular folder (#88556)
move page-header component to angular folder, scss to angular.scss
2024-06-03 11:47:47 +01:00
renovate[bot]
cdb6b13c7e Update dependency rollup-plugin-dts to v6.1.1 2024-06-03 10:13:07 +00:00
renovate[bot]
59894ef7db Update dependency reselect to v5.1.1 2024-06-03 09:45:08 +00:00
nerda-codes
12232dde54 [docs/sources/datasources/prometheus/configure-prometheus-data-source] Replace outdated text content in the Grafana UI with updated content (#88548) 2024-06-03 12:42:34 +03:00
ismail simsek
c73bbf19a1 InfluxDB: Introduce maxDataPoints setting for flux variable query editor (#87935)
* Introduce custom variable support

* Remove comment lines

* introduce maxDataPoints

* fix tests

* update

* fix unit tests

* remove new line
2024-06-03 12:09:33 +03:00
Pepe Cano
3e57576770 Alerting docs: Contact points updates (#88582)
* Update `Intro>Notifications>Contact points`

* Mention `OnCall` integration
2024-06-03 11:01:54 +02:00
Pepe Cano
68c44f1dd9 Alerting docs: Update Alertmanager docs (#88567)
* Remove alertmanager page and set redirects

* Update internal alertmanager links

* Update `Alertmanager` docs

* Change heading to `Configure Alertmanagers`
2024-06-03 11:00:52 +02:00
renovate[bot]
02182620db Update dependency msw to v2.3.1 2024-06-03 09:00:33 +00:00
Joseph Perez
2c7569e004 Docs: Fix two broken links to plugin-tools/reference (#87278)
Fix two broken links
2024-06-03 10:58:23 +02:00
renovate[bot]
fcc89351d1 Update dependency @pmmmwh/react-refresh-webpack-plugin to v0.5.15 (#88594)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-03 09:38:18 +01:00
renovate[bot]
afec695e42 Update dependency @types/gtag.js to ^0.0.20 (#88571)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-03 09:17:16 +01:00
Victor Marin
e86784200a Create lib panel and replace it in scene (#88504)
* Create lib panel - also replace it in scene

* refactor

* refactor

* refactor
2024-06-03 11:02:41 +03:00
Karl Persson
68f2585712 Cli: Fix bug where password is hashed twice (#88589) 2024-06-03 09:14:55 +02:00
Eric Leijonmarck
221e036233 Docs: add pinning of terraform for migration (#88528)
* Docs: update with terraform version

* added the terraform version pinning

* formatting

* Update docs/sources/administration/api-keys/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* formatting

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-06-02 13:30:15 +02:00
Nathan Marrs
9e82c85849 Canvas: Chore fix *remaining* betterer issues (#88491) 2024-05-31 13:33:31 -07:00
Isabella Siu
be2e420e6b CloudWatch: Handle permissions error and update docs (#88524) 2024-05-31 14:36:38 -04:00
Arati R
73905695e3 Storage: Remove dual writing mode feature flags (#88573)
Remove dual writing feature flags
2024-05-31 20:18:09 +02:00
Leon Sorokin
a257b74d6e TooltipPlugin: Fix console error when data updates while anchored (#88546) 2024-05-31 13:17:54 -05:00
Arati R
36f42853dd Storage: Read desired mode from config instead of feature flags (#88353)
* Read desired mode from config
* Update playlist integration tests
* Add mode 1 playlist integration tests
* Add mode 0 dual writing to playlist integration tests
* Add documentation for the different dual writing modes
2024-05-31 19:29:59 +02:00
renovate[bot]
d3fa52a730 Update dependency react-i18next to v14.1.2 2024-05-31 17:21:34 +00:00
renovate[bot]
968dfcbf6e Update dependency react-hook-form to v7.51.5 2024-05-31 15:53:32 +00:00
William Wernert
7a744a746b Alerting: Update docs with rule read RBAC changes (#88565)
* Remove ref to `datasources:query` for rule read

* Remove more refs to `datasources:query`

* Run prettier
2024-05-31 11:50:44 -04:00
Diego Augusto Molina
c582744207 Chore: Allow using the Go race detector locally for tests and adhoc run binaries (#88509)
enable Go race detector locally for tests and adhoc run binaries
2024-05-31 12:30:51 -03:00
Pepe Cano
81af1d2208 Alerting docs: update Introduction > Notifications (#88530)
* Update Notifications intro page

* Update intro image

* Update docs/sources/alerting/fundamentals/notifications/_index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-05-31 17:28:15 +02:00
renovate[bot]
a9f805b7a2 Update dependency re-resizable to v6.9.17 2024-05-31 15:21:30 +00:00
Tom Ratcliffe
dfd64ed469 Alerting: Ensure we fetch AM config before saving new configuration (#88458) 2024-05-31 17:19:01 +02:00
renovate[bot]
aec8412af9 Update dependency nx to v19.1.1 2024-05-31 14:58:43 +00:00
renovate[bot]
ddcc0ce9bc Update dependency ml-regression-simple-linear to v3.0.1 2024-05-31 14:38:36 +00:00
renovate[bot]
641c6624c6 Update dependency ml-regression-polynomial to v3.0.1 2024-05-31 14:21:17 +00:00
Piotr Jamróz
1e70cd8dad Docs: Clarify that some GA flags may be disabled by default (#88284) 2024-05-31 16:18:54 +02:00
renovate[bot]
0ab0900f00 Update dependency i18next to v23.11.5 2024-05-31 13:04:49 +00:00
Bruno
33b9544047 Cloud migrations: create route to delete token (#88297)
* Cloud migrations: create route to delete token

* gcom.DeleteToken returns ErrTokenNotFound instead of a boolean

* remove unnecessary comment

* make openapi3-gen && yarn run rtk-query-codegen-openapi ./scripts/generate-rtk-apis.ts

* gcom stub: implement DeleteToken
2024-05-31 10:03:43 -03:00
Scott Schreckengaust
3e872bb77e Cloudwatch: Add Kendra metrics (#86809) 2024-05-31 09:02:29 -04:00
renovate[bot]
ae11e54403 Update dependency dompurify to v3.1.5 2024-05-31 12:46:06 +00:00
Bruno
83543c6b12 Cloud migrations: create route to fetch cloud migration token (#88176)
* Cloud migration: create route to fetch cloud migration token

* implement gcomStub.ListTokens

* fix swagger for POST /cloudmigration/migration

* fix swagger for POST /cloudmigration/migration

* fix swagger for POST /cloudmigration/migration
2024-05-31 09:39:10 -03:00
renovate[bot]
b640921dfd Update dependency @grafana/scenes to v4.25.0 (#88541)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-31 15:25:57 +03:00
Fayzal Ghantiwala
67b9e3b269 Alerting: Update HA Redis TLS docs (#88538)
* Update HA Redis TLS doc

* Add test for regular TLS

* Update docs

* Update prom registry
2024-05-31 13:23:45 +01:00
Ashley Harrison
9317e2e1b2 Chore: fix betterer results (#88539)
fix betterer results
2024-05-31 15:01:15 +03:00
Ashley Harrison
8811c14aeb AdHoc filters: add support for groups in adhoc filters + fix group styling (#88430)
add support for groups in adhoc filters + fix group styling
2024-05-31 11:04:19 +01:00
renovate[bot]
06121bb054 Update dependency eslint-plugin-react to v7.34.2 2024-05-31 09:56:48 +00:00
Piotr Jamróz
ce23a455c3 Explore: Show a modal to edit query template before saving it (#88211)
* Create a mock modal

* Add basic form handling

* Update tests

* Extract translations

* Disable auto-star switch

* Keep disabled input uncontrolled
2024-05-31 11:55:01 +02:00
renovate[bot]
287e3868ed Update dependency @prometheus-io/lezer-promql to v0.52.1 (#88531)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-31 12:27:54 +03:00
Ashley Harrison
8c88f605e4 Chore: Migrate some more scss styles (#88484)
* migrate some more styles

* migrate typeahead styles

* migrate tagsinput styles
2024-05-31 10:04:25 +01:00
renovate[bot]
a14a7580ed Update dependency @prometheus-io/lezer-promql to v0.52.1 (#88513)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-31 09:32:15 +01:00
Mihai Doarna
d83288b8c5 Docs: Improve the SSO settings API docs (#87599)
* improve SSO settings API docs

* address feedback
2024-05-31 11:22:54 +03:00
Sofia Papagiannaki
17ca61d7f8 Alerting: Export and provisioning rules into subfolders (#77450)
* Folders: Optionally include fullpath in service responses
* Alerting: Export folder fullpath instead of title
* Escape separator in folder title
* Add support for provisiong alret rules into subfolders
* Use FolderService for creating folders during provisioning
* Export WithFullpath() folder service function

---------

Co-authored-by: Tania B <yalyna.ts@gmail.com>
Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
2024-05-31 11:09:20 +03:00
Mihai Doarna
e1aedb65b3 SSO: Add oldSettings param to the Validate function from SSO settings (#88245)
* add oldSettings param to the Validate function from SSO settings

* update unit tests adding the missing param to Validate
2024-05-31 11:08:52 +03:00
Joseph Perez
9d8052830f Docs: Edit of "ISSUE_TRIAGE" and other topics (part 3 of doc quality project) (#88106)
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-05-31 08:31:53 +01:00
Jon Cole
ba4c1fcf76 AzureMonitor: Retrieve Azure clouds from SDK (#87944)
* AzureMonitor: get the list of azure clouds from the SDK instead of from a hard coded list

* add azure-sdk to yarn.lock

* merge legacy with custom options

* Normalize legacy cloud names

* Workaround: send new credential format to backend while we wait to migrate to the new format

* Lint fix

* resolveLegacyCloudName should not return undefined

* re-add undefined handling in resolveLegacyCloudName so that we fallback to getDefaultAzureCloud when not defined

---------

Co-authored-by: Jeremy Angel <jeremyangel@microsoft.com>
Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
2024-05-30 23:40:05 +01:00
Drew Slobodnjak
1c339db7ad Geomap: Improve Pan and Zoom Performance (#88202)
* Geomap: Improve pan and zoom performance

* Remove unused code
2024-05-30 14:41:59 -07:00
Nick Richmond
7ec93edec1 ExploreMetrics: Adjust wording to improve clarity (#88319)
refactor: change wording add clarity
2024-05-30 16:00:57 -04:00
Joseph Perez
2c8e869799 Docs: Edit of README and other topics in Contribute (part 1 of doc quality project) (#85832)
* Docs: Technical edit of 4 files in Contributing

* Fix admonitions

* Fix admonition

* Fix from code review

* Fix from code review

* Update contribute/create-pull-request.md

* Update contribute/merge-pull-request.md

Co-authored-by: Eve Meelan <81647476+Eve832@users.noreply.github.com>

* Minor fix

* Update contribute/merge-pull-request.md

Co-authored-by: Eve Meelan <81647476+Eve832@users.noreply.github.com>

* Update contribute/merge-pull-request.md

Co-authored-by: Eve Meelan <81647476+Eve832@users.noreply.github.com>

* Update contribute/merge-pull-request.md

Co-authored-by: Eve Meelan <81647476+Eve832@users.noreply.github.com>

* Update contribute/merge-pull-request.md

Co-authored-by: Eve Meelan <81647476+Eve832@users.noreply.github.com>

* Update contribute/merge-pull-request.md

Co-authored-by: Eve Meelan <81647476+Eve832@users.noreply.github.com>

* Fix from code review

* Update contribute/triage-issues.md

Co-authored-by: Eve Meelan <81647476+Eve832@users.noreply.github.com>

* Run prettier

---------

Co-authored-by: Eve Meelan <81647476+Eve832@users.noreply.github.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-05-30 10:41:02 -07:00
Nick Richmond
fddf77ee35 CodeEditor: Fix broken styles (#88495)
* fix: remove erroneous container

* fix: update selector

* fix: pass data attrs via `wrapperProps`

* fix: ensure `toBeInTheDocument` checks have unique markup
2024-05-30 20:34:00 +03:00
Matthew Jacobson
09cb3a6048 Alerting: Add optional metadata via query param to silence GET requests (#88000)
* Alerting: Add optional metadata to GET silence responses

- ruleMetadata: to request rule metadata.
- accesscontrol: to request access control metadata.
2024-05-30 12:04:47 -04:00
Ashley Harrison
413013a000 update results file 2024-05-30 17:10:10 +03:00
renovate[bot]
9a0482e7f2 Update dependency eslint-plugin-no-barrel-files to v1.1.1 2024-05-30 17:10:10 +03:00
Misi
ed6b3e9e7c Auth: Introduce pre-logout hooks + add GCOM LogoutHook (#88475)
* Introduce preLogoutHooks in authn service

* Add gcom_logout_hook

* Config the api token from the Grafana config file

* Simplify

* Add tests for logout hook

* Clean up

* Update

* Address PR comment

* Fix
2024-05-30 15:52:16 +02:00
renovate[bot]
de201c5cdd Update dependency eslint-plugin-jsdoc to v48.2.7 2024-05-30 13:34:49 +00:00
Edvard Falkskär
24d65fa32f Docs: How to access Grafana in fundamentals tutorial (#88488)
* Docs: How to access Grafana in fundamentals tutorial

* All pretty, no pity

* note on login

---------

Co-authored-by: tonypowa <tonypowa@gmail.com>
2024-05-30 15:04:17 +02:00
renovate[bot]
e3fac9bf72 Update dependency dompurify to v3.1.4 2024-05-30 13:02:45 +00:00
Ivan Ortega Alba
c5ae0bbba2 Scenes: Update to latest 4.23.1 -> 4.24.4 (#88485)
# v4.24.4 (Thu May 30 2024)

#### 🐛 Bug Fix

- `@grafana/scenes`
  - VizPanelRenderer: Emit SetPanelAttention event [#716](https://github.com/grafana/scenes/pull/716) ([@tskarhed](https://github.com/tskarhed))

#### Authors: 1

- Tobias Skarhed ([@tskarhed](https://github.com/tskarhed))

---

# v4.24.3 (Thu May 30 2024)

#### 🐛 Bug Fix

- `@grafana/scenes`
  - Macros: Resolve browser timezone for `$__timezone` [#759](https://github.com/grafana/scenes/pull/759) ([@ivanortegaalba](https://github.com/ivanortegaalba))
  - Variables: Prioritize showing adhoc variable key and operator [#750](https://github.com/grafana/scenes/pull/750) ([@oscarkilhed](https://github.com/oscarkilhed))

#### Authors: 2

- Ivan Ortega Alba ([@ivanortegaalba](https://github.com/ivanortegaalba))
- Oscar Kilhed ([@oscarkilhed](https://github.com/oscarkilhed))

---

# v4.24.2 (Wed May 29 2024)

#### 🐛 Bug Fix

- `@grafana/scenes`
  - MultiValueVariable: Fixes issue when value is all value but all value is not enabled [#757](https://github.com/grafana/scenes/pull/757) ([@torkelo](https://github.com/torkelo) [@ivanortegaalba](https://github.com/ivanortegaalba))

#### Authors: 2

- Ivan Ortega Alba ([@ivanortegaalba](https://github.com/ivanortegaalba))
- Torkel Ödegaard ([@torkelo](https://github.com/torkelo))

---

# v4.24.1 (Tue May 28 2024)

#### 🐛 Bug Fix

- Plugin.json: update schema reference URL in scenes-app [#754](https://github.com/grafana/scenes/pull/754) ([@leventebalogh](https://github.com/leventebalogh))
- `@grafana/scenes`
  - Allow drag and dropping rows in valid states [#756](https://github.com/grafana/scenes/pull/756) ([@mdvictor](https://github.com/mdvictor))
  - fix: undefined check on RefreshPicker.autoOption [#751](https://github.com/grafana/scenes/pull/751) ([@darrenjaneczek](https://github.com/darrenjaneczek))

#### Authors: 3

- Darren Janeczek ([@darrenjaneczek](https://github.com/darrenjaneczek))
- Levente Balogh ([@leventebalogh](https://github.com/leventebalogh))
- Victor Marin ([@mdvictor](https://github.com/mdvictor))

---

# v4.24.0 (Mon May 27 2024)

#### 🚀 Enhancement

- `@grafana/scenes`
  - SceneFlexLayout: Min width/height option was ignored [#749](https://github.com/grafana/scenes/pull/749) ([@edvard-falkskar](https://github.com/edvard-falkskar))

#### Authors: 1

- Edvard Falkskär ([@edvard-falkskar](https://github.com/edvard-falkskar))

---
2024-05-30 15:02:31 +02:00
renovate[bot]
fabed77d1f Update dependency css-loader to v7.1.2 2024-05-30 12:44:55 +00:00
Misi
8a98e29fba Docs: Update Okta docs (#88352)
* Update Okta docs

* Fixes

* Improvements
2024-05-30 14:42:24 +02:00
Carl Bergquist
6c79f63c04 Auth: Pass ctx when updating last seen (#88496)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2024-05-30 14:25:54 +02:00
renovate[bot]
4b62be37f5 Update dependency core-js to v3.37.1 2024-05-30 12:11:46 +00:00
Kristin Laemmert
876ed9bf0b chore: decrease frequency of updating last_seen (#88461) 2024-05-30 08:09:22 -04:00
kay delaney
8f45003192 LibraryPanels/RBAC: Ignore old folder permission check when deleting/patching lib panel (#88422)
* LibraryPanels/RBAC: Ignore old folder permission check when deleting lib panel

* Same for patching
2024-05-30 12:23:20 +01:00
Sofia Papagiannaki
4f999f2b6c Dashboards: Fix regression when deleting folder (#88311)
* Fix regression when deleting folder

* Apply suggestion from code review
2024-05-30 14:21:34 +03:00
Gilles De Mey
f6a1ed3581 Alerting: Replace Strong component (#88186) 2024-05-30 13:05:37 +02:00
Konrad Lalik
93870c1cd8 Alerting: Use new endpoints to fetch single GMA rule on view and edit pages (#87625) 2024-05-30 12:55:06 +02:00
brendamuir
b07b6771e8 Alerting docs: adds pause and resume evaluation (#88489) 2024-05-30 12:47:38 +02:00
renovate[bot]
0c572e8db7 Update dependency @types/node to v20.12.13 2024-05-30 10:45:34 +00:00
Laura Fernández
98dcb3818c Chore: Add no-untranslated-strings rule to betterer (#88479) 2024-05-30 12:45:22 +02:00
Gilles De Mey
b7db268798 Alerting: Correctly handle duplicating notification templates (#88487)
Co-authored-by: Alex Petrov <alex.petrov.vt@gmail.com>
Co-authored-by: Tom Ratcliffe <tom.ratcliffe@grafana.com>
Co-authored-by: Alex Petrov <apetrov@fastly.com>
2024-05-30 12:43:03 +02:00
renovate[bot]
c5c38b57c4 Update dependency @types/lodash to v4.17.4 2024-05-30 09:52:46 +00:00
Josh Hunt
5190e68ab1 Chore: Refactor betterer eslint to use overrides (#88442)
* Chore: Refactor betterer eslint to use overrides

* more comments
2024-05-30 10:09:30 +01:00
Sonia Aguilar
650f291054 Gops: Fix incidents url adding plugin twice in it (#88472)
Fix incidents url adding plugin twice in it
2024-05-30 11:05:20 +02:00
Yasir Ekinci
56a544668f DashboardAI: Reformat prompts to have a single system prompt (#88429) 2024-05-30 02:46:05 -06:00
Agnès Toulet
d12c808279 Docker: Fix renderer plugin in custom Dockerfile (#88223)
* Docker: fix renderer plugin in custom Dockerfile

* Update Dockerfile
2024-05-30 10:27:26 +02:00
Tom Ratcliffe
5bb7d4da4c Alerting: Remove regex reference in silences filter tooltip (#88455) 2024-05-30 09:05:34 +01:00
Ieva
1c2ae2c72d Dashboards: Correctly display Admin access to dashboards in the UI (#88439)
* include folder wildcard scope in dash permission inheritance

* Update pkg/services/accesscontrol/ossaccesscontrol/permissions_services.go

Co-authored-by: Karl Persson <kalle.persson@grafana.com>

---------

Co-authored-by: Karl Persson <kalle.persson@grafana.com>
2024-05-30 10:06:01 +03:00
Diego Augusto Molina
990ad860df Chore: Allow using the Go race detector locally (#88380)
* use the Go race detector for local testing only

* add recipe to check if Go race detector is enabled
2024-05-29 20:34:16 -03:00
Nathan Marrs
98152b2f84 Stat: Add docs for stat percent change color options (#88454)
update docs
2024-05-29 14:13:01 -07:00
Bogdan Matei
011becb39e Scopes: Use Grafana namespace instead of default (#88451) 2024-05-29 23:48:17 +03:00
Kyle Cunningham
f5346e3e2a Table Panel: Move inspector into drawer component (#88196)
* Move inspector into drawer component

* Fix up naming

* fix betterer lint issue

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-05-30 03:33:05 +07:00
Nick Richmond
7334f71e09 CodeEditor: Improved styles when the code editor is loading (#88102)
* fix: monaco loading state

* chore: betterer

* test: leverage e2e selectors

* refactor: prefer HOC to wrap with testid

* refactor: add clarity

* docs: add clarity

* refactor: loading messaging

* test: rename vars to improve clarity

* test: rename vars to improve clarity
2024-05-29 15:55:18 -04:00
William Wernert
5de7d4d06d Alerting: Create writer interface for recording rules (#88459)
* Create writer interface for recording rules

Also create fake impl + use it for stub in scheduler
2024-05-29 22:38:33 +03:00
Joseph Perez
4e99cd2860 Docs: Edit of "Developer Guide" and other topics (part 2 of doc quality project) (#86072)
* Edit deprecation-policy

* Edit drone-pipeline

* Docs: Edit of 4 files, part 2 of quality improvement

* Update contribute/developer-guide.md

* Update contribute/developer-guide.md

Co-authored-by: J Stickler <julie.stickler@grafana.com>

* Changes from feedback

* Properly style UNIX

* Update contribute/drone-pipeline.md

* Update contribute/feature-toggles.md

Co-authored-by: J Stickler <julie.stickler@grafana.com>

* Format with prettier

---------

Co-authored-by: J Stickler <julie.stickler@grafana.com>
2024-05-29 11:08:41 -07:00
Ezequiel Victorero
e81f48ef95 Dashboards: Do not expose datasource name and uid on dashboard external export (#88382)
Co-authored-by: Juan Cabanas <juan.cabanas@grafana.com>
2024-05-29 14:36:48 -03:00
Bogdan Matei
55ea077c3e Scopes: Select scope even without data retrieval (#87988)
* Scopes: Select scope even without data retrieval

* Pass entire scope and not only the spec to Prometheus

* Enrich ScopeSpec that is sent to Prometheus

* add name to BE

---------

Co-authored-by: Kyle Brandt <kyle@grafana.com>
2024-05-29 20:09:27 +03:00
Señor Performo - Leandro Melendez
8b5c9e3e2a Docs: Add Installation YouTube Videos to documentation pages. (#88443)
* Added Installation video index.md

* Update index.md adding video for Debian and Ubuntu installs

* Update index.md adding install video in macOS

* Update index.md adding video to install RHEL or Fedora

* Update index.md adding install video for SUSE

* Update index.md adding video for Windows installer
2024-05-29 10:56:15 -06:00
Tom Ratcliffe
3adb07cf4d Alerting: Make regex notification routing preview consistent with notification policies implementation (#88413)
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-05-29 17:04:35 +01:00
renovate[bot]
2a65a8a1d1 Update dependency @reduxjs/toolkit to v2.2.5 2024-05-29 15:42:32 +00:00
renovate[bot]
dfae694cff Update dependency @react-types/shared to v3.23.1 2024-05-29 15:22:25 +00:00
Carl Bergquist
0e6464fc96 Don't use transaction for updating last seen for an user. (#88426)
dont use transaction for updating last seen

Signed-off-by: bergquist <carl.bergquist@gmail.com>
2024-05-29 18:13:04 +03:00
Sonia Aguilar
289ce61855 Alerting: Add the feature toggle for the new central alert state history feature (#88346)
* Add the feature toggle for the new central alert state history feature

* WIP

* Revert "WIP"

This reverts commit 80b8879d4e.
2024-05-29 18:01:38 +03:00
renovate[bot]
e1d7ef30ec Update dependency @react-types/overlays to v3.8.7 2024-05-29 14:47:24 +00:00
Sven Grossmann
f81e8e04aa LogsTable: Fix default sort by time (#88398) 2024-05-29 16:46:26 +02:00
renovate[bot]
144e476840 Update dependency @react-types/menu to v3.9.9 2024-05-29 14:30:54 +00:00
Darren Janeczek
763108ce10 datatrails: in Components, model.useState(), instead of model.state (#88432)
fix: in Components, `model.useState()`, instead of `model.state`

Generally, it is better practice. More succinct.
It could also eliminate subtle state bugs.
2024-05-29 10:29:57 -04:00
renovate[bot]
633486e4f1 Update dependency @react-types/button to v3.9.4 2024-05-29 14:10:56 +00:00
brendamuir
c8bbc9d6e5 Alerting docs: adds template selector docs (#88412)
* Alerting docs: adds template selector docs

* adds line about single save
2024-05-29 15:39:22 +02:00
renovate[bot]
e63037fe51 Update dependency @playwright/test to v1.44.1 2024-05-29 13:34:47 +00:00
renovate[bot]
8fa48ceb76 Update dependency @kusto/monaco-kusto to v10.0.22 2024-05-29 12:53:14 +00:00
renovate[bot]
c5b27c809a Update dependency @grafana/faro-web-sdk to v1.7.3 2024-05-29 11:55:28 +00:00
Gilles De Mey
781f67dfb6 Alerting: Support alertingDisableSendAlertsExternal feature toggle (#88384) 2024-05-29 13:54:07 +02:00
renovate[bot]
e93169b66c Update dependency @grafana/faro-web-sdk to v1.7.3 2024-05-29 11:30:50 +00:00
Ana Ivanov
c977653811 Add navigation config for grafana-csp-app (#88360)
Add navigation config for grafana-csp-app
2024-05-29 14:28:33 +03:00
Laura Fernández
a47e71fd34 Chore: create the no-untranslated-literals rule (#88271) 2024-05-29 13:03:59 +02:00
Fayzal Ghantiwala
543f0ae37e Alerting: Update ListAlertRulesQuery to take a slice of RuleGroups (#88385)
* Change ListAlertRulesQuery to take RuleGroup slice instead

* Change func name

* Change func name

* Fix fakes

* Fix function arg
2024-05-29 11:50:33 +01:00
renovate[bot]
4c8ce76929 Update dependency @grafana/faro-core to v1.7.3 2024-05-29 09:55:43 +00:00
Andres Martinez Gotor
0f32c2bff9 Revamp tests for Add/Update Datasource (#88386) 2024-05-29 04:54:11 -05:00
renovate[bot]
2d18de7e84 Update dependency @floating-ui/react to v0.26.16 (#88409)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-29 12:28:26 +03:00
renovate[bot]
48d49b4502 Update dependency cypress to v13.10.0 (#84140)
* Update dependency cypress to v13.10.0

* updated cypress-version in config

* updated configs

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
2024-05-29 11:10:42 +02:00
Ben Sully
2455c0cc37 Add Kubernetes icon (#86677) 2024-05-29 09:49:59 +01:00
github-actions[bot]
d8b662e8d5 Update make docs procedure (#88404)
Co-authored-by: grafanabot <bot@grafana.com>
2024-05-29 08:12:13 +00:00
Gabriel MABILLE
5eecc01123 VSCode: Launch Grafana with Storage server (#88351)
* VSCode: Launch Grafana with Storage server

* Fix module_server_test
2024-05-29 10:02:35 +02:00
antonio
1f90123f35 alerting>tutorials>get-started v2 (#88373)
* alerting>tutorials>get-started v2

* admon fix

* link fix

* pretty face

* Update docs/sources/tutorials/alerting-get-started/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* suggestions

* All pretty, no pity.

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-05-29 10:00:37 +02:00
Leonor Oliveira
ade96dbdbd Introduce Comparator interface (#88016)
* Introduce Comparator interface

* Add compare implementation everywhere

* Add comment explaining what Compare should do

* Lint
2024-05-29 09:42:24 +02:00
Tobias Skarhed
06304894a1 Dashboard: Keyboard and mouse panel shortcuts improvement (#87317)
* Add custom attention state to dashboard

* Add attention state to DashboardGrid

* Remove old functionality

* Add attention state to keybindingSrv

* Create PanelAttentionService

* Add PanelAttentionService with scenes support

* Remove unused code

* Use viz panel key instead of VizPanel

* Add type assertion

* Add e2e test

* Update comments

* Use panel id for non-scenes use case

* Support undefined service use case

* Memoize singleton call

* Debounce mouseover

* Set panelAttention with appEvents

* Use AppEvents for Scenes

* Remove panelAttentionSrv

* Wait in e2e to handle debounce

* Move subscription to KeybindingSrv

* Remove imports and reset keyboardShortcuts from main

* Fix on* event handlers
2024-05-29 09:11:23 +02:00
Larissa Wandzura
66d6b3d83b Docs: Update Grafana Teams documentation (#86942)
* added config doc

* added content

* added new topic docs and made updates

* minor updates

* updates based on feedback

* ran prettier , made updates

* removed original doc, updates to topic docs

* removed old index doc

* fixed format issue

* Update docs/sources/administration/team-management/administering-grafana-teams.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/team-management/configure-grafana-teams.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/team-management/configure-grafana-teams.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/team-management/configure-grafana-teams.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/team-management/configure-grafana-teams.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/team-management/administering-grafana-teams.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/team-management/_index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/team-management/configure-grafana-teams.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/team-management/configure-grafana-teams.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/team-management/configure-grafana-teams.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/team-management/configure-grafana-teams.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* edits based on feedback

* updates based on feedback

* improved some wording

* ran prettier

* minor correction

* added aliases

* Update docs/sources/administration/team-management/configure-grafana-teams.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* added contractions

* Removed .nx

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-05-29 08:22:45 +03:00
Andreas Christou
3eea71cc6b Azure: Basic Logs support (#88025)
* Azure monitor: Basic Logs frontend (#85905)

* adds datasource level config for enabling basic logs

* add basiclogsquery type to query json

* add toggle between basic and analytics

* adds basic logs toggle from UI, blocks time picker to only dashboard if basic logs is selected

* add check to remove UI if alerting

* tests for logsmanagement component

* tests for logs query editor

* tests for time mangement control

* remove unused imports

* clears query whenever toggle changes from basic <-> analytics

* add test to account for clearning query

* Update public/app/plugins/datasource/azuremonitor/components/ConfigEditor/BasicLogsToggle.tsx

wording

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>

* Update public/app/plugins/datasource/azuremonitor/components/LogsQueryEditor/LogsQueryEditor.tsx

spelling

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>

* Update public/app/plugins/datasource/azuremonitor/components/LogsQueryEditor/LogsQueryEditor.tsx

spelling

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>

* update dependency list

* clear basic logs if resources change

* fix tests

---------

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>

* Azure Monitor: Basic Logs modal acknowledgement (#86244)

* adds datasource level config for enabling basic logs

* add basiclogsquery type to query json

* add toggle between basic and analytics

* adds basic logs toggle from UI, blocks time picker to only dashboard if basic logs is selected

* add check to remove UI if alerting

* tests for logsmanagement component

* tests for logs query editor

* tests for time mangement control

* remove unused imports

* add confirm modal

* clears query whenever toggle changes from basic <-> analytics

* add test to account for clearning query

* adds modal acknowledgement for basic logs query

* tests for handling modal logic

* basic logs ack type

* Update public/app/plugins/datasource/azuremonitor/components/ConfigEditor/BasicLogsToggle.tsx

wording

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>

* Update public/app/plugins/datasource/azuremonitor/components/LogsQueryEditor/LogsQueryEditor.tsx

spelling

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>

* Update public/app/plugins/datasource/azuremonitor/components/LogsQueryEditor/LogsQueryEditor.tsx

spelling

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>

* update dependency list

* clear basic logs if resources change

* remove modal from config page

* remove basic logs query ack type

* add modal acknowledgement to toggle between basic and analytics

* clear query if resources change

* fix tests

* fix tests

* Update public/app/plugins/datasource/azuremonitor/components/LogsQueryEditor/LogsManagement.tsx

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>

* fix tests

---------

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>

* Azure Monitor: Basic Logs Backend (#87653)

* fix logic for showingBasicLogsToggle

* move to utils function and add basiclogsquery in apply template variable

* add backend safeguards for basiclogsqueries

* adds support for calling search or query apis based on whether it is basic logs or not

* add tests for utils

* initial test for basic logs query in the backend

* tests for basic logs

* remve comment

* simplify checks for basic logs

* adds fromAlert prop for azure monitor backend services

* adds fromAlert check fo basic logs

* fix working and empty tags

* add telemetry for basic logs

* remove import from grafana core package

* change fromAlert true in tests

* change the way tests catch errors

* Update pkg/tsdb/azuremonitor/loganalytics/utils.go

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>

* Update pkg/tsdb/azuremonitor/loganalytics/utils.go

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>

* Update pkg/tsdb/azuremonitor/loganalytics/utils.go

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>

* Update pkg/tsdb/azuremonitor/loganalytics/azure-log-analytics-datasource.go

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>

* restructure code to only run basic logs checks if basiclogsflag is true

* data retention warning

* tests for calculate time range

* Simplify determining if request is from alerting

* Fix lint and bool check

* Fix tests

* clarify data retention

---------

Co-authored-by: Jocelyn <jcolladokuri@microsoft.com>
Co-authored-by: jcolladokuri <jocelyncollado52@gmail.com>

* Azure Monitor: Basic Logs data volume notification (#88009)

* frontend changes for data ingested warning

* initial logic for getResource

* payload processing

* create basicLogs usage function

* add utils for converting time and getting the data volume query for basic logs

* frontend updates for showing the data ingested for the given query

* frontend tests

* add check for when no dataIngested is returned

* remove backend.logger prints

* comment on what function does

* fix merge

* make resource URI regex case insensitive

* add support for workspace variables in basic logs flow

* add undefined check

* structure and add tests for variable support

* Update pkg/tsdb/azuremonitor/loganalytics/azure-log-analytics-datasource.go

Co-authored-by: Andreas Christou <andreas.christou@grafana.com>

* add tracing for basic logs usage request

* clean up data volume query struct

* use async/await instead of callback

* fix parameters for getApiURL

* restrict time on usage query to 8 days max

* add time to dependency array to refetch basic logs usage

* move time check implementation to backend

* fix utils tests

---------

Co-authored-by: Jocelyn <jcolladokuri@microsoft.com>
Co-authored-by: jcolladokuri <jocelyncollado52@gmail.com>

---------

Co-authored-by: jcolladokuri <jcolladokuri@microsoft.com>
Co-authored-by: jcolladokuri <jocelyncollado52@gmail.com>
2024-05-28 18:06:27 +01:00
Stephen J. Smith
0b2fab9967 Azure Monitor: Fix typo that may cause an API request to fail (#88320)
Fix typo
2024-05-28 17:58:06 +01:00
Alexander Weaver
b926b6336d Alerting: Scheduled recording rules execute their queries (#88309)
* Basic eval flow

* Wiring-up

* fix

* Extend todo

* Start with tests

* Include some relevant tests, skip ones that seem to have timing-based race conditions

* Some tests, touch up linter and todo

* Solve TODO

* Add tracing

* Tests to make sure an eval went through

* Wire up feature toggles

* Update pkg/services/ngalert/schedule/recording_rule.go

Co-authored-by: Steve Simpson <steve.simpson@grafana.com>

* Update pkg/services/ngalert/schedule/recording_rule_test.go

Co-authored-by: Steve Simpson <steve.simpson@grafana.com>

* Update pkg/services/ngalert/schedule/recording_rule_test.go

Co-authored-by: Steve Simpson <steve.simpson@grafana.com>

* Update pkg/services/ngalert/schedule/recording_rule_test.go

Co-authored-by: Steve Simpson <steve.simpson@grafana.com>

---------

Co-authored-by: Steve Simpson <steve.simpson@grafana.com>
2024-05-28 10:59:21 -05:00
Eric Leijonmarck
910553df20 Actionsets: Add cfg option for only writing actionsets (#88367)
* test

* test

* missed test

* fix review comments
2024-05-28 16:32:23 +01:00
Andrej Ocenas
5f326e98c1 NodeGraph: Add msagl and the layered layout code (#88375) 2024-05-28 17:04:03 +02:00
Bruno
07debd66c2 Ephemeral instances: fetch the grafana version from the package.json file (#88300) 2024-05-28 11:52:00 -03:00
Matthew Jacobson
8418aca823 Alerting: Add single rule checks to alert rule access control (#88307)
* Alerting: Add single rule checks to alert rule access control

Modifies ruler api single rule read to no longer fetch entire groups and instead
 use the new single rule ac check.
Simplifies provisioning api getAlertRuleAuthorized logic to always load a single
 rule instead of conditionally loading the entire group when provisioning
 permissions are not present.

* Swap out Has/AuthorizeAccessToRule for Has/AuthorizeAccessInFolder
2024-05-28 10:49:24 -04:00
Eric Leijonmarck
ebbb64059f LBAC datasource: Add swagger updates (#88383)
add swagger updates
2024-05-28 15:28:12 +01:00
Jack Baldry
26c2391c7e [docs/sources/datasources] Replace docs/reference shortcode with ref URIs (#88078) 2024-05-28 15:17:49 +01:00
Jeroen Op 't Eynde
e1685cb44b fix: set schemaVersion on dashboard schema (CUE) (#87712)
* fix: set schemaVersion on dashboard schema (CUE)

* docs: add comment to migration code

* fix: run make gen-cue
2024-05-28 16:16:20 +02:00
Leonor Oliveira
ef07dfa3bb Add latency metrics to mode2 (#88011)
* Also call storage on mode1. Add metrics

* Update comment

* Don't use compare function for now

* Remove very important space

* Improve code readability on modes 1 and 2

* Fix tests

* Return error from legacy write

* Renume useless defer

* Start adding logging for mode2

* Retrurn errors is storage read fails

* Finish adding latency metrics to mode2

* Emit kind to metrics instead

* Fix var name

* Return if legacy delete list fails

* Unify latency calls

* Fix get function
2024-05-28 16:15:53 +02:00
Alex Khomenko
c4aca053e5 DateTimePicker: Return cleared value in onChange (#88377)
* DateTimePicker: Return cleared value in onChange

* Update story
2024-05-28 17:11:15 +03:00
Mihai Doarna
12e4a94d63 SSO: Use removeSecrets() instead of setting.RedactedValue() (#88180)
* use removeSecrets() instead of setting.RedactedValue()

* replace with redacted value only if secret is not empty
2024-05-28 17:03:54 +03:00
Andres Martinez Gotor
60ce523b72 Refactor plugin context initialization (#88343) 2024-05-28 16:59:06 +03:00
Ashley Harrison
ecfe50439b Chore: Remove last of the SCSS from grafana/ui (#88302)
* remove last of scss from grafana/ui

* add comment about legacySelect classes
2024-05-28 14:58:51 +01:00
Ashley Harrison
b4e49e3114 Select: Ensure screenreader correctly narrates options (#88118)
* replace select aria-label with data-testid

* update in copy pasted places as well

* update plugin-e2e to 1.2.2
2024-05-28 14:51:47 +01:00
timo
6205236f25 NodeGraph: Use values from fixedX/fixedY column for layout (#86643)
* NodeGraph: Use values from fixedX/fixedY column for layout

* Cleanup some code, typings and naming

* Add test

---------

Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
2024-05-28 15:34:35 +02:00
Kyle Brandt
a738cb42d8 Prometheus: Update dependency to v0.52.0 (#87809)
* Prometheus: Update dependency to v0.52.0

* go work sync

* fix panics in tests

* go work sync

* prometheus v0.52.0

* handle errors

* Update pkg/services/ngalert/sender/sender_test.go

Co-authored-by: Santiago <santiagohernandez.1997@gmail.com>

* Update pkg/services/ngalert/sender/sender_test.go

Co-authored-by: Santiago <santiagohernandez.1997@gmail.com>

---------

Co-authored-by: Santiago <santiagohernandez.1997@gmail.com>
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-05-28 15:22:20 +02:00
Leonor Oliveira
502bd5612e Storage: Extract returned object hydration into function (#88012)
* Extract returned object hydration into function

* Finish writing tests for utils func

* Lint

* Update pkg/apiserver/rest/dualwriter_mode2.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* Better var naming

* Remove duplicated logic

* Lint

* Fix test

* Lint

* Make type private

* Fix one more test

* Fix test

---------

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>
2024-05-28 15:14:27 +02:00
Andreas Christou
4f3ab51d69 AzureMonitor: Fix service selection in E2E tests (#88378)
Use selectall to replace text
2024-05-28 14:09:20 +01:00
Sofia Papagiannaki
d2f44816fd TeamLBAC: add missing swagger tag (#88374) 2024-05-28 15:34:30 +03:00
Jack Westbrook
5ce68c50e3 Docs: add decoupled plugin commands to developer guide (#88286)
* docs(developer-guide): add development commands for building decoupled plugins

* docs(developer-guide): add subheading, tidy up tone

* Apply suggestions from code review

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>

* docs(developer-guide): plugins section to identify which plugins need additional cmds

---------

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2024-05-28 14:28:18 +02:00
Ashley Harrison
f1dbe39533 Chore: Improve typings (#88282)
* remove some type assertions

* some more type assertion fixes

* nicer

* shortcircuit while loop when hitting something that isn't an HTMLElement
2024-05-28 13:20:57 +01:00
Tobias Skarhed
c8ab138dbf TimeRangePicker: Use native scrollbar (#88327)
* Use native scrollbar

* Native overflow scroll

* Fix feedback

* Make scrollbars thin
2024-05-28 13:41:31 +02:00
Ashley Harrison
7e25ff5756 Select: Support option groups in virtualised Selects (#88232)
* change select group headers to always be visible

* remove unnecessary SelectOptionGroup

* hacky change to work with virtualised lists

* undo this change

* add top border

* remove children from the category header

* don't virtualize story

* bit of renaming

* comments

* add new story for virtualized options
2024-05-28 10:49:43 +01:00
Jack Westbrook
cd3c10d905 Chore: Sync sass with theme (#88340)
chore(sass): run theme:generate to sync sass with theme
2024-05-28 11:49:02 +02:00
github-actions[bot]
4817156ba3 I18n: Download translations from Crowdin (#88365)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-28 12:18:19 +03:00
Matias Chomicki
97cb92eb1e Logs: Added multi-line display control to the "wrap lines" option (#88144)
* LogRowMessage: strip new lines when wrapping is disabled

* LogRowMessage: prevent conflicts between failed json parsing and unwrapping

* LogRowMessage: expand multi-line unwrapped logs when opening details

* Add unit test

* Prettier

* chore: update comment
2024-05-28 11:59:11 +03:00
Ashley Harrison
6f9527b4c2 DashboardGrid: Ensure drag handle always follows the cursor (#88099)
use flushSync in react-grid-layout
2024-05-28 09:46:04 +01:00
Gabriel MABILLE
3d9908f363 Fix: Prevent ExtSvcTokens from containing nil characters (#88243)
* Fix: Prevent ExtSvcTokens from containing nil characters

* Rebase

* Add more logs

* Nit. nil -> NUL

* Nit. Part -> Parts

* Back to const

* Account for comments

Co-authored-by: Claudiu Dragalina-Paraipan <claudiu.dragalina@grafana.com>

---------

Co-authored-by: Claudiu Dragalina-Paraipan <claudiu.dragalina@grafana.com>
2024-05-28 10:39:46 +02:00
Laura Benz
f6a83432a5 RestoreDashboards: Create trash section (#88278)
* feat: add feature toggle to docs

* feat: create page in BE

* feat: create page in FE

* refactor: set feat toggle as a condition

* refactor

* refactor

* refactor

* feat: add permission conditions

* refactor

* feat: add subtitle to translations

* feat: add to codeowners

* refactor: fix docs situation

* refactor

* Merge main branch into feat branch
2024-05-28 10:26:06 +02:00
gng0
f772056296 DataLinks: Fixes datalinks with onClick and variables in url not being interpolated (#86253)
* Use replaceVariables method on link url, fix and add unit tests

* Refactor href processing for links

* Prettier
2024-05-28 08:16:55 +02:00
Andres Martinez Gotor
0b526acf09 Fix provisioning for a missing plugin (#88354) 2024-05-28 01:47:45 +03:00
Sofia Papagiannaki
39298a656a Swagger: sync specs with enterprise (#88355) 2024-05-28 01:12:54 +03:00
Laura Fernández
6d98f53e8b Chore: Remove returnToPrevious feature toggle (#88332) 2024-05-27 17:47:57 +02:00
Steve Simpson
08b18113d2 Alerting: Wire up alertmanagerRemoteOnly feature toggle. (#88329)
* Alerting: Wire up alertmanagerRemoteOnly feature toggle.

Though the mode isn't feature complete yet, it will be useful to have the
feature toggle wired up in order to start testing.

* Apply suggestions from code review

Co-authored-by: Santiago <santiagohernandez.1997@gmail.com>

* Formatting

---------

Co-authored-by: Santiago <santiagohernandez.1997@gmail.com>
2024-05-27 16:18:46 +02:00
Misi
aac6e6dfd9 Auth: Update SAML lib to improve HTTP-Post binding (#88287)
* Update lib and docs for HTTP-Post binding

* Improve docs

* fix spelling

* Regenerate go.sum and go.work.sum
2024-05-27 14:56:52 +02:00
Dominik Prokop
6e9543e0ad Preserve variables and time range when navigating between dashboards (#87966)
* POC preserve filters and group by when navigating between dashboards

* Save all variables and time range

* minor refactor

* Add feature toggle

* Update feature toggle usage

* Delete local storage item if nothing to preserve

* Structural changes

* Simplify restore params code

* Use session storage

* Add tests

* Merge fix

* Remove unused code

* And make it better, errrrrr

* Minor deduplication refactor

* last minor
2024-05-27 14:28:06 +02:00
Marcus Efraimsson
0b1aec6767 Tracing: Various improvements (#88308) 2024-05-27 14:21:40 +02:00
Ivan Ortega Alba
66950c96f6 Dashboards: Discard the entire panel if it is newly added (#87562) 2024-05-27 13:46:02 +02:00
kay delaney
c0881cc970 Dashboards: Detect unsaved folder change (#88293) 2024-05-27 12:43:31 +01:00
Luis Felipe Dominguez Vega
4248ff4688 ValueFormats: Add Uruguay peso currency (#88260) 2024-05-27 11:45:37 +01:00
Giuseppe Guerra
2b54ce6c51 Chore: Bump google.golang.org/grpc to 1.64.0 (#88219)
* Bump google.golang.org/grpc to 1.64.0

* Address grpc.Dial deprecation notices

* go mod tidy

* Update go.work.sum

* go work sync
2024-05-27 12:44:39 +02:00
Piotr Jamróz
0530b296d0 Correlations: Enable feature toggle by default (on-prem) (#88208)
* Correlations: Enable feature toggle for on-prem

* Update Loki test
2024-05-27 12:04:37 +02:00
Joao Silva
45faefa8b3 TimeRangePicker: Allow users to navigate quick ranges with arrows instead of Tab (#88138) 2024-05-27 10:33:53 +01:00
Joao Silva
3014103f41 Chore: Remove gf-form from OrganizeFieldsTransformerEditor (#88240) 2024-05-27 10:26:47 +01:00
Levente Balogh
f77f47ff00 Plugins: Update the plugin.json schema with UI extensions meta-data (#88288)
* feat: change the `generated` property

* refactor: update the schema description for the "extensions" field
2024-05-27 11:13:46 +02:00
Timur Olzhabayev
4761326568 Fix: Proper plugin logo loading depending on staging (#88247)
* making logos respect the staging

* making it work when served from subfolders

* fixing helper test
2024-05-27 10:26:30 +02:00
Fabrizio
e7f05f4ff2 Tempo: Support standard span convention (#88268) 2024-05-27 10:10:04 +02:00
Mihai Doarna
e28a34f126 Docs: Add a note about deprecating the settings update API (#87552)
* add a note about deprecating the settings update API

* Update docs/sources/setup-grafana/configure-grafana/settings-updates-at-runtime/index.md

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2024-05-27 11:08:19 +03:00
Mihai Doarna
934c510dda Docs: Update SAML docs after the integration with SSO settings API (#87512)
* update SAML docs after the integration with SSO settings API

* fix link

* address feedback

* address feedback
2024-05-27 11:07:24 +03:00
Drew Slobodnjak
14957953db Stat: Add percent change color modes (#88205)
* Stat: Add percent change color modes

* Apply color mode to percent change component

* Remove todo

* Create percent change color function and add tests

* drew08t/stat-percent-change-color-modes/ maybe fix import error?

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
2024-05-24 14:45:02 -07:00
Steve Simpson
ed42119907 Alerting: Pass metrics Registerer into NewExternalAlertmanagerSender. (#88313)
* Alerting: Pass metrics Registerer into NewExternalAlertmanagerSender.

I will work on a separate change to export the metrics from Grafana, this
is a little more complicated.

* Typo
2024-05-24 23:03:34 +02:00
renovate[bot]
bbef011e43 Update dependency nx to v19.1.0 (#85487)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-24 22:01:56 +01:00
Darren Janeczek
80a0de511f data trails: alternate legend display for missing label value (#88153)
* fix: alternate legend display for missing label value

* Update public/app/features/trails/ActionTabs/BreakdownScene.tsx

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

* Update public/app/features/trails/ActionTabs/BreakdownScene.tsx

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

---------

Co-authored-by: Nick Richmond <5732000+NWRichmond@users.noreply.github.com>
2024-05-24 15:41:20 -04:00
Darren Janeczek
a7d304a871 datatrails: on histogram breakdowns, show label value in legend (#88154)
fix: on histogram breakdowns, show label value in legend
2024-05-24 15:41:00 -04:00
Tim Levett
b5cf90ce78 API: Add in theme support to /render/* endpoint (#88304)
add in theme support to render endpoint
2024-05-24 14:12:31 -05:00
renovate[bot]
d843209ee4 Update babel monorepo to v7.24.6 2024-05-24 18:13:19 +00:00
Steve Simpson
8bcf589301 Alerting: Pass logger into NewExternalAlertmanagerSender (#88256) 2024-05-24 20:11:26 +02:00
Darren Janeczek
5c29052219 datatrails: refactor: move related code to trails/MetricSelect subdir (#88262)
refactor: move related code to trails/MetricSelect subdir
2024-05-24 13:45:21 -04:00
Juan Cabanas
f0ab501075 Chore: Add sharing squad as codeowners in render file (#88306) 2024-05-24 14:28:17 -03:00
Jon Cole
61db22f4b4 Prometheus: get Azure clouds from SDK (#87676)
* Prometheus: get the list of azure clouds from the SDK instead of from a hard coded list

* Update yarn.lock

* Fix lint

---------

Co-authored-by: Jeremy Angel (from Dev Box) <jeremyangel@microsoft.com>
Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
2024-05-24 17:56:53 +01:00
Jon Cole
67b90ceba5 Azure: Load custom clouds from ini file (#87667)
* Load custom clouds from config file

* Update docs

* Use the correct list of clouds, add test, fix error condition handling

* Remove on custom cloud from sample.ini and docs

* Remove unnecessary else block

* Use cached json instead of serializing with each request

* Update grafana-azure-sdk-go version to v2.0.4

* update configure-grafana entry for clouds_config

* fix lint errors

* fix lint errors

---------

Co-authored-by: Jeremy Angel (from Dev Box) <jeremyangel@microsoft.com>
2024-05-24 17:40:04 +01:00
renovate[bot]
9f23e9a53b Update React Aria 2024-05-24 16:28:31 +00:00
Jack Westbrook
a079343fe3 Chore: bump Nx to 19 (#88298)
* chore(npm): bump nx to v19

* build(icons): make sure icons are generated before attempting typecheck
2024-05-24 17:57:12 +02:00
Ryan McKinley
ffc2702552 Plugins: Support Admission validation hooks (#87718) 2024-05-24 18:45:16 +03:00
Andrej Ocenas
b1eb4b7dad Chore: Remove msagl related config in yarnrc (#88292) 2024-05-24 17:32:46 +02:00
Agnès Toulet
f866157f99 Page: add scrollbar ID to use in image renderer (#88214) 2024-05-24 17:28:43 +02:00
Gilles De Mey
99b5259cc1 Alerting: New list view UI – Part 1 (#87907) 2024-05-24 16:40:49 +02:00
Pepe Cano
51e27200a6 Alerting: add NeedHelpInfo for Configure No data and error handling (#88145) 2024-05-24 15:30:12 +02:00
Sergej-Vlasov
fbb5fd71f9 DashboardScenes: Optimise e2e test and add panels suite (#88170)
* refactor tests after adding additional data-testids

* add panels-suite e2e tests

* wip: add missing selectors

* finalise panels-suite tests

* clean up

* adjust workflow for test run

* restore workflow
2024-05-24 16:22:11 +03:00
Tom Ratcliffe
859b3ff78b Alerting: Fix "copy link" not including full URL (#88210) 2024-05-24 15:02:46 +02:00
brendamuir
26a01c42a6 Alerting docs: adds settings feature (#88294)
* Alerting docs: adds settings feature

* ran prettier
2024-05-24 15:01:15 +02:00
Tom Ratcliffe
ebdad80dfa Alerting: Fix rules deleting when reordering whilst filtered (#88221) 2024-05-24 13:49:52 +02:00
Domas
60f9817303 ButtonSelect: Render option custom component (#88272)
allow providing custom component to button select
2024-05-24 14:38:59 +03:00
Sonia Aguilar
caeb9bcea2 Alerting: Template selector in contact points form (#87689)
* WIP

* Refactor and update how we display these fields in the form

* Add test for getTemplateOptions and udpate parseTemplates to handle minus simbol

* fix betterer

* Fix wrapper

* Create new usePreviewTemplate to be reused from TemplatePreview and TemplateContentAndPreview

* remove unnecessary check

* track interactions

* Include the whole content of the template in the preview

* Update parseTemplates function to return default templates

* handle nested templates in parseTemplates function

* Missing border fixed, whitespaces preserved and no empty space at the bottom

* remove unused styles and add a comment in test

* Add missing error in getPreviewResults

* fix styles for template selector containers

* Alerting: PR feedback to move default templates into RTKQ (#88172)

Move default templates to RTKQ API + constant

* move parseTemplates to a utils file and refactor last part of this function

* Keep selected options when loading exising input and when switching between tabs

* Update descritpion in tabs

* Fix not previewing when loading existing values

* Update text addressing Brenda's feedback

* Add test for matchesOnlyOneTemplate function

* Add minheight to viewer container and fix getContentFromOptions function

---------

Co-authored-by: Tom Ratcliffe <tom.ratcliffe@grafana.com>
2024-05-24 13:35:48 +02:00
Oscar Kilhed
6775bcb0a3 Dashboard scenes: Fix variable saving inconsistencies (#88163)
* Fix variable saving inconsistencies

* add tests

* for variable changes to be detected, save variables need to be true

* Fix for issue with buildNewDashboardSaveModel creating filter variable withouth filter property

* remove unused import
2024-05-24 13:33:05 +02:00
github-actions[bot]
4bf284cfff I18n: Download translations from Crowdin (#88267)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-24 10:52:38 +00:00
Eric Leijonmarck
c45eecad95 Anon: Doc add feature toggle displayAnonymousStats in docs (#88218)
* update with feature toggle in docs

* fmt

* Update index.md

* Update index.md
2024-05-24 09:17:19 +01:00
Pepe Cano
3d7fc8c927 Alerting docs: Update Intro - alert rule labels and annotations (#88230)
* Update `Labels & Annotations`

* Complete labels and annotations

* Update docs/sources/alerting/fundamentals/alert-rules/annotation-label.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/alert-rules/annotation-label.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/alert-rules/annotation-label.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-05-24 10:09:35 +02:00
brendamuir
01d5744433 Alerting docs: adds note on provisioning to main page (#88264) 2024-05-24 09:44:21 +02:00
Alexander Weaver
65793440d3 Alerting: Test infrastructure for recording rules (#88200)
* Add test rule generator support for recording rules

* Remove accidental add

* Recording rules appear in GetRulesForScheduling

* A couple more tests, updates, count

* No need to capture rule defs
2024-05-23 16:27:07 -05:00
Lucy Chen
e8625ecd4a Snapshots: Prevent creation of snapshot of nonexistent dashboard (#86806)
* Add validation to check for existence of dashboard before creation

* add service mock for FindDashboard

* update tests

* reorder function

* update logic change to bool

* update naming validate dashboard

* add tests

* update return val

* remove bool return val

* simplify return statement

* update test

* remove extra spacing

* update mock

* remove unncessary space
2024-05-23 15:17:55 -04:00
Ryan McKinley
42b0f802de QueryTypes: Add feature toggle to show query types in datasource apiservers (#88213)
* initial attempt

* show query types

* show query types

* with formatting

* with formatting

* more cleanup

* add feature toggle

* fix build
2024-05-23 18:46:28 +02:00
William Wernert
006d0021e3 Alerting: Remove requirement for datasource query on rule read (#87349)
* Remove requirement for datasource query for rule read

* Address PR comments
2024-05-23 12:44:30 -04:00
Matthew Jacobson
bc5d077b30 Alerting: separate out silence auth service preconditions checks (#87998)
* Alerting: separate out silence auth service preconditions checks

Will be useful for subsequent PR that adds metadata to silence response

* Add silence read wildcard scope to precondition for read all silences
2024-05-23 12:34:42 -04:00
Pepe Cano
33db776c91 Alerting docs: fixes missing alt attributes (#88235)
* Fix missing `alt` text in images

* Fix `canonical` setting in AlertManager docs

* Fix `.`(dot) position in hyperlinks due to a temporary styling issue

* Revert "Fix `canonical` setting in AlertManager docs"

This reverts commit 65354b3642.
2024-05-23 18:07:52 +02:00
Pepe Cano
643018f94a Alerting docs: Fix Alertmanager canonical setting (#88236) 2024-05-23 17:57:22 +02:00
Sonia Aguilar
738d862b15 Gops: Update text in irm configuration tracker for sending an oncall demo a… (#88242)
Update text in irm configuration tracker for sending an oncall demo alert
2024-05-23 18:41:03 +03:00
Isabel Matwawana
197ce3042d Docs: Rename variables pages (#87844)
* Renamed Manage variables page to Add variables

* Renamed Inspect variables page to Manage and inspect variables

* Updated H1 on Add variables

* Moved Manage variables content to from Add varibles page to Manage and inspect variables page and updated text to fit

* Updated link style to ref URIs in Manage and inspect variables
2024-05-23 11:31:49 -04:00
Sonia Aguilar
e8e14a5e53 Gops: Fix wrong endpoint for incidents check (#88238)
Fix wrong endpoint for incidents check
2024-05-23 18:23:50 +03:00
Alex Khomenko
69108d3cac DateTimePicker: Add clearable prop (#88215)
* DateTimePicker: Add clearable prop

* Docs/story

* Separate func

* Cleanup

* Remove disabled style
2024-05-23 18:21:25 +03:00
Laura Fernández
2aa67c7a47 A11y: Adjust placeholder text color to pass a11y tests (#84357) 2024-05-23 16:55:57 +02:00
Juan Cabanas
a85c1b69d5 PublicDashboards: Remove publicDashboardUid from DashboardMeta (#85126) 2024-05-23 11:21:21 -03:00
Ezequiel Victorero
6e88802cab Snapshots: Add e2e test for Scenes view (#88003) 2024-05-23 10:35:03 -03:00
Avery Gottesman
56fe0102a6 Prometheus Variable Editor: Fix typo - double "Enter" in help text (#88204)
Fix double "Enter" in help text
2024-05-23 14:46:32 +02:00
Steve Simpson
8421919cb5 Alerting: Feature toggle to disallow sending alerts externally (#87982)
* Define feature toggle

* Implement feature toggle
2024-05-23 14:29:19 +02:00
Ieva
bd2b248f0e RBAC: Clean up action set code (#88147)
* remove unused action set code, refactor the existing code

* fix import ordering

* use a separate interface for permission expansion after all, to avoid circular dependencies

* add comments, fix a test
2024-05-23 12:14:01 +01:00
Piotr Jamróz
84ef99c1dc Explore: Add a query template to query library from query history (#88047)
* Add basic button for adding a query template

* Add hook to create a template

* Handle notifications

* Add tags to invalidate cache

* Generate translations

* Updates types

* Add tests

* Simplify code

* Add a better default title
2024-05-23 11:38:17 +03:00
Mathieu Parent
b8c9ae0eb7 OIDC: Support Generic OAuth org to role mappings (#87394)
* Social: link to OrgRoleMapper

* OIDC: support Generic Oauth org to role mappings

Fixes: #73448
Signed-off-by: Mathieu Parent <math.parent@gmail.com>

* Handle when getAllOrgs fails in the org_role_mapper

* Add more tests

* OIDC: ensure orgs are evaluated from API when not from token

Signed-off-by: Mathieu Parent <math.parent@gmail.com>

* OIDC: ensure AutoAssignOrg is applied with OrgMapping without RoleAttributeStrict

Signed-off-by: Mathieu Parent <math.parent@gmail.com>

* Extend docs

* Fix test, lint

---------

Signed-off-by: Mathieu Parent <math.parent@gmail.com>
Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com>
2024-05-23 09:55:45 +02:00
Agnès Toulet
42126398be Rendering: add userID in rendering log (#88132) 2024-05-23 09:41:53 +02:00
Arati R
0ffc4c441b Storage: Add mode reconciliation for modes 1 and 2 (#87919)
* Add skeleton implementation for mode reconciliation between 1 and 2
* Track mode for each dual writer
* Add test for setting dual writer
* Include context when setting dual writing mode

---------

Co-authored-by: Dan Cech <dcech@grafana.com>
2024-05-23 00:12:46 +02:00
Scott Lepper
cac40795a5 sql expressions - logging (#88193)
* sql expressions - logging
2024-05-22 17:18:46 -04:00
Isabel Matwawana
2fd51bb672 Docs: Fixed heading level (#88188)
Fixed heading level
2024-05-22 15:39:05 -04:00
Gaurav Agrawal
fdaa091a4d Alerting: Support custom API URL for PagerDuty integration (#88007)
* fix assert in LINE
* fix pagerduty asserts

---------

Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
2024-05-22 15:31:55 -04:00
Ashley Harrison
c706166a24 Select: Change Select group headers to always be visible (#88178)
* change select group headers to always be visible

* remove unnecessary SelectOptionGroup

* add top border
2024-05-22 20:25:27 +03:00
Marcus Efraimsson
8ea0b336d5 API Server: Include traceID in HTTP request logs (#88179) 2024-05-22 17:56:34 +02:00
Jack Westbrook
10f600a6e9 Build: Set Nx inputs for theme-generate (#84761)
build(nx): set inputs for theme-generate to reduce reruns of task
2024-05-22 17:07:50 +02:00
Diego Augusto Molina
8b02b6b76a Unified Storage: create kind_version table migration, add SQL and fix db (#87977)
* fix database interfaces

* add queries

* fix queries

* fix linters

* add owner to imported go library

* remove unused funcs

* run go work sync

* improve critical section fix in data race fix

* fix linters

* remove sync

* fix typo

* improve data embedding

* fix linters

* fix migration

* remove unnecessary comments

* fix linters

* improve SQL templates readability

* remove group_version from kind_version for consistency in History method

* add created_at and updated_at columns to kind_version table
2024-05-22 11:59:40 -03:00
Jack Baldry
6744dae806 Ensure all Panels and visualizations pages have /docs/grafana links too (#88165) 2024-05-22 15:40:20 +01:00
Ihor Yeromin
b4c368e72c Canvas: Fix emotion style property error (#88162)
fix(canvas): emotion style property error
2024-05-22 16:20:40 +02:00
Pepe Cano
a035040630 Alerting docs: update Intro/Queries and Conditions (#88164) 2024-05-22 15:34:07 +02:00
Marie Cruz
285567573e docs: update alert list visualization (#87815)
* docs: update alert list visualization

* Apply suggestions from code review

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* fix: linting errors

* docs: add youtube video

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-05-22 09:33:52 -04:00
Kristin Laemmert
16b1e285ea Chore: Use cache for all signed in user lookups (#88133)
* GetSignedInUser unexported (renamed to getSignedInUser)
* GetSignedInUserWithCacheCtx renamed to GetSignedInUser
* added a check for a nil cacheservice (as defensive programming / test convenience)
2024-05-22 08:58:16 -04:00
Ashley Harrison
a5414020f8 SCSS: Remove some more scss (#88129)
remove some more scss
2024-05-22 13:48:34 +01:00
Tobias Skarhed
fb1acb45a2 Search: Announce to screen reader when query returns no result (#87382)
* Add alert role to not-found variant

* Provide role prop and apply for two cases
2024-05-22 14:15:56 +02:00
Joey
38fdfe43f5 Tempo: Update lezer autocomplete (histogram, quantile) and add missing functions (#88131)
* Update version

* Update autocomplete, add new functions

* Update highlighting

* Update yarn.lock
2024-05-22 13:03:51 +01:00
Ashley Harrison
5f3cd4b900 SCSS: Remove _icons.scss and associated icons (#88127)
remove _icons.scss and associated icons
2024-05-22 12:37:03 +01:00
Jack Baldry
c97b728c08 [docs/sources/dashboards] Replace docs/reference shortcode with ref URIs (#88085) 2024-05-22 09:55:17 +01:00
Leonor Oliveira
dd771e818e Also call storage on mode1. Measure latency (#87739)
* Also call storage on mode1. Add metrics

* Update comment

* Don't use compare function for now

* Remove very important space

* Finish add logging in mode2.
Also call US in mode1 in a non blocking way

* Improve code readability on modes 1 and 2

* Fix tests

* Rename vars

* Lint

* Return error from legacy write

* Renume useless defer

* [REVIEW] improvements

* Pass kind instead of name

* Use kind instead of name in metrics

* Only call latency metrics once

* Return error on writes to legacystore in mode1

* Move accesssor logic into the goroutine as well
2024-05-22 10:23:29 +02:00
Jack Westbrook
7c5c62f617 Fix: Plugin dev command should watch all decoupled plugins (#88160)
fix(frontend): update plugin scripts to watch all plugins and remove ignore flags
2024-05-22 10:15:09 +02:00
Gabriel MABILLE
9dfe961013 Plugins: Add logging to plugin envvars (#88143)
Add logging to plugin envvars

Co-authored-by: Claudiu Dragalina-Paraipan <claudiu.dragalina@grafana.com>
Co-authored-by: Mihai Doarna <mihai.doarna@grafana.com>
2024-05-22 09:04:41 +02:00
Alexander Weaver
89b54d06e9 Alerting: Schedule a shim implementation for recording rules (#87939)
* Add shim rule implementation for recording rules

* Give ruleFactory access to the original rule definition

* Schedule shim implementation if the rule is a recording rule

* Fix or suppress linter

* Fix nolint
2024-05-21 16:42:58 -05:00
Pepe Cano
fc11350554 Alerting docs: remove Namespaces/folders/groups doc from Alert rules Intro (#88146)
Alerting docs: remove Namespaces/folders/groups doc from Alert rules Intro
2024-05-21 22:43:36 +02:00
Alexander Weaver
49c8deb1ea Alerting: Add recording rules to ruler API and validation (#87779)
* Read path, main API

* Define record field for incoming requests

* Refactor several alerting specific validators into two paths

* Refactor validateCondition actually contain all the condition validation logic

* Move condition validation inside rule path

* Validators for recording rules

* Wire feature flag through to validators

* Test for accepting a valid recording rule

* Tests for negative case, no UID

* Test for ignoring alerting fields

* Build conditions based on recording rules as well

* Regenerate swagger docs

* Fix CRUD test to cover the right thing

* Re-generate swagger docs with backdated v0.30.2 version

* Regenerate base spec

* Regenerate ngalert specs

* Regenerate top level specs

* Comment and rename

* Return struct instead of modifying ref
2024-05-21 14:39:28 -05:00
Marie Cruz
fa319f36fb docs: update dashboard list visualization (#87494)
* docs: update dashboard list visualization

* docs: add youtube video

* Apply suggestions from code review

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Ran prettier

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Isabel Matwawana <isabel.matwawana@grafana.com>
2024-05-21 14:04:48 -04:00
linoman
40aff085fb multi-tenant Azure AD follow-up (#88134)
* Follow up comments from docs team
2024-05-21 17:17:55 +02:00
Jack Baldry
c16699e70d [docs/sources/panels-visualizations] Replace docs/reference shortcode with ref URIs (#88081) 2024-05-21 16:16:47 +01:00
Gilles De Mey
8cc944f64f Alerting: Docs feedback (#88125)
update OK to Normal label, matching instances to instances
2024-05-21 18:10:12 +03:00
Ieva
3e77768144 RBAC: Expand action sets when fetching permissions (#87967)
* logic to expand action set to the underlying actions when permissions are fetched from the DB

* updates needed for dependency injection

* clean up some code, also deduplicate scopes when grouping scopes and actions

* expand on a comment

* rename a method
2024-05-21 15:09:26 +01:00
William Wernert
cb0bcb6fe4 Alerting: Fix/update alerting API spec (#88130) 2024-05-21 10:06:44 -04:00
github-actions[bot]
10171a48bf I18n: Download translations from Crowdin (#88092)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-21 16:59:12 +03:00
linoman
3359025abd IAM Docs: Describe the setup for a multitenant configuration with AzureAD (#87836)
* Describe the setup for a multitenant configuration with AzureAD
2024-05-21 15:17:26 +02:00
Aaron Godin
0072e4a92d Update DS Proxy to use RBAC action (#87517)
iam-team: Update DS Proxy to use RBAC action
2024-05-21 08:05:16 -05:00
Jack Baldry
410e3b17e9 [docs/sources/alerting] Replace docs/reference shortcode with ref URIs (#88079) 2024-05-21 15:43:21 +03:00
brendamuir
fe78563faa Alerting docs: vale fixes (#88039)
* Alerting docs: vale fixes

* ran prettier
2024-05-21 14:26:40 +02:00
ismail simsek
9bdfb6ee13 InfluxDB: Introduce custom variable support (#87903)
* Introduce custom variable support

* Remove comment lines

* betterer
2024-05-21 13:46:41 +02:00
Andrej Ocenas
a2aea70100 Tempo: Don't modify the passed time range when using timeShiftEnabled (#87980)
Don't modify the passed range
2024-05-21 13:12:27 +02:00
Marcus Efraimsson
9e6f18c947 API Server: Add temporary request log for queries (#88103) 2024-05-21 13:07:47 +02:00
Tom Ratcliffe
dbf258b837 Alerting: Center "need help" icons (#87981) 2024-05-21 12:04:10 +01:00
Oscar Kilhed
059e412344 Dashboards: timeRangeUpdatedDuringEditOrView should not be persisted (#88119)
Fix persisting timeRangeUpdated that should not be persisted
2024-05-21 11:41:28 +02:00
Piotr Jamróz
03650f76f1 Explore: Convert kebab-case styles to camel-case (#88048) 2024-05-21 09:38:05 +00:00
Joey
a398188e69 Revert: Tempo: Always use time range even if timeShiftEnabled is false (#88095)
Revert "Tempo: Always use time range even if timeShiftEnabled is false (#85477)"

This reverts commit e91136338a.
2024-05-21 10:03:31 +01:00
Usman Ahmad
6bf69d141e Docs/usman plugin mgmt (#85424)
* fixed text and better formatting

* added examples of community and partners plugins

* added more clarity to apps plugin usage

* added and also fixed more

* added clarity to the server and org admin roles

* run prettier

* fixed some minor typos

* Apply suggestions from code review

thanks. looks good now-

Co-authored-by: David Harris <david.harris@grafana.com>

* Technical edit

* restorted the changes in panel and datasource examples as requested

* revert duplicated change

* Apply suggestions from code review

Thanks Jack for the suggestions. Looks good!!

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* added minor adjustment

* fixed typo

* added bash syntax

* revert changes

* added changes from PR 87168 for index.md file

* Delete docs/sources/shared/find-and-use-plugins.md

removed this file from the PR as was not intended to be part of this PR.

This PR is only for the Grafana OSS and not for the Grafana Cloud

* run prettier

* Apply suggestions from code review

Co-authored-by: David Harris <david.harris@grafana.com>

* Update docs/sources/administration/plugin-management/index.md

Co-authored-by: David Harris <david.harris@grafana.com>

* Update docs/sources/administration/plugin-management/index.md

Co-authored-by: David Harris <david.harris@grafana.com>

* added a small text fix

* added cloud tag in product labels

* run prettier

* Apply suggestions from code review

thanks for the review

Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>

* fixed typo for note section

* run prettier to fix

---------

Co-authored-by: David Harris <david.harris@grafana.com>
Co-authored-by: Joe Perez <joseph.perez@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>
2024-05-21 10:24:26 +02:00
Tristan
bffd87107b CloudWatch: Add additional AWS/KinesisAnalytics metrics (#88101) 2024-05-21 09:50:19 +02:00
Nathan Marrs
3d980f1d8d Canvas: Chore clean up more betterer warnings (#88010) 2024-05-20 21:27:27 -06:00
knuzhdin
28992f0488 Dashboard: Make dashboard search faster (#88019) 2024-05-20 13:42:24 -04:00
Sergej-Vlasov
e324a346f6 DashboardScene: Re-enabled skipped scenes e2e tests due to bugs (#87723)
* enabled skipped tests

* adjust to wait for loading indicator

* adjust typos

* adjust e2e workflow for test PR run

* restore workflow

* adjust workflow for test run

* restore workflow to sheduled runs
2024-05-20 20:30:35 +03:00
Leonardo Boleli
e1e33d2f31 Cloudwatch: Add AWS/Events Metrics (#88097) 2024-05-20 11:46:57 -04:00
Jack Baldry
01cd2efbef [docs/sources/developers] Replace docs/reference shortcode with ref URIs (#88088) 2024-05-20 16:29:57 +01:00
Ryan McKinley
6d10797812 Errors: Update errutil to be compatible with k8s errors (#87605) 2024-05-20 18:11:37 +03:00
Santiago
60e7a4e746 Alerting/Chore: Remove unused parameters (#88045)
Alerting/Chore: Remove unused parameters from redisPeer.receiveLoop() and ReceiverService.shouldDecrypt()
2024-05-20 16:37:39 +02:00
Yuri Tseretyan
8c2a382788 Alerting: Fix typo in JSON response for rule export. (#88028) 2024-05-20 09:39:39 -04:00
Mihai Doarna
860dd7f58b SSO: enable api_url validator for azuread (#85967)
enable api_url validator for azuread
2024-05-20 16:13:43 +03:00
Mihai Doarna
295b31ccd7 Auth: Update ssoSettingsSAML flag to public preview (#87548)
* update ssoSettingsSAML flag to public preview

* generate files
2024-05-20 16:13:05 +03:00
Kristina
c8d237dd56 Explore / Query Library: Enable run button (#87882)
* Enable run button

* First pass of shared component, tests half-implemented

* cleanup
2024-05-20 08:05:59 -05:00
Ashley Harrison
3800b97a5b Chore: Clean up some @grafana/ui SCSS (#87986)
* clean up drawer and slider styles

* clean up cascader styles
2024-05-20 12:51:34 +01:00
Andrej Ocenas
20294b0fb6 NodeGraph: Remove msagl lib and layered layout option (#87905)
* Remove msagl lib

* Change drone.yml

* update signature
2024-05-20 13:50:08 +02:00
Ashley Harrison
429bcbe67f Select: Preserve value when allowCustomValue is set (#87843)
* initial working poc with some better types

* move logic inside SelectBase

* add unit tests

* cleaner logic

* simpler

* update comments

* more comments

* use onMenuClose

* undo changes to cleanValue

* fix unit tests

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-05-20 11:01:38 +01:00
Joao Silva
cf407fe8de Button: Allow disabled button to still be focused (#87516) 2024-05-20 10:39:52 +01:00
Ashley Harrison
8f6dcfee8b Icon: Remove hardcoded color from ai icon (#87996)
* remove hardcoded color from ai icon

* remove opacity from icon

* adjust icon in grafana-icons as well
2024-05-20 10:32:37 +01:00
Ryan McKinley
e8b7b6aa66 ResourceClient: Add generateName (eg UID) helper (#88037) 2024-05-20 12:18:53 +03:00
Pepe Cano
f3be9d009e Alerting docs: Fix H3 headings in Configure Grafana alert rules. (#88040)
Configure Grafana alert rules: Fix `H3` headings
2024-05-20 10:41:27 +02:00
Piotr Jamróz
d09f5abec9 Correlations: improve error handling (#87810)
Improve error handling
2024-05-20 10:35:47 +02:00
Olivier Giniaux
e91136338a Tempo: Always use time range even if timeShiftEnabled is false (#85477)
* Tempo: Always use time range even if timeShiftEnabled is false

* Fix unused import and failing test
2024-05-20 09:28:07 +01:00
Torkel Ödegaard
fe991a9a7b PanelOverrides: Only filter out override properties that do not exist (#87904) 2024-05-20 09:48:07 +02:00
Pepe Cano
8e5ce99f72 Update Configure no data and error handling and State & Health (#87985)
* Update `Configure no data and error handling` and State & Health

* Update docs/sources/alerting/alerting-rules/create-grafana-managed-rule.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/alerting-rules/create-grafana-managed-rule.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/alerting-rules/create-grafana-managed-rule.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/alert-rule-evaluation/state-and-health.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-05-20 09:39:30 +02:00
Pepe Cano
67f434dc73 Remove Single and multi-dimensional rule from Configure alert rules (#87951)
* Remove `Single and multi-dimensional rule` from `Configure alert rules`

* Do not change H3 titles
2024-05-20 09:34:00 +02:00
Pepe Cano
54eab4db59 Alerting docs: Relocate Resolved stale alert instances section (#87965)
Relocate `Resolved stale alert instances` section
2024-05-20 09:33:14 +02:00
Karl Persson
78d1b2a250 Authn: Share key retriever between id and access token verifiers (#87978) 2024-05-20 09:13:46 +02:00
Alex Khomenko
0a10793840 Store: Enable adding extra middleware (#87984)
* Store: Enable adding extra middleware

* Fix type
2024-05-20 08:34:00 +03:00
Andreas Christou
58d382e5dd CloudMonitoring: Fix query type selection issue (#87990)
* Use deepEqual to ensure migratedQuery is only returned when query is unchanged

* Add selectors for query editors

* Add more tests for query editor component

* Clarifying comments

* Fix how state is set

* Simplify query editor loading and migration
2024-05-17 14:06:05 -04:00
Yuri Tseretyan
05d6813a09 Alerting: Fix scheduler to sort rules before evaluation (#88006)
sort rules scheduled for evaluation to make sure that the order is stable between evaluations.
This is especially important in HA mode.
2024-05-17 11:38:19 -04:00
Ieva
da1a99d729 Team: Add an endpoint for bulk team membership updates (#87441)
* add an endpoint for bulk team membership updates

* update comment

* schema gen

* test fix

* add swagger parameter definition
2024-05-17 13:41:41 +03:00
Xavi Lacasa
7726631fe8 IAM docs: Update Azure AD OAuth2.0 docs after rename to Entra ID (#87925) 2024-05-16 20:36:52 +02:00
Ryan McKinley
778d9eb69d Live: Add more devenv dashboards (#87952) 2024-05-16 20:37:24 +03:00
Ezequiel Victorero
42d75ac737 Dashboards: Add feature restore dashboards backend (#83131)
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
2024-05-16 14:36:26 -03:00
Andreas Christou
edae5fc791 Azure: Fix for username assertion (#87853)
Fix for username assertion

- Allow setting username assertion in INI
- Correctly set the azsettings value
- Update tests
2024-05-16 11:50:02 -05:00
Adela Almasan
1957cfe6af XY Chart: Fix series editor index (#87942) 2024-05-16 11:18:13 -05:00
Matias Chomicki
82796fad98 Elasticsearch: queries no longer executed on-change (#87652)
* Elasticsearch: queries no longer executed on-change

* Elasticsearch: run query if it was previously undefined
2024-05-16 19:09:50 +03:00
Tom Ratcliffe
938fcab1c8 Alerting: Skip flakey silencing test (#87994) 2024-05-16 18:49:18 +03:00
Ezequiel Victorero
5ce2d4e1a7 Snapshots: Render Dashboard controls in Scenes View (#87972) 2024-05-16 12:22:14 -03:00
antonio
c7d2a7a19c grafana fundamentals fix (#87975)
* grafana fundamentals fix

* pretty face
2024-05-16 16:56:32 +02:00
Isabel Matwawana
80e2af5d25 Docs: public dashboards fixes (#87870)
* Made minor style fixes

* Converted docs ref links to ref URIs and updated note style to admonitions

* Fixed link text and version syntax
2024-05-16 09:16:39 -04:00
Kyle Brandt
1ab8208e07 Prometheus: Add interpolation of groupByKeys query parameters into expr (#86360)
---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-05-16 08:36:03 -04:00
Marcus Efraimsson
961272a76d Datasources: Enable native histograms for datasource response size metric (#87962) 2024-05-16 13:48:51 +02:00
github-actions[bot]
c46c0c9eb9 Update make docs procedure (#87950)
Co-authored-by: grafanabot <bot@grafana.com>
2024-05-16 12:00:32 +01:00
Alex Khomenko
4c2c717fed Banner: Add nav link (#87885)
* Notification Banner: Add feature toggle

* Add banner node to general section
2024-05-16 13:21:24 +03:00
Ashley Harrison
82eb160f5c Chore: SCSS tidy up (#87956)
* more scss tidy up

* replace some scss
2024-05-16 11:20:29 +01:00
antonio
086def3f57 alerting: contact points - links (#87955)
* alerting: contact points - links

* fundamentals: alerting instructions update

* updated steps

* prettier
2024-05-16 12:19:44 +02:00
Santiago
e41434c332 Alerting: Promote configuration in the remote Alertmanager (#87388) 2024-05-16 12:06:03 +02:00
Daniele Stefano Ferru
fbda55316d K8s: Set X-Remote-Extra-User-Instance-Role header for SignedInUser (#87958) 2024-05-16 12:57:49 +03:00
Karl Persson
5c27f223af Authn: Support access token wildcard namespace (#87816)
* Authn+ExtJWT: allow wildcard namespace for access tokens and restructure validation
2024-05-16 10:47:20 +02:00
Arati R
4867fd3069 Storage: Test mode 2 dual writer in playlist tests (#87938)
Add mode 2 feature flag to playlist tests
2024-05-16 10:39:30 +02:00
Tom Ratcliffe
9e29c215c3 Alerting: Update silences creation to support __alert_rule_uid__ and move into drawer (#87320) 2024-05-16 09:34:07 +01:00
Gabriel MABILLE
e7d5622969 RBAC: No need to filter permissions on cache hit (#87941) 2024-05-16 09:53:20 +02:00
Nathan Marrs
431fdd4bab Canvas: Adhere editing state to dashboard editable state (#87883) 2024-05-15 17:17:50 -07:00
Liza Detrick
a17340ea8b Applinks: Adds grafana-attributions-app to Cost Management nav (#87765)
* Applinks: add attributions under cost management -> metrics
2024-05-15 14:26:18 -07:00
Isabel Matwawana
47b42c9d42 Docs: Add annotated image and updated feature overview list (#87833)
Added annotated image and updated feature overview list
2024-05-15 16:22:49 -04:00
Yuri Tseretyan
f410c7fca1 Alerting: use logger with same context within rule scheduling loop (#87934) 2024-05-15 15:38:00 -04:00
Kyle Cunningham
e4db00903b Format String Transformation: Add applicability function (#87777)
* Add applicability function

* Prettier
2024-05-16 02:29:30 +07:00
Tom Ratcliffe
aae6b5312a Alerting: Fix "evalutation" typo (#87930) 2024-05-15 19:05:45 +03:00
Tom Ratcliffe
f4d55d2612 Alerting: Restructure mock server handlers slightly and remove unnecessary handlers (#87759) 2024-05-15 16:53:16 +01:00
Ashley Harrison
1af4256a7c Switch: Improve disabled active state (#87694)
* add subtle active disabled state + fix story

* make toggle disabled color when disabled

* add icon in checked state

* undo placement changes

* readd positioning changes

* remove extra css
2024-05-15 16:50:24 +01:00
Usman Ahmad
9f543fa8d6 Update helm docs - removed enterprise tag from product labels (#87922)
Update index.md
2024-05-15 10:15:33 -05:00
SeamusGrafana
7f58a5b239 Disable Requirement for SSL in 'cloak.sql' (#86919)
Disable Requirment for SSL in 'cloak.sql'

Disable the Requirement for SSL on External Sites in Keycloak Database for Grafana Realm
2024-05-15 17:12:51 +02:00
Torkel Ödegaard
ce18b2f983 Dropdown: Fixes missing calls to onVisibilityChange causing wrong caret states (#87923) 2024-05-15 17:07:59 +02:00
Scott Lepper
93acc0c932 sqlexpressions - fix escape quote (#87921) 2024-05-15 10:55:58 -04:00
Pepe Cano
608a3faacd Alerting docs: Last changes State and Health (#87920)
* Last changes `State and Health`

* Add additional explanation for `Keep last state`

* Minor clarification
2024-05-15 16:44:52 +02:00
Alexander Weaver
1badcf4b63 Alerting: Allow NoData and ExecErrState to be fully blank on recording rules (#87868)
* Allow empty NoData and ExecErrState on recording rules

* remove TODO about this
2024-05-15 09:35:54 -05:00
Dominik Prokop
fa63e03df3 MultiSelect: Respect value passed to the component regardless of custom value being allowed or not (#87906)
* MultiSelect: Respect value passed to the component regardless of custom value being allowed or not

* reset input for test

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-05-15 16:24:30 +02:00
Fabrizio
953c8f838f Loki: Lower log level when retrieving metadata (#87910)
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2024-05-15 17:08:03 +03:00
antonio
e2f062d16d alerting: Improve documentation regarding linking and visualizing alert rules in dashboards (#87892)
* commit 4

* commit 5
2024-05-15 15:50:32 +02:00
Jack Westbrook
65b2834420 Grafana UI: Bump to Storybook 8 (#87722)
* chore(storybook): run yarn dlx storybook@latest upgrade

* chore(storybook): remove storybook/blocks patch

* chore(yarn): clean up storybook dependencies

* feat(storybook): migrate to v8 config via migration codemods

* refactor(storybook): update stories to use v8 types via codemod

* refactor(storybook): update stories to use preview-api instead of client-api

* refactor(storybook): replace mdx usage of ArgsTable with PureArgsTable

* refactor(storybook): migrate remaining mdx files to v8 storybook/blocks api

* refactor(storybook): clean up mdx imports and blocks component names

* chore(storybook): clean up typescript configuration

* fix(frontend): align types/react versions across monorepo so grafana ui can be built

* fix(storybook): pub back react-docgen-typescript and use ArgTypes so props tables work

* chore(storybook): patch blocks package to expose Preview component

* revert(storybook): revert changes related to using Canvas component in mdx files

* Storybook upgrade: Fix icon typing (#87793)

fix iconOptions typing

* refactor(storybook): prefer as const over asserting types

* revert(storybook): put back correct case in box.mdx

---------

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-05-15 15:49:00 +02:00
Bogdan Matei
6127dfd322 Scopes: Adapt for new API (#87841)
* Implement changes for new Scopes API

* Update from linkID to linkId

* Fixes

* Fix tests

* prom/scopes: change query model to recieve []ScopeSpec

* Move to basic backend service

---------

Co-authored-by: Kyle Brandt <kyle@grafana.com>
2024-05-15 16:28:09 +03:00
Alex Khomenko
6c1e9a9717 Grafana/ui: Update IconRenderer (#87914) 2024-05-15 16:27:05 +03:00
Juan Cabanas
a6d64c6ed5 PublicDashboards: Public dashboard refreshed when access token changes (#87913) 2024-05-15 10:20:00 -03:00
Kevin Minehart
90970d5f58 CI: In promotions, set the --go-version when building Grafana packages (#87912)
* Specify drone-version when building in promotions

* Specify drone-version when building in promotions
2024-05-15 16:10:06 +03:00
Sonia Aguilar
3aae2b7e04 Alerting: Assume built-in AM is receiving alerts in case of not having admin config (#87893) 2024-05-15 14:51:28 +02:00
lean.dev
639ab6cca7 Tempo: Implement PDC for gRPC client (#85867) 2024-05-15 14:39:02 +02:00
Konrad Lalik
1cf1c5f03a Alerting: Add hide plugins rules filter (#87445)
* Add hide plugins rules filter

* Change the filter label and available values

* Setup plugins hook in tests

* Fix lint errors

* remove unused code
2024-05-15 14:09:56 +02:00
ismail simsek
4fef6ff30d Chore: Use TemplateSrv from @grafana/runtime in influxdb datasource (#87813)
use templatesrv from @grafana/runtime
2024-05-15 12:42:09 +02:00
Torkel Ödegaard
699c5bfe79 DashboardScene: Skip panel repeats when values are the same (#87788)
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-05-15 12:29:46 +02:00
Ida Štambuk
272cfa83b1 Feature Management: Move awsDatasourcesNewFormStyling to GA (#87696) 2024-05-15 12:23:24 +02:00
Oscar Kilhed
d52381b744 Dashboard scenes: Fix issue going from view panel to edit panel when dashboard is not in edit mode (#87487)
Fix issue going from view panel to edit panel
2024-05-15 11:53:02 +02:00
Pepe Cano
37d1d1c0a0 Alerting docs: Update State and health of alerts docs (#87846)
* Update `View alert state and history`

* first edit `State and Healths of alerts`

* Complete `State and health of alerts`

* Update docs/sources/alerting/fundamentals/alert-rule-evaluation/_index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-05-15 10:49:16 +02:00
Sonia Aguilar
28bf5a4577 Gops: Add tracking for data source check (#87886)
Add tracking for data source check
2024-05-15 10:35:36 +02:00
antonio
f24eb3165b alerting: adding links to get-started tutorial (#87811)
* alerting: adding links to get-started tutorial

* Update index.md

* Update create-grafana-managed-rule.md

* Update _index.md

* Update _index.md

* Update docs/sources/alerting/alerting-rules/create-grafana-managed-rule.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/_index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* pretty

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-05-15 08:57:12 +02:00
Nathan Marrs
d92ec98ecc Transformations: Add string type check to field value in substring value matcher (#87782) 2024-05-14 16:56:46 -07:00
grafana-delivery-bot[bot]
012ee1d557 Changelog: Updated changelog for 9.5.19 (#87873)
Co-authored-by: grafanabot <bot@grafana.com>
2024-05-14 17:19:30 -04:00
Scott Lepper
14a814a280 [sql expressions] fix: use ast to read tables (#87867)
* [sql expressions] fix: use ast to read tables

* can't run tests during ci yet.  need to install duckdb

* skip for now.  need duckdb cli
2024-05-14 17:05:29 -04:00
grafana-delivery-bot[bot]
7d386dc26b Changelog: Updated changelog for 10.1.10 (#87869)
Co-authored-by: grafanabot <bot@grafana.com>
2024-05-14 16:52:30 -04:00
Alexander Weaver
b8a284fb81 Alerting: Fix xorm serialization of Record field struct, add tests for storing and reading (#87857)
Fix sub struct ser and deser, add tests
2024-05-14 14:50:06 -05:00
Tom Glenn
1e2c58fc80 Docs: Adds video embed for the Understanding Dashboards youtube video (#87449)
* Adds video embed for the Understanding Dashboards youtube video

* Moved video to Use dashboards page

---------

Co-authored-by: Isabel Matwawana <isabel.matwawana@grafana.com>
2024-05-14 15:03:56 -04:00
grafana-delivery-bot[bot]
a50bcaca57 Changelog: Updated changelog for 10.2.7 (#87847)
Co-authored-by: grafanabot <bot@grafana.com>
2024-05-14 12:59:33 -04:00
owensmallwood
557c3a9cdd Unified Storage: Adds metrics for database query counts (#87781) 2024-05-14 10:17:38 -06:00
Ieva
4b24019bae Dashboards: Don't set dashboard creator/updater if the action is done by an API key (#87704)
don't parse userID if entity isn't user or service account
2024-05-14 17:02:03 +01:00
Ieva
b382cea9c8 RBAC: Update role picker in team page, fix a bug with roles being removed upon team setting update (#87519)
immediately update team roles through team role picker in team settings page instead of doign apply + update flow
2024-05-14 17:00:04 +01:00
Ivana Huckova
f99c722ecf FeatureBadge: Update FeatureBadge to support current release stages (#87555)
* FeatureBadge: Update avalaiable FeatureState

* Move to separate folder

* Add private preview state
2024-05-14 18:58:47 +03:00
Joey
225755b2da Tempo: Check for histogram in isTraceQlMetricsQuery (#87840)
Check for histogram in isTraceQlMetricsQuery
2024-05-14 16:55:57 +01:00
Diego Augusto Molina
cbcd945251 Unified Storage: in SQL template, also handle output data, improve API, examples and docs (#87560)
* preview of work so far

* stylistic improvements

* fix linters

* remove golden tests, they may cause the system to be too rigid to changes

* remove unnecessary code for golden tests

* remove white space mangling in Execute

* also handle output data, improve API, examples and docs

* add helper methods

* fix interface
2024-05-14 12:32:21 -03:00
Dominik Prokop
c747e344bf SelectMenu: Fix potential undefined problem (#87835) 2024-05-14 18:16:00 +03:00
Kyle Brandt
ea1845edbe Scopes: Change JS linkID to linkId (#87831) 2024-05-14 11:01:21 -04:00
ttshivers
b07b927a94 Tempo: Escape backslash in span name for promsql query (#83024)
* Tempo: Escape backslash in span name for promsql query

In promsql, backslashes in regexes must be doubly escaped for them to be
interpreted as a literal backslash character.

Fixes #79791

* Fix regex replace

---------

Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
2024-05-14 16:57:35 +02:00
Sergej-Vlasov
5f147644d4 DashboardScene: Default hoverHeaderOffset to 0 (#87561)
* remove hoverHeaderOffsetBehavior and force offset to 0

* force headerHoverOffset in addPanel flow
2024-05-14 17:50:59 +03:00
Sonia Aguilar
ca0dae6812 Gops: Add configuration tracker on the existing IRM page (#85838)
* WIP

* add configure irm componet and pass it to Nav

* add check if theres datasource for Alerts

* update incident steps links

* uncomment done property in the interface

* Fix not having data sources in store and removing warning using wrong Icon name type

* call incidents api in done step

* Show checked steps with an icon instead of a badge

* Implemnt check contact point ready in essentials

* Fix codeowners and prettify file

* Check if there is one oncall integration in at least one contact point

* Refactor

* Check for oncall integration being created

* Add the test oncall integration action

* Do not hide any card in irm page, and refactor

* Refactor: move hooks to a separate file

* Implement oncall chatops checks

* update incidents hook

* Show new irm page only on cloud and for admins

* fix prettier in irmhooks

* remove unused import

* fix prettier in irm hooks

* fix axios method

* Add progress bar on essentials

* Update texts and some styles

* Refactor

* fix api call

* fix check is plugin is installed

* fix async call

* fix lint

* Do not show check icon when done field is undefined in a step

* refactor

* Add test for Essentials

* check if incident plugin installed

* call incidents api to get steps

* add the new api to get config

* fix prettier

* memoize the api call

* fix lint

* add proper api call

* check if response is valid

* fix typo

* use state to save the values

* fix lint

* fix response schema

* fix prettier

* update incident steps copy

* udapte texts in respond tooltips

* Fix confiure IRM route check

* Fix logic for the data source check: check if there is a data source that is alerting compatible

* Use existing header prop in NavLandingPage instead of creating a new prop

* fix wrong updated file

* Update logic for default contact point check and update some links

* Update texts and show only one item for oncall integration with alerting checks

* Update texts following suggestions in the doc

* Fix getting default contact point and update oncall link for slack tab

* Update texts, buttons and checks following last meeting action items

* remove unnecessary component drawer

* Track interactions: user open or close essentials drawer

* Refactor

* remove unnecessary createMonitoringLogger for tracking irm events

* remove unnecessary style

* refactor

* refactor

* Add fallback links and labels for action buttons when step is done

* Update irm card styles

* remove extra space after progress bar numbers

* remove progress bar border

* Address pr review comments

* remove unnecessary AlertmanagerProvider

* fix logic behind default contact point check

* update test

* Address pr review comments part1

* add aria and properties role for Progressbar

* Reorganize hooks into separate folders/files for each app

* move done field to the step level

* Handle empty dropdown options

* Handle loading state

* Update tooltip for connecting alerting to oncall

* Use RTKQ for incidents

* handle loading for oncall hooks

* refactor getting configuration for each app

* fix incident rtkq query to be a query instead of mutation

* refactor: rename variable

* Address some nits in the review

---------

Co-authored-by: reemtariqq <reem.tariq@grafana.com>
2024-05-14 16:42:22 +02:00
renovate[bot]
367af27d7a Update dependency @grafana/scenes to v4.21.1 2024-05-14 16:14:34 +02:00
Ryan Crutchfield
c912cb399b Update JWT auth page (#87523) 2024-05-14 15:11:05 +01:00
Gábor Farkas
c0333130af postgres/mysql: improve macro docs (#87434) 2024-05-14 15:10:27 +01:00
grafana-delivery-bot[bot]
8b77e7b417 Changelog: Updated changelog for 10.3.6 (#87819)
Co-authored-by: grafanabot <bot@grafana.com>
2024-05-14 16:00:54 +02:00
Steve Simpson
67fa96f88d Alerting: Pass logger into NewAnnotationBackend. (#87812)
* Alerting: Pass logger into NewAnnotationBackend.

Make it possible to pass loggers into more places for code reuse.

* Mistake in passing logger
2024-05-14 15:51:27 +02:00
David Allen
5678012f0f docs: add dashboard list play link (#87807) 2024-05-14 09:49:41 -04:00
William Wernert
563fcb8bf4 Alerting: Encode query model map to string in rule export to avoid html escape sequences (#87663)
* Encode query model map to string to avoid html escape sequences

* Remove insignificant whitespace in test request
2024-05-14 09:29:50 -04:00
Ryan McKinley
62d326cf04 Plugins: Add baseMiddleware support (#87799) 2024-05-14 16:27:40 +03:00
Fayzal Ghantiwala
7a2fbad0c8 Alerting: Add options to configure TLS for HA using Redis (#87567)
* Add Alerting HA Redis Client TLS configs

* Add test to ping miniredis with mTLS

* Update .ini files and docs

* Add tests for unified alerting ha redis TLS settings

* Fix malformed go.sum

* Add modowner

* Fix lint error

* Update docs and use dstls config
2024-05-14 14:21:42 +01:00
Alexander Weaver
e39658097f Alerting: Wire recording rules feature toggle into limits struct (#87778)
Wire toggle into limits
2024-05-14 07:44:14 -05:00
Adela Almasan
fa66816be4 BarChart: Add check for empty series (#87761)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-05-14 07:38:29 -05:00
Karl Persson
9977258d04 AuthN: Set uid during authentication (#87797)
* Identity: Remove GetNamespacedUID and use GetUID instead

* Authn: Set uid for users and service accounts
2024-05-14 14:13:50 +02:00
Arati R
6836bfe1ea Storage: Customise setting dual writing modes (#87668)
* Add feature toggles for mode 2 and 3 playlist dual writing
* Make current mode customised based on kind
* Check feature flags when initialising dual writer
* Fix linting
* Refactor NewDualWriter
2024-05-14 14:11:56 +02:00
Andres Martinez Gotor
d8904f3ca4 Add apiVersion to plugin models (#87510) 2024-05-14 13:58:27 +02:00
renovate[bot]
2f11cf84e8 Update dependency @grafana/experimental to v1.7.11 2024-05-14 11:51:13 +00:00
Torkel Ödegaard
6f1fce7540 TestData: Fixes query interpolation (#87803) 2024-05-14 13:40:54 +02:00
grafana-delivery-bot[bot]
a3838c0dbe Changelog: Updated changelog for 10.4.3 (#87804)
Co-authored-by: grafanabot <bot@grafana.com>
2024-05-14 13:31:41 +02:00
Fabrizio
bd4e9d102b Update version to 11.0.0 2024-05-14 12:54:11 +02:00
Torkel Ödegaard
9cd7c87b48 DashboardScene: Fixing major row repeat issues (#87539)
* DashboardScene: Fixing major row repeat issues

* Fixing edit scope

* Use dashboard variableDependendency to notify row repeat behaviors

* update scenes lib

* Do not repeat if values are the same

* Update public/app/features/dashboard-scene/scene/DashboardScene.tsx

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>

* Updated scenes

* Update

* Update

* Do not render row actions for repeated rows

* Fixed e2e

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-05-14 12:39:10 +02:00
Ezequiel Victorero
c9c6445554 Chore: Refactor render via http (#84613) 2024-05-14 07:24:18 -03:00
Ashley Harrison
a7a503501a Select: Ensure virtualised menu scrolls active option into view when using arrow keys (#87743)
scroll option into view whenever current focusedIndex changes
2024-05-14 10:36:28 +01:00
Brendan O'Handley
7569fa6297 Prometheus: Add native histogram types metric explorer to allow filter by type (#87090)
* add native histogram type and give them the right type

* add tests for native histograms

* fix test
2024-05-14 11:23:44 +02:00
grafana-delivery-bot[bot]
da800a026f Changelog: Updated changelog for 11.0.0 (#87790)
Co-authored-by: grafanabot <bot@grafana.com>
2024-05-14 10:45:16 +02:00
Tobias Skarhed
aa7a01a87e TimeRangePicker: Announce to screen reader when time range is updated (#87692)
Add aria live to TimeRangePicker
2024-05-14 10:20:15 +02:00
Piotr Jamróz
fd218edca4 Explore: List query templates (#86897)
* Create basic feature toggle

* Rename context to reflect it contains query history and query library

* Update icons and variants

* Rename hooks

* Update tests

* Fix mock

* Add tracking

* Turn button into a toggle

* Make dropdown active as well

This is required to have better UI and an indication of selected state in split view

* Update Query Library icon

This is to make it consistent with the toolbar button

* Hide query history button when query library is available

This is to avoid confusing UX with 2 button triggering the drawer but with slightly different behavior

* Make the drawer bigger for query library

To avoid confusion for current users and test it internally a bit more it's behind a feature toggle. Bigger drawer may obstruct the view and add more friction in the UX.

* Fix tests

The test was failing because queryLibraryAvailable was set to true for tests. This change makes it more explicit what use case is being tested

* Remove active state underline from the dropdown

* Add basic types and api methods

This is just moved from the app. To be cleaned up and refactored later.

* Move API utils from Query Library app to Grafana packages

* Move API utils from Query Library app to Grafana packages

* Move API utils from Query Library app to Grafana packages

* Add basic table for query templates

* Add sorting

* Style cells

* Style table cells

* Allow closing Query Library drawer from the toolbar

* Remove Private Query toggle

It will be moved to the kebab

* Add empty state

* Remove variables detection for now

Just to simplify the PR, it's not needed for Explore yet.

* Simplify getting useDatasource.tsx

* Rename cell

* Move QueryTemplatesTable to a separate folder

* Use RTK Query to get list of query templates

* Clean up query templates table

* Simplify useDatasource hook

* Add a test

* Retrigger the build

* Remove unused code

* Small clean up

* Update import

* Add reduxjs/toolkit as a peer dependecy

* Revert "Add reduxjs/toolkit as a peer dependecy"

This reverts commit aa9da6e442.

* Update import

* Add reduxjs/toolkit as a peer dependecy

* Revert "Add reduxjs/toolkit as a peer dependecy"

This reverts commit 2e68a62ab6.

* Add @reduxjs/toolkit as peer dependency

* Add @reduxjs/toolkit as peer dependecy

* Move reactjs/toolkit to dev dependecies

* Minor clean up and use react-redux as a peer dependency

* Move query library code to core features

* Update code owners

* Update export

* Update exports

* Use Redux store instead of APIProvider

* Await for query templates to show during the test

* Add more explicit docs that the feature is experimental

---------

Co-authored-by: Kristina Durivage <kristina.durivage@grafana.com>
2024-05-14 10:05:39 +02:00
Sonia Aguilar
6b1a662f6b Alerting: Fix deleting rules when silencing/resuming rule from a panel alert tab (#87710)
* Fix deleting rules when silencing/resuming rule from a panel alert tab

* fix test and return early when no group target is found

* address pr review comment
2024-05-14 10:01:08 +02:00
ismail simsek
194039c429 InfluxDB: Update alias regex pattern (#87713)
* use frontend mode alias regex

* remove comment
2024-05-14 09:53:18 +02:00
Stephanie Hingtgen
bbb4323f7e K8s: add server run options (#87784) 2024-05-14 07:11:11 +03:00
J Stickler
56054e2e87 docs: Update link to Loki Get Started (#87772) 2024-05-13 16:01:52 -05:00
Andrew Hackmann
9bf9f8e457 List Azure CosmosDB as an enterprise plugin (#87575) 2024-05-13 15:57:53 -05:00
Ezequiel Victorero
56766abcc8 Scenes: Fix snapshot rendering (#87769) 2024-05-13 16:15:39 -03:00
Kyle Brandt
ff6d1f4977 Scopes: Add intregation tests for scopeNodes based on example (#87646) 2024-05-13 14:12:33 -04:00
Marie Cruz
6fbb35736e docs: update news visualization (#87443)
* docs: update news visualization

* docs: add use case

* Apply suggestions from code review

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Removed future tense

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Isabel Matwawana <isabel.matwawana@grafana.com>
2024-05-13 13:12:27 -04:00
kay delaney
da0f7a5036 Chore: Convert TeamPages from class component to function component (#87602) 2024-05-13 17:58:27 +01:00
Nick Richmond
18f8f2324a Graphite: Fix alignment of elements in the query editor (#87662)
style: ensure elements in query builder rows are aligned
2024-05-13 12:51:32 -04:00
Isabel Matwawana
b7d024c426 Docs: update headings and add release info (#87058)
* Updated headings and to align with release life cycle stages and adding release info

* Update generated files

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-05-13 12:44:14 -04:00
David Allen
351d36caea docs: add flame graph play link (#87498) 2024-05-13 12:32:09 -04:00
David Allen
fc425983b3 docs: add text panel play link (#87497) 2024-05-13 12:31:47 -04:00
owensmallwood
3bf39d6d9a Unified Storage: Fixes bug with postgres connection string and adds tests (#87656) 2024-05-13 10:16:26 -06:00
renovate[bot]
8c585c4a79 chore(deps): update dependency stylelint to v16.5.0 (#87726)
Update dependency stylelint to v16.5.0

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-13 16:42:16 +01:00
David Allen
5705952d85 docs: add geomap play link (#87469) 2024-05-13 11:21:59 -04:00
Carl Bergquist
3160a4d909 ScopeNodes: Add naive filter functionality for scopenode.titles (#87721) 2024-05-13 18:21:09 +03:00
David Allen
3eba57dc98 docs: add histogram play link (#87466) 2024-05-13 11:20:29 -04:00
David Allen
d61c661a90 docs: add heatmap play link (#87464) 2024-05-13 11:15:18 -04:00
David Allen
788c50527f docs: add canvas button example play link (#87462) 2024-05-13 11:12:31 -04:00
renovate[bot]
18f5a831f5 Update dependency sass to v1.77.1 (#87725)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-13 16:10:26 +01:00
renovate[bot]
4b5aa3f3ec Update dependency msw to v2.3.0 (#87719)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-13 15:50:12 +01:00
Isabel Matwawana
c2e8384090 Docs: What’s new & Upgrade guide & Breaking changes v11.0 (#86369)
* Updated g11-preview pags for g11 release

* Added items to breaking changes guide

* Added and updated What's new content from latest Cloud file

* Updated link text

* Removed Azure Monitor item
2024-05-13 10:27:45 -04:00
owensmallwood
77686da969 Unified Storage: Adds sql metrics (#87651)
* registers sql metrics for unified storage and removes single quotes from postgres connection string format

* uses db logger

* only register US sql metrics when connecting to another postgres or mysql db

* use engine
2024-05-13 08:09:25 -06:00
Artur Wierzbicki
e34e9f4b12 Chore: change grpc server ownership (#87148)
add limitation
2024-05-13 16:00:58 +02:00
renovate[bot]
d5fe1699e5 Update dependency knip to v5.15.1 (#87716)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-13 16:41:01 +03:00
Ivana Huckova
336b6dafb6 Elasticsearch: Fix setting of default maxConcurrentShardRequests (#87703)
* Elasticsearch: Fix setting of default maxConcurrentShardRequests

* Add float test scenario

* Add comment
2024-05-13 16:39:37 +03:00
renovate[bot]
17f6f75bd2 Update dependency jest-fail-on-console to v3.3.0 (#87715)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-13 16:22:54 +03:00
renovate[bot]
7afbeca3da Update dependency @grafana/scenes to v4.20.0 (#87714)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-13 16:04:37 +03:00
Duologic
e6669c835c Revert "fix: in generated file"
This reverts commit 724d198be1.
2024-05-13 14:49:23 +02:00
Duologic
724d198be1 fix: in generated file 2024-05-13 14:45:09 +02:00
renovate[bot]
54d026f576 Update dependency immer to v10.1.1 (#87709)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-13 12:55:12 +01:00
renovate[bot]
02e0ece87d Update dependency rimraf to v5.0.7 2024-05-13 11:25:12 +00:00
Andres Martinez Gotor
ae152af119 Upgrade grafana-plugin-sdk-go to v0.230.0 (#87706) 2024-05-13 13:23:30 +02:00
github-actions[bot]
391edf8c80 I18n: Download translations from Crowdin (#87705)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-13 14:17:43 +03:00
renovate[bot]
0597265344 Update dependency immutable to v4.3.6 2024-05-13 11:04:06 +00:00
antonio
11e970c580 tutorials: alerting get started url fix (#87697) 2024-05-13 04:03:18 -07:00
Ashley Harrison
9bf3adabd8 Spinner: Change spinner icon when prefers-reduced-motion is set (#87641)
* change spinner icon when prefers-reduced-motion is set

* update mock

* remove outdated comment

* fix matchMedia mocks

* update spinner aria label
2024-05-13 11:32:02 +01:00
Jack Westbrook
58e554b67f Chore: Bump ejs to 3.10.0 (#87701)
chore(npm): bump ejs to 3.1.10 for dependabot
2024-05-13 13:29:56 +03:00
renovate[bot]
b536b6d7de Update dependency glob to v10.3.15 2024-05-13 10:24:30 +00:00
Josh Hunt
1033c8407d Chore: Bump lerna and tar (#87699)
* Chore: Bump lerna to 8.1.3

* Chore: Bump transitive tar to 6.2.1
2024-05-13 13:22:07 +03:00
renovate[bot]
dfa9e8f4f4 Update dependency dompurify to v3.1.3 2024-05-13 10:05:11 +00:00
Tom Ratcliffe
08884f16af Chore: Remove redux-rtl test helper (#87596) 2024-05-13 11:03:21 +01:00
Ashley Harrison
2cdb7d923f EmptyState: Don't apply animation when prefers-reduced-motion is set (#87638)
* don't apply animation when prefers-reduced-motion is set

* bail quicker

* early return
2024-05-13 10:48:41 +01:00
Leonor Oliveira
b214f9cc3a Add metrics utils to the dualwriter (#87693)
* Add metrics utils

* Ignore lint temporarily

* Lint
2024-05-13 11:36:24 +02:00
antonio
1191992226 alerting: PD - typo fix (#87674)
typo fix
2024-05-13 11:34:02 +02:00
Alex Khomenko
f3953b4955 Notification Banner: Add feature toggle (#87686) 2024-05-13 12:32:34 +03:00
renovate[bot]
8681965be0 Update dependency @kusto/monaco-kusto to v10.0.21 2024-05-13 09:08:08 +00:00
Karl Persson
7125a2e455 Anon: Add support to resolve anonymous identity (#87486) 2024-05-13 11:06:14 +02:00
renovate[bot]
1983043b71 Update dependency @floating-ui/react to v0.26.14 (#87690)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-13 11:42:58 +03:00
renovate[bot]
89f6845739 Update dependency eslint-plugin-jest to v28.5.0 (#87654)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-13 09:25:33 +01:00
Jack Westbrook
f785a71aae Fix: Angular detection in plugin loader (#87323)
fix(plugins): make sure angular detection is passed to loader
2024-05-13 09:55:26 +02:00
Torkel Ödegaard
a6076d8d05 TestData: Do not mutate query in applyTemplateVariables (#87680) 2024-05-13 08:24:54 +02:00
Bruno
14ccf7f6d1 Cloud migrations: return errutil.Error in http responses (#87448) 2024-05-13 00:22:46 -04:00
Bruno
6a3ab71d77 cms: clean up model file (#87179)
* move CreateAccessTokenResponseDTO to api.go

* remove unused types

* run make swagger-clean && make openapi3-gen
2024-05-13 00:22:19 -04:00
Karl Persson
0f3080ecb8 AuthN: Fix signout redirect url (#87631)
* Add missing return

* Use sign out redirect url from auth config if configured

* remove option from auth.jwt that is not used
2024-05-12 19:53:19 +02:00
renovate[bot]
3dab7e44ec Update dependency glob to v10.3.15 2024-05-12 10:37:20 +00:00
antonio
7e8b71d882 alerting: docs - pagerduty (#87604)
* alerting: docs - pagerduty

* pretty
2024-05-11 11:00:28 +02:00
Adela Almasan
f706c78ea1 Chore: Refactor tooltip scrollable prop (#87671) 2024-05-11 03:19:42 +03:00
Adela Almasan
ddde7f1056 XYChart: Use global range for mapped size field (#87661)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-05-10 18:59:03 -05:00
Torkel Ödegaard
f83366fcdd GenAI: Fixes multiple calls to settings and health (#87623)
* GenAI: Fixes multiple calls to settings and health

* swap order of tests given new caching

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-05-10 20:52:59 +02:00
Michael Mandrus
ef51a64b57 Feature Toggles: Hide featureToggleAdminPage toggle from docs and note that it is cloud only. (#87660)
update featureToggleAdminPage feature toggle to be hidden from docs and specify cloud only
2024-05-10 21:34:53 +03:00
Domas
708bcda76a VizLegend: Represent line style in series legend and tooltip (#87558)
* wip

* aand finished

* remove console log

* use css for styling

* user boerder for solid as well

* misc fixes

* attempt css based approach

---------

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-05-10 21:27:09 +03:00
Ryan McKinley
f880abc292 QueryService: Move raw http.Handler to rest.Connector (#87595)
* query connector

* improve error wrappers

* return 400 for missing datasource (not 404)

* fix errors

* message
2024-05-10 21:01:17 +03:00
Leon Sorokin
f43ed7e6d7 BarChart: Refactor and VizTooltip fixes (#87160)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-05-10 12:58:53 -05:00
renovate[bot]
8bfd7e5106 Update dependency @types/react-test-renderer to v18.3.0 (#87649)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-10 19:29:46 +03:00
Ashley Harrison
396e75dadf Chore: Type improvements (#87634)
* improve typings in opentsdb datasource

* couple of influx improvements

* couple more

* more

* more more more

* 3 more

* changes to variables/inspect/utils

* some graphite improvements
2024-05-10 17:28:44 +01:00
Andreas Christou
49e6bf26b3 AzureMonitor: Refactor Log Analytics backend (#87429)
* Remove unneeded error check

* Refactor to reduce cyclomatic complexity

* Add util function for parsing resultformat

* Make use of util

* Remove unneeded types

* Move types to their own file

* Move getApiUrl to utils

* Move traces functions to separate file

- Add separate helper for building trace string queries

* Add helper for determining resources

* Add test for RetrieveResources

* Don't append twice

* Refactor tests
2024-05-10 17:11:54 +01:00
Andreas Christou
95667f6a53 CloudMonitoring: Improve legacy query migrations (#86069)
* Match backend and correctly migrate metricType

Update tests

* Ensure project is migrated or set if not defined

* Improve migrations logic
2024-05-10 16:57:18 +01:00
renovate[bot]
b226ddfa53 Update dependency @react-types/shared to v3.23.0 (#87643)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-10 18:21:42 +03:00
renovate[bot]
b8c55a35a8 Update dependency @grafana/scenes to v4.19.0 (#87642)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-10 18:21:03 +03:00
Joao Silva
4bab530375 Chore: Remove gf-forms from SubMenuItems and RangeMatcherEditor (#87633) 2024-05-10 16:18:40 +01:00
renovate[bot]
e6f662a180 Update dependency react-redux to v9.1.2 2024-05-10 14:33:00 +00:00
renovate[bot]
b31193f172 Update dependency @reduxjs/toolkit to v2.2.4 2024-05-10 17:21:37 +03:00
Torkel Ödegaard
fcda8c235f MixedDataSource: Support multi value data source variable that issues a query to each data source (#87586)
* Revert "Revert "MixedDataSource: Support multi value data source variable tha…"

This reverts commit 979d87f46f.

* fix issue
2024-05-10 16:03:25 +02:00
Konrad Lalik
c203a030e8 Alerting: Fix MatcherFilter onChange handling (#87511)
* Fix input onChange handler

* Remove unused variables
2024-05-10 15:42:23 +02:00
renovate[bot]
be1bb04e9b Update dependency semver to v7.6.2 2024-05-10 13:32:47 +00:00
renovate[bot]
e9ed62a7b6 Update dependency i18next to v23.11.4 2024-05-10 13:31:14 +00:00
Ashley Harrison
670960f70c Chore: Upgrade redux (#86877)
* update packages

* fix type errors

* upgrade redux toolkit as well

* don't need eslint-disable command

* remove comment

* fix unit tests

* call rtk query selector directly

* remove unnecessary checks
2024-05-10 14:28:51 +01:00
linoman
926ee0f62e SAML: add referemce to azure ad limitations (#87571)
* update the url for Azure AD limitations

* add warnings of using Azure AD with SAML
2024-05-10 15:12:31 +02:00
renovate[bot]
329f4b1243 Update dependency glob to v10.3.14 2024-05-10 16:11:50 +03:00
Andrej Ocenas
d912703634 Chore: Updated go.work.sum file (#87622)
* Updated file

* fix quote character issue in workspace check

---------

Co-authored-by: Todd Treece <todd.treece@grafana.com>
2024-05-10 14:59:44 +02:00
renovate[bot]
0793a9033a Update dependency @types/lodash to v4.17.1 (#87419)
* Update dependency @types/lodash to v4.17.1

* fix grafana-data

* simpler grafana-data fix

* simpler code

* commit a betterer crime (it was already doing this implicitly before...)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-05-10 13:56:27 +01:00
Dominik Prokop
39aafde8cb AdHocFilters: Use queries in ad hoc filters api calls (#87624) 2024-05-10 14:54:07 +02:00
Tobias Skarhed
fa95b41715 TimeSeries: Improve keyboard focus and fix spacebar override (#86848)
* Make GrpahNG focusable

* Move to VizLayout instead

* Update uPlot plugins for better keyboard support

* Remove unrelated changes

* different fix

---------

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-05-10 14:07:12 +02:00
Torkel Ödegaard
459673b539 Dropdown: Fixes double call to onVisibilityChange (#87607)
* Dropdown: Fixes double call to onVisibilityChange

* Update

* update
2024-05-10 14:06:53 +02:00
Christian Simon
ad78dec7c3 [DOC] Adds missing link to Pyroscope core data source (#85493)
[DOC] Add missing link to Pyroscope

Grafana Pyroscope is a core shipped data source.
2024-05-10 13:03:13 +01:00
Ivana Huckova
1130369a12 Docs: Add Configuring Elasticsearch documentation for required privileges (#87593)
* Docs: Add Configuring Elasticsearch documentation for required privileges

* Update docs/sources/datasources/elasticsearch/configure-elasticsearch-data-source.md

* Update docs/sources/datasources/elasticsearch/configure-elasticsearch-data-source.md

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2024-05-10 13:59:23 +02:00
renovate[bot]
d2c492cae5 Update dependency eslint-plugin-jsdoc to v48.2.4 2024-05-10 14:59:15 +03:00
linoman
cd98aaf89b Chore: Add login protection when user is trying different uppercase letters (#87588)
* add login protection when the user is trying different uppercase letters
2024-05-10 13:49:59 +02:00
Christian Briones
867d36fe59 Explore: lookup datasource by name when present in legacy URLs (#85222)
* [explore] lookup datasource by name when present in legacy compact URLs

* update unit test

* prettier fix

---------

Co-authored-by: Kristina Durivage <kristina.durivage@grafana.com>
2024-05-10 06:48:42 -05:00
renovate[bot]
dce39237c4 Update dependency @prometheus-io/lezer-promql to v0.52.0 (#87554)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-10 12:40:20 +01:00
renovate[bot]
23ed1b2d9e Update dependency systemjs to v6.15.1 (#87594)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-10 12:39:48 +01:00
kay delaney
cadc551a3c Chore: Remove deprecated re-exported template variable types (#87459)
Chore: Remove deprecated re-exported template varible types
2024-05-10 12:00:41 +01:00
kay delaney
cbe868b118 Chore: Use getNextRefId instead of deprecated getNextRefIdChar (#87460) 2024-05-10 12:00:17 +01:00
Ieva
167151b211 Chore: Remove use of deprecated method in AC code (#87541)
* switch from using cfg to using featuremgmt for checking a feature toggle in AC code

* merge test fixes
2024-05-10 11:56:52 +01:00
Karl Persson
8c7b8542f1 Chore:: Update authlib version (#87603)
update authlib version
2024-05-10 12:55:12 +02:00
Sonia Aguilar
4b720206d4 Alerting: Reduce number of request fetching rules in the dashboard view using rtkq (#86991)
* Reduce number of request fetching rules in the dashboard view using rtkq

* Fix UnifiedAlertStatesWorker work

* refactor ungroupRulesByFileName

* Address review comments and fix test

* fix DashboardQueryRunner test

* Fix tests

* Update AlertStatesDataLayer to use RTKQ

* Fix PanelAlertTabContent test

* Fix PanelAlertTabContent test after adding RTKQ

* fix test and address PR review comments

* Update useCombinedRuleNamespaces to have both dashboardUID and panelId as optional params and rename the hook

* Address review pr comment

* remove test about template variables

* Use poll interval in useCombinedRules
2024-05-10 12:27:06 +02:00
Ashley Harrison
d9d25dc649 Chore: Remove some more old SCSS (#87506)
* remove some more old styles and consolidate any angular ones into their own file

* few more
2024-05-10 10:52:51 +01:00
Sven Grossmann
1c8a77a43d Loki: Fix log context when no label types are present (#87587) 2024-05-10 11:52:41 +02:00
Andrej Ocenas
8213e8a2a6 Flamegraph: Add collapse and expand group buttons to toolbar (#87395) 2024-05-10 11:51:09 +02:00
Alexander Zobnin
0302b75721 Access control: Use search options for computing permissions cache key (#87589) 2024-05-10 12:06:52 +03:00
Misi
896882b004 Chore: Implement GetOAuthProviders in FakeSocialService (#87590)
Implement GetOAuthProviders in FakeSocialService
2024-05-10 11:48:05 +03:00
Andrew Hackmann
5e19aa7bd1 Azure data sources: Set selected config type before save (#87481)
* set selected config type before save

* use effect once and move in mssql

* add to prom

* Update ConfigurationEditor.tsx

* Update ConfigurationEditor.tsx

* Delete public/app/plugins/datasource/mssql/configuration/ConfigurationEditor.tsx

* omadsfdsa

* remove unneeded assign
2024-05-10 03:54:24 +03:00
Nathan Marrs
eae2ce38e8 Canvas: Fix infinite panning editor description (#87582) 2024-05-10 01:13:42 +03:00
Drew Slobodnjak
dfdf119f7f Canvas: Improve connection vertex logic (#87580)
Canvas: Prevent machine error causing logic swap
2024-05-09 14:38:43 -07:00
Kristina
979d87f46f Revert "MixedDataSource: Support multi value data source variable that issues a query to each data source" (#87579)
Revert "MixedDataSource: Support multi value data source variable that issues…"

This reverts commit 700d378c98.
2024-05-09 16:16:28 -05:00
Alexander Weaver
a6a9ab4008 Alerting: Do not store series values from past evaluations in state manager for no reason (#87525)
Do not store previous execution results on states
2024-05-09 15:51:55 -05:00
Dave Henderson
c6a0175c04 ci: use go.mod as source of truth for actions/setup-go action (#87574)
* ci: use go.mod as source of truth for actions/setup-go action

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

* updating upgrading-go-version.md doc

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

---------

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
2024-05-09 15:30:13 -04:00
Chris Marchbanks
49cd917b08 Prometheus: Use correct datasources:write permission (#87454)
The datasources:edit permission does not exist and should have been write to begin with.
2024-05-09 14:20:34 -05:00
lean.dev
b009536329 Caching: Implement mtls-enabled memcached integration (#84171)
* fix merge

* fix conflicts

* updating generated feature toggle code

* Fix go mod owner

* fix merge

* add dependency

* fix dependencies

* workspace sync

* go get

* work sync

* trying something

* fix

* add docs for tls config

* work sync

* adjust go mod

* try something

* move import to the correct file

---------

Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com>
2024-05-09 15:12:08 -04:00
Todd Treece
00684682d7 Chore: Update go workspace check error message (#87576) 2024-05-09 21:31:46 +03:00
timo
935076c349 SQL Query Editor: Fix label-for IDs, associate "Table" label (#86944)
* SQL Query Editor: Fix label-for IDs, associate "Table" label

* Fix mysql e2e test

---------

Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2024-05-09 20:30:33 +02:00
Nathan Marrs
99262c53b6 Canvas: Chore clean up betterer (#87477) 2024-05-09 10:59:49 -07:00
Yuri Tseretyan
356a29592b Alerting: Add two sets of provisioning actions for rules and notifications (#87149) 2024-05-09 13:19:07 -04:00
Alexander Weaver
36ef611cf4 Alerting: Add database migration for recording rule fields (#87012)
* Create recording rule fields in model

* Add migration

* Write to database, support in version table

* extend fingerprint

* Force fields to be empty on validate

* Another storage spot, tests for fingerprint

* Explicitly set defaults in provisioning API

* Tests for main API validation

* Add diff tests even though fields are unpopulated for now

* Use struct tag approach instead of FromDB/ToDB hooks as it better handles nulls when deserializing

* test for deser

* Backout RecordTo for now since it's not decided in the doc

* back out of migration too

* Drop datasourceref for now

* address linter complaints

* Try a single outer struct with all fields embedded
2024-05-09 12:12:44 -05:00
Jev Forsberg
9bd44aed2e Transformations: Fix true inner join in joinByField transformation (#87409)
* baldm0mma/inner_join_fix/ init commit

* baldm0mma/inner_join_fix/ first attempt at an tabular inner join

* baldm0mma/inner_join_fix/ add innerTabular

* baldm0mma/inner_join_fix/ add innerJoin option to editor

* baldm0mma/inner_join_fix/ add editor option

* baldm0mma/inner_join_fix/ update joinInnerTabular function behavior

* baldm0mma/inner_join_fix/ add js docs

* baldm0mma/inner_join_fix/ update jsdocs

* baldm0mma/inner_join_fix/ update docs

* baldm0mma/inner_join_fix/ remove unused console.logs

* baldm0mma/inner_join_fix/ update tests

* baldm0mma/inner_join_fix/ simplify getValue

* baldm0mma/inner_join_fix/ update tests

* baldm0mma/inner_join_fix/ update docs builder

* baldm0mma/inner_join_fix/ add tables to Outer join (for tabular data)

* baldm0mma/inner_join_fix/ update docs

* baldm0mma/inner_join_fix/ build docs

* baldm0mma/inner_join_fix/ remove innertab for inner

* baldm0mma/inner_join_fix/ rename innertab

* baldm0mma/inner_join_fix/ update tests

* baldm0mma/inner_join_fix/ rem con logs

* baldm0mma/inner_join_fix/ rem comment

* baldm0mma/inner_join_fix/ rem sample data

* baldm0mma/inner_join_fix/ remove irrelevant test

* baldm0mma/inner_join_fix/ update docs

* Update packages/grafana-data/src/transformations/transformers/joinDataFrames.test.ts

Co-authored-by: Nathan Marrs  <nathanielmarrs@gmail.com>

* baldm0mma/inner_join_fix/ update test description

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-05-09 11:00:59 -06:00
Drew Slobodnjak
06a27911a4 Canvas: Fix bug for connection first vertex (#87534) 2024-05-09 09:17:23 -07:00
Kyle Brandt
baed7d6dbe Scopes: Fix logic in find call (#87565)
With Find, if the parent query parameter is empty or not provided, we want to list the top level of the forest.
2024-05-09 11:52:56 -04:00
Oscar Kilhed
c3936bbae2 DashboardScene: Discard panel changes disabled/enabled depending of changes (#87137)
---------

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-05-09 18:48:20 +03:00
Sergej-Vlasov
588abbb177 DashboardScene: Adjust failing scenes e2e (#87553)
* adjust failing scenes e2e

* remove .only from test

* restore e2e workflow
2024-05-09 18:12:03 +03:00
Todd Treece
fa2f6578b3 Chore: Add info about K8s folder structure to README (#87508)
---------

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-05-09 16:43:07 +03:00
kay delaney
d5c781b9c5 Templating: Fix issue where updated custom var options weren't persisted (#86804)
* Templating: Fix issue where updated custom var options weren't persisted
2024-05-09 14:11:03 +01:00
renovate[bot]
c1a2051c1e Update dependency @playwright/test to v1.44.0 (#87550)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-09 13:57:49 +01:00
Stephanie Hingtgen
1bc6738d92 Chore: Upgrade go from 1.21.0 to 1.21.10 (#87479) 2024-05-09 15:57:08 +03:00
renovate[bot]
116a7ad1d1 Update dependency @grafana/scenes to v4.17.3 2024-05-09 12:02:41 +00:00
Torkel Ödegaard
700d378c98 MixedDataSource: Support multi value data source variable that issues a query to each data source (#83356)
* MixedDataSource: Support multi value data source variable

* go work sync

* fix typo

* if it is not interpolated use the actual uid

* Update tests

* prettier

* go work sync

* add more unit test case

* Update tests to use scene variables

* merge main

* Update

---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-05-09 13:27:09 +02:00
renovate[bot]
df12007f80 Update dependency @opentelemetry/semantic-conventions to v1.24.1 (#87544)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-09 13:55:15 +03:00
renovate[bot]
a901c512a0 Update dependency @grafana/scenes to v4.17.2 2024-05-09 10:36:05 +00:00
Ashley Harrison
62db9b01b8 new yarn version 2024-05-09 11:04:02 +01:00
renovate[bot]
25dfc865d5 Update Yarn to v4.2.2 2024-05-09 11:04:02 +01:00
antonio
3a2c9f4898 alerting: integrations > small update (#87538)
* added links to list

* changed heading
2024-05-09 11:31:28 +02:00
Ieva
105313f5c2 RBAC: Adding action set resolver for RBAC evaluation (#86801)
* add action set resolver

* rename variables

* some fixes and some tests

* more tests

* more tests, and put action set storing behind a feature toggle

* undo change from cfg to feature mgmt - will cover it in a separate PR due to the amount of test changes

* fix dependency cycle, update some tests

* add one more test

* fix for feature toggle check not being set on test configs

* linting fixes

* check that action set name can be split nicely

* clean up tests by turning GetActionSetNames into a function

* undo accidental change

* test fix

* more test fixes
2024-05-09 10:18:03 +01:00
Jack Westbrook
6380a01543 Frontend: Improve barrel file detection in codemod (#87389) 2024-05-09 10:49:47 +02:00
Diego Augusto Molina
acf17c7fb1 Unified Storage: Add SQL template package (#87524)
* added sqltemplate package

* addded example

* fix linting issues

* improve code readability

* fix documentation
2024-05-08 17:58:18 -03:00
Scott Lepper
4b38253b20 Sql Expressions: use display name for sql tables (#87530) 2024-05-08 16:43:55 -04:00
Andrew Hackmann
85fdc3db16 Azure Monitor: Update grafana-azure-sdk-go to v2.0.3 (#87480)
* update

* update
2024-05-08 23:40:57 +03:00
Adela Almasan
3d56257b34 Timeseries: Fix incorrect threshold style (#87521) 2024-05-08 23:14:43 +03:00
Todd Treece
80f10e2a09 GRPC Server: Add README (#87442) 2024-05-08 15:29:43 -04:00
Bruno
be260e9713 Ephemeral instances: update go version (#87526) 2024-05-08 22:06:12 +03:00
Todd Treece
6e4d35e1ee Scopes: Add a /find query endpoint (#87457)
---------

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-05-08 13:35:11 -04:00
renovate[bot]
01d28e01d2 Update dependency semver to v7.6.1 2024-05-08 17:21:38 +00:00
renovate[bot]
27ce73edce Update dependency react-hook-form to v7.51.4 2024-05-08 16:52:03 +00:00
renovate[bot]
5cbef194bf Update dependency rc-tree to v5.8.7 2024-05-08 16:32:25 +00:00
Todd Treece
de438eae2e K8s: Prevent the use of arbitrary namespaces (#83636) 2024-05-08 09:30:08 -07:00
renovate[bot]
9d8507cded Update dependency @types/webpack-env to v1.18.5 2024-05-08 15:33:46 +00:00
Todd Treece
f342217158 K8s: Add path rewriter filter (#87456) 2024-05-08 18:08:43 +03:00
renovate[bot]
04ce2d2f5a Update dependency @types/prismjs to v1.26.4 2024-05-08 14:53:35 +00:00
renovate[bot]
98435a67f5 Update dependency @types/node to v20.12.11 2024-05-08 16:08:44 +02:00
Alexander Zobnin
d1c582815a Access control: Fix searching permissions from cache (#87489)
* Fix searching permissions from cache

* Write permissions to cache
2024-05-08 16:08:21 +02:00
Marcus Efraimsson
41b29ff93c Chore: Migrate to use buf for protobuf generation (#87407)
* Chore: Migrate to use buf for protobuf generation

* fix codeowners

* fixes after review

* docs/tooling for installing buf

* add back codeowners

* Update upgrading-dependencies.md

Co-authored-by: Giuseppe Guerra <giuseppe.guerra@grafana.com>

* sdk v0.229.0

---------

Co-authored-by: Giuseppe Guerra <giuseppe.guerra@grafana.com>
2024-05-08 15:42:40 +02:00
Alexa V
2dc19a0241 Chore: Update deprecated layout components HorizontalGroup and VerticalGroup in dashboard scene code (#87447)
* Chore: update deprecated layout components in scene code

* Add missing css for missing selectionOptionsForm
2024-05-08 15:42:36 +02:00
renovate[bot]
3e2e06179e Update dependency @types/jquery to v3.5.30 2024-05-08 13:39:13 +00:00
github-actions[bot]
2eebcd2642 I18n: Download translations from Crowdin (#87501)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-08 16:21:59 +03:00
Joao Silva
f32e4810ab GrafanaUI: Add tabular prop to Text component for tabular numbers (#87440) 2024-05-08 14:03:21 +01:00
Josh Hunt
c41ec46b29 I18n: Fix and reenable verify-i18n CI check (#87496)
* I18n: Change verify-i18n script to use node_deb image with make in it

* remove swagger from i18n make

* make verify-i18n fail ci

* fix incorrect and unextracted nav translations

* fix more copy paste
2024-05-08 14:01:17 +01:00
Haris Rozajac
b383cafd35 Explore: Logs in content outline (#86431)
* wip filtering

* Remove corresponding children from parentlessItem ref on register

* wip filtering

* Remove corresponding children from parentlessItem ref on register

* Highlighting filters

* OMG

* Handle updating highlight field inside context

* Toggling legend from the content outline

* Support multiple selects for log filters in content outline

* Remove commented out code

* Fix an issue with loki datasource; use same datastructure for logsVolume in Logs and LogVolume panel

* Fix registering logic

* cleanup

* Don't register outline items when having multiple log volume levels

* Remove checking mergeSingleChild logic because in context because ContentOutline does it

* Fix logic so it works for elasticsearch

* Better logic

* Add log color and sort

* Show items at full opacity

* Remove commented sort

* Do not highlight if all are selected, and highlight = 100% opacity, active = 30%

* dont auto collapse after filter unselect

* Remove console logs

* No partial opacity, add height for consistent display

---------

Co-authored-by: Piotr Jamroz <pm.jamroz@gmail.com>
Co-authored-by: Kristina Durivage <kristina.durivage@grafana.com>
2024-05-08 07:58:37 -05:00
Tobias Skarhed
ef37b78631 Revert "Panel: Keyboard focus shortcuts prioritization" (#87213)
Revert "Panel: Keyboard focus shortcuts prioritization (#86772)"

This reverts commit 3e450ec4bf.
2024-05-08 14:53:20 +02:00
renovate[bot]
f1e5a02af5 Update dependency rc-cascader to v3.25.0 (#86045)
* Update dependency rc-cascader to v3.25.0

* fix type errors

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-05-08 15:24:01 +03:00
Ieva
9a824bdf0a RBAC: Don't set empty action sets (#87398)
* don't set empty action sets

* extend comment
2024-05-08 15:09:46 +03:00
Karl Persson
be5ced4287 Identity: Use typed version of namespace id (#87257)
* Remove different constructors and only use NewNamespaceID

* AdminUser: check typed namespace id

* Identity: Add convinient function to parse valid user id when type is either user or service account

* Annotations: Use typed namespace id instead
2024-05-08 14:03:53 +02:00
antonio
d83cbe4d85 alerting/webhook doc update (#87492)
* alerting/webhook doc update

* text formath

* fixed admonition

* typo

* headings

* formatted headings and prettified it all

* one more heading
2024-05-08 13:49:55 +03:00
renovate[bot]
8ca4d73c40 Update dependency @grafana/scenes to v4.17.1 (#87490)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-08 12:15:21 +03:00
Torkel Ödegaard
0c2f58bdae DashboardScene: Fixes editing transformations after toggling table view (#87397) 2024-05-08 08:58:19 +02:00
Torkel Ödegaard
e7c39f18be DashboardDataSource: Fixes issue where sometimes untransformed data could be returned (#87433)
* DashboardDataSource: always return a result key

* Update

* Update
2024-05-08 08:25:19 +02:00
Charandas
d13e175328 K8s: upgrade authlib with correct IDTokenClaims (#87461) 2024-05-07 14:09:02 -07:00
Stephanie Hingtgen
d365d442fa Chore: Upgrade go to 1.22.3 (#87463) 2024-05-07 15:23:21 -05:00
Dan Cech
1884b03511 Provisioning: Look up provisioned folders by UID when possible (#87465)
look up provisioned folders by uid when possible
2024-05-07 15:38:53 -04:00
Charandas
a9da6ce1d5 ext_jwt: streamline expected aud in access tokens and id tokens (#87401) 2024-05-07 11:20:16 -07:00
Alexander Weaver
6c47968f6c Alerting: Do not retry rule evaluations with "input data must be a wide series but got type long" style errors (#87343)
add typed error for series must be wide, do not retry
2024-05-07 11:31:07 -05:00
Nihal
5fb87de321 Auth: Added support to filter for parent teams in GitHub connector's team membership filter (#86754)
* added changes for parent teams in team_ids. see https://github.com/grafana/grafana/issues/85916

Signed-off-by: Syed Nihal <syed.nihal@nokia.com>

* added unit test

Signed-off-by: Syed Nihal <syed.nihal@nokia.com>

* addressed review comments to consider case where parent object can be null

Signed-off-by: Syed Nihal <syed.nihal@nokia.com>

* addressed review comment

Signed-off-by: Syed Nihal <syed.nihal@nokia.com>

---------

Signed-off-by: Syed Nihal <syed.nihal@nokia.com>
2024-05-07 18:19:20 +02:00
Karl Persson
2d8570e85e IDToken: Reuse claims from authlib (#87437)
* bump authlib version

* Reuse claims from authlib
2024-05-07 16:46:43 +02:00
Ashley Harrison
27fa544f72 SCSS: remove some low hanging dead fruit (#87260)
* remove some low hanging fruit

* restore json_explorer
2024-05-07 15:26:43 +01:00
David Harris
a4d296559c Plugins: Catalog to show all plugins by default (#87168)
* update plugin install filter to show all by default

* make pretty

* remove aria-label on lock icon

* wip: attempt to fix overflow

* switch to stack, add aria label back for testing

* make pretty

* switch to TextLink

* remove learn more link from catalog

* add hover text

* docs: update plugin install to reflect state filter change

* Revert "docs: update plugin install to reflect state filter change"

This reverts commit 16222aee0b.
2024-05-07 16:48:09 +03:00
Eric Leijonmarck
6b218b11cf Actionsets: fix remove printf (#87439)
fix: remove printf
2024-05-07 16:36:01 +03:00
Ieva
0239cf8766 Docs: Link to generic oauth docs from team sync page (#87381)
link to generic oauth docs from team sync page
2024-05-07 14:31:57 +01:00
Alexander Zobnin
82dea4b3e5 Access control: Cache basic roles and teams permissions (#87043)
* RBAC: Cache basic roles permissions

* Cache teams permissions

* Set cache TTL to 1 minute

* Add OSS implementation

* Fetch basic role permissions correctly

* fix conflict_user_command

* Fix teams permissions query

* Add traces for GetUserPermissions

* Fix folders tests

* Fix colflict user command

* Update store mock

* Fix linter error

* Reuse GetUserPermissions for fetching basic roles

* tests for GetTeamsPermissions

* pre-allocate slice capacity

* Fix linter
2024-05-07 15:23:11 +02:00
Leonor Oliveira
ee2f6a7b49 Force interface implementation also on legacy storage (#87414)
* Force interface implementation also on legacy storage

* Add DeleteCollection to folders and dashboards

* Fix integration tests

* Fix tests
2024-05-07 15:02:30 +02:00
Ivana Huckova
12a87c0899 Logs panel: Fix spacing when log details disabled (#87431)
* Logs panel: Fix spacing when log details disabled

* Fix error spacing
2024-05-07 15:27:44 +03:00
Tom Ratcliffe
a597300027 Chore: Allow MenuItems to have role=menuitem when URL is set (#86886)
Allow passing a role into a MenuItem component, and fallback to default behaviour if not passed
2024-05-07 13:12:02 +01:00
Oscar Kilhed
c6975e06d2 Dashboard scenes: Fix view panel breadcrum when going to edit from view single panel (#87411)
Fix view panel breadcrum when going to edit from view panel
2024-05-07 14:02:52 +02:00
Karl Persson
37af1ae58e IDToken: Set typ header (#87430)
TokenSigning: Set typ header
2024-05-07 13:59:23 +02:00
kay delaney
bc67b88301 Chore: Rewrite alerting css using object styles (#87114)
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-05-07 10:57:25 +01:00
kay delaney
1654b719e9 Chore: Fix lint error in grafana-prometheus (#87421) 2024-05-07 12:40:55 +03:00
kay delaney
b68f40d5c5 Chore: Rewrite grafana-prometheus css using object styles (#86835) 2024-05-07 10:11:49 +01:00
renovate[bot]
6733f43781 Update dependency @types/diff to v5.2.1 2024-05-07 09:08:14 +00:00
Ashley Harrison
37ef6df3b2 Chore: replace calls to defaultProps (#87310)
* replace calls to defaultProps

* make linksGetter optional
2024-05-07 10:07:16 +01:00
renovate[bot]
0c702d335e Update dependency @grafana/faro-web-sdk to v1.7.2 (#87341)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-07 09:35:50 +01:00
antonio
1bde17c8d5 alerting: config notif page improvement (#87140)
* alerting: config notif page improvement

* Update docs/sources/alerting/configure-notifications/template-notifications/_index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update _index.md

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-05-07 10:26:04 +02:00
Gábor Farkas
4f7ed97aad mysql: fix dispose-method not called in external-mode (#87330) 2024-05-07 09:54:30 +02:00
Leonor Oliveira
0a2c5065a0 Choose mode. Turn DualWriter into a real interface. Better Logging (#87291)
* Choose mode. Add log field on top level dualwriter

* Add logs

* Turn DualWriter into a full interface. Fix tests

* Lint

* Use struct for dualWriter interface

* Use struct

* Default should be legacyStore for all entities

* Fix test. Get rid of extra concrete type

* Remove comment

* Add comment

* Temp set dualwriter mode 2 for playlists while configs are not in place

* Add modes type + add comment on what each mode does

* Don't require watcher interface for now

* Use storage implementation on mode 2

* Update pkg/apiserver/rest/dualwriter_mode2.go

Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com>

* Pass log values to the context

* test

* Update pkg/apiserver/rest/dualwriter_mode3.go

Co-authored-by: Dan Cech <dcech@grafana.com>

---------

Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com>
Co-authored-by: Dan Cech <dcech@grafana.com>
2024-05-06 23:18:28 +02:00
Aaron Godin
0bc8992dfa Revert #86466 (#87405)
Revert "Apply plugin route ReqAction to ds_proxy authorization (#86466)"

This reverts commit 53f94ac50d.
2024-05-06 14:40:32 -05:00
Dan Cech
41bee274fd Chore: Fix error handling in postDashboard, remove UserDisplayDTO, fix live redis client initialization (#87206)
* clean up error handling in postDashboard and remove UserDisplayDTO

* replace GetUserUID with GetUID and GetNamespacedUID, enforce namespace constant type

* lint fix

* lint fix

* more lint fixes
2024-05-06 14:17:34 -04:00
jackyin
ba8b4bde3a fix ipv6 startup fail #81870 (#87108)
* fix ipv6 startup fail #81870

* ipv6 startup fail

* ipv6 startup fail
2024-05-06 14:17:03 -04:00
Nick Richmond
fae9bfccb2 Prometheus: Place custom inputs first when using regex filter values in the query builder (#87360)
* fix: place custom inputs first when using regex filter values

* fix: remove confusing messaging
2024-05-06 12:07:04 -04:00
Pepe Cano
7dd05998fd Alerting docs: Update and restructure Introduction/Alert rule evaluation (#87331)
* Migrate and update `Alert rule evaluation`

* Minor change

* Update internal links to new URLs
2024-05-06 17:33:14 +02:00
Pepe Cano
1b69d647be Alerting docs: update Comparison between alert rule types (#87252) 2024-05-06 17:32:33 +02:00
github-actions[bot]
10afa5a5a0 I18n: Download translations from Crowdin (#87336)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-06 14:26:57 +00:00
Gilles De Mey
19e8dca09c Alerting: Allow editing of provisioned mutable Alertmanagers (#87385) 2024-05-06 14:29:28 +02:00
Kristina
8173bd89bf Explore: Only let nodeGraph frames process through nodeGraph visualization (#87198)
* Only let nodeGraph frames process through nodeGraph

* add metadata to test frames to be processed

* Revert "add metadata to test frames to be processed"

This reverts commit fc366a0ab4.

* Revert "Only let nodeGraph frames process through nodeGraph"

This reverts commit b8be50e219.

* Only send node graph frames to node graph logic

* remove unnecessary logic
2024-05-06 07:13:09 -05:00
Yuri Kotov
33170c4d07 Loki: Use label/<name>/values API instead of series API for label values discovery (#83044)
* Loki: Add label values API selector to setting and use label_values API when selected

* remove CHANGELOG change

* add docs

* Support Loki 2.7+ only, so unconditionally use /labels API

* Correct doc for fetchLabels and fetchLabelValues functions

* Fixes after merge

* Do not encode query parameter twice

* return getLabelKeys in Completion Provider

* docs

* Add test for LabelParamEditor

* Update public/app/plugins/datasource/loki/LogContextProvider.test.ts

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* toHaveBeenCalledWith

---------

Co-authored-by: Matias Chomicki <matyax@gmail.com>
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2024-05-06 13:47:49 +02:00
Andrej Ocenas
9c254c7e1e Flamegraph: Add diff mode color legend (#87319) 2024-05-06 12:28:57 +02:00
brendamuir
526be4fa2b Alerting vale fixes (#87380) 2024-05-06 11:43:34 +02:00
Eric Leijonmarck
601485c74d Actionsets: Fix downgrade of permission to add the actionset permission (#87328)
* check for missingActions empty and add actionset

* spelling
2024-05-06 10:16:26 +01:00
Fabrizio
f99d4ee92d Tempo: Fix sorting for nested tables (#87214) 2024-05-06 10:41:47 +02:00
Larissa Wandzura
57038e8dfa Docs: added note to RBAC doc from support escalation (#85311)
* added admonition and API info

* Update docs/sources/administration/roles-and-permissions/access-control/_index.md

---------

Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-05-06 09:27:46 +02:00
Misi
9236c5a5cf Auth: Add OrgRoleMapper service (#86973)
* Add OrgRoleMapper

* Address feedback, add more tests

* Prevent resetting assignments when global org mapping fails

* Provide a parsing function instead of recalculating the org_mapping on every mapping

* Introduce strict role parsing/mapping

* Introduce MappingConfiguration

* Handle other edge case

* Add tests

* lint

* Apply documentation update suggestions

* Apply GetDefaultOrgMapping suggestions from code review

* Apply suggestions for cleaning up unnecessary err in ParseOrgMappingSettings

* Apply suggestions from code review

* Address feedback suggestions

* Cleanup

* Reduce cognitive complexity of ParseOrgMappingSettings

---------

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2024-05-06 09:25:47 +02:00
Ryan McKinley
333ed377d6 Prometheus: Avoid parsing unused legacy datasource property (#87224)
* query cleanup

* parse query

* more comments
2024-05-05 15:00:53 +03:00
Jon Cole
8e96821c16 Azure: get custom cloud list from grafana-azure-sdk-go package (#86717)
* Get custom cloud list from grafana-azure-sdk-go for frontend settings

* Remove getAzureClouds() and call CustomClouds() directly

* remove unused type
2024-05-04 13:17:51 +03:00
Nathan Marrs
5e4722fe2e Canvas: Fix canvas style regression (#87363) 2024-05-04 02:47:30 +03:00
Nathan Marrs
1ef1cc7e3f Canvas: Add support to rotate a group of elements (#87358) 2024-05-03 15:58:51 -07:00
Adela Almasan
7bcda34b55 XY Chart: Prevent crash when deleting a series (#87356) 2024-05-03 17:21:46 -05:00
Adela Almasan
8a96fcedb2 XyChart: Fix legend (#87155) 2024-05-04 01:06:05 +03:00
Nathan Marrs
68fa2110d6 Canvas: Fix phantom connections persisting after element deletion (#87285) 2024-05-03 14:17:05 -07:00
Isabel Matwawana
386baf83cd Docs: add data link cell type information (#87350)
Add data link cell type information
2024-05-03 16:22:48 -04:00
Charandas
0c59baf62d ext_jwt: switch to new authlib (#87157) 2024-05-03 12:59:37 -07:00
Matthew Jacobson
babfa2beac Alerting: Hook up GMA silence APIs to new authentication handler (#86625)
This PR connects the new RBAC authentication service to existing alertmanager API silence endpoints.
2024-05-03 15:32:30 -04:00
Darren Janeczek
e9b932c8f6 datatrails: reloaded trail bugs related to no selected metric (#87344)
* fix: reloaded scene first step topScene

The top scene was not being initialized
when reloading trails, causing it to use
the top scene of whatever was selected
previously.

* fix: select new metric node not reloading right

On reloading trails, any metric node that
was 'green' with a undefined metric due to
clicking on the "select new metric" button,
was reloading with the metric of the step
directly before it (in index order).
2024-05-03 21:29:54 +03:00
Alex Khomenko
683390a4ec PanelHeaderCorner: Remove font-awesome icons (#87303)
* PanelHeaderCorner: Remove font-awesome

* Fix mode styles

* Remove unused styles

* Cleanup

* Simplify styles

* Fixes

* Remove unused variable
2024-05-03 20:05:03 +03:00
renovate[bot]
1fb1e1bb64 Update dependency @grafana/faro-web-sdk to v1.7.0 (#87339)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-03 19:41:46 +03:00
Darren Janeczek
f93c330b66 datatrails: only fetch metrics metadata when using the language provider, avoid redundant fetch of metric names (#87067)
* fix: only fetch metrics metadata, not metric names
2024-05-03 12:24:18 -04:00
Darren Janeczek
6524febbd4 datatrails: quick bugfix: handle undefined step (#87337)
fix: handle undefined step
2024-05-03 19:22:23 +03:00
Ashley Harrison
1d6d5cc2cd Chore: improve typings (#87306)
* some fixes

* some more fixes

* some canvas fixes

* use removeProperty instead

* few more

* fixy fix

* undo changes to ticks for now
2024-05-03 17:21:37 +01:00
renovate[bot]
43ed6a8218 Update dependency @grafana/faro-core to v1.7.0 (#87329)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-03 17:21:12 +01:00
Laura Benz
ecd7357049 Dashboards: Add toggle for folder names in dashboard list panel (#87288)
* refactor: add switch

* refactor: add functionality

* refactor: fix test
2024-05-03 17:52:10 +02:00
Darren Janeczek
5b424ed6bb scenes: update to v4.14.0: opt-in to useQueriesAsFilterForOptions (#87244)
* fix: opt-in to `useQueriesAsFilterForOptions`

With updating the scenes library, dashboards must now explicitly
opt in to `useQueriesAsFilterForOptions`.
2024-05-03 18:47:57 +03:00
Isabella Siu
5aeaeb6e90 Cloudwatch: Update grafana-aws-sdk to fix sts endpoints (#87326)
Cloudwatch: update grafana-aws-sdk to fix sts endpoints
2024-05-03 11:43:28 -04:00
Gilles De Mey
5e25afe6e9 Alerting: New settings page (#84501) 2024-05-03 17:42:42 +02:00
Darren Janeczek
046eedaa4c datatrails: recently loaded trails modify parent variables when making new steps (#87284)
* fix: loaded trails modified parent var on new step

This ensures that recently loaded trails won't have variable changes
which create new steps modify the previous step.
2024-05-03 11:38:47 -04:00
Sergej-Vlasov
6433053479 DashboardScene: Restrict dashboard in read only state (#87316)
---------

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
2024-05-03 18:33:49 +03:00
renovate[bot]
6a696a976b Update Yarn to v4.2.1 (#87325)
* Update Yarn to v4.2.1

* add new yarn version

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-05-03 18:10:51 +03:00
Juan Cabanas
d1434fad3a ShareModal: Share link redesign under newDashboardSharingComponent FF (#87011) 2024-05-03 12:02:18 -03:00
Prem Saraswat
196134b0b4 Storage Server: Avoid incorrect parsing of connection string (#85293)
Storage Server: avoid incorrect parsing of connection string

In storage server, a connection string is generated to connect to the
backing database. In case of Postgres, we were generating the string
like `"user=grafana pass= host=postgres.example port=4567"`.

This triggered an edge case in `pq` (the go postgres driver) to parse
`pass` to be equal to `host=postgres.example`, and host being reset to
default value.

Using single quotes in the connection string fixed this.

Signed-off-by: Prem Kumar <prem.saraswat@grafana.com>
2024-05-03 10:54:39 -04:00
Andreas Christou
28df41fd96 MSSQL: Add HostName method (#87309)
* Add HostName method

* Add test

* Fix lint
2024-05-03 15:45:34 +01:00
renovate[bot]
ac8f3f6e86 Update dependency yaml to v2.4.2 2024-05-03 14:44:59 +00:00
Chris Marchbanks
d6c93c12bf Prometheus: Add reqAction to Prometheus routes (#87208)
Add reqAction to Prometheus routes

This should allow provisioned service accounts that do not have a role to use the /proxy endpoints for Prometheus. This
is desired for some integrations that need to query for labels or other data not part of /ds/query.
2024-05-03 16:09:06 +02:00
renovate[bot]
2924b37628 Update dependency rudder-sdk-js to v2.48.7 2024-05-03 14:08:50 +00:00
renovate[bot]
7b71464c62 Update dependency re-resizable to v6.9.16 2024-05-03 13:31:56 +00:00
ismail simsek
9fbca6c035 Datatrails: Fix overflow of labels (#87301)
Fix overflow of labels
2024-05-03 09:26:30 -04:00
renovate[bot]
346dbab768 Update dependency lru-cache to v10.2.2 2024-05-03 12:58:12 +00:00
renovate[bot]
bb771e3501 Update dependency i18next to v23.11.3 2024-05-03 12:26:42 +00:00
Scott Lepper
1a2bbd61fd sql expressions: improve parser (#87277)
sql expressions: improve parser
2024-05-03 08:08:07 -04:00
renovate[bot]
48f77cdebe Update dependency dompurify to v3.1.2 2024-05-03 12:00:28 +00:00
Santiago
b76a9e4d31 Alerting: Implement GetStatus in the remote Alertmanager struct (#84887)
* Alerting: Implement GetStatus in the remote Alertmanager struct

* update tests

* fix tests, extract AlertmanagerConfig from PostableConfig

* get the remote AM config instead of the Grafana one from the remote AM

* pass grafana AM config in test

* return error in GetStatus instead of logging it (internal AM)
2024-05-03 13:59:02 +02:00
Andres Martinez Gotor
b6f899d953 Migrate wrong datasource UIDs (#86598) 2024-05-03 13:32:07 +02:00
renovate[bot]
b25f193be0 Update dependency @types/node to v20.12.8 2024-05-03 11:25:38 +00:00
Gilles De Mey
7a12c5e0ef Alerting: Add OAuth2 to HTTP settings for vanilla Alertmanager / Mimir (#87272)
add OAuth2 to HTTP settings for vanilla Alertmanager / Mimir
2024-05-03 13:23:37 +02:00
Gilles De Mey
12fa9e56e6 Alerting: Fix max alerts (#87271) 2024-05-03 13:22:42 +02:00
Domas
4b496a907d Tempo: Option to not show variable options in "search" editor (#87126)
* allow disabling variable options in Tempo "search" editor

* also for GroupByField

* set addVariablesToOptions true by default
2024-05-03 14:22:03 +03:00
renovate[bot]
39a88bae44 Update dependency @swc/helpers to v0.5.11 (#87296)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-03 12:07:54 +01:00
ismail simsek
3317691615 InfluxDB: Support cardinality queries with backend mode (#87264)
support cardinality queries
2024-05-03 12:50:00 +02:00
renovate[bot]
253ab5efd3 Update dependency @react-types/overlays to v3.8.6 2024-05-03 10:39:01 +00:00
renovate[bot]
0ecb1ddf2c Update dependency @react-types/menu to v3.9.8 2024-05-03 10:12:28 +00:00
Eric Leijonmarck
a98328b092 Auditlogging: add docs about dsquery (#87218)
* add docs for dsquery

* update the generic actions
2024-05-03 11:11:46 +01:00
kay delaney
b3f173f153 Dashboard: Fix issue where changes to panel in row weren't detected in panel edit (#87195)
Closes #87171
2024-05-03 11:50:10 +02:00
renovate[bot]
95028b65f3 Update dependency @react-types/button to v3.9.3 2024-05-03 09:49:45 +00:00
renovate[bot]
7d84ae04aa Update dependency @pmmmwh/react-refresh-webpack-plugin to v0.5.13 (#87283)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-03 09:54:03 +01:00
Georges Chaudy
dd0e646e92 k8s: remove dependency on app_mode development (#85474)
* k8s: remove dependency on app_mode development

* remove dev conditions on storage server

* remove logic to drop entity tables
2024-05-03 11:28:15 +03:00
github-actions[bot]
fd58168c3b I18n: Download translations from Crowdin (#87240)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-03 08:21:27 +00:00
Carl Bergquist
7a6bef8f9c Scopes: Adds kinds for browsing the scope node tree. (#86975)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2024-05-03 09:48:54 +02:00
Alex Khomenko
c4c313d20f Grafana/ui: Update Button and IconButton components to accept icon as component (#87243)
* Saga-icons: Forward SVG attributes

* Icon prop as component

* Add IconRenderer

* Cleanup

* Fix types

* Update size prop

* Revert storybook

* Update IconButton
2024-05-03 09:22:22 +03:00
renovate[bot]
85170d51dd Update dependency @kusto/monaco-kusto to v10.0.20 2024-05-03 02:51:04 +00:00
Karl Persson
a22350f8f4 IDToken: add namespace (#87242) 2024-05-02 18:55:28 -07:00
renovate[bot]
75401ea857 Update dependency @grafana/scenes to v4.13.2 2024-05-03 00:31:17 +00:00
renovate[bot]
4d0a3de6fb Update dependency @floating-ui/react to v0.26.13 (#87273)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-02 23:11:39 +01:00
Tom Glenn
e95eaa9302 docs: Minor tweaks to the Grafana Fundamentals tutorial (#86777)
* Minor tweaks to the Grafana Fundamentals tutorial

* Replaced old note style with admonition shortcode

* trigger CI

* Fixed shortcode

Co-authored-by: Danielle Broadwater <danibroadwater@outlook.com>

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Isabel Matwawana <isabel.matwawana@grafana.com>
Co-authored-by: Danielle Broadwater <danibroadwater@outlook.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-05-02 16:44:59 -04:00
Nick Richmond
21afe3dc62 Prometheus: Ensure values in metric selector are visible (#87150)
* fix: ensure selectable values are visible

* refactor: remove unnecessary ternaries, strengthen types

* docs: fix typo

* style: comply with `betterer` guidelines

* refactor: add clarity

* fix: remove border for consistency's sake
2024-05-02 16:06:40 -04:00
Scott Lepper
cbe3e3a5e0 fix: sql expressions parser with join (#87263) 2024-05-02 14:48:05 -04:00
Drew Slobodnjak
6c7485129b Canvas: Fix datalinks using field variable (#87265) 2024-05-02 11:29:43 -07:00
Isabel Matwawana
f8d9f8541b Docs: add panel options shared content (#87258)
* Added panel options shared file

* Added panel options shared file to visualizations pages

* Fixed version interpolation syntax and added Cloud links

* Fixed heading level of title
2024-05-02 14:17:23 -04:00
renovate[bot]
79b5fb9f1f Update babel monorepo to v7.24.5 2024-05-02 18:10:10 +00:00
Marie Cruz
7db41222c6 docs: update flame graph visualization (#86615)
* docs: update flame graph visualization

* fix: linting issues

* docs: add example data

* Apply suggestions from code review

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Removed Wikipedia link

* Fixed punctuation

* Updated max image width

* Update docs/sources/panels-visualizations/visualizations/flame-graph/index.md

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* fix: linting issues

* docs: add links to pyroscope docs about flame graph and profile types

* Ran prettier

* docs: add flame graph video

* Updated wording

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Isabel Matwawana <isabel.matwawana@grafana.com>
2024-05-02 13:37:05 -04:00
Eric Leijonmarck
cdb9eeb7fc TeamLBAC: Add scenario 6 to the docs (#87215)
* add task 6

* Apply suggestions from code review

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>

---------

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2024-05-02 17:38:26 +01:00
renovate[bot]
dd9fb83606 Update React Aria (#87253)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-02 17:27:29 +01:00
Ashley Harrison
84c59e1134 Chore: Add tracking for total number of scss files (#87259)
* add tracking for total number of scss files

* need this comma :o
2024-05-02 19:10:31 +03:00
Nicholas P. Cole
64d5440c5a Docs: Fix link to values.yaml file (#87014)
Fix link to values.yaml file

Linking to the "edit" URL fails if the reader doesn't have write access
to the repo: they'll be prompted to fork the repo or to sign in to
GitHub. Instead link to the "blob" URL which is accessible to all
readers.
2024-05-02 10:39:51 -05:00
Laura Benz
3e12fd8a2c Renovate: Add Slate and related packages to ignore list (#87250)
refactor: add Slate and related dependencies to ignore section
2024-05-02 18:36:32 +03:00
Galen Kistler
840aeddbd1 Logs: Explore panel default visualization feature flag (#87189)
* add logsExploreTableDefaultVisualization feature flag

* use feature flag in calculating initial visualization type

* add feature flag to tracking
2024-05-02 10:28:15 -05:00
Ashley Harrison
8afaea8a56 Navigation: show img as backup if icon doesn't exist (#87247)
show img as backup if icon doesn't exist
2024-05-02 16:24:06 +01:00
kay delaney
bc9010a95b Scenes: Adjust styles to allow shrinking of variable selectors (#87085) 2024-05-02 16:23:29 +01:00
Ryan McKinley
b7df129b78 FeatureToggles: Write enabled flags to the logs on startup (#87225) 2024-05-02 18:19:34 +03:00
Torkel Ödegaard
281d785442 Select: Fixes issue preserving search term (input) when selecting a value (#87013) 2024-05-02 17:13:53 +02:00
Arati R
4db5ec28a1 Storage: Enable mode 2 dual writing for playlists (#87245)
Enable mode 2 dual writing for playlists
2024-05-02 16:52:29 +02:00
Gilles De Mey
0dffdc1756 Scenes: Add endLineNumber to json diff (#87049) 2024-05-02 16:41:13 +02:00
Sergej-Vlasov
838e36bd99 DashboardScenes: Pin go version to go.mod file in scenes e2e workflow (#87238)
* adjust workflow to use correct go version

* finalise wokflow adjustments
2024-05-02 17:30:08 +03:00
Fayzal Ghantiwala
df25e9197e Alerting: Get grafana-managed alert rule by UID (#86845)
* Add auth checks and test

* Check user is authorized to view rule and add tests

* Change naming

* Update Swagger params

* Update auth test and swagger gen

* Update swagger gen

* Change response to GettableExtendedRuleNode

* openapi3-gen

* Update tests with refactors models pkg
2024-05-02 15:24:59 +01:00
Arati R
9e6de035c0 Storage: Add mode 2 dual writing improvements (#87204)
* Fix mode 2 List test
* Set origin timestamp during conversion to k8s resource
* Add instructions for updating a playlist
* Handle partial deletions of a collection in mode 2
2024-05-02 16:06:51 +02:00
Darren Janeczek
b1d98939e1 datatrails: include step index and number of steps when reporting trail step navigation usage (#87068)
* fix: include step index and number of steps
2024-05-02 09:55:58 -04:00
Alexa V
eae1cafebd Dashboard Scene: Chore - Add missing unit test to PanelDataQueryTab (#87139)
* Create basic structure PanelDataQueriesTab unit test

* Add more test cases to the PanelDataQueriesTab test

* Update public/app/features/dashboard-scene/panel-edit/VizPanelManager.tsx
2024-05-02 15:54:50 +02:00
Mihai Doarna
2eab915b80 SSO: Collect user save attempts from OAuth provider forms (#87233)
collect user save attempts from OAuth provider forms
2024-05-02 16:54:07 +03:00
Sergej-Vlasov
afbd02c4ec DashboardScene: adjust lib panel as a dashboard datasource refresh logic (#87120)
* activate library viz panel and adjust id extractor

* revert parts that are fixed in #87125

* clean up after activation handler
2024-05-02 16:20:35 +03:00
Gabriel MABILLE
8802282ebc RBAC: fix panic role not found permission sync (#87217) 2024-05-02 15:19:56 +02:00
Kevin Yu
6851ad9f8c CloudWatch: Fix apostrophes in dimension values not being escaped (#87182) 2024-05-02 06:15:11 -07:00
Mihai Doarna
a979417700 SSO: Update ssoSettingsApi flag to general availability (#87216)
* update ssoSettingsApi flag to general availability

* generate files
2024-05-02 16:00:52 +03:00
Karl Persson
d8fbbdefea Identity: Use typed namespace id (#87121)
* Use typed namespace id
2024-05-02 14:50:56 +02:00
Scott Lepper
4fd2cb6014 fix: sql expressions - sql parser table name case (#87196)
* fix: sql parser table name case
2024-05-02 08:43:20 -04:00
Kristin Laemmert
ac07a9794b Chore: update go.mod (#87194)
* Chore: update go.mod
2024-05-02 08:11:19 -04:00
Sergej-Vlasov
37ca484aad DashboardQueryEditor: Adjust options filtering in scenes (#87174)
adjust options filtering for dashboard datasource in scenes
2024-05-02 15:10:06 +03:00
Sergej-Vlasov
4d37e11ce9 DashboardScene: Remove min height on viz picker scroll container (#87172)
removed min height prop
2024-05-02 15:07:13 +03:00
Gilles De Mey
1d06f33a8e Alerting: Prevent search from locking the browser (#87132) 2024-05-02 14:41:33 +03:00
Serge Zaitsev
ad5613d7d4 Chore: Remove cfg from folder service (#87212)
remove cfg from folder service
2024-05-02 13:18:54 +02:00
Josh Hunt
08121dc193 E2C: Restore Disconnect modal (#87223) 2024-05-02 11:57:51 +01:00
github-actions[bot]
544b22a6b2 I18n: Download translations from Crowdin (#87170)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-02 10:42:10 +00:00
Gábor Farkas
d7ff3213f3 postgres: decouple the frontend-part (#87131) 2024-05-02 12:25:25 +02:00
Ieva
28dd1ddd8e RBAC: Do not set permissions on data sources with wildcard UID in OSS (#87220)
do not set permissions on DS with wildcard UID
2024-05-02 13:18:29 +03:00
Jack Westbrook
b5a084611f Fix: Always fetch plugin css with Systemjs (#87211)
* fix(plugins): fetch strategy should always be used for css/json/wasm/html

* refactor(plugins): prefer checking for js file type rather than list of other file types
2024-05-02 11:55:20 +02:00
Esteban Beltran
9f5ab38477 FE Sandbox: Fix innerHTML distortion causing issues with DOMPurify inner works (#87117)
* FE Sandbox: Fix innerHTML distortion causing issues with DOMPurify inner works

* Add a comment explaining the fix
2024-05-02 11:17:04 +02:00
Tobias Skarhed
a59e7e14b1 AnnotationList: Fix link for annotation with no panel or dashboard (#87048)
* Handle case for no associated panel or dashboard

* Convert to CSS object

* Add tests and extend type to cover null use case
2024-05-02 11:30:19 +03:00
Serge Zaitsev
6ddb8aeae3 Chore: Moving to slog (folders) (#87000)
* moving folders to slog

* trying to fix the tests

* fix per-logger filters in slog

* allow using slog.Default()

* bring cfg back to keep the pr small

* fix tests

* back to the roots
2024-05-02 09:14:12 +02:00
Jack Westbrook
a6b7fc51a8 Chore: Add back node-forge npm package (#87136) 2024-05-02 08:39:02 +02:00
Isabel Matwawana
90b594e998 Docs: add standard options shared content (#87199)
* Added standard options shared file

* Added missing option to shared file and added shared file link to visualizations pages

* Fixed links
2024-05-01 18:30:24 -04:00
Isabel Matwawana
d5cfcc8187 Docs: add field overrides shared content (#87197)
* Added field overrides shared file

* Added link to overrides file in visualizations pages

* ihm/010524-field-override-shared-content/ run lint

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
2024-05-01 18:10:06 -04:00
Isabel Matwawana
1ef0e240e9 Docs: Add data links shared content (#86893)
* Added data link options shared file and added file to relevant visualizations

* Updated some text and links in canvas

* Added shared file to xy chart

* Fixed list of visualizations using shared file

* Removed unneeded level offset

* Removed future tense

* Update data links description

* Updated wording

* Removed redundant sentence
2024-05-01 16:51:12 -04:00
Adela Almasan
ee4422d1e2 XYChart: Fix default point size (#87192) 2024-05-01 21:19:54 +03:00
owensmallwood
efff4c0bbd Unified Storage: Redacts logged env var values for entity api db password (#87191)
redacts logged env var values for entity api db password
2024-05-01 12:15:44 -06:00
owensmallwood
40558899e4 Unified Storage: Adds health check service for entity server (#86471) 2024-05-01 11:36:44 -06:00
Ieva
a9ac648cf6 Chore: Improve some confusing logs (#87185)
improve some confusing logs
2024-05-01 19:42:05 +03:00
lean.dev
0719f73f35 Cloud Migration: Remove ID migration in favor of UID (#86550)
* - Added migration to add a new collumn UID to both migration and migration_run tables.
- Added migration to set UID for records already existent in the database before adding a new column.
- Added UID field to CloudMigration and CloudMigrationRun dtos (model.go)

* Fix db migration

* Updating store and model

* Updating API to use UID

* fix typo

* update openapi specs and generated endpoints

* fix spec

* update openapi specs and generated endpoints

* Fixing db mapping

* Fix frontend

* fix migration

* remove migration uid from run fetch endpoint

* Revert "merge"

This reverts commit d654e4c530, reversing
changes made to 5fe0b483eb.

* manual merge

* rename some funcs for consistency

* make interfaces consistent

* validate uids

* update generated frontend api

* fix enterprise spec

* manually resolve api

* try again

* try yet again

* once more

---------

Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com>
Co-authored-by: joshhunt <josh@trtr.co>
2024-05-01 12:29:25 -04:00
Reem Tariq
fcb40e601d GrafanaUI: Add two icons add-user and clip-attach (#87112)
* add two icons add-user and clip-attach

* rename clip-attach to attach
2024-05-01 17:27:27 +01:00
dependabot[bot]
49e82eb4c1 Chore(deps): Bump github.com/Masterminds/sprig/v3 from 3.2.2 to 3.2.3 (#87020)
Bumps [github.com/Masterminds/sprig/v3](https://github.com/Masterminds/sprig) from 3.2.2 to 3.2.3.
- [Release notes](https://github.com/Masterminds/sprig/releases)
- [Changelog](https://github.com/Masterminds/sprig/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Masterminds/sprig/compare/v3.2.2...v3.2.3)

---
updated-dependencies:
- dependency-name: github.com/Masterminds/sprig/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-01 11:24:37 -04:00
Alexa V
9ea1042329 Dashboard: POC to run existing e2e with dashboardScene feature toggle (#84598)
* Standarize e2e for addDashbaord e2e flow

* WIP: Duplicate e2e dashboard flows and smoke test for scene e2e tests

* Fix autoformatting mistake for bash file

* Enable dashboardScene using local storage and only for the scene folder

* Add missing folders

* Set the feature toggle in the before of all tests

* Revert "Standarize e2e for addDashbaord e2e flow"

This reverts commit 6b9ea9d5a4.

* Add missing e2e selectors to NavToolbarActions, and modify addDashboard scene flow

* e2e: panels_smokescreen.spec.ts migrated

* e2e smokeTestSceneario migrated

* Start migrating dashbaord-suite e2e

* WIP create variable types

* adjust tests for scenes

* restore dashboard json file

* update scenes version

* restore pkg/build/wire/internal/wire/testdata modifications

* finalising test adjusments

* restore pkg/build/wire/internal/wire/testdata files

* add latest scenes version and update tests

* add drone setup for dashboard scenes tests

* update to latest scenes version

* adjust drone errors

* adjust indentation in drone yml file

* drone adjustments

* add github workflow to run scenes e2e

* restore drone file

* adjust github workflow

* wip: github workflow adjustments

* test remove gpu

* bump

* undo formating changes

* wip: github workflow debugging

* adjusting flaky tests

* update to latest scenes

* clean up workflow file

* adjust flaky test

* clean up pr

* finalise worflow logic and add to codeowners

* clean up launching old arch dashboards e2e separately

---------

Co-authored-by: Sergej-Vlasov <sergej.s.vlasov@gmail.com>
Co-authored-by: Jeff Levin <jeff@levinology.com>
2024-05-01 17:56:48 +03:00
Adela Almasan
0fbfb67b15 XY Chart: Show mapped size/color fields in tooltip (#87153) 2024-05-01 09:55:11 -05:00
Krishna Dhakal
deb6d27406 Core: Replace deprecated jest matcher toBeCalledWith (#86635)
* Replace depredated matcher from jest

* perform rechecks

---------

Co-authored-by: joshhunt <josh@trtr.co>
2024-05-01 15:33:26 +01:00
Jack Baldry
c5217aa632 Update doc-validator workflow to support ref URIs (#86423) 2024-05-01 15:05:08 +01:00
Torkel Ödegaard
4034a26972 DashboardScene: Fixes issue referring to library panel in dashboard data source (#87125)
* DashboardScene: Fixes issue using a library panel as source for dashboard data source

* Added test
2024-05-01 14:30:54 +02:00
Laura Benz
f806b9749d refactor: replace static placeholders with translatable ones (#87130)
* refactor: replace static placeholders with translatable ones

* refactor

* refactor: keep default option

* refactor: improve expression

* refactor: run extraction after merging fix
2024-05-01 13:17:53 +02:00
Josh Hunt
b0f1222a21 Chore: Restore pseudoizer dep (#87166) 2024-05-01 12:45:34 +03:00
Torkel Ödegaard
7a5c17d613 DashboardScene: Fixes issue with panel edit options pane and data (#87161) 2024-05-01 11:17:48 +02:00
Ashley Harrison
f15f21a13f Dashboard: Only show Starred as parent breadcrumb for starred dashboards (#87145)
don't update pageNav to have folder if sectionNav is starred
2024-05-01 09:55:31 +01:00
Joey
5cee521dc9 Tempo: Use ellipsis when trace view header url is too long (#86417)
* Limit url length

* Update styles to use objects

* Update width

* Add url to tooltip
2024-05-01 09:20:37 +01:00
Arati R
61f3d08c3f Storage: Add List support for pagination (#87093)
* Add origin keys to List request
* Check origin keys requirement in the sql entity server's List method
* Refactor mode 2 List
* Check origin keys before making Storage List call

---------

Co-authored-by: Dan Cech <dcech@grafana.com>
2024-05-01 08:42:47 +02:00
Isabel Matwawana
406fe8c85a Docs: Add thresholds shared content (#87009)
* Added thresholds shared files

* Added shared files to visualizations and updated shared files

* Removed future tense

* Fixed prettier
2024-04-30 16:33:31 -04:00
Isabel Matwawana
dad3069594 Docs: add legends shared content (#86814)
* Updated shared file name and added missing options

* Added legend options 1 shared file to relevant visualizations

* Updated shared file name and corrected options

* Added legend options 2 shared file to relevant visualizations

* Updated legend content for heatmap and pie chart

* Added where shared legend files are used in each file

* Moved intro text out of viz pages into legend options shared files

* Added reasoning to front matter of shared files

* Added reasoning to front matter of shared files

* Fixed version interpolation and added cloud links

* Updated links in shared files
2024-04-30 15:40:07 -04:00
bornohin6
7ce1254913 CloudMigration: Remove details from the migration run list (#87104)
Remove details from the migration run list
2024-04-30 11:44:35 -07:00
Adela Almasan
4312f2accd XYChart2: Fix tooltip mode (#87147) 2024-04-30 13:19:37 -05:00
Kevin Yu
a54df47976 CloudWatch: Add labels for Metric Query type queries (#85766)
* CloudWatch: Fix metric query with group by not being labelled in alerts

* just use one key for the labels

* not needed

* unused function

* add tests

* pr comments

* fetch dimensions to build labels for MetricQuery type queries

* pr comments

* group cache related tests and use fresh cache for non-cache related tests

* don't cache empty values
2024-04-30 09:06:16 -07:00
Tom Ratcliffe
b0f6913ef6 Alerting: unify alert rule actions between list and detail view (#86071)
* Add mock method for getting a plugin

* Update tests to find "more" button via label

* Remove test for Silence action in rule details

* Unify alert rule actions to pull from same place

* Restore behaviour of only showing incident button when firing

* Fix identifier and pause permission/logic

* Remove TODO comment related to refactor

* Update snapshot for useAbilities

* Undo optional param

* Rename alert rule menu hook to component

* Refactor hook to component

* Rename Rule action buttons component

* Chore: update style syntax for RuleDetails

* Add tests for refactored alert rule menu

* Only re-fetch Grafana managed alerts after pausing/resuming

* Remove console log and check for extensions

* Improve share rule generation of GMA rules

* Rename component

* Update action

* Refactor plugins and fix tests

* lint

---------

Co-authored-by: Konrad Lalik <konrad.lalik@grafana.com>
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-04-30 16:17:55 +01:00
William Wernert
93519f70ca Alerting: Also fix HCL field name for MuteTimeIntervals (#87079)
* Correct HCL field name for MuteTimeIntervals

* Update test
2024-04-30 16:14:01 +01:00
Ieva
5e060d2d99 Data source: Maintain the default data source permissions when switching from unlicensed to licensed Grafana (#87119)
set managed data source permissions upon resource creation for unlicensed Grafana, remove them on deletion
2024-04-30 16:05:30 +01:00
Alex Khomenko
86aceb7a10 Saga-icons: Forward SVG attributes (#87138) 2024-04-30 15:58:25 +01:00
antonio
1ddbcc3f61 alerting/notifications: links (#87122)
* added links to each section

* ref fix

* ref fix2

* link fix
2024-04-30 16:34:18 +02:00
antonio
99f2de0847 alerting:config-notifications links (#87127)
* alerting:config-notifications links

* link fix

* linked blog post to examples section
2024-04-30 16:34:06 +02:00
Aaron Godin
53f94ac50d Apply plugin route ReqAction to ds_proxy authorization (#86466)
* Apply plugin route ReqAction to ds_proxy authorization

Co-authored-by: Eric Leijonmarck <eleijonmarck@users.noreply.github.com>

* fix: move ds_proxy route Evaluator out of plugins pkg

* move DataSourceProxy route authorization to method

---------

Co-authored-by: Eric Leijonmarck <eleijonmarck@users.noreply.github.com>
2024-04-30 09:19:34 -05:00
Steve Simpson
5c89b8fe12 gRPC Server: Make message size limits configurable. (#86982)
* gRPC Server: Make message size limits configurable.

* Fix mistake, don't add opts twice

* Apply suggestions from code review

Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com>

---------

Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com>
2024-04-30 16:18:03 +02:00
ismail simsek
4cc6b53a6d Chore: InfluxDB unit testing overhaul (#86586)
* move mocks into the __mocks__ folder

* refactor datasource.test.ts

* refactor datasource_backend_mode.test.ts

* add dbName tests

* prettier

* betterer
2024-04-30 09:59:42 -04:00
Gábor Farkas
3d80693456 postgres: simpler test (#86331) 2024-04-30 15:27:20 +02:00
Marcus Efraimsson
2fc99375df Chore: Upgrade otel dependencies (#86994)
* Chore: Upgrade otel dependencies

* sdk changes

* ignore deprecated go.opentelemetry.io/otel/exporters/jaeger for now

* use latest commit from sdk branch

* sdk v0.228.0
2024-04-30 15:12:45 +02:00
Mihai Doarna
76d94b35c9 SSO: fix settings merge for SAML fields (#86970)
* fix sso settings merge for saml fields

* change func name
2024-04-30 15:10:27 +03:00
Andreas Christou
125ac18fa3 AzureMonitor: Enable session ID header for Log Analytics (#86320)
* Enable option

- Update sdk

* Sync go.work
2024-04-30 13:10:04 +01:00
Karl Persson
a2cba3d0b5 User: Add tracing (#87028)
* Inject tracer in tests

* Annotate with traces

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2024-04-30 13:15:56 +02:00
Alex Khomenko
7f1b2ef205 Select: Add data-testid to Input (#87105)
* Select: Add custom input component

* Forward data-testid

* Add input selector

* Props check
2024-04-30 14:04:58 +03:00
Arati R
ec6f59a678 Chore: Update protoc-gen-go (#87116)
Update protoc-gen-go
2024-04-30 12:14:33 +02:00
antonio
9203f84bc8 docs / alerting / fundamentals / templates (#86983)
* docs / alerting / fundamentals / templates

* renamed and adjusted front matter

* pretty

* frontmatter

* admonition fix

* admo

* restructuring

* Update docs/sources/alerting/fundamentals/notifications/templates.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/notifications/templates.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/notifications/templates.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/notifications/templates.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/notifications/templates.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* amended admonition

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-04-30 12:06:25 +02:00
Tim Mulqueen
6dbc44920c Dashboard Scene - Variable Fix: cancel out margin-bottom of placeholder in loading state (#87107)
fix: cancel out margin-bottom of placeholder in loading state
2024-04-30 10:54:25 +02:00
Konrad Lalik
9369f07e32 Alerting: Immutable plugin rules and alerting plugins extensions (#86042)
* Add pluginsApi

* Add rule origin badge

* Make plugin provided rules read-only

* Add plugin settings caching, add plugin icon on the rule detail page

* Add basic extension point for custom plugin actions

* Add support for alerting and recording rule extensions

* Move plugin hooks to their own files

* Add plugin custom actions to the alert list more actions menu

* Add custom actions renderign test

* Add more tests

* Cleanup

* Use test-utils in RuleViewer tests

* Remove __grafana_origin label from the label autocomplete

* Remove pluginsApi

* Add plugin badge tooltip

* Update tests

* Add grafana origin constant key, remove unused code

* Hide the grafana origin label

* Fix typo, rename alerting extension points

* Unify private labels handling

* Add reactive plugins registry handling

* Update tests

* Fix tests

* Fix tests

* Fix panel tests

* Add getRuleOrigin tests

* Tests refactor, smalle improvements

* Rename rule origin to better reflect the intent

---------

Co-authored-by: Tom Ratcliffe <tom.ratcliffe@grafana.com>
2024-04-30 10:34:52 +02:00
Andreas 'count' Kotes
78cda7ff5c Schema: add missing insertNulls to GraphFieldConfig (#85861)
add missing insertNulls to GraphFieldConfig

Co-authored-by: joshhunt <josh@trtr.co>
2024-04-30 10:21:49 +03:00
Misi
1cb3f332a1 Chore: Remove extra sql select from the Insert function of userimpl.store (#87060)
Remove getAnyUserType
2024-04-30 08:54:20 +02:00
Jack Westbrook
0f4db3f5ad Fix: yarn build in DockerFile (#86858) 2024-04-30 07:58:25 +02:00
Yuri Tseretyan
052082a927 Alerting: Refactor Alert Rule Generators (#86813) 2024-04-29 21:52:15 -04:00
kay delaney
8bb9b06e48 Chore: Rewrite grafana-sql css using object styles (#87052) 2024-04-29 22:34:10 +01:00
Adela Almasan
e3719471d5 Heatmap: Fix histogram highlighted series (#86955) 2024-04-29 16:02:38 -05:00
Scott Lepper
7505af2886 Chore: Update go-duck dependency to v0.0.18 (#87073)
* Chore: Update go-duck dependency to v0.0.18
2024-04-29 14:46:19 -04:00
Andrej Ocenas
16395f9f23 Pyroscope: Add adhoc filters support (#85601)
* Add adhoc filters support

* Add tests

* refactor tests

* Add comment

* Removed empty param docs
2024-04-29 20:41:40 +02:00
William Wernert
70ff229bed Alerting: Use expected field name for receiver in HCL export (#87065)
* Use expected field name for receiver in hcl

Terraform provider expects `contact_point` instead of `receiver` in
notification settings on a rule.
2024-04-29 18:13:29 +01:00
Larissa Wandzura
3845033308 Docs: Update Explore Metrics doc based on feedback (#87062)
* changed from private preview to public preview

* commented out pivot to logs and traces
2024-04-29 12:09:47 -05:00
Isabella Siu
7b392d40a0 Auth: Sign sigV4 request after adding headers (#87063) 2024-04-29 13:07:45 -04:00
Gilles De Mey
b679a32fad Alerting: Allow deleting contact points referenced only by auto-generated policies (#86800) 2024-04-29 17:48:54 +01:00
Santiago
36a0499128 Alerting: Implement CreateSilence in the forked Alertmanager (remote primary mode) (#85716) 2024-04-29 18:47:25 +02:00
Drew Slobodnjak
49fbe970fb Canvas: Fix connection hyperbolic bug (#87002)
* Canvas: Connection original persistence check

* Canvas: Fix connection hyperbolic bug
2024-04-29 09:16:01 -07:00
Julien Duchesne
8d8f19b84f Regenerate OpenAPI spec (#87050)
Issue: https://github.com/grafana/grafana/issues/86453
The endpoints were documented in enterprise Grafana
2024-04-29 16:27:59 +01:00
Santiago
1af2e69625 Alerting: Implement DeleteSilence in the forked AM (remote primary) (#85721) 2024-04-29 17:23:41 +02:00
Drew Slobodnjak
7590f4afe1 Canvas: Connection original persistence check (#86476)
* Canvas: Connection original persistence check

* modify current connection state directly instead of copying and needing to call "onChange"

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-04-29 08:23:26 -07:00
Alex Khomenko
4e6ba433de Grafana/ui: Fix traces icon (#86984) 2024-04-29 17:55:55 +03:00
Tom Ratcliffe
0a02508415 Add more robust error handling for stringifying API responses 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
a34d22dcbf Include alertmanager param on creation 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
e0ee0b09db Add test to check that a broken alertmanager will handle errors correctly 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
aa2f52a2a1 Tidy up error message handling 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
fd07b3d431 Link silence test handlers together more clearly and test more cases 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
31231cf5bf Change test render method to use locationService 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
a34c02fcf2 Address misc PR feedback 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
9860117399 Add more fine grained tag invalidation/providing for Silences 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
4fb1ac2bec Check error state more reliably 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
a0373c66c3 Add fallback for alertmanager alerts 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
9bf2cf0a52 Rename silences RTKQ tag 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
4d4bf39184 Check for server received body
This is not ideal! Preference would be to have a more robust mock server
that responds to the received silence and appends it to a stateful list for the test
and then resets afterwards
2024-04-29 14:15:48 +01:00
Tom Ratcliffe
0dc003aadc Split handlers out into separate files 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
f419c9b53a Add comment explaining reset in silences editor 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
df5c62b8ad Misc tidy up 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
21a3f4817a Add correct tag invalidation after creating a silence 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
cdfc6baea4 Remove unused fetchAlerts method 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
f397830098 Refactor Silences test 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
10fcd541e3 Add handlers to mock server 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
341449f4f5 Remove unused actions/reducers 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
a1d2a9670b Restructure Silences components for better separation of concerns 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
11ed882c84 Add mock server handlers necessary for Silences 2024-04-29 14:15:48 +01:00
Tom Ratcliffe
8f27ec2521 Add silences RTK Query API 2024-04-29 14:15:48 +01:00
kay delaney
6f875188b7 Chore: Clean up package.json files (#86951)
* Chore: Clean up package.json files

Removes any unused packages, adds missing peer dependencies
2024-04-29 14:03:01 +01:00
Haris Rozajac
b52e349639 Explore and Correlations: Replace deprecated layout components (#86967)
Replace deprecated layout components
2024-04-29 13:50:03 +01:00
Piotr Jamróz
5830d6761d ifrost/fix-link (#86965)
* Fix link label

* Switch to lowercase
2024-04-29 14:33:00 +02:00
Matias Chomicki
f1e8d2645f Loki: update HorizontalGroup deprecation (#86995)
* Loki: update HorizontalGroup deprecation

* Update betterer
2024-04-29 13:14:06 +01:00
Ashley Harrison
c151a97110 Chore: Enable no-unreduced-motion and fix errors (#86572)
* enable `no-unreduced-motion` in betterer

* move all animation calls inside handleReducedMotion

* fix violations + enable rule

* update rule README

* remove unnecessary transition from <Collapse>

* remove handleReducedMotion utility and add handleMotion to theme

* update to use new theme value

* handle Dropdown and IconButton

* handle AppChromeMenu and update lint message

* keep rotation at a reduced speed

* handle DashboardLoading
2024-04-29 13:12:36 +01:00
Eric Leijonmarck
8a1f43a65d User: Remove the lowercasing in the query for login conflict (#87032)
* refactor: remove the lowercasing in the query for login conflict

* refactor: move function into the closure gs
2024-04-29 12:24:14 +01:00
Ieva
cee713e34c Chore: Add tracing to team service (#86999)
* add tracing to team service

* another test fix

* pass in context for team creation and membership checking
2024-04-29 11:32:03 +01:00
Steve Simpson
fbaa847a3c Alerting: Pass logger into NewRemoteLokiBackend. (#87029)
Tiny refactor to allow a logger to be passed into NewRemoteLokiBackend.
2024-04-29 12:10:23 +02:00
github-actions[bot]
706110be62 I18n: Download translations from Crowdin (#86807)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-29 11:50:15 +02:00
Thomas Wikman
7fab894e9b DateTimePicker: Alternate timezones now behave correctly (#86750)
* Add failing tests for timezone handling

* Fix `DateTimePicker.tsx` timezone handling

- Resolves `onBlur` issue
- Resolve Calendar and TimeOfDay issues
- Update test to cover different timezone

* Handle `console.warn` in test

* Handle `console.warn` in test #2

* Better handling of invalid date

When parsing date string with `dateTime`, adding a second `formatInput` aids in both parsing the actual string and avoid `console.warn` when `moment` reverts to be using `Date`.

* add more test cases

* Ash/proposed changes (#86854)

* simplify

* only need this change

* formatting

* const > let

* add test to ensure calendar is always showing the matching day

* separate state

* undo story changes

* update util function comments

* fix for selecting date in the calendar

---------

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-04-29 10:46:44 +01:00
Dai Nguyen
ccd2bff8b0 Docs: Create the Azure AD application section has outdated information. (#71498)
Update index.md
2024-04-29 10:24:49 +01:00
Levente Balogh
e89f6daeda Plugins: Add an auto-generated part to the plugin.json schema (#86520)
feat: update the plugin.json schema
2024-04-29 11:04:03 +02:00
Torkel Ödegaard
a4bb4c8400 DashboardScene: Fixes issues with relative time range in panel edit (#86862)
* DashboardScene: Fixes deleting dirty dashboard

* Update

* Progress

* Update

* Update

* Update

* Update

* Update

* Update

* update

* Update
2024-04-29 10:53:57 +02:00
Torkel Ödegaard
01f8301504 DashboardScene: Fixes issue with dashboard links and variables (#86910)
* DashboardScene: Fixes issue with dashboard links and variables

* Update
2024-04-29 10:28:41 +02:00
Victor Marin
8705e03d57 Home dashboard test (#86961)
home dashboard test
2024-04-29 10:56:06 +03:00
Gábor Farkas
500558bb72 mysql decouple frontend part (#86308)
* mysql decouple frontend part

* eslint "fix"

* package version update
2024-04-29 09:55:09 +02:00
Dominik Prokop
67968df70e DashboardDataSourceBehaviour: Handle loading library panel (#86980)
* DashboardDataSourceBehaviour: Handle loading library panel

* Remove timeout

* FIx test
2024-04-29 09:49:46 +02:00
Oscar Kilhed
fdc1023586 Dashboard scenes: Fix min interval not saving (#86962)
* Fix min interval not saving

* Add tests

* Fix test
2024-04-29 09:41:43 +02:00
Karl Persson
c4cfee8d96 User: support setting org and help flags though update function (#86535)
* User: Support setting active org through update function

* User: add support to update help flags through update function
2024-04-29 08:53:05 +02:00
brendamuir
7077a5850e Alerting docs: more vale (#86978) 2024-04-27 09:59:42 +02:00
Juan Cabanas
b77763bbcc ShareModal: Differentiate between panel and dashboard share for tracking (#86992) 2024-04-26 15:35:39 -03:00
Isabel Matwawana
d5fde99c6d Docs: Add value mappings shared content (#86996)
* Added value mappings shared file

* Fixed name of file

* Fixed list of visualizations using shared file

* Added shared file to visualizations

* Updated shared file and added to canvas

* Updated shared file intro text

* Removed future tense
2024-04-26 14:32:01 -04:00
kay delaney
1dbb3bfdea Scenes/PanelVizTypePicker: Use default tab if listMode is unsupported (#86885)
Closes #84565
2024-04-26 18:44:18 +01:00
Ben Sully
f2ca115913 Scenes: support interpolations in TemplateSrv.replace (#86990)
TemplateSrv.replace takes an optional 'interpolations' argument which
records information about the variables which were found during the
interpolation. Until [this Scenes PR][scenes PR] this wasn't supported
by Scenes so the interpolations argument was being ignored if dashboard
scenes were enabled. This commit bumps the scenes version and passes
the interpolations array along to the scenes function.

[scenes PR]: https://github.com/grafana/scenes/pull/708
2024-04-26 16:44:36 +01:00
Darren Janeczek
9af4607e78 datatrails: fix bookmark/recent trail detection, prevent duplications, save trail on browser close/reload (#85677)
* fix: persistence trail detection, save on unload

- fixes detection on bookmarks and recents when current step isn't final
- now save current trail on browser close or reload (unload)
- refresh page or return to URL that corresponds to a recent trail will
   resume that trail instead of creating a duplicate recent trail
- do not create a recent trail out of an empty starting trail

* fix: bookmarks status after making new step

- clone bookmark trail state to prevent it from being changed by user
- re-evaluate bookmark status after creating new step
2024-04-26 11:35:38 -04:00
linoman
9a1f9c126f Replace deprecated layout elements (#86977) 2024-04-26 17:13:28 +02:00
Oscar Kilhed
c3cde17b33 Dasbhoard scenes: Don't return null when uids are not matching for new dashboards (#86998)
Don't return null when uids not matching for new dashboards
2024-04-26 17:12:47 +02:00
Hugo Kiyodi Oshiro
7783b16e47 Plugins: Make grafana-com API URL usage consistent (#86920)
Plugins: Fix grafana-com API URL usage
2024-04-26 16:47:38 +02:00
Juan Cabanas
85c23eed38 ShareModal: Remove PublicDashboard tab when share panel (#86946) 2024-04-26 11:34:55 -03:00
Mihai Doarna
45effc48d9 Auth: ignore non-OAuth2 providers when creating social connectors (#86989)
ignore non-oauth2 providers when creating social connectors
2024-04-26 17:14:31 +03:00
Kristina
e6f51536bf Explore: Add tests around query history errors (#86810)
* WIP build tests

* Fix one test :D

* Unskip, remove console logging, fix limit test

* Add back whitespace
2024-04-26 08:09:31 -05:00
Eric Leijonmarck
eaad38e492 TeamLBAC: Add a limit to the docs for the number of rules (#86971)
teamlbac: update to include the limit for the rules
2024-04-26 13:01:04 +01:00
brendamuir
fd30ceed3e Alerting docs: vale fixes (#86972)
* Alerting docs: vale fixes

* ran prettier
2024-04-26 12:17:06 +02:00
Eric Leijonmarck
f9714b9672 Docs: Update manage rbac w. toc and reference to provisioning w. file (#81120)
* docs: toc and reference to provisioning

* Update docs/sources/administration/roles-and-permissions/access-control/manage-rbac-roles/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-04-26 10:09:08 +01:00
Marcus Efraimsson
aec4a23d21 Chore: Cleanup require sections in go.mod (#86952) 2024-04-26 09:40:23 +02:00
Alex Khomenko
8117aad9af Stack: Add size props (#86900)
* Abstract sizing styles from Box

* Upd name

* Stack: Add sizing props

* Revert

* Update LoginServiceButtons
2024-04-26 08:17:16 +03:00
Darren Janeczek
ff761bb7d6 Tooltips: Ensure new viz tooltips are visible within modals (alternative solution) (#86716)
fix: ensure new viz tooltips are visible within modals

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-04-25 16:27:24 -04:00
Yuri Tseretyan
dff7cb9afb Alerting: Move alertmanager api silence code to separate files (#86947)
* Move alertmanager api silence code to separate files unchanged

* Replace with silence model instead interface

---------

Co-authored-by: Matt Jacobson <matthew.jacobson@grafana.com>
2024-04-25 15:20:37 -04:00
kay delaney
0f98bd3b7b Chore: Rewrite dashboard component css using object styles (#86930) 2024-04-25 20:18:02 +01:00
Marcus Efraimsson
fbcb9a3677 Chore: Upgrade/fix deps after thema removal (#86763)
* Chore: Upgrade/fix deps after thema removal

* github.com/deepmap/oapi-codegen v1.14.0

* github.com/deepmap/oapi-codegen v1.15.0

* github.com/deepmap/oapi-codegen v1.16.0

* fix for dep used in enterprise

* github.com/deepmap/oapi-codegen/v2 v2.0.0

* oapi-codegen/v2 v2.1.0, kin-openapi v0.122.0, sdk

* keep kin-openapi at v0.122.0 and allow SDK to use v0.124.0

* remove github.com/deepmap/oapi-codegen v1 dep

* fix owner

* add back github.com/deepmap/oapi-codegen v1 dep

* upgrade github.com/influxdata/influxdb-client-go/v2 to get rid of deepmap/oapi-codegen

* migrate to oapi-codegen/runtime

* sdk

* sdk v0.227.0
2024-04-25 20:52:09 +02:00
Juan Cabanas
9f07c37fac ShareModal: Fix share link tracking (#86940) 2024-04-25 15:38:12 -03:00
Leon Sorokin
d1b67847a2 Migrations: Graph (old) percent stacked (#84335) 2024-04-25 12:51:07 -05:00
Matthew Jacobson
3397e8bf09 Alerting: Improve error when receiver or time interval used by rule is deleted (#86865)
* Alerting: Improve error when receiver used by rule is deleted

* Remove RuleUID from public error and data

* Improve fallback error in am config post

* Refactor to expand to time intervals

* Fix message on unchecked errors to be same as before
2024-04-25 13:36:00 -04:00
Eric Leijonmarck
e394e16073 Auth: Force lowercase login/email for users (#86359)
* [WIP]: Force lowercase login/email for user CRUD

* warn and remove use of userCaseInsensitiveLogin check

* remove log warning

* reimplementation of the caseinsensitive

* need to decide if we want the conflict check or not

* remvoved the tests for conflict user by getEmail, getLogin

* added tests for user lowercase migration

* wip: emails next

* tests for email lowercasing

* review comments

* optimized login and email lookup before migrating
2024-04-25 17:31:17 +01:00
Ieva
748b3c855c Chore: Clean up team membership code (#86914)
remove unused code, clean up commands
2024-04-25 16:46:24 +01:00
Mihai Doarna
4bf9405ce4 SSO: add SSO settings to secrets migrator (#86913)
* add sso settings to secrets migrator

* unify SSO settings in all log lines
2024-04-25 18:30:23 +03:00
Marcus Efraimsson
ac152ca416 Chore: Upgrade grpc-ecosystem/go-grpc-middleware to v2 (#86724)
* Chore: Replace deprecated prometheus grpc middleware

* go mod tidy without enterprise

* with updated sdk branch

* sdk v0.226.0

* remove deprecated opentracing support for outgoing plugin requests

* migrate to github.com/grpc-ecosystem/go-grpc-middleware/v2

* fix
2024-04-25 17:25:48 +02:00
antonio
42778de2b4 alerting>intro>templates (#86850)
* alerting>intro>templates

* restored alias url

* numbering

* diagram

* Update docs/sources/alerting/fundamentals/notifications/message-templating.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* formatting

* figure fix

* Brenda edits

* Brenda edit 2

* new diagram

* new diagram2

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-04-25 17:01:23 +02:00
Mihai Doarna
28e86c3edb Mention the migrator in the secrets service readme (#86922)
mention the migrator in the secrets service readme
2024-04-25 17:44:55 +03:00
kay delaney
917cbce448 Scenes: Remove lodash usage from DetectChangesWorker (#86683) 2024-04-25 14:42:24 +01:00
Imma Valls
262cb82132 Explore: add links to metrics and correlations editor to Explore (#86474)
add links to metrics and correlations editor
2024-04-25 15:09:38 +02:00
Todd Treece
32215adb37 Chore: Remove HorizontalGroup and VerticalGroup from storage (#86888) 2024-04-25 13:58:25 +01:00
Sonia Aguilar
a68df4be88 Alerting: Skip flaky test (#86921)
Skip flacky test
2024-04-25 13:43:37 +01:00
Tom Ratcliffe
f43762f39a Remove (most) occurrences of HorizontalGroup within Alerting 2024-04-25 12:54:41 +01:00
Alexa V
e711d10925 Dashboard: Migration Fixes Mixed data source losing existing queries (#86883) 2024-04-25 13:06:57 +02:00
Karl Persson
cd724d74aa Authn: move namespace id type (#86853)
* Use RoleType from org package

* Move to identity package and re-export from authn

* Replace usage of top level functions for identity

Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
2024-04-25 12:54:36 +02:00
Timur Olzhabayev
ed89354eaa Chore: Adding debug logging to signature checks (#86915)
Adding debug logging to signature checks
2024-04-25 11:53:10 +01:00
Tobias Skarhed
18c4bee18e DashboardLinks: Make click area bigger in the list (#86481)
* DasboardLinks: Make click area bigger in the list

* Update DashboardLinkList.tsx

* Remove import
2024-04-25 10:59:04 +01:00
George Robinson
c049e5bbfc Alerting: Update grafana/alerting to bb4f4f4 (#86827) 2024-04-25 10:47:01 +01:00
Erik Sundell
1c121ff764 Units: add test cases for siprefix (milli, micro, etc) (#86695) 2024-04-25 12:04:45 +03:00
Erik Sundell
0140dfdddf Chore: Add e2e selectors to alert rule page (#86909)
wip
2024-04-25 10:00:11 +02:00
Erik Sundell
4ff5a561af Fix: Update lockfile (#86901)
update lockfile
2024-04-25 08:20:02 +02:00
Dave Henderson
8ca10cfe78 Revert "ci: remove milestone check" (#86856)
Revert "ci: remove milestone check (#86452)"

This reverts commit 4bb0b78abb.
2024-04-25 01:31:29 -04:00
Erik Sundell
a3ef463499 Grafana packages: Remove E2E workspace (#86416)
* remove e2e package code and any code referencing it

* update code owners

* remove more references to e2e package

* remove unrelated file
2024-04-25 07:12:43 +02:00
Kristin Laemmert
f1aa6549f6 Chore: Upgrade go version to 1.22.2 (#86873)
* Chore: Upgrade go version to 1.22.2
* upgrade to latest swagger for go 1.22 compatibility
* regen openapi spec
* upgrade go in github workflows
2024-04-24 14:26:14 -04:00
Isabel Matwawana
0e81fdffbe Docs: add tooltips shared content (#86553)
* Replaced shared tooltips file with text in xy chart

* Added tooltip info for heatmap

* Updated tooltip shared files, renamed one file, updated configure tooltips

* updated tooltip shared file paths

* Added tooltips shared files in relevant visualizations

* Added where shared file is used in tooltip-options-1

* Added where shared file is used in tooltip-options-2

* Added intro text and justifications to shared files

* Removed tooltips intro text from visualizations with shared files

* Added names of files to comments in shared files
2024-04-24 12:40:27 -04:00
Darren Janeczek
53ead9904d datatrails: interpolate adhoc variables and datasource variables when opening "explore metrics" from dashboard panels (#86252)
* fix: interpolate "explore metrics" from panels

---------

Co-authored-by: Darren Janeczek <darren.janeczek@grafana.com>

* fix: remove support for legacy dashboard

- simplify code
- take advantage of scenes dashboard async and datasource api object

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-04-24 12:05:48 -04:00
Ieva
8028d1c3e1 Chore: Update tests to use team membership hooks (#86846)
* update tests to use team membership hooks

* linting
2024-04-24 16:55:42 +01:00
Javier Ruiz
9e54c450d7 Add onClick behaviour to links to new tooltips (#84974)
* Add onClick behaviour to new tooltips

* Prefer using DataLink component
2024-04-24 17:24:47 +02:00
Tom Ratcliffe
0582e05f8f Add PoC for different MSW approach 2024-04-24 15:57:11 +01:00
Torkel Ödegaard
c965c27994 DataTrails: Exploring alternatives to history issues (#86843)
* DataTrails: Exploring alternatives to history issues

* incorporated unit tests from #86817 and #86741

---------

Co-authored-by: Darren Janeczek <darren.janeczek@grafana.com>
2024-04-24 10:36:58 -04:00
Sofia Papagiannaki
a5a3ee9fa3 SQLStore: Disable redundant create and drop unique index migrations on dashboard table (#86857)
SQLStore: Disable create and drop unique index migrations
2024-04-24 15:25:43 +01:00
Levente Balogh
17a3ec52b6 Plugin preloading: Fix performance measurement (#86855)
fix: measuring plugin preload performance
2024-04-24 15:37:22 +02:00
Khushi Jain
5dd8353ab1 Dashboards: Migrate from aria-label e2e selectors to data-testid (#78536)
* Dashboards: Migrate from aria-label e2e selectors to data-testid

* more changes

* addPanelwidget

* Test: Update .betterer.results

* refactor: fix e2e tests

* refactor: fix failing test

* refactor: update plugin-e2e after adding selector changes to the packege

---------

Co-authored-by: Laura Benz <48948963+L-M-K-B@users.noreply.github.com>
Co-authored-by: Laura Benz <laura.benz@grafana.com>
2024-04-24 15:16:19 +02:00
Victor Marin
38917c4e79 Fix home breadcrumbs (#86786)
* fix home breadcrumbs

* fix homepage gap

* fix tests
2024-04-24 14:54:30 +03:00
Tobias Skarhed
3e450ec4bf Panel: Keyboard focus shortcuts prioritization (#86772)
* Panel: Keyboard shortcuts prio

* Remove redundant Array.from

* Simplify

* Handle Scenes use case
2024-04-24 13:46:40 +02:00
Josh Hunt
f382bd402c Chore: Remove i18n psuedo precommit hook (#86840)
Remove i18n psuedo precommit hook
2024-04-24 13:08:19 +02:00
Jack Westbrook
fd1bf66d86 Plugins: Selectively load plugins using script tags (#85750)
* feat(plugins): introduce logic to selectively load fe plugins via script tags

* feat(plugins): extend cache to store isAngular flag. use isAngular in shouldFetch

* revert(plugins): remove unused prepareImport from SystemJSWithLoaderHooks type

* fix(plugins): cache[path] maybe undefined if not registered or invalidated

* Update public/app/features/plugins/plugin_loader.ts

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>

---------

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
2024-04-24 12:27:28 +02:00
Alexander Zobnin
60ed6bfc33 Search: Fix slow query when user does not have roles assigned (#86791)
* Search: Fix slow query when user does not have roles assigned

* Check all required actions and skip if not found
2024-04-24 13:23:08 +03:00
Esteban Beltran
1e1c62fef1 FE Sandbox: Get plugin module path from bootdata instead of plugin settings (#86702)
* FE Sandbox: Get plugin module path from bootdata instead of plugin settings

* Remove unnecessary async/await
2024-04-24 12:05:20 +02:00
Oscar Kilhed
e7f40493e4 DashboardScene: Measure and report scene load time (#86267)
* measure scene load time

* Fix tests that fail due to performance not being the proper global performance object in jest

* add isScene parameter to tracking test
2024-04-24 11:45:32 +02:00
Charandas
d46b163810 Authn (jwt_auth): add tracing spans for validating newer use cases (#86812) 2024-04-24 02:40:00 -07:00
Konrad Lalik
2db56b9c85 GrafanaUI: Add minWidth and maxWidth props to the Box component (#86607)
* Add minWidth and maxWidth props to the Box component

* Add height props, use theme spacing for sizing
2024-04-24 10:52:00 +02:00
Serge Zaitsev
522a98c126 Chore: Make Cfg field private in SQLStore (#85593)
* make cfg private in sqlstore

* fix db init in tests

* fix case

* fix folder test init

* fix imports

* make another Cfg private

* remove another Cfg

* remove unused variable

* use store cfg, it has side-effects

* fix mutated cfg in tests
2024-04-24 10:38:40 +02:00
Piotr Jamróz
f6e472f879 Explore: Show a drawer with tabs for the library and query history (#86279)
* Create basic feature toggle

* Rename context to reflect it contains query history and query library

* Update icons and variants

* Rename hooks

* Update tests

* Fix mock

* Add tracking

* Turn button into a toggle

* Make dropdown active as well

This is required to have better UI and an indication of selected state in split view

* Update Query Library icon

This is to make it consistent with the toolbar button

* Hide query history button when query library is available

This is to avoid confusing UX with 2 button triggering the drawer but with slightly different behavior

* Make the drawer bigger for query library

To avoid confusion for current users and test it internally a bit more it's behind a feature toggle. Bigger drawer may obstruct the view and add more friction in the UX.

* Fix tests

The test was failing because queryLibraryAvailable was set to true for tests. This change makes it more explicit what use case is being tested

* Remove active state underline from the dropdown

* Allow closing Query Library drawer from the toolbar

* Simplify dropdown design
2024-04-24 10:32:11 +02:00
Alexa V
de589b98c7 Dashboard: Migration [Panel Edit] Missing Query Editor when datasource is not found (#86789)
* Return default datasource if datasource is not found

* Set query runner datasource state to default, else refreshing will not work
2024-04-24 10:21:01 +02:00
Sven Grossmann
a8424f4831 LogContext: Fix structured metadata labels being added as stream selectors (#86825)
* LogContext: Fix structured metadata labels being added as stream selectors

* use row index
2024-04-24 10:00:39 +02:00
Karl Persson
0fa983ad8e AuthN: Use typed namespace id inside authn package (#86048)
* authn: Use typed namespace id inside package
2024-04-24 09:57:34 +02:00
Marcus Andersson
804c726413 PluginExtensions: Make the extensions registry reactive (#83085)
* feat: add a reactive extension registry

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>

* feat: add hooks to work with the reactive registry

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>

* feat: start using the reactive registry

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>

* feat: update the "command palette" extension point to use the hook

* feat: update the "alerting" extension point to use the hooks

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>

* feat: update the "explore" extension point to use the hooks

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>

* feat: update the "datasources config" extension point to use the hooks

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>

* feat: update the "panel menu" extension point to use the hooks

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>

* feat: update the "pyroscope datasource" extension point to use the hooks

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>

* feat: update the "user profile page" extension point to use the hooks

* chore: update betterer

* fix: update the hooks to not re-render unnecessarily

* chore: remove the old `createPluginExtensionRegistry` impementation

* chore: add "TODO" for `PanelMenuBehaviour` extension point

* feat: update the return value of the hooks to contain a `{ isLoading }` param

* tests: add more tests for the usePluginExtensions() hook

* fix: exclude the cloud-home-app from being non-awaited

* refactor: use uuidv4() for random ID generation (for the registry object)

* fix: linting issue

* feat: use the hooks for the new alerting extension point

* feat: use `useMemo()` for `AlertInstanceAction` extension point context

---------

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
2024-04-24 09:33:16 +02:00
Clément Boudereau
d48b5ea44d Docs: Fix data source (jaeger, zipkin, tempo) provisioning yaml TracesToLog query example (#86606) 2024-04-24 07:42:29 +01:00
nextMJ
309adcaa7f Typo fix in User API doc example (#81890)
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-04-24 06:13:51 +01:00
kay delaney
b7995ae18a Chore: Rewrite grafana-flamegraph css using object styles (#86816) 2024-04-23 23:28:37 +01:00
Nathan Marrs
5dea949433 Canvas: Match connection anchor points to elements (#85421)
Co-authored-by: Ihor Yeromin <yeryomin.igor@gmail.com>
2024-04-23 14:26:53 -07:00
Josh Hunt
fc5007b0d5 Dashboards: Fix minor i18n papercuts that snuck through (#86802)
* fix two issues in dashboards i18n

* import

* fix another
2024-04-23 19:30:11 +01:00
dependabot[bot]
2c5b684b85 Chore(deps): Bump google.golang.org/api from 0.162.0 to 0.176.0 (#86794)
* Chore(deps): Bump google.golang.org/api from 0.162.0 to 0.176.0

Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.162.0 to 0.176.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.162.0...v0.176.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* but does it work across all workspaces

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kristin Laemmert <mildwonkey@users.noreply.github.com>
2024-04-23 12:32:16 -04:00
Pepe Cano
14789db1b7 Docs: add Provisioning section to Install on Kubernetes docs (#83875)
* Docs: add `Provisioning` section to `Install on Kubernetes` docs

* prefix k8s object names with `grafana-`

* Fix `suplying` typo
2024-04-23 18:24:25 +02:00
Nathan Marrs
709d78b8b5 Chore: Fix CVE-2024-22363 (#86738) 2024-04-23 09:24:02 -07:00
Kyle Cunningham
37d086d49c Table Panel: Fix images not showing on hover with multiple data links (#86732)
* Fix issue

* Prettier

* codeincarnate/image-table-fix/ lint

* Make linter happy by using div with role of button + improve a11y

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-04-23 23:03:24 +07:00
dependabot[bot]
ca7f41be11 Chore(deps): Bump buf.build/gen/go/parca-dev/parca/protocolbuffers/go from 1.28.1-20221222094228-8b1d3d0f62e6.4 to 1.33.0-20240414232344-9ca06271cb73.1 (#86092)
Chore(deps): Bump buf.build/gen/go/parca-dev/parca/protocolbuffers/go

---
updated-dependencies:
- dependency-name: buf.build/gen/go/parca-dev/parca/protocolbuffers/go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-23 12:02:36 -04:00
dependabot[bot]
18a4c56539 Chore(deps): Bump go.opentelemetry.io/collector/pdata from 1.0.1 to 1.5.0 (#86091)
* Chore(deps): Bump go.opentelemetry.io/collector/pdata

Bumps [go.opentelemetry.io/collector/pdata](https://github.com/open-telemetry/opentelemetry-collector) from 1.0.1 to 1.5.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-collector/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-collector/blob/main/CHANGELOG-API.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-collector/compare/pdata/v1.0.1...pdata/v1.5.0)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/collector/pdata
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* go work sync

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kristin Laemmert <mildwonkey@users.noreply.github.com>
2024-04-23 11:58:17 -04:00
Kristin Laemmert
9553923eb7 Chore: Fix failing ssosettingimpl test (#86792)
Chore: Fix failing ssosetting test
2024-04-23 11:36:34 -04:00
Drew Slobodnjak
173ba73a8a Canvas: Ensure tangency for first segment (#86543) 2024-04-23 07:54:42 -07:00
George Robinson
2049f766c6 Remove fmt.Println of client certificate (#86773) 2024-04-23 15:15:52 +01:00
Laura Fernández
2fb38a34ac Navigation: Add a return to previous button when navigating to different sections (#86764) 2024-04-23 15:56:04 +02:00
Mihai Doarna
3dabc3ff5d SSO: filter out SAML from the SSO providers in UI (#86768)
* filter out saml from sso providers

* fix lint error
2024-04-23 16:55:01 +03:00
Ashley Harrison
a1321d17ca TimeOfDayPicker: Fix text colours in light mode (#86771)
fix text colours in light mode
2024-04-23 14:50:42 +01:00
Mihai Doarna
bf15329492 SSO: run the validation on upsert with all secrets in settings (#86579)
* run the validation on upsert with all secrets in settings

* rename social to reloadable
2024-04-23 16:50:16 +03:00
Santiago
a6be12c037 Alerting: Implement SaveAndApplyConfig in the forked Alertmanager (remote primary) (#84659)
* Alerting: Implement SaveAndApplyConfiguration in the forked Alertmanager struct

* call SaveAndApplyConfig on the remote first, log errors for the internal

* add comments explaining why we ignore errors in the internal AM

* restore go.work.sum
2024-04-23 15:45:35 +02:00
Torkel Ödegaard
b28e6bc5d8 DashboardScene: Fixes issue with editing panels that uses instanceState (#86687)
* DashboardScene: Fixes issue with editing panels that uses instanceState

* Minor tweak

* Update

* Update
2024-04-23 15:25:16 +02:00
antonio
7067e37971 alerting:labels-annotations elaboration (#86663)
* alerting:labels-annotations elaboration

* applied suggestions

* applied suggestions 2

* modified intro, and labels sections

* Update docs/sources/alerting/fundamentals/alert-rules/annotation-label.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/alert-rules/annotation-label.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/alert-rules/annotation-label.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/alert-rules/annotation-label.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/alert-rules/annotation-label.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/alert-rules/annotation-label.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/alert-rules/annotation-label.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/alert-rules/annotation-label.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* pretty

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-04-23 15:07:29 +02:00
Steve Simpson
a6ad2380bf Alerting: Refactor api_prometheus.go request handlers. (#86639)
This splits the request handlers into two functions, one which is the actual
handler and one which is independent from the Grafana `ReqContext` object. This
is to make it easier to reuse the implementation in other code.

Part of the refactoring changes the functions which get query parameters from
the request to operate on a `url.Values` instead of the request object.

The change also makes the code consistently use `req.Form` instead of a
combination of `req.URL.Query()` and `req.Form`, though I have left
`api_ruler` as-is to avoid this PR growing too large.
2024-04-23 14:50:26 +02:00
Sonia Aguilar
68564b1940 Alerting: Gops labels integration (#85467)
* Show list of labels on the alert rule form in a more visual way, and use a modal for managing them

* fix test

* Fix more tests

* Show orange badge when no labels are selected

* Remove unused datasource property in LabelsField

* Remove unused div and add comment

* Use button instead of icon for editing labels

* Use subform for labels

* Move logic fetching labels from different places in a separate hook

* Fix tests

* remove unused getLabelInput const in test

* Add ellispis and tooltip for long labels and move labels list in modal to the bottom

* Use text instead of badge when no using labels

* Fix tests after adding ellipsis and tooltip to the labels

* simplify styles

* Fix fetching values from gops when new key is used

* Address pr review comments

* Address pr review comments part2

* Fix tag on rtkq

* Remove color for no labels selected text

* Disable already used keys in the labels sub form

* Fix typo

* use the UseFieldArrayRemove type from react-hook-form

* Update some styles and text in the labels modal

* Address some review comments (nits)

* Address review comments part1

* Move logic getting labels in useCombinedLabels hook

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-04-23 14:38:31 +02:00
Santiago
c77ab53819 Alerting: implement SaveAndApplyConfig in the remote Alertmanager struct (#84642)
* implement SaveAndApplyConfig in the remote Alertmanager struct

* remove ID from CreateGrafanaAlertmanagerConfig call

* decrypt, test that we decrypt, refactor

* fix duplicated declaration in test

* rephrase comment, remove unnecessary conversion to slice of bytes

* fix test
2024-04-23 14:37:10 +02:00
Santiago
8b7c2a459b Alerting: Implement SaveAndApplyDefaultConfig in the forked Alertmanager (remote primary mode) (#85668)
* Alerting: Implement SaveAndApplyDefaultConfig in the forked Alertmanager (remote primary)

* log the error for the internal AM instead of returning it
2024-04-23 14:36:40 +02:00
Esteban Beltran
0ec9c3e01a FE Sandbox: Fix worker post message not handling proxy objects correctly (#86654)
* FE Sandbox: Fix worker post message not handling proxy objects correctly

* use expect error instead of ignore

* use assertion instead of ignore

* Fix formatting
2024-04-23 14:08:34 +02:00
github-actions[bot]
3d55602fde Update make docs procedure (#86746)
Co-authored-by: grafanabot <bot@grafana.com>
2024-04-23 12:52:16 +01:00
Torkel Ödegaard
835b968b08 DashboardScene: Fixes deleting dirty dashboard (#86479)
* DashboardScene: Fixes deleting dirty dashboard

* refactor + unit test
2024-04-23 12:35:16 +02:00
Jack Westbrook
e6799be13c Chore: Bump webpack-dev-middleware to 6.1.3 (#86482)
chore(npm): bump version of webpack-dev-middleware to 6.1.3
2024-04-23 12:32:17 +02:00
Jack Westbrook
d10303fb05 Chore: Bump ip to 2.0.1 (#86486)
chore(npm): bump ip to 2.0.1
2024-04-23 12:31:27 +02:00
Jack Westbrook
c1f70219b5 Chore: Bump express to 4.19.2 (#86487)
chore(npm): bump express to 4.19.2
2024-04-23 12:31:10 +02:00
Tom Ratcliffe
349df74578 Rename debug target to "UI" rather than Jest 2024-04-23 11:26:56 +01:00
Tom Ratcliffe
97b66c2a95 Apply prettier fixes to VSCode debug config 2024-04-23 11:26:56 +01:00
Tom Ratcliffe
37a86872db Remove port and add NODE_ENV to VSCode debug config 2024-04-23 11:26:56 +01:00
Josh Hunt
467d4231f1 E2C: Remove ModalController from MigrationTokenPage (#86709)
* Remove ModalController from MigrationTokenPage

* Dont show modal or toast for error response

* better
2024-04-23 11:23:06 +01:00
renovate[bot]
c849b6beaa Update dependency react-i18next to v14 (#86753)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-23 11:11:25 +01:00
Tom Ratcliffe
08200bc533 Nav: Fix alerting links/special cases not selecting the right MegaMenu item (#85336)
* Render current MegaMenu link as `aria-current=page`

* Add overrides capability for mega menu links

* Pass pageNav into getActiveItem so we can use override capability

* Test MegaMenu special cases for starred & dashboards

* Test that overrides for megamenu util works correctly

* Alpha-sort megamenu overrides

* Refactor util for getting active item for megamenu

Update parameters to getActiveItem

Update tests for getActiveItem

* Fix test for starred dashboard and remove query param test

Query param case happens differently in real app and is fiddly to test here

* handle edge cases

* restore handling home page test

* fix dashboard settings

* handle starring properly

---------

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-04-23 11:04:53 +01:00
Nicki de Wet
2d9d0e61b1 Added Caveat regarding inheritance of Mute timings (#86678)
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-04-23 10:27:24 +02:00
Thomas Wikman
99cbb5281c Grafana UI: Add timezone selector to Storybook toolbar (#86703)
* Add timezone selector to Storybook toolbar

So that it's possible to preview how components that are using date functions, behave when timezone differs from browser/client.

* Re-order imports
2024-04-23 09:09:08 +01:00
renovate[bot]
6c777519d8 Update dependency style-loader to v4 (#86749)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-23 09:08:46 +01:00
renovate[bot]
b224be5940 Update dependency @grafana/scenes to v4.12.0 (#86747)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-23 08:50:02 +01:00
renovate[bot]
579cf9bd7d Update dependency esbuild to v0.20.2 (#76342)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-23 08:26:02 +01:00
Mihai Doarna
4d9e35ba57 SSO: add configurableProviders list to SSO service (#86622)
* add configurableProviders list to sso service

* address feedback
2024-04-23 10:00:43 +03:00
renovate[bot]
51dcd1d9fd Update dependency eslint-plugin-jest to v28 (#86745)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-23 08:59:28 +02:00
renovate[bot]
41617b174e Update dependency css-loader to v7 (#86711)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-23 07:28:32 +01:00
Oscar Kilhed
dccad4e081 Dashboard scenes: fix textbox value only set to first character of default value (#86595)
Dashboard scene: fix textbox value only set to first character in default value
2024-04-23 06:52:26 +02:00
github-actions[bot]
357276da01 I18n: Download translations from Crowdin (#86708)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-23 07:34:17 +03:00
Leon Sorokin
7754d0d4dc XYChart2: Remove common series name from tooltip items (#86739) 2024-04-23 05:24:39 +02:00
Isabel Matwawana
2b3457e6ed Docs: add snapshot deletion info (#86725)
* Added delete snapshots section

* Replicated content, updated heading, and lowered heading level
2024-04-22 18:28:15 -04:00
Isabel Matwawana
05a4b3e80d Docs: Add config guidance for embedding (#86726)
Added note re iframes
2024-04-22 17:02:45 -04:00
Fabrizio
0b2e748bd8 Loki: Fix setting of tenant ID (#86433) 2024-04-22 21:02:56 +01:00
Alexander Weaver
c32953e52c Alertign: Create feature toggle for recording rules (#86696)
create toggle for recording rules
2024-04-22 12:53:16 -05:00
Lisa
59eb302fc1 Embed Managing users and permissions video to the documentation (#86387)
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-04-22 17:38:11 +01:00
Yuri Tseretyan
9735a8a080 Alerting: Distinguish conflict violation errors (#86634)
* update generator to set ID = 0 and do not set 0 if unique is needed
* return proper message when the constraint violation
2024-04-22 12:28:46 -04:00
renovate[bot]
de92317fc7 Update dependency rc-slider to v10.6.2 (#86704)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-22 17:15:34 +01:00
Ashley Harrison
fc45b56d9d EmptyState: Apply call-to-action variant in core (#86448)
* apply empty state in a bunch of places

* fix unit tests

* put alert back on top

* add data-testids so e2e tests keep working

* remove info boxes

* fix annotations empty state alignment with new maxWidth
2024-04-22 17:01:24 +01:00
linoman
224d61746a Remove SAML form the list of auth providers for devenv (#86684)
Update README.md

The link for SAML was broken. Since SAML is an enterprise feature, it has been removed.
2024-04-22 17:27:58 +02:00
renovate[bot]
c47b4ff8c3 Update dependency mini-css-extract-plugin to v2.9.0 (#86691)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-22 16:04:44 +01:00
Marie Cruz
50b285ac69 docs: update candlestick visualization (#86053)
* docs: update candlestick visualization

* fix: linting issues

* Apply suggestions from code review

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* docs: add candlestick video

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-04-22 10:20:10 -04:00
Julian Siebert
14f018e3fc Docs: Use correct description for "og_priority" (#80889) 2024-04-22 13:53:18 +00:00
renovate[bot]
427f361f58 Update dependency @grafana/scenes to v4.11.3 2024-04-22 13:41:01 +00:00
Misi
6ab9dcde8d LDAP: Fix listing all non-matching groups (#86682)
Fix getRowId in LdapUserGroups to list all non-matching groups
2024-04-22 15:34:16 +02:00
renovate[bot]
7564d5cee7 Update dependency core-js to v3.37.0 (#86676)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-22 14:18:57 +01:00
Oscar Kilhed
12771e49fc Dashboards: Check if dashboard.meta is undefined, if undefined handle redirect in dashboard scene. (#86674)
dashboard meta is not available if the dashboard response is a redirect
2024-04-22 15:02:40 +02:00
Kristina
2247d6c415 Short Links: Add setting for changing expiration time (#86003)
* Add setting for changing shortlink expiration time

* Add docs, add better language

* put all the numbers in the duration 🤷

* 🙄

* update language to be correct and clear

* Add max limit and more documentation
2024-04-22 07:39:24 -05:00
Alex Khomenko
cad9e23e54 Login page: Fix button width (#86680)
* Fix login buttons width

* Login page: Fix button width

* Add todo
2024-04-22 15:31:11 +03:00
Konrad Lalik
7caa30bc2e Alerting: Add plugins extension point to alerting home page (#85725)
* Add basic extension point to alerting home page

* Remove home page scenes app. Improve plugins styles

* Remove unused code

* Fix home page rendering when no plugins registered

* Add row-based integrations component

* Add missing margins

* Rollback the Box component changes

* Remove unused import
2024-04-22 13:42:11 +02:00
renovate[bot]
686c8013c3 Update dependency @types/diff to v5.2.0 (#86675)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-22 12:01:43 +01:00
Haris Rozajac
a10dcf9661 Explore (bugfix): Expanded section state (#86594)
Fix
2024-04-22 12:47:05 +02:00
Steve Simpson
54290f2ac4 Alerting: Fix TestRouteGetRuleStatuses as much as possible. (#86666)
This test has been skipped for a long time, so it doesn't work anymore. I've
fixed the test so it works again, but left some tests disabled which were
apparently flaky. If we see the other test cases flaking, we'll have to
disable it again.

Fixes:
- Use fake access control for most test cases, and real one for FGAC test cases.
- Check that "file" in API responses the full folder path, not folder title.
2024-04-22 12:36:50 +02:00
renovate[bot]
3364df27c2 Update dependency @grafana/scenes to v4.11.2 (#86671)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-22 12:36:11 +02:00
Konrad Lalik
1b930c341d Alerting: Fix max_alerts field handling (#86651)
Fix max_alerts field parsing
2024-04-22 12:25:04 +02:00
renovate[bot]
7dc6540ead Update dependency @grafana/faro-web-sdk to v1.6.0 (#86670)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-22 11:50:21 +02:00
renovate[bot]
f9e73ed9a0 Update dependency @grafana/faro-web-sdk to v1.6.0 (#86668)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-22 11:32:30 +02:00
github-actions[bot]
cda0f53f7c I18n: Download translations from Crowdin (#86603)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-22 09:18:39 +00:00
renovate[bot]
e6c5dc52d2 Update dependency re-resizable to v6.9.14 2024-04-22 09:13:56 +00:00
George Robinson
30d38c1775 Update the docs for state_periodic_save_interval (#86611)
This commit updates the docs for state_periodic_save_interval following
a question in the forums about what the consequences of this change could
be.
2024-04-22 11:13:02 +02:00
dependabot[bot]
82daadf56b Bump slackapi/slack-github-action from 1.25.0 to 1.26.0 (#86562)
Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 1.25.0 to 1.26.0.
- [Release notes](https://github.com/slackapi/slack-github-action/releases)
- [Commits](https://github.com/slackapi/slack-github-action/compare/v1.25.0...v1.26.0)

---
updated-dependencies:
- dependency-name: slackapi/slack-github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-22 09:10:36 +00:00
Lisa
65e6b67b2e Embed creating alerts with Grafana video to the documentation (#86386) 2024-04-22 11:09:00 +02:00
renovate[bot]
97c05dc52d Update dependency jest-date-mock to v1.0.10 2024-04-22 08:55:16 +00:00
Tobias Skarhed
b399facf2c GeoMap: Pan and zoom keyboard support (#86573)
* Make GeoMap keyboards navigable

* Remove redundant interaction boolean

* Fix tabIndex error and set role to application

* Update docs
2024-04-22 10:53:32 +02:00
Timur Olzhabayev
951916c668 Chore: Making the plugin install commands respect the config parameter (#86578)
Currently the grafana cli plugin commands are not reacting to the --config parameter. This PR make it possible to use config to define the plugin endpoints via config as an alternative to providing the --repo flag.
2024-04-22 10:29:25 +02:00
renovate[bot]
2a39f1f7ce Update dependency @grafana/faro-core to v1.6.0 (#86613)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-22 09:28:20 +01:00
Steve Simpson
f07f48616a Alerting: Fix panic when limit_alerts=0. (#86640)
Oversight in the TopK function meant if k=0, then we'd panic when checking
element zero in the heap, because no items are ever allowed into the heap.
2024-04-22 10:14:19 +02:00
Michael Mandrus
45a7f649fe CMS: Create local implementation of cloud migration for dev use (#86637)
* add developer mode property to config

* create cms stub

* cleanup

* implement and wire up gcom stub

* fix errors

* don't document the flag
2024-04-20 23:51:58 -04:00
Andreas Christou
ae84d16a6f MSSQL: Simplify proxy logic (#86278)
* Simplify proxy dialer creation

- Set new dialer on connector
- Create MSSQL connector in a similar fashion to postgres

* Update test

* Fix lint

* More lint

* Use correct driver name
2024-04-19 22:03:26 +01:00
Andreas Christou
ec8dfc4dda CloudMonitoring: Correctly interpolate multi-valued template variables in PromQL queries (#86391)
* Interpolate promql queries appropriately

- Use pipes for multi-valued variables in PromQL queries
- Update tests

* Don't break betterer

* Another any

* Update public/app/plugins/datasource/cloud-monitoring/datasource.ts

Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>

---------

Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
2024-04-19 22:07:15 +02:00
ismail simsek
57bea68453 Chore: Remove unused functions form prometheus data source (#86461)
* remove createQuery

* remove redundant unit test

* update unit tests

* remove redundant mock

* exclude mocks from build

* remove it

* prettier
2024-04-19 16:00:26 -04:00
Andreas Christou
74ee675732 CloudMonitoring: Allow a custom group by value (#86288)
Allow a custom group by value
2024-04-19 20:56:12 +01:00
Andreas Christou
d8a8db3750 CloudMonitoring: Ensure variables can be used in all variable queries (#86377)
* Allow specifying project when querying services

* Ensure metricType is interpolated
2024-04-19 20:52:39 +01:00
Kim Nylander
d6e84dbf0a [DOC] Update the traces to profile content based upon SDK updates (#86628)
Update the traces to profile content based upon SDK updates
2024-04-19 14:17:11 -05:00
Jev Forsberg
ad679c62c6 Docs: Update example docs for rename by regex (#86627)
* baldm0mma/update_regex/ update example docs

* baldm0mma/ push ts

* baldm0mma/update_regex with new exmaples

* baldm0mma/update_regex/ update images

* baldm0mma/regex_update/ update text
2024-04-19 21:04:54 +02:00
Steve Simpson
6ea97e41fb Alerting: Consistently return Prometheus-style responses from rules APIs. (#86600)
* Alerting: Consistently return Prometheus-style responses from rules APIs.

This commit is part refactor and part fix. The /rules API occasionally returns
error responses which are inconsistent with other error responses. This fixes
that, and adds a function to map from Prometheus error type and HTTP code.

* Fix integration tests

* Linter happiness

* Make linter more happy

* Fix up one more place returning non-Prometheus responses
2024-04-19 21:03:20 +02:00
Santiago
9ed616a7b3 Alerting: Fix typo ('Alert manager' -> 'Alertmanager') (#86608)
* Alerting: Fix typo ('Alert manager' -> 'Alertmanager')

* fix front-end test
2024-04-19 20:53:51 +02:00
Robert Horvath
86a9533863 Chore: Replace backend platform codeownership (#86010)
* Replace backend platform codeownership

* fix go.mod with work sync

* fix go.mod

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

---------

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
Co-authored-by: Dave Henderson <dave.henderson@grafana.com>
2024-04-19 19:12:59 +02:00
Laura Fernández
b5335f0910 Chore: ChangePassword - Replace VerticalGroup with Stack (#86614) 2024-04-19 17:37:51 +02:00
Laura Fernández
efa5e582cc Chore: UserProfileEditPage - Replace VerticalGroup with Stack (#86619) 2024-04-19 17:37:14 +02:00
Matias Chomicki
aa73140564 Loki: Add label filters after label_format if present (#86124)
* Loki ad-hoc filters: add filters after label_format

* Chore: add comment explaining rationale

* Formatting

* Formatting
2024-04-19 17:31:38 +02:00
Joao Silva
8f38ef70ce Chore: Replace VerticalGroup in OrgDetailsPage and BenchmarksPage (#86621) 2024-04-19 16:28:51 +01:00
Laura Fernández
db4f7cd21d Chore: UserSignup and LoginServiceButtons - Replace VerticalGroup with Stack (#86616) 2024-04-19 17:24:09 +02:00
antonio
f7b82a74ad alerting: email doc >url fix (#86574)
* url fix

* pretty
2024-04-19 17:01:42 +02:00
Eric Leijonmarck
ddabef9895 RBAC: Add actionsets struct and write path (#86108)
* Add actionsets struct and failing test

* update from review

* review comments

* review comments update

* refactor: create interface

* actionset service

* fix tests

* move from wireoss to wire

* Apply suggestions from code review

remove unnecessary comments

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>

* nil for the actionsetservice

* Revert "nil for the actionsetservice"

This reverts commit e3d3cc8171.

---------

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2024-04-19 15:38:14 +01:00
Laura Fernández
a057e8be06 Chore: AppNotificationList- Replace VerticalGroup with Stack (#86612) 2024-04-19 16:21:45 +02:00
renovate[bot]
e7fd2cb0fb Update dependency sass-loader to v14.2.1 2024-04-19 14:04:45 +00:00
Laura Fernández
913d7da3af Grafana UI: Text.story.tsx - Replace VerticalGroup with Stack (#86584) 2024-04-19 16:01:24 +02:00
renovate[bot]
53f5663714 Update dependency msw to v2.2.14 2024-04-19 13:46:18 +00:00
Santiago
529f55cfe8 Alerting: Remove isDefault field from receivers (Alertmanager configuration) (#86605)
Alerting: Remove isDefault field from receivers in the Alertmanager configuration
2024-04-19 15:44:20 +02:00
Brendan O'Handley
2d733a4d77 Prometheus: Do not throw error for label_join function (#86465) 2024-04-19 08:32:26 -05:00
Tobias Skarhed
95ad100cb9 RolePicker: Identity Access team as codeowners (#86602) 2024-04-19 15:21:49 +02:00
Santiago
309a7e7684 Alerting: Implement SaveAndApplyDefaultConfig in the remote Alertmanager struct (#85005)
* Alerting: Implement SaveAndApplyDefaultConfig in the remote Alertmanager struct

* send the hash of the encrypted configuration

* tests, default config hash in AM struct

* add missing default config to test

* restore build directory

* go work file...

* fix broken test

* remove unnecessary conversion to []byte

* go work again...

* make things work again with latest main branch changes

* update error messages in tests for decrypting config
2024-04-19 15:11:07 +02:00
Bruno
1f3a85824f ephemeral instances: add workflow run id env var (#86528) 2024-04-19 09:49:03 -03:00
Ashley Harrison
4a9e478a6b EmptyState: Apply completed empty state in Notifications page (#86504)
* add 'completed' variant

* apply completed empty state to notifications page
2024-04-19 13:46:03 +01:00
ismail simsek
ec1af89a02 Chore: Bump promlib to v0.0.5 (#86596)
bump promlib to v0.0.5
2024-04-19 14:33:44 +02:00
renovate[bot]
bcc52a91c7 Update dependency marked to v12.0.2 2024-04-19 12:31:26 +00:00
renovate[bot]
c2f3bf677d Update dependency @types/react to v18.2.79 2024-04-19 11:39:32 +00:00
renovate[bot]
bc97d11220 Update dependency @types/eslint to v8.56.10 2024-04-19 11:19:10 +00:00
Santiago
a2ce8fefed Alerting: Use a struct when sending a Grafana AM configuration to the remote Alertmanager (#86451)
* Alerting: Use a struct when sending a Grafana AM configuration to the remote Alertmanager

* remove '-distroless' from mimir image name
2024-04-19 13:04:18 +02:00
Ivan Ortega Alba
65afe90124 IntervalVariableEditor: Do not add current value as interval prop (#86446) 2024-04-19 13:04:01 +02:00
Joao Silva
aa326423ed ColorPicker: Improvements to story organization (#86539) 2024-04-19 11:58:20 +01:00
Laura Fernández
9878dfb7d9 Grafana UI: EmotionPerfTest - Replace VerticalGroup with Stack (#86588) 2024-04-19 12:55:04 +02:00
Laura Fernández
7404a631f6 GrafanaUI: PageToolbar.story.tsx - Replace VerticalGroup with Stack (#86581) 2024-04-19 12:54:20 +02:00
Ashley Harrison
63427ccd98 CommandPalette: Fix keyboard shortcut alignment (#86540)
* use full typography properties

* use Text component
2024-04-19 11:52:27 +01:00
Ashley Harrison
21588ce7e2 EmptyState: Set a max width on the empty state component (#86569)
set a max width on the empty state component
2024-04-19 12:52:16 +02:00
Steve Simpson
5f7612834e Alerting: Refactoring in api_prometheus.go to allow code reuse. (#86575)
Preparing these functions to be used by some other part of the codebase,
which does not have a `contextmodel.ReqContext`, only the normal request
structure (`url.Values`, etc). This is slightly messy because of how
Grafana allows url parameters to be in the URL or in the request body,
so we need to make sure to invoke the form parsing logic in `ReqContext`.
2024-04-19 12:52:01 +02:00
Alex Khomenko
44e1bce55a Feature toggles: Remove dashboardEmbed toggle (#86587) 2024-04-19 12:48:08 +02:00
Laura Fernández
c5ca90747d Grafana UI: TagsInput.story.tsx - Delete unnecessary VerticalGroup (#86582) 2024-04-19 12:34:49 +02:00
renovate[bot]
1ea7dc9250 Update dependency @grafana/plugin-e2e to v1.1.1 2024-04-19 10:23:52 +00:00
Victor Marin
60e6dd56bf Change folder breadcrumb on folder change in general settings (#86342)
* Change folder breadcrumb on folder change in general settings

* tests and refactor

* refactor to fix broken tests

* fix test
2024-04-19 13:21:40 +03:00
ismail simsek
f9a8e34b32 Prometheus: Update lezer-promql package (#85942)
* Update @lezer/lr to v1.4.0

* Update @prometheus-io/lezer-promql to v0.37.0

* Update @prometheus-io/lezer-promql to v0.38.0

* Update @prometheus-io/lezer-promql to v0.39.0

* Update @prometheus-io/lezer-promql to v0.40.0

* add jest config

* update code

* fix code to pass "handles things" test

* fix retrieving labels

* fix code to pass "handles label values" test

* fix code to pass "simple binary comparison" test

* use BoolModifier

* add changed lines as comments

* fix for ambiguous query parsing tests

* resolve rebase conflict

* fix retrieving labels, aggregation with/out labels

* add error

* fix comment

* fix "reports error on parenthesis" unit test

* fix for "handles binary operation with vector matchers" test

* fix for "handles multiple binary scalar operations" test

* fix for "parses query without metric" test

* fix indentation and import style

* remove commented lines

* add todo items and comments

* remove dependency update from tempo datasource

* apply same changes in core prometheus frontend

* prettier

* add new test case

* use old version of lezer in the root package.json

* Revert "apply same changes in core prometheus frontend"

This reverts commit 83fd6ac7

* fix indentation

* use latest version of lezer-promql v0.51.2

* Update packages/grafana-prometheus/src/querybuilder/parsing.ts

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

* enable native histogram test

---------

Co-authored-by: Nick Richmond <5732000+NWRichmond@users.noreply.github.com>
2024-04-19 11:54:56 +02:00
Steve Simpson
73873f5a8a Alerting: Optimize rule status gathering APIs when a limit is applied. (#86568)
* Alerting: Optimize rule status gathering APIs when a limit is applied.

The frontend very commonly calls the `/rules` API with `limit_alerts=16`. When
there are a very large number of alert instances present, this API is quite
slow to respond, and profiling suggests that a big part of the problem is
sorting the alerts by importance, in order to select the first 16.

This changes the application of the limit to use a more efficient heap-based
top-k algorithm. This maintains a slice of only the highest ranked items whilst
iterating the full set of alert instances, which substantially reduces the
number of comparisons needed. This is particularly effective, as the
`AlertsByImportance` comparison is quite complex.

I've included a benchmark to compare the new TopK function to the existing
Sort/limit strategy. It shows that for small limits, the new approach is
much faster, especially at high numbers of alerts, e.g.

100K alerts / limit 16: 1.91s vs 0.02s (-99%)

For situations where there is no effective limit, sorting is marginally faster,
therefore in the API implementation, if there is either a) no limit or b) no
effective limit, then we just sort the alerts as before. There is also a space
overhead using a heap which would matter for large limits.

* Remove commented test cases

* Make linter happy
2024-04-19 11:51:22 +02:00
Ryan McKinley
5a8384a245 QueryService: Add feature toggles to better support testing (#86493) 2024-04-19 12:26:21 +03:00
Will Browne
8a5c0cfdc0 Plugins: Pass cancellable context during API server creation (#86545) 2024-04-19 09:22:14 +03:00
Sofia Papagiannaki
aa825f5dee Chore: Fix Swagger/OpenAPI instructions (#86541)
Update README.md
2024-04-19 09:16:38 +03:00
Matthew Jacobson
a20197229e Alerting: Prevent simplified routing zero duration GroupInterval and RepeatInterval (#86561)
Prevent zero duration GroupInterval and RepeatInterval
2024-04-18 21:08:38 -04:00
Matthew Jacobson
71445002b7 Alerting: Fix simplified routing group by override (#86552)
* Alerting: Fix simplified routing custom group by override

Custom group by overrides for simplified routing were missing required fields
GroupBy and GroupByAll normally set during upstream Route validation.

This fix ensures those missing fields are applied to the generated routes.

* Inline GroupBy and GroupByAll initialization instead of normalize after
2024-04-18 21:08:14 -04:00
ismail simsek
842c8dd206 InfluxDB: Fix interpolating field keys in influxql (#86401)
* interpolate field keys

* use scopedVars
2024-04-18 19:14:29 -04:00
brendamuir
b311612cf2 Alerting docs: RBAC for enterprise and cloud (#86506)
* Alerting docs: RBAC for enterprise and cloud

* rbac structure

* ran prettier

* updates to data source permissions

* adds tables for roles

* ran prettier

* adds examples for custom role

* ran prettier

* updates table

* typo fix

* ran prettier
2024-04-18 20:32:04 +02:00
timo
f3fcfad2c8 NodeGraph: Fix invisible arrow tips in Editor (#86517)
NodeGraphPanel: Namespace marker IDs to fix invisible arrow tips in editor

Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
2024-04-18 18:39:16 +02:00
linoman
1d1ebee36b RolePicker: Adjust dynamic position (#86424)
* Adjust dynamic position
2024-04-18 17:53:34 +02:00
Sofia Papagiannaki
3ab361abfc Chore: Update swagger (#86523)
* Chore: Update swagger
2024-04-18 15:35:38 +00:00
Laura Fernández
bfb79d20ff Grafana UI: Menu.story.tsx - Replace VerticalGroup with Stack (#86529) 2024-04-18 17:35:36 +02:00
Josh Hunt
fe24404432 I18n: Support for Enterprise translations (#86215)
* I18n: Support for Enterprise translations

* don't attempt to link to enterprise in tests

* move extract script to makefile to optionally support enterprise

* update references to old extract script

* update docs

* thank god for unit tests
2024-04-18 16:25:27 +01:00
antonio
272b2e139a email contact point -url fix (#86538)
url fix
2024-04-18 17:24:22 +02:00
Alexa V
7a147f2ce8 Dashboard: DashboardPageProxy - Use chaining operators to prevent runtime error (#86507)
* Use chaining operators to prevent runtime error

* Fix tests

---------

Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com>
2024-04-18 17:15:18 +02:00
Laura Fernández
e65669bc0d Grafana UI: Checkbox.story.tsx - Replace VerticalGroupwith Stack (#86524) 2024-04-18 17:05:19 +02:00
Señor Performo - Leandro Melendez
0d11f9b2f4 Docs: Add GeoMaps YouTube Video (#86472)
* Update index.md on GeoMaps adding YouTube Video

Added the GeoMap YouTube video to the documentation

* Update docs/sources/panels-visualizations/visualizations/geomap/index.md

Totally agree, I tend to use those words and not realize :P

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-04-18 10:57:08 -04:00
Laura Fernández
18bd11ca6a Grafana UI: TextLink.story.tsx - Replace VerticalGroup with Stack (#86526) 2024-04-18 16:37:48 +02:00
ismail simsek
28a683cf28 InfluxDB: Remove influxdbSqlSupport feature toggle (#86518)
Remove influxdbSqlSupport feature toggle
2024-04-18 16:29:27 +02:00
Matias Chomicki
99f34cb1ed Common labels/displayed fields: Show label names with values (#86345)
* LogLabels: create specialized component for arrays of labels

* Logs: sort displayed fields when assigning to state

* LogsMetaRow: fix types and use specialized components

* LogLabels: show label and value

* LogsPanel: update common labels

* LogsMetaRow: use LogsLabelsList

* Update unit tests

* Formatting

* Update betterer

* Prettier

* Logs panel: update test

* LogLabels: add actual tooltip

* Logs: remove sorting of displayed fields
2024-04-18 16:25:58 +02:00
Laura Fernández
bbf4281d8d Grafana UI: Dropdown.story.tsx - Replace VerticalGroup with Stack (#86521) 2024-04-18 16:13:08 +02:00
Konrad Lalik
344cea1725 Alerting: Fix external Alertmanager settings payload (#86413)
* Remove helper properties from the AM config object

* Make the omitTemporaryIdentifiers a pure function

* Add formValuesToCloudReceiver test

* Remove immer produce to prevent object freezing
2024-04-18 15:55:13 +02:00
Vanilla
817f787947 Cli: Check missing plugin parameter of plugin update command (#86410)
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2024-04-18 15:46:04 +02:00
Andres Martinez Gotor
eac02a61e1 Return plugin error when requesting settings (#86052) 2024-04-18 14:29:02 +02:00
Marie Cruz
8373fc3544 docs: update heatmap visualization and add play links (#85926)
* docs: update heatmap visualization

* docs: add state timeline and status history play shortcodes

* Apply suggestions from code review

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* docs: add heatmap video

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-04-18 08:22:14 -04:00
Mihai Doarna
57848bbe23 Auth: encrypt/decrypt SAML secrets in SSO settings service (#85253)
encrypt/decrypt saml secrets in sso settings service
2024-04-18 15:16:59 +03:00
Lisa
bdd288d058 Add Create annotations in panel video to the documentation (#86383)
* Add Create annotations in panel video to the documentation

* Update docs/sources/dashboards/build-dashboards/annotate-visualizations/index.md

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Isabel Matwawana <isabel.matwawana@grafana.com>
2024-04-18 08:14:56 -04:00
Tom Ratcliffe
a5c75c5ffb Remove explicit imports of whatwg-fetch from individual test files 2024-04-18 12:23:38 +01:00
Tom Ratcliffe
389250afe0 Add whatwg-fetch polyfill to jest test setup so all tests run it 2024-04-18 12:23:38 +01:00
Andres Martinez Gotor
0f4a47b180 Plugin load errors: Add more well-known errors (#85960) 2024-04-18 13:04:22 +02:00
github-actions[bot]
80e63b5206 I18n: Download translations from Crowdin (#86438)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-18 10:34:18 +00:00
Ashley Harrison
07044309f1 EmptyState: Add completed variant (#86497)
* add 'completed' variant

* add central text alignment
2024-04-18 11:22:28 +01:00
Laura Fernández
bc07eedaa9 Grafana UI: Replace VerticalGroup with Stack on alerts documentation in Storybook (#86400) 2024-04-18 12:16:57 +02:00
Laura Fernández
6b21d12ce0 Grafana UI: FilterPopup- Replace VerticalGroup and HorizontalGroup with Stack (#86398) 2024-04-18 12:16:38 +02:00
ismail simsek
635d85db7a InfluxDB: Fix interpolation for floating point number values (#86396)
return number as it is
2024-04-18 11:21:41 +02:00
Ivana Huckova
f3fd2de9dd Loki: Remove tracking grafana_loki_query_executed and add grafana_explore_loki_query_executed (#86484)
* Loki: Remove  and add

* Update public/app/plugins/datasource/loki/tracking.ts

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2024-04-18 10:57:18 +02:00
Torkel Ödegaard
1d513f66b8 DashboardScene: Fixes checkbox orienation in save forms (#86408) 2024-04-18 10:15:06 +02:00
Kristina Durivage
4e0e12bb07 add cleanup 2024-04-18 09:04:53 +01:00
Kristina Durivage
bf897c1255 Add clarifying comments/docs 2024-04-18 09:04:53 +01:00
Tom Ratcliffe
ab605e37df Remove unnecessary server.listen() 2024-04-18 09:04:53 +01:00
Tom Ratcliffe
ef5c4b69f3 Remove unused msw import 2024-04-18 09:04:53 +01:00
Tom Ratcliffe
de4510cc70 Reuse setupMswServer for alerting tests 2024-04-18 09:04:53 +01:00
Tom Ratcliffe
76c6e029a5 Fix incidental console error spy that was unneeded 2024-04-18 09:04:53 +01:00
Tom Ratcliffe
6557f5a00e Add whatwg-fetch and fixes to Playlist tests that break when polyfill is added 2024-04-18 09:04:53 +01:00
Tom Ratcliffe
2ab13071fb Add whatwg-fetch and fixes to dashboard tests that break when polyfill is added 2024-04-18 09:04:53 +01:00
Tom Ratcliffe
2674043cef Add whatwg-fetch and fixes to alerting tests that break when polyfill is added 2024-04-18 09:04:53 +01:00
Joey
80d920500b Tempo: Tidy up types in resultTransformer (#86025)
* Tidy up types

* Ternary
2024-04-18 08:53:06 +01:00
Joey
306cea7350 Tempo: Group by template vars (#86022)
* Add template variables to group by field

* Add test for interpolation

* Add test to allow selecting template vars

* Show custom value
2024-04-18 08:52:51 +01:00
Konrad Lalik
9614126cb7 Alerting: Fix instances link when served from subpath (#86432)
Fix instances link when served from subpath
2024-04-18 08:56:30 +02:00
Torkel Ödegaard
1327bdf575 DashboardScene: Fixes issue saving new dashboard from panel edit (#86477) 2024-04-18 08:46:24 +02:00
Torkel Ödegaard
3870ecd2e0 RefreshPicker: Change running state to be less distracting (#86405)
RefreshPicker: Change running state to not change button variant to destructive
2024-04-18 05:46:43 +02:00
Torkel Ödegaard
a8b81e1481 DashboardScene: Fixes minor issue transitioning between dashboards (#86262)
* DashboardScene: Fixes minor issue transitioning between dashboards

* Update
2024-04-18 05:45:38 +02:00
Andreas Christou
420067a7e1 MSSQL: Add SQL_VARIANT converter and update test (#85823)
Add SQL_VARIANT converter and update test
2024-04-17 16:49:51 -05:00
Adela Almasan
38fe9fcfd1 VizTooltip: Fix heatmap mode All (#86463) 2024-04-17 23:24:13 +02:00
Nick Richmond
82dd573ea4 Expressions: Fix erroneous sorting of metrics and expressions (#86372)
chore: upgrade `dataplane/sdata`
2024-04-17 16:03:33 -04:00
Michael Mandrus
df4c8c3cbc CloudMigrations: Move business logic out of api layer (#86406)
* move run migration to the cloudmigrationimpl layer

* add migration run list logic down a layer

* remove useless comments

* pull cms calls into their own service
2024-04-17 15:43:09 -04:00
Nick Richmond
00256d3fdd Prometheus: Cancellable label values requests (#86403)
* feat: cancellable label values requests

* refactor: prefer more explicit `requestId`

* refactor: request options to avoid tedious test changes

* refactor: avoid `any`
2024-04-17 15:03:31 -04:00
Kristina
15ff166fb6 Explore: Mock useExplorePageTitle in every integration test (#86462)
Mock useExplorePageTitle in every integration test
2024-04-17 14:01:09 -05:00
Brendan O'Handley
61c10ed155 Prometheus: Bypass flaky E2E test (#86460)
bypass flaky test
2024-04-17 13:53:22 -05:00
Brendan O'Handley
55b2a4b0c0 Prometheus: Limit Prometheus run query event tracking to queries in Explore (#86054)
only track run query events in explore
2024-04-17 20:40:27 +02:00
Darren Janeczek
53d2714a18 Tooltips: Ensure new viz tooltips are visible within modals (#86258)
fix: ensure new viz tooltips are visible within modals
2024-04-17 13:54:10 -04:00
Kyle Brandt
46efe41e33 Prometheus: (Instrumentation) Add rawExpr (pre-interpolation) to traces (#86449) 2024-04-17 19:53:38 +02:00
Drew Slobodnjak
ed8eacbc7e Canvas: Fix division by zero (#85443)
* Canvas: Fix division by zero

* Fix last add vertex control

* Apply fix to existing vertices

* Apply deltas to temporary paths

* Persist original source and target coorindates

* Add follow up TODO

* Update connection svg to handle originals

* Get rid of minimum constraints for deltas

* Apply persist coordinate system to vertex handlers

* Consolidate and rename selected value

* Update connection arcs to use new coordinates

* fix editor crashing with scenes

---------

Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-04-17 10:18:17 -07:00
ismail simsek
e528c79689 Chore: Don't apply adhoc filters when promQLScope is enabled (#86454)
* check promQLScope

* add tests
2024-04-17 18:54:28 +02:00
Will Browne
dceb83ab42 Plugins: Expose backendplugin for client proto interface (#86207)
* first pass

* tidy

* add err check

* remove comment

* simplify

* remove unused stuff

* add backend()

* use SDK commit

* add codeowners for go.mod

* fix go.mod

* bump SDK

* go work sync
2024-04-17 18:47:01 +02:00
Dave Henderson
4bb0b78abb ci: remove milestone check (#86452)
Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
2024-04-17 12:06:23 -04:00
Joao Silva
1997faf617 Select: Increase size of virtualized list options (#86444) 2024-04-17 17:01:21 +01:00
Kristina
7112f1effc Explore: Deprecate local storage singular datasource key (#86250)
* add a note?

* Let Explore own the core/history folder
2024-04-17 09:48:27 -05:00
Tobias Skarhed
1c2065af60 PanelChrome: Improve accessibility landmark markup (#85863)
* Add section and use Text component to get h2 for panel

* Remove heading when collapsible

* Make button text truncate

* Update test

* Remove labelledby as it is not needed anymore

* Use testid selectors in test

* Remove async
2024-04-17 16:44:07 +02:00
Darren Janeczek
2ed7eecf2d fix: datatrail link to "open in explore" prefix with config.appSubUrl (#86375)
* fix: datatrail link to explore needs appSubUrl
* fix: use `appUrl` when creating URL for sharing
2024-04-17 16:40:40 +02:00
Matias Chomicki
ec43edd8a1 Loki/Prometheus Query Editor: Disabled cmd/ctrl+f keybinding within the editor (#86418)
* Prom: disable cmd f within the editor

* Loki: disable cmd f within the editor

* Update public/app/plugins/datasource/loki/components/monaco-query-field/MonacoQueryField.tsx

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

* Monaco: upgrade to 0.34.1

* Loki/Prometheus: allow native search to be displayed

* Formatting

* Monaco: upgrade to 0.34.1

https://github.com/microsoft/monaco-editor/issues/102#issuecomment-1282897640

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2024-04-17 16:38:43 +02:00
Leonor Oliveira
9baf96dbd2 Storage: dualwriter update implementation (#85844)
* Add update methods for the dual writer

* improve errors

* [WIP] add tests for the update method

* Move example package to its own package so it can be used by the rest package. Finish tests

* Add codeowners

* Use Pod as a dummy resource

* :int

* Lint

* [REVIEW] rename var

* [REVIEW] don't rely on legacy storage at all in mode4

* Update pkg/apiserver/rest/dualwriter_mode2.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* [REVIEW] improve comment

* Update pkg/apiserver/rest/dualwriter_mode1.go

Co-authored-by: Dan Cech <dcech@grafana.com>

* [REVIEW] improve mode3

* Lint

* Move test files

* Update pkg/apiserver/rest/dualwriter_mode2.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* Lint

* Update pkg/apiserver/rest/dualwriter_mode4_test.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* Fix error

* Lint

* Update pkg/apiserver/rest/dualwriter_mode2.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* Don't set the flag to true as updatedObj creates an object in case it's not found

* Lint

* Lint

* Add tests on update

* Lint

---------

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>
Co-authored-by: Dan Cech <dcech@grafana.com>
2024-04-17 08:32:34 -06:00
Leon Sorokin
9682022b1d Transforms: Fix 'Filter data by values' removing rows in unrelated frames (#86087) 2024-04-17 09:07:23 -05:00
Aaron Godin
d409d8e860 IAM - Fix error messages for resource permissions endpoints (#85773)
* IAM: fix many error messages in access-related code to provide more information

* Remove debug statement

* Refactor resourcepermissions package to use errutil

* Replace a few more errors with errutil and wrap errors found in users and teams services

* Apply diff of openAPI spec
2024-04-17 08:53:28 -05:00
Ashley Harrison
60abf01526 remove stray console.log (#86440) 2024-04-17 15:43:38 +02:00
Ieva
33e8292386 Docs: Clarify the docs for viewers_can_edit and editors_can_admin (#86422)
* clarify the docs for viewers_can_edit and editors_can_admin

* more changes

* more changes 2
2024-04-17 14:43:20 +01:00
Karl Persson
1a6777cb93 User: use update function for password updates (#86419)
* Update password through Update function instead

* Remove duplicated to lower

* Refactor password code
2024-04-17 15:24:36 +02:00
Ashley Harrison
f99d5a1c1a EmptyState: Add call-to-action variant (#85017)
* add default variant

* enhance story

* rename to "initial" + update docs

* default to showing a CTA

* use switch

* translations

* update and use LinkButton

* update default message

* rename "initial" to "nothing-here"

* update variant name to `call-to-action`

* i18n

* add CTA svg

* extract into its own component
2024-04-17 14:23:21 +01:00
Andre Pereira
93c24403b3 Explore: Move app to under explore > traces (#86436)
Move app to under explore > traces
2024-04-17 14:18:06 +01:00
Kristina
2338cad563 Explore: Work on unskipping test (#86370)
* test unskip

* Mock getDataSourceSrv seperately

* mock the hook instead

* Remove TODO
2024-04-17 08:17:51 -05:00
Jev Forsberg
f9af4675ad Reducers: Update percentile logic - move percentiles to after standard reducers (#86004)
* baldm0mma/pth_fix2/ move percentiles to after standard reducers

* baldm0mma/pth_fix2/ update ordinal suffix

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-04-17 07:01:13 -06:00
Josh Hunt
0a12ad0084 I18n: Update English phrases that have changed in code, but not extracted (#86429)
Update English phrases that have changed in code, but not extracted
2024-04-17 14:47:01 +02:00
Kristin Laemmert
03b795844c SQLStore: Improve recursive CTE support detection (#86397)
sqlstore: improve recursive CTE support detection

Vitess returns a not supported error, not a parse error

Co-authored-by: Derek Perkins <derek@nozzle.io>
2024-04-17 08:37:47 -04:00
TechVest
1ffe858e06 chore: remove repetitive words (#86412)
Signed-off-by: TechVest <techdashen@qq.com>
2024-04-17 13:08:00 +01:00
Joanna
65951c40c4 Dashboard: Fix A11y in AutoRefresh input field (#86058)
Dashboard: Fix issue with providing clear instructions for data format in Auto Refresh input field
2024-04-17 12:54:37 +02:00
Fabrizio
bbae4af935 Tempo: Add waitFor in flaky test (#86277) 2024-04-17 12:32:22 +02:00
Laura Fernández
6a5bdcafa2 Chore: ForgottenPassword - Replace HorizontalGroup with Stack (#86393) 2024-04-17 11:51:49 +02:00
Laura Fernández
ce092450db Chore: TimeRegionEditor- Replace HorizontalGroup with Stack (#86395) 2024-04-17 11:51:32 +02:00
Laura Fernández
3bb6de57d2 Chore: change bettererResultsToJSON format (#86381) 2024-04-17 11:51:18 +02:00
Laura Fernández
9b27d5a0c1 Chore: DataSourcePicker- Replace HorizontalGroup with Stack (#86389) 2024-04-17 11:50:58 +02:00
Leonor Oliveira
dcfaf7e434 Storage: Add dualwriter test mocks (#86243)
* WIP: add mocks for dual writer

* Test dualwriter mode1

* Re-add non implementation errors

* Use testify assert

* Write tests for mode2.

* Lint

* Remove comment

* Update pkg/apiserver/rest/dualwriter_mode2_test.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* [REVIEW improve readability and call fn legacy fn

* [REVIEW] rename mocks and setupFns

* [REVIEW add missing test case

* [REVIEW] add test case with getting object from storage and not legacy

* Add deleteCollection

* Test deleteCollection

* Rename file

---------

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>
2024-04-17 11:25:19 +02:00
Timur Olzhabayev
70eefea434 Chore: Remove feature toggles github action (#85714)
* remove the feature toggle cleanup github action

* removing codeowners entries that are unnecessary
2024-04-17 10:33:44 +02:00
Konrad Lalik
acd3e83c1c Alerting: Take receivers into account when custom grouping Alertmanager groups (#86127)
* Take receiver into account when custom grouping Alertmanager alert groups

* Fix and add tests
2024-04-17 08:55:01 +02:00
Joey
383c310c73 Add more tracing datasources to 'Tracing in explore' docs (#85630)
* Add more tracing datasources to docs

* Remove datadog
2024-04-17 07:52:59 +01:00
Torkel Ödegaard
989e7c2c11 DashboardScene: Fixes react panels with old angular options (#86256)
* DashboardScene: Fixes react panels with old angular options

* Update
2024-04-17 08:05:23 +02:00
Torkel Ödegaard
5837def850 DashboardScene: Move add library panel view from grid item to drawer (#86257)
* DashboardScene: Add library panel in drawer

* DashboardScene: Move add libray panel view to a drawer instead of a grid item

* Update

* Update tests
2024-04-17 06:54:38 +02:00
Darren Janeczek
ea90f0119c datatrails: track user interactions (#85909)
* chore: add interaction tracking
2024-04-16 15:55:07 -04:00
Isabel Matwawana
d55ce5b2e8 Docs: change availability to public preview for v11 (#86390)
Changed availability to public preview
2024-04-16 15:16:31 -04:00
Isabel Matwawana
7c441011f2 Docs: add panels & visualizations landing page (#86073)
* Added landing page front structure

* Added description and overview content and card titles

* Added placeholder tile and work notes

* Finalized text and updated link type

* Updated panel overview tile link
2024-04-16 14:26:41 -04:00
Yuri Tseretyan
e9d6135e33 SSE: Threshold expression to use simple functions (#86062)
* replace math expression with predicates
2024-04-16 13:35:41 -04:00
Eric Leijonmarck
9c1ef8b16e Auth: Remove caseinsensitive check on update user (#86286)
* Removal: case insensitive check on update

* refactor and removal of test for duplicate user

* refactor to still shadow user variable
2024-04-16 17:47:17 +01:00
Matthew Jacobson
533bed6d94 Alerting: Fix simplified routes '...' groupBy creating invalid routes (#86006)
* Alerting: Fix simplified routes '...' groupBy creating invalid routes

There were a few ways to go about this fix:
1. Modifying our copy of upstream validation to allow this
2. Modify our notification settings validation to prevent this
3. Normalize group by on save
4. Normalized group by on generate

Option 4. was chosen as the others have a mix of the following cons:
- Generated routes risk being incompatible with upstream/remote AM
- Awkward FE UX when using '...'
- Rule definition changing after save and potential pitfalls with TF

With option 4. generated routes stay compatible with external/remote AMs, FE
doesn't need to change as we allow mixed '...' and custom label groupBys, and
settings we save to db are the same ones requested.

In addition, it has the slight benefit of allowing us to hide the internal
implementation details of `alertname, grafana_folder` from the user in the
future, since we don't need to send them with every FE or TF request.

* Safer use of DefaultNotificationSettingsGroupBy

* Fix missed API tests
2024-04-16 12:14:39 -04:00
Arati R
79eab65f94 Storage: Add mode-specific DeleteCollection implementations (#86065)
* Add DeleteCollection methods to modes 1 and 4
* Add DeleteCollection implementations for modes 2 and 3
2024-04-16 17:05:31 +02:00
Nick Richmond
d3fee607e2 Expressions: sort numeric metrics behind feature toggle (#85911)
* feat: sort numeric metrics behind feature toggle

* chore: upgrade `dataplane/sdata` to latest tag

* chore: `go work sync`
2024-04-16 10:52:47 -04:00
Ieva
036f826b87 AuthZ: Further protect admin endpoints (#86285)
* only users with Grafana Admin role can grant/revoke Grafana Admin role

* check permissions to user amdin endpoints globally

* allow checking global permissions for service accounts

* use a middleware for checking whether the caller is Grafana Admin
2024-04-16 15:48:12 +01:00
Karl Persson
0f06120b56 User: Clean up update functions (#86341)
* User: remove unused function

* User: Remove UpdatePermissions and support IsGrafanaAdmin flag in Update function instead

* User: Remove Disable function and use Update instead
2024-04-16 16:33:50 +02:00
owensmallwood
8c8885ef23 Storage Api: Adds traces (#85391)
- adds traces and improved logging to the unified storage server
- add a configurable logger to the gRPC server service
2024-04-16 08:30:51 -06:00
Kyle Brandt
a12669951b Prometheus: Add BE support for Adhoc Filters (#85969)
---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-04-16 16:56:50 +03:00
Karl Persson
8520892923 User: Fix GetByID (#86282)
* Auth: Remove unused lookup param

* Remove case sensitive lookup for GetByID
2024-04-16 15:24:34 +02:00
Victor Marin
b9285e320a Fix new dashboard save name validation (#86290) 2024-04-16 15:46:25 +03:00
Piotr Jamróz
ccd660d559 Explore: Skip flaky test (#86289)
Skip flakey test
2024-04-16 12:42:22 +00:00
brendamuir
0cb3e8bc49 Alerting docs: adds roles docs (#86261)
* Alerting docs: adds roles docs

* adds header

* adds link

* spacing

* prettier

* Update docs/sources/alerting/set-up/configure-roles/index.md

Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com>

* Update docs/sources/alerting/set-up/configure-roles/index.md

Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com>

* Update docs/sources/alerting/set-up/configure-roles/index.md

Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com>

* Update docs/sources/alerting/set-up/configure-roles/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/set-up/configure-roles/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/set-up/configure-roles/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/set-up/configure-roles/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/set-up/configure-roles/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* prettier

* Update docs/sources/alerting/set-up/configure-roles/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* corrects link

---------

Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-04-16 14:33:15 +02:00
Ezequiel Victorero
7c7cdf7c3d Docs: Update broken links to grafana play (#86233)
* Docs: Update broken links to grafana play

* Update docs/sources/datasources/graphite/template-variables/index.md

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Update docs/sources/datasources/influxdb/template-variables/index.md

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-04-16 09:32:52 -03:00
kay delaney
3795f0d5a9 Dashboards: Fix issue when importing external dashboard with datasource variables (#86273) 2024-04-16 13:29:27 +01:00
Tom Ratcliffe
8f0f0387b8 Simplify providers used for test utils method
For now, keep the providers down to just what was already in TestProvider
2024-04-16 12:23:50 +01:00
Tom Ratcliffe
45949e7684 Simplify import logic for test utils 2024-04-16 12:23:50 +01:00
Tom Ratcliffe
488c5b8396 Use PropsWithChildren and allow router configuration in test utils render 2024-04-16 12:23:50 +01:00
Tom Ratcliffe
045ec86984 Add typing for react-inlinesvg mock now its included in tsconfig 2024-04-16 12:23:50 +01:00
Tom Ratcliffe
0f88075e4c Mark TestProvider as deprecated
(up for discussion, depending on adoption of test utils. Alternative approach could be to re-use TestProvider in test-utils)
2024-04-16 12:23:50 +01:00
Tom Ratcliffe
9ad87de0b8 Alias @grafana/test-utils for easier imports in tests 2024-04-16 12:23:50 +01:00
Tom Ratcliffe
c0cb36c9d6 Add initial test-utils file with render helper, wrapping in (most) required providers 2024-04-16 12:23:50 +01:00
Josh Hunt
f90e3b2ebc I18N: Warn if t() called before init (#86222)
* I18N: Warn if t() called before init

* don't log in tests

* fix double assignemnt!
2024-04-16 12:47:24 +02:00
Gábor Farkas
2379498228 mysql additional decoupling steps (#86168)
* mysql additional decoupling steps

* updated snapshot test
2024-04-16 11:50:41 +02:00
Leonard Gram
2c304c5fdf Cloudmigration: org admin can migrate (#85256) 2024-04-16 11:36:10 +02:00
Josh Hunt
b5337ba419 I18N: Fix untranslated descriptions in data source picker (#86216)
I18n: Remove t() call from root module scope
2024-04-16 10:28:24 +01:00
Josh Hunt
f110c05797 I18N: Split loadTranslations i18next plugin into seperate file (#86217) 2024-04-16 09:53:23 +01:00
Laura Fernández
f1de8940dc Grafana UI: StackingEditor and addHideFrom - Replace HorizontalGroup with Stack (#86192) 2024-04-16 10:46:01 +02:00
Alexa V
40f1b2c92c Dashboard: Migration - Add public dashboard tag in the nav bar (#86204)
Migrate public dashboard badge to scenes dashboard
2024-04-16 10:04:25 +02:00
Gábor Farkas
9015bfa3f4 mssql: decouple sqleng (#86130)
* mssql: decouple sqleng

* fix codeowners-file
2024-04-16 08:00:14 +00:00
Fabrizio
538db9ab1c Docs: Fix typos (#85651) 2024-04-16 09:58:40 +02:00
Ryan McKinley
ba510d1a7d Playlists: Enable kubernetesPlaylists by default in OSS (#86259) 2024-04-16 09:19:35 +02:00
Torkel Ödegaard
e15beab362 DashboardScene: Fixes saving dashboard with angular panels (#86098)
* DashboardScene: Fixes saving angularOptions

* Update

* Update
2024-04-16 03:13:42 +02:00
Torkel Ödegaard
869814ea3e DashboardScene: Fix empty row repeat issue (#86095) 2024-04-16 03:10:24 +02:00
Brendan O'Handley
f85470d652 Prometheus: Use the frontend package in Prometheus and remove feature toggle (#86080)
* add history links for monaco completion provider folder

* add history links for monaco query field folder

* add history links for components folder

* add history links for configuration folder

* add history links for dashboard json folder

* add history links for gcopypaste folder

* add history link for variableMigration

* add history link for querybuilder/components/metrics-modal folder

* add history link for querybuilder/components/promqail folder

* add history links for querybuilder/components folder

* add history links for querybuilder/hooks folder

* add history links for querybuilder/shared folder

* add history links for querybuilder folder

* add history links for querycache folder

* add history links for src folder

* use frontend package and custom auth in module.ts

* remove files and fix import issues

* remove usePrometheusFrontendPackage

* remove extra files

* update betterer

* remove extra files after rebase

* fix betterer for rebase

* fix e2e flakiness
2024-04-15 16:45:23 -05:00
David Allen
c9350a25c4 docs: add annotations play link (#86206)
* docs: add annotations play link

* PR feedback
2024-04-15 17:30:48 -04:00
Nick Richmond
63aa8a6035 Chore: add missing modowner (#86234)
* chore: add modowner

* fix: modowner
2024-04-15 23:17:15 +02:00
David Allen
f50e29e004 docs: add thresholds play link (#86212)
* docs: add thresholds play link

* PR review
2024-04-15 17:16:04 -04:00
David Allen
19ae9377b9 docs: added logs panel play link; added dedup options, reformatted fig (#86209)
* docs: added logs panel play link; added dedup options, reformatted fig

* Update docs/sources/panels-visualizations/visualizations/logs/index.md

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Update docs/sources/panels-visualizations/visualizations/logs/index.md

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-04-15 17:08:06 -04:00
David Allen
c450d61d32 docs: query data/relative time range override play link (#86213) 2024-04-15 15:51:13 -04:00
David Allen
04e127b368 Docs: added bar gauge play link (#86205)
* docs: added bar gauge play link

* Update docs/sources/panels-visualizations/visualizations/bar-gauge/index.md

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-04-15 15:50:53 -04:00
David Allen
5a57c31607 Docs: add template var Play link; cleanup existing (#86074)
* Docs: add template var Play link; cleanup existing

* Update docs/sources/dashboards/variables/_index.md

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Update docs/sources/dashboards/variables/_index.md

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-04-15 15:32:09 -04:00
Brendan O'Handley
7c156274cd Prometheus: Add native histogram functions (#86002)
* add native histogram functions to code editor

* add native histogram function types for query builder

* add functions to query builder

* add test to show parsing breaks from code to builder

* add histogram_avg to code editor

* add histogram_avg to builder and make parity between package and core

* add functions to hard coded promql file for highlighting

* remove native histogram test so that it can be added in #85942

* remove functions from core prometheus js to prevent merge conflict in #86080

* use xit for test instead of removing it
2024-04-15 14:26:51 -05:00
Charandas
2aedd9dacf K8s: add ID token to requests outbound to new query endpoint (#86214) 2024-04-15 20:34:20 +02:00
ismail simsek
cc87281d71 Prometheus: Respect dashboard queries when querying ad hoc filter labels (#85674)
* use queries

* extract metric name from query

* unit tests
2024-04-15 19:05:19 +02:00
Laura Fernández
82f910c0c5 Chore: Use handleReducedMotion to smooth the animation in LoadingBar (#85808) 2024-04-15 17:27:08 +02:00
Isabel Matwawana
219c2c761e Docs: add dashboards landing page (#86001)
* Added template from existing landing page

* Added dashboards content

* Fixed front matter

* Referenced existing icon to test

* Added test icon

* Edited text

* Fixed link formatting

* Finalized description and overview text

* Updated description'

* Updated tile text

* Updated docs/ref section
2024-04-15 11:07:05 -04:00
Laura Fernández
726cd4a8a6 Chore: Fix link in UsersTable (#86152) 2024-04-15 16:56:28 +02:00
Isabel Matwawana
d9a0cedd89 Docs: add panel overview (#86075)
* Added panel overview page and updated panel editor page

* Finalized panel overview intro text and added links

* Added add panel section to overview and removed section from editor

* Fixed version interpolation syntax and updated Cloud link

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Fixed version interpolation syntax

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-04-15 10:51:00 -04:00
Isabel Matwawana
918f122433 Docs: add tags section to dashboard settings docs (#85875)
Edited
2024-04-15 10:49:14 -04:00
David Allen
eb46d85829 Docs: add best practices Play link (#86076) 2024-04-15 10:47:58 -04:00
Jack Westbrook
1dfd34ee79 Chore: Add codemod and betterer config to make barrel imports explicit (#80913)
* chore: add codemod for highlighting barrel imports

* style(frontend): add no-barrel-files plugin to betterer

* chore(betterer): update betterer file

* ci(frontend-metrics): track occurrences of barrel files being imported

* chore: clean up explicit barrel imports codemod script

* chore(codeowners): add explicit barrel imports script

* Add no-barrel-files plugin to betterer configuration

Co-Authored-By: LeventeBalogh <balogh.levente.hu@gmail.com>

---------

Co-authored-by: LeventeBalogh <balogh.levente.hu@gmail.com>
2024-04-15 16:36:19 +02:00
renovate[bot]
453a75b767 Update dependency @swc/helpers to v0.5.10 (#86146)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-15 15:30:26 +01:00
Alexander Weaver
5b1498f98f Alerting: Return a 400 and errutil error when trying to delete a contact point that is referenced by a policy (#85481)
Return a 400 and errutil error when trying to delete a contact point that is referenced by a policy
2024-04-15 09:25:28 -05:00
Laura Fernández
afbd28e160 Chore: RolePickerMenu and RolePickerSubmenu - Replace HorizontalGroup with Stack (#86145) 2024-04-15 16:12:47 +02:00
Laura Fernández
499ad35a50 Chore: ActionRow - Replace HorizontalGroup with Stack (#86143) 2024-04-15 15:57:15 +02:00
antonio
b2555cfc01 alerting>tutorial>fix (#86101)
* alerting>tutorial>fix

* Update index.md
2024-04-15 15:46:19 +02:00
renovate[bot]
2868264360 Update dependency @types/react-calendar to v4 (#86132)
* Update dependency @types/react-calendar to v4

* remove @types/react-calendar since it's no longer used

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-04-15 15:44:12 +02:00
Kristina
0034e9f044 Explore: Change service in hook, un-skip test (#85894)
Use different service, un-skip test
2024-04-15 08:11:21 -05:00
Kristina
ad3abfc695 Explore: Query history does not save filtered queries (#85825)
* Bring in datasource filterQuery in, to not save filtered queries to history

* Add test
2024-04-15 08:07:02 -05:00
renovate[bot]
b07f69d1a4 Update dependency @types/marked to v6 (#86123)
* Update dependency @types/marked to v6

* remove @types/marked since it's no longer needed

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-04-15 15:02:22 +02:00
Gábor Farkas
7ce7584151 postgres: decouple sqleng (#86055) 2024-04-15 14:28:03 +02:00
Gábor Farkas
b02317d583 mysql: decouple sqleng (#86057) 2024-04-15 14:26:15 +02:00
Dave Henderson
44adfea049 Server: Fix 'server' subcommand double-registration (#86083)
fix 'server' subcommand double-registration

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
2024-04-15 08:21:03 -04:00
Erik Sundell
ad8d505d81 Chore: Install Playwright deps manually (#86008)
* install deps manually

* use ubuntu image

* regenerate drone file

* use node bookworm image

* get node major version from variable and wait for grafana server to be ready
2024-04-15 14:19:37 +02:00
Victor Marin
6fb13842a5 Fix Canvas crashing in scenes dashboard (#86117) 2024-04-15 15:13:07 +03:00
renovate[bot]
06719e1756 Update dependency i18next to v23.11.2 2024-04-15 11:57:44 +00:00
renovate[bot]
6541be39d1 Update dependency @types/react to v18.2.78 2024-04-15 10:45:52 +00:00
Bogdan Matei
d379e319d6 Implement API server client in Scopes (#85266) 2024-04-15 13:43:42 +03:00
renovate[bot]
fc6cad797d Update dependency @testing-library/react to v15.0.2 2024-04-15 09:42:14 +00:00
David Allen
b0c336c692 Docs: add data source type play link; cleanup (#86077) 2024-04-15 10:40:32 +01:00
Pepe Cano
656918ce35 Alerting docs: simplify Supported data sources section (#85795) 2024-04-15 10:56:01 +02:00
linoman
51da96d94e Auth: Add IsClientEnabled and IsEnabled for the authn.Service and authn.Client interfaces (#86034)
* Add `Service. IsClientEnabled` and `Client.IsEnabled` functions

* Implement `IsEnabled` function for authn clients

* Implement `IsClientEnabled` function for authn services
2024-04-15 10:54:50 +02:00
Laura Fernández
2b62167842 Grafana UI: LoginPage - Replace HorizontalGroup with Stack (#86068) 2024-04-15 10:52:28 +02:00
renovate[bot]
6ff021bb9b Update dependency @playwright/test to v1.43.1 2024-04-15 08:50:38 +00:00
Leonor Oliveira
d17af78e79 Storage: dualwriter delete implementation (#86000)
* Add delete methods

* Remove duplicated const

* Add tests

* Lint

* Lint

* Remove duplicated test file

* Update pkg/apiserver/rest/dualwriter_mode2.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* Update pkg/apiserver/rest/dualwriter.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* Update pkg/apiserver/rest/dualwriter_mode2.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* Add missing dependency

* Return if object deletion goes wrong

* Add a more complete log

---------

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>
2024-04-15 10:48:31 +02:00
Giuseppe Guerra
eec9d3dbc4 Plugins: Removed feature toggle pluginsDynamicAngularDetectionPatterns (#85956)
* Plugins: Removed feature toggle pluginsDynamicAngularDetectionPatterns

* re-generate feature toggles
2024-04-15 10:37:28 +02:00
renovate[bot]
41e4b95b51 Update dependency @grafana/scenes to v4.8.0 (#85887)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-15 10:27:59 +02:00
Ashley Harrison
5e74b6962b Chore: Add lint rule for no-unreduced-motion (#85862)
* add lint rule for no-unreduced-motion

* update to satisfy types
2024-04-15 09:18:56 +01:00
renovate[bot]
00daca7f43 Update dependency sass-loader to v14.2.0 (#86066)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-15 09:18:29 +01:00
Torkel Ödegaard
814ffdbc2b DashboardScene: Fixes issue moving between dashboards (#86093) 2024-04-15 09:18:02 +02:00
Domas
54e1756b49 ButtonSelect: Respect isDisabled option property (#85954)
make buttonselect respect isDisabled
2024-04-15 10:13:39 +03:00
Torkel Ödegaard
31879f1f5a useForceUpdate: Return stable function (#86094) 2024-04-15 09:13:16 +02:00
ismail simsek
23cd2d3e6f Chore: Add jest config to grafana-prometheus (#86078)
add jest config
2024-04-12 21:17:53 +02:00
Yuri Tseretyan
12605bfed2 Alerting: Update fixed roles to include silences permissions (#85826)
* update fixed roles to include silences
* add silence actions to managed permissions
* update documentation
2024-04-12 12:37:34 -04:00
Ieva
56f4664875 RBAC: add a feature toggle for action sets (#86064)
* add a feature toggle for action sets

* update feature toggle name
2024-04-12 17:19:25 +01:00
Laura Fernández
f3b814a024 Grafana UI: ToolbarButton.story.tsx - Replace HorizotalGroup and VerticalGroup with Stack (#86067) 2024-04-12 18:08:43 +02:00
Prapti Sharma
930363ad12 Minor correction done in WORKFLOW.md (#80505)
Update WORKFLOW.md

Co-authored-by: Laura Benz <laura.benz@grafana.com>
2024-04-12 17:56:10 +02:00
Faye Lin
a94ab259c6 Expression: Fix a bug of the display name of the threshold expression result (#85912)
* replace ReferenceVar with RefID when creating the math command for the ThresholdCommand

* Fix the Hysteresis test
2024-04-12 17:46:14 +02:00
Joao Silva
10c6ab5a17 Chore: Replace HorizontalGroup with Stack in SelectOrgPage and ChangePasswordForm (#86061) 2024-04-12 16:32:57 +01:00
renovate[bot]
6417e92ebe Update dependency sass to v1.75.0 (#86051)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-12 16:17:13 +01:00
Steve Simpson
ad7f804255 Alerting: Fix evaluation metrics to not count retries (#85873)
* Change evaluation metrics to only count once per eval, and add new metrics.

* Cosmetic: Move eval total Inc() to orginal place.
2024-04-12 16:20:46 +02:00
Tobias Skarhed
f1f02207f2 Alerting: Improve heading accessibility (#85723)
* Change from h5 to Text component

* Fix goworksum error

* Add headings for contact points and notification policies

* Alert group h2

* Reset labels and move h2 to group by

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-04-12 16:19:47 +02:00
lean.dev
c8d185502b Fixes CMS url for dev environment (#86056) 2024-04-12 14:19:38 +00:00
Gábor Farkas
ee1ece1cf8 sql: use resample from grafana-plugin-sdk-go (#85599)
* copied files

* add copy of Pointer

* fix the API

* forward resample to the namespaced code

* moved the aligning-code to the parent

* call namespaced resample directly

* lint fix

* lint fix

* switch to plugin-sdk-go resample

* adjusted import path
2024-04-12 15:22:28 +02:00
github-actions[bot]
b295f09af6 I18n: Download translations from Crowdin (#86050)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-12 15:17:33 +02:00
renovate[bot]
c1b8ee8453 Update dependency typescript to v5.4.5 2024-04-12 15:06:30 +02:00
renovate[bot]
a5cd88c67e Update dependency typescript to v5.4.3 (#84470)
* Update dependency typescript to v5.4.3

* refactor: solve TS errors

* refactor: update yarn.lock

* refactor: return type

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Laura Benz <laura.benz@grafana.com>
2024-04-12 14:46:47 +02:00
Josh Hunt
3b4983695e E2C: Remove mock api (#86043) 2024-04-12 13:26:13 +01:00
Arati R
aba15646b6 Storage: Add DualWriter improvements (#85968)
* Add Create tests
* Adjust mode 2 and mode 3 Get behavior

---------

Co-authored-by: Dan Cech <dcech@grafana.com>
2024-04-12 14:21:10 +02:00
Ashley Harrison
b3401c802c EmptyState: make "message" a required prop (#86029)
* make "message" a required prop on EmptyState

* run i18n:extract
2024-04-12 13:13:28 +01:00
Leon Sorokin
2bedbcf344 TimeSeries: Fix series rendering with data links and extra fields (#86007) 2024-04-12 14:11:22 +02:00
renovate[bot]
c2a81f3020 Update react monorepo 2024-04-12 11:58:02 +00:00
renovate[bot]
ba80c15281 Update dependency react-hook-form to v7.51.3 2024-04-12 11:35:25 +00:00
Andre Pereira
1a62d94c55 Tempo: Return raw result from traceql query (#86032)
Return raw result from traceql query
2024-04-12 12:26:27 +01:00
renovate[bot]
44a612a96b Update dependency @types/eslint to v8.56.9 2024-04-12 11:11:55 +00:00
github-actions[bot]
5ea7a1eefd I18n: Download translations from Crowdin (#86030)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-12 10:38:51 +00:00
renovate[bot]
63d63ea9fb Update dependency @testing-library/react to v15.0.1 2024-04-12 10:27:38 +00:00
Krishna Dhakal
068bcfbdb0 Frontend Testing: Replace deprecated toBeCalledWith Jest matcher. (#85929) 2024-04-12 11:26:01 +01:00
Karl Persson
73fecc8d80 Authn: Identity resolvers (#85930)
* AuthN: Add NamespaceID struct. We should replace the usage of encoded namespaceID with this one

* AuthN: Add optional interface that clients can implement to be able to resolve identity for a namespace

* Authn: Implement IdentityResolverClient for api keys

* AuthN: use idenity resolvers

Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
2024-04-12 11:38:20 +02:00
renovate[bot]
c837d95677 Update dependency @swc/helpers to v0.5.9 (#86024)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-12 10:34:53 +01:00
Ashley Harrison
40c148ba48 EmptyState: Provide custom messages for existing empty states (#86021)
provide custom messages for existing empty states
2024-04-12 11:08:14 +02:00
Ashley Harrison
505bdf5a8d Chore: add @types/history to renovate ignore list (#86011)
add @types/history to renovate ignore list
2024-04-12 10:00:27 +01:00
David Allen
a1086836f3 Docs: add mysql data source Play link (#85982) 2024-04-12 09:47:59 +01:00
David Allen
bf9df1a8d6 Docs: add graphite data source Play link (#85981) 2024-04-12 09:47:51 +01:00
Tom Ratcliffe
ce5fc59d54 Use ActiveTab type for custom hook 2024-04-12 09:13:29 +01:00
Tom Ratcliffe
ccaf850c09 Refactor to useTabQueryParam 2024-04-12 09:13:29 +01:00
Tom Ratcliffe
d91e1a4e3a Refactor tab query param logic and add tests 2024-04-12 09:13:29 +01:00
Tom Ratcliffe
800a2e0228 Fix tests being stateful due to locationService 2024-04-12 09:13:29 +01:00
Tom Ratcliffe
94ad66998f Send tab query param through when returning from template save 2024-04-12 09:13:29 +01:00
Tom Ratcliffe
933cc3f075 Tweak ContactPoints to use query param for tab selection 2024-04-12 09:13:29 +01:00
Diego Augusto Molina
e6ead667b3 Unified Storage: added pkg/util/ring package to handle queueing of notifications (#84657)
* added pkg/util/rinq package to handle queueing of notifications

* fix linters

* Fix typo in comment

Co-authored-by: Dan Cech <dcech@grafana.com>

* improve allocation strategy for Enqueue; remove unnecessary clearing of slice

* Update pkg/util/ringq/dyn_chan_bench_test.go

Co-authored-by: Dan Cech <dcech@grafana.com>

* Update pkg/util/ringq/ringq.go

Co-authored-by: Dan Cech <dcech@grafana.com>

* refactor to move stats and shrinking into Ring

* add missing error assertions in tests

* add missing error assertions in tests and linting issues

* simplify controller closed check

* improve encapsulation of internal state in Ring

* use (*Ring).Len for clarity instead of stats

---------

Co-authored-by: Dan Cech <dcech@grafana.com>
2024-04-11 19:32:31 -03:00
Adela Almasan
eb86fd867f Canvas: Update new element type with rotation (#85690) 2024-04-11 15:36:33 -05:00
Dave Henderson
5cfca8dbf6 chore: bump Go to 1.21.9 (#85964)
* chore: bump Go to 1.21.9

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

* regen .drone.yml

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

---------

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
2024-04-11 15:37:07 -04:00
Charandas
a39fe593c2 K8s: remove standalone authenticator in favor of providing one through the factory (#85901) 2024-04-11 21:30:23 +02:00
grafana-delivery-bot[bot]
1031c2f1d2 Changelog: Updated changelog for 10.4.2 (#85997)
Co-authored-by: grafanabot <bot@grafana.com>
2024-04-11 18:49:19 +00:00
Brendan O'Handley
a25b59c6d8 Prometheus: Change feature toggle usePrometheusFrontendPackage to general availability (#85951)
change feature toggle to GA after testing
2024-04-11 14:13:30 -04:00
Ieva
58059da10b RBAC: Fix global role deletion in hosted Grafana (#85980)
take into account the value of RBACSingleOrganization setting when determining org
2024-04-11 18:50:23 +01:00
David Allen
623d4d580e Docs: add bar/pie visualization Play link (#85898)
* Update index.md

* pie chart equivalent commit

* Updated titles to match dashboard title

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-04-11 13:27:38 -04:00
David Allen
17a8de68e6 Docs: add gague visualization Play link (#85897)
* Docs: add gague visualization Play link

* Fixed typo

* Updated title to match dashboard title

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-04-11 13:27:07 -04:00
David Allen
765f20c555 Docs: add time series visualization Play link (#85885)
* docs/play shortcode: time series visualization

* Ran prettier

* Updated title to match title of dashboard in Grafana Play

---------

Co-authored-by: Isabel Matwawana <isabel.matwawana@grafana.com>
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-04-11 13:17:16 -04:00
Giuseppe Guerra
e42d8f0bd0 Plugins: Removed feature toggle enablePluginsTracingByDefault (#85953) 2024-04-11 18:40:47 +02:00
David Allen
83438bd231 Docs: add Table visualization Play link (#85896)
Docs: add stat visualization Play link
2024-04-11 12:13:24 -04:00
Isabel Matwawana
2798acd667 Docs: fix duplicate headings (#85903)
Added suffix to one Placement heading
2024-04-11 12:12:47 -04:00
David Allen
cdfd092d11 Docs: add stat visualization Play link (#85895) 2024-04-11 12:11:48 -04:00
renovate[bot]
51d5a4c8f2 Update dependency @testing-library/dom to v10 (#85958)
* Update dependency @testing-library/dom to v10

* update @testing-library/react as well

* fix unit tests

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-04-11 17:29:35 +02:00
Summer
92d659527d Release: Update drone-pipeline.md (#85950)
Update drone-pipeline.md
2024-04-11 09:00:29 -06:00
Andres Martinez Gotor
ab5a065256 Revamp plugin loading error management (#85939) 2024-04-11 16:18:04 +02:00
renovate[bot]
bb56f4a605 Update dependency @grafana/e2e to v10 (#85952)
* Update dependency @grafana/e2e to v10

* remove @grafana/e2e dependency from @grafana/prometheus

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-04-11 16:16:12 +02:00
Darren Janeczek
34875344ed datatrails: fix: clear undefined query params on history step change (#85607)
* fix: clear undefined query params on history step change

* Minor tweak

* fix: resolve CodeQL check: Client-side cross-site scripting

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-04-11 09:52:33 -04:00
renovate[bot]
b4b0a80e86 Update dependency sass to v1.74.1 (#85947)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-11 14:32:37 +01:00
Marcus Efraimsson
78f460c4de Tracing: Allow otel service name and attributes to be overridden from env (#85937)
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2024-04-11 15:18:46 +02:00
renovate[bot]
0d42e025f0 Update dependency webpack-bundle-analyzer to v4.10.2 2024-04-11 12:53:27 +00:00
Joao Silva
cf640717ba Chore: Upgrade uglify-js to fix vulnerability (#85889) 2024-04-11 13:51:51 +01:00
Jack Baldry
61e2a5354e Revert "Docs: Clarify open source documentation (#77077)" (#85879) 2024-04-11 13:51:24 +01:00
Bruno
69a92a7a2f CloudMigrations: include stack id in access policy and token names (#85868)
* CloudMigrations: include stack id in access policy and token names

* CloudMigrations: include slug in the display name

* formatting
2024-04-11 09:43:46 -03:00
Gábor Farkas
050105e70a plugins: update to latest go plugin sdk version (v0.222.0) (#85943)
plugins: update to latest go plugink sdk (v0.222.0)
2024-04-11 14:41:37 +02:00
Josh Hunt
6d35fb307f Chore: Run PR checks when enabling auto-merge (#85857) 2024-04-11 14:11:21 +02:00
renovate[bot]
af115c1d93 Update dependency jest-fail-on-console to v3.2.0 (#85936)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-11 13:51:45 +02:00
Arati R
4e532b00e1 Storage: Add mode-specific List implementations (#85814)
* Add List methods to mode 1 and 4
* Refactor errors
2024-04-11 13:41:05 +02:00
renovate[bot]
4af239af39 Update dependency i18next to v23.11.1 (#85935)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-11 12:33:50 +01:00
Marcus Efraimsson
3e385763c5 Tracing: Improve HTTP request/middleware spans and standalone apiserver (#85715)
Fixes so that auth middleware trace/span doesn't wrap the next handlers.
Allow tracing service name to be overridden in standalone apiserver.
Change k8s api tracing operation name to KubernetesAPI from 
grafana-apiserver (which is the service name)
2024-04-11 13:28:23 +02:00
renovate[bot]
877aaf87d2 Update dependency dompurify to v3.1.0 (#85932)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-11 13:14:32 +02:00
renovate[bot]
6a4ef71c4e Update dependency @types/eslint to v8.56.8 2024-04-11 10:55:18 +00:00
renovate[bot]
5a471420d0 Update dependency centrifuge to v5.1.1 (#85923)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-11 11:29:15 +01:00
Timur Olzhabayev
116088c722 Chore: Making versioncheck url rely on config instead of being hardcoded (#85855)
* Making versioncheck url rely on config instead of being hardcoded

* Update pkg/services/updatechecker/plugins.go

Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>

* making the names a bit more generic and using url.url library

* fixing tests

* fixing linting

---------

Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
2024-04-11 12:04:53 +02:00
Adam Yeats
0ec8ccbf66 Google Cloud Monitor: Fix interface conversion for incorrect type in cloudMonitoringProm.run (#85811) 2024-04-11 11:59:34 +02:00
Fabrizio
653d9fa895 Loki: Handle X-Scope-OrgID and tenant IDs (#85726) 2024-04-11 11:51:54 +02:00
renovate[bot]
37f1ea7b57 Update dependency @playwright/test to v1.43.0 (#85918)
* Update dependency @playwright/test to v1.43.0

* update playwright image

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-04-11 11:45:36 +02:00
Bogdan Matei
62c512662c Dashboard: Allow auto refresh option when saving a dashboard (#85581)
Fix saving auto refresh option
2024-04-11 12:31:47 +03:00
renovate[bot]
26805906dd Update dependency @grafana/plugin-e2e to v1.1.0 (#85917)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-11 11:04:13 +02:00
Laura Fernández
2986273273 Grafana UI: CellActions - Replace HorizontalGroup with Stack (#85860) 2024-04-11 10:59:23 +02:00
renovate[bot]
1ed3dc22d5 Update react monorepo 2024-04-11 08:47:05 +00:00
dependabot[bot]
cab7fefef5 Bump actions/checkout from 3 to 4 (#84529)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-11 09:44:09 +01:00
Josh Hunt
c024d51a38 Chore: Remove a buncha stuff from Sandbox TestStuffPage (#85876) 2024-04-11 09:40:30 +01:00
renovate[bot]
8461310e36 Update dependency rc-cascader to v3.24.1 2024-04-11 08:27:47 +00:00
Karl Persson
895222725c Session: set authID and authenticatedBy (#85806)
* Authn: Resolve authenticate by and auth id when fethcing signed in user

* Change logout client interface to only take Requester interface

* Session: Fetch external auth info when authenticating sessions

* Use authenticated by from identity

* Move call to get auth-info into session client and use GetAuthenticatedBy in various places
2024-04-11 10:25:29 +02:00
Andres Martinez Gotor
f375af793f Plugin loader: refactor step evaluation (#85881) 2024-04-11 09:41:05 +02:00
renovate[bot]
1e9841b1c9 Update dependency ol-ext to v4.0.18 2024-04-10 21:14:15 +00:00
Darren Janeczek
2e1e45bbb1 datatrails: ensure breakdown yaxis sync is maintained when layout changes (#85380)
fix: ensure breakdown yaxis sync is maintained when layout changes
2024-04-10 17:12:33 -04:00
renovate[bot]
486c956098 Update dependency nanoid to v5.0.7 2024-04-10 19:56:56 +00:00
renovate[bot]
9fc8599bbf Update dependency eslint-plugin-jsdoc to v48.2.3 2024-04-10 18:14:13 +00:00
Tom Ratcliffe
a852b70953 Fix console.errors from edit group modal tests 2024-04-10 19:13:41 +01:00
Tom Ratcliffe
fff524b54c Make quick eval buttons in group edit set dirty state on form and handle invalid case 2024-04-10 19:13:41 +01:00
Tom Ratcliffe
584d2bcb91 Remove useEffect that was setting incorrect display value for pending period 2024-04-10 19:13:41 +01:00
Sergej-Vlasov
79631bdd15 DashboardScene: prevent panel hovel header crop with scenes (#85869)
* add behaviour that adjusts hoverHeaderOffset

* clean up behaviour logic

* optimise and extract behaviour to separate file

* fix hoverHeaderOffsetBehavior unsubscribe

* update to latest scenes version

* Fix PanelOptionsTest

* fix: test value for adhoc filter url param

* Fix transformation tab tests

* bump scenes version

* Revert "Fix transformation tab tests"

This reverts commit 3ec9f5b226.

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Co-authored-by: Darren Janeczek <darren.janeczek@grafana.com>
Co-authored-by: oscarkilhed <oscar.kilhed@grafana.com>
2024-04-10 20:39:43 +03:00
Armand Grillet
212acb9bc5 Alerting: clarify alerting silences (#85853)
* Clarify alerting silences

* Update docs/sources/alerting/configure-notifications/create-silence.md

Co-authored-by: Tom Ratcliffe <tom.ratcliffe@grafana.com>

---------

Co-authored-by: Tom Ratcliffe <tom.ratcliffe@grafana.com>
2024-04-10 18:30:21 +02:00
Laura Fernández
cd79fe1a7c Grafana UI: ThemeDemo - Replace HorizontalGroup and VerticalGroup with Stack and Box (#85888) 2024-04-10 18:23:31 +02:00
Josh Hunt
7aac5f6b3e Chore: Fix custom eslint rule typechecking (#85886) 2024-04-10 17:12:31 +01:00
linoman
85e66d8edb Chore: Fix position for RolePickerMenu being out of bounds (#85604)
* Fix position for RolePickerMenu being out of bounds

* adjust the offset of the role picker menu
2024-04-10 17:51:50 +02:00
Dominik Prokop
483dc02b68 Remove repeating responsibility from LibraryVizPanel (#84879)
* Remove repeating responsibility from LibraryVizPanel

* Improvements
2024-04-10 17:46:42 +02:00
Dominik Prokop
615fa73f23 DashboardScene: Enrich requests correctly in edit mode (#85883) 2024-04-10 17:38:37 +02:00
renovate[bot]
b1ad46e426 Update dependency @types/node to v20.12.7 2024-04-10 15:26:09 +00:00
Todd Treece
796b15d9e0 Metrics: Prevent duplicates in MultiRegistry (#85880) 2024-04-10 10:55:24 -04:00
Kristina
60edd988ac Explore: Skip flaky test (#85878)
Skip flaky test
2024-04-10 16:05:07 +02:00
Ashley Harrison
3c69de6be5 Chore: removing some type assertions (#85839)
* fix some type assertions in loops

* some more cleanup

* some alerting fixes

* put comments in correct place to ignore rule

* couple more

* undo SilencesFilter changes
2024-04-10 14:54:31 +01:00
ismail simsek
96f49bfaee InfluxDB: Fix panic when reading concurrency count during influxql health check (#85771)
fix panic when reading concurrency count during influxql health check
2024-04-10 15:32:38 +02:00
Sergej-Vlasov
33b6f45a9e Revert "DashboardScene: prevent panel hovel header crop with scenes" (#85865)
Revert "DashboardScene: prevent panel hovel header crop with scenes (#85780)"

This reverts commit 23f1732855.
2024-04-10 16:27:53 +03:00
renovate[bot]
2fc8342248 Update dependency @kusto/monaco-kusto to v10.0.19 2024-04-10 13:24:23 +00:00
Kristina
98c575d28f Explore: Query history should gracefully handle undefined exploreId on run button (#85821)
* Gracefully handle undefined exploreId on run button

* Add test
2024-04-10 07:21:29 -06:00
Isabel Matwawana
d666b92317 Docs: add unit scaling clarification (#85830)
* Added unit scaling information

* Edited
2024-04-10 09:11:59 -04:00
renovate[bot]
c650b016e4 Update dependency @grafana/scenes to v4.5.7 2024-04-10 13:05:07 +00:00
Sergej-Vlasov
23f1732855 DashboardScene: prevent panel hovel header crop with scenes (#85780)
* add behaviour that adjusts hoverHeaderOffset

* clean up behaviour logic

* optimise and extract behaviour to separate file

* fix hoverHeaderOffsetBehavior unsubscribe

* update to latest scenes version

* Fix PanelOptionsTest

* fix: test value for adhoc filter url param

* Fix transformation tab tests

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
Co-authored-by: Darren Janeczek <darren.janeczek@grafana.com>
Co-authored-by: oscarkilhed <oscar.kilhed@grafana.com>
2024-04-10 15:39:51 +03:00
Tobias Skarhed
c602d9d6ad News: Change from h3 to h2 (#85858)
Change from h3 to h2
2024-04-10 14:00:25 +02:00
Laura Fernández
22d33bd354 Grafana UI: SecretTextArea - Replace HorizontalGroup with Stack and Box (#85849) 2024-04-10 13:41:02 +02:00
renovate[bot]
d480cf4977 Update dependency @grafana/faro-web-sdk to v1.5.1 2024-04-10 11:24:40 +00:00
github-actions[bot]
3c8519816c I18n: Download translations from Crowdin (#85797)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-10 11:22:53 +00:00
renovate[bot]
8975e24b2b Update dependency @grafana/faro-web-sdk to v1.5.1 2024-04-10 10:44:24 +00:00
Alexander Zobnin
3127566a20 Access control: Use ResolveIdentity() for authorizing in org (#85549)
* Access control: Use ResolveIdentity() for authorizing in org

* Fix tests

* Fix middleware tests

* Use ResolveIdentity in HasGlobalAccess() function

* remove makeTmpUser

* Cleanup

* Fix linter errors

* Fix test build

* Remove GetUserPermissionsInOrg()
2024-04-10 12:42:13 +02:00
Karl Persson
ebb4bb859e Authn: allow ResolveIdentity to authenticate in "global" scope (#85835)
* Authn: allow ResolveIdentity to authenticate in "global" scope

* Use constant
2024-04-10 11:53:45 +02:00
renovate[bot]
a3ed1855ff Update dependency @grafana/faro-core to v1.5.1 2024-04-10 09:46:06 +00:00
Laura Fernández
1dce01fdd7 Grafana UI: PanelChrome - Replace HorizontalGroup with Stack in documentation and stories (#85843) 2024-04-10 11:44:03 +02:00
renovate[bot]
0585b55bb1 Update dependency @floating-ui/react to v0.26.12 (#85842)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-10 12:26:02 +03:00
Karl Persson
fd870702c7 Chore: Remove unused function TryRotateToken (#85836)
* Chore: Remove unused function

* remove unused function
2024-04-10 11:15:43 +02:00
Josh Hunt
f484519784 E2C: Refactor on-prem ConnectModal (#85799)
* Refactor on-prem ConnectModal to not use ModalProvider

* fix
2024-04-10 10:07:52 +01:00
renovate[bot]
651223fe2d Update babel monorepo to v7.24.4 2024-04-10 09:06:54 +00:00
renovate[bot]
77c97f69a9 Update opentelemetry-js monorepo (#85337)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-10 09:28:20 +01:00
Ashley Harrison
bbf874b96d ConfirmModal: Pressing enter in confirmation input now triggers primary action (#85812)
wrap confirm modal in a form
2024-04-10 09:22:22 +01:00
Tristan
8f5839fe8f CloudWatch: Add additional Glue metrics (#85798) 2024-04-09 19:31:39 +00:00
Oscar Kilhed
96abe65fe4 Dashboard scenes: Fix export tab not including variables when exporting externally (#85807)
Fix export tab not including variables when exporting externally
2024-04-09 20:39:30 +02:00
Darren Janeczek
66c0fd4dcc chore: update datatrails feature flag and enable (#85508)
* chore: update datatrails feature flag and enable

* fix: rename `datatrails` feature flag to `exploreMetrics`
2024-04-09 14:15:18 -04:00
Victor Marin
b6249d6a50 Check source panel for updates in Dashboard DS panel (#85655)
* Check source panel for updates in Dashboard DS panel

* Test

* made it better

* cleanup

* cleanup and tests

* fix failing tests

* find the correct dashboard query

* revert mixed check in dashboard behaviour

* Dashboard data source: Return error when used in mixed data source (#85765)

* MixedDS: Inform about dashboard ds not being supported

* lint fix

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-04-09 20:59:37 +03:00
Matthew Jacobson
f79dd7c7f9 Alerting: Persist silence state immediately on Create/Delete (#84705)
* Alerting: Persist silence state immediately on Create/Delete

Persists the silence state to the kvstore immediately instead of waiting for the
 next maintenance run. This is used after Create/Delete to prevent silences from
 being lost when a new Alertmanager is started before the state has persisted.
 This can happen, for example, in a rolling deployment scenario.

* Fix test that requires real data

* Don't error if silence state persist fails, maintenance will correct
2024-04-09 13:39:34 -04:00
Tobias Skarhed
c7e4baff75 Explore: Add h1 for screen readers (#85794)
* Add h1 in Explore for screen readers

* Add i18n

* Move to ExplorePage
2024-04-09 18:15:44 +02:00
Ieva
9a2969fb4f RBAC: hide save button for users who can't save dashboard (#85758)
hide save button for users who can't save dashboard
2024-04-09 17:09:41 +01:00
Ivan Ortega Alba
27bc0c19ab DashboardScene: Detect changes when editing a panel (#85708) 2024-04-09 18:48:10 +03:00
Todd Treece
72472e5eb7 K8s: Add slog wrapper (#84680) 2024-04-09 18:39:25 +03:00
Leonor Oliveira
518d3341d5 Add Get method in dual writer (#85589)
* Add Get method in dual writer

* Update pkg/apiserver/rest/dualwriter_mode3.go

Co-authored-by: Dan Cech <dcech@grafana.com>

* Actually run the tests

* no need for t.Run()

* Update pkg/apiserver/rest/dualwriter_mode3.go

Co-authored-by: Dan Cech <dcech@grafana.com>

* Update pkg/apiserver/rest/dualwriter_mode3.go

Co-authored-by: Dan Cech <dcech@grafana.com>

* Update pkg/apiserver/rest/dualwriter_test.go

Co-authored-by: Dan Cech <dcech@grafana.com>

* Log improvements

* Fix method name

---------

Co-authored-by: Dan Cech <dcech@grafana.com>
2024-04-09 16:08:20 +02:00
Isabel Matwawana
1b1450e593 Docs: add updated youtube link (#85801)
Updated youtube link
2024-04-09 09:30:58 -04:00
Laura Fernández
88f116e96b CSS: use prefers-reduced-motion to let users skip animations (#85450) 2024-04-09 15:27:28 +02:00
Will Browne
698436aa29 Plugins: Update to latest go plugin sdk (v0.221.0) (#85796)
* update plugin sdk

* fix indirect
2024-04-09 15:06:05 +02:00
Kristina
5305316f5a Explore: Move Query History to be screen wide (#84321)
* WIP

* Use splitpanewrapper for drawer

* Get rich history pulling from multiple datasources

* highlight pane

* Fix datasource data handling

* create ds/explore map, move around ds lookup

* Handle no filters

* Fix tests and some errors

* Fix context menu issue

* (Poorly) enable scrolling, fix onClose to function

* Remove highlighting, use legacy key, fix casing

* fix filtering to handle non-simple data

* Fix linter, add translations

* Fixing tests~~

* Move to explore drawer and fix some more tests

* Kinda fix drawer stuff?

* Fix remaining card tests

* Fix test

* Fix tests

* Partially fix starred tab tests

* Fix integration tests

* Fix remaining tests 🤞

* Add a test and a clarifying comment behind a couple hooks

* Remove unused code

* Fix button styling and fix animation (but break width)

* Make Drawer using parent width (100%)

* Fix tests and some small catches

* Add tests for selectExploreDSMaps selector

---------

Co-authored-by: Piotr Jamroz <pm.jamroz@gmail.com>
2024-04-09 07:36:46 -05:00
Andreas Christou
3420e942ac Chore: Update RPM docs to include beta release references (#85753)
* Update RPM docs to include beta release references

* andreas/update-installation-docs/ run lint

* Don't number lists

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
2024-04-09 14:11:22 +03:00
Laura Fernández
00be24d6b3 Chore: Create handleReduceMotion util function to manage animations (#85785) 2024-04-09 13:10:37 +02:00
kay delaney
02096c4e22 Dashboards: Add isViewing to mustKeepProps (#85748) 2024-04-09 10:33:59 +00:00
idafurjes
5c4a2de59b Add FolderUID for library elements (#83819)
* Revert "Revert "Add FolderUID for library elements" (#83776)"

This reverts commit 0dfdb2ae47.

* Fix bug, dashboard id and library element fodler_id are the corresponding values
Dashboard table hold both dahboards and tables
2024-04-09 12:27:43 +02:00
Santiago
2e7cc68394 Alerting: Remove CleanUp method from the Alertmanager (#85650)
Alerting: Remove Cleanup method from the Alertmanager
2024-04-09 12:13:27 +02:00
Ashley Harrison
4b5b738646 Time Zones: Fix relative time when using UTC timezone (#85637)
add UTC case to e2e test + let UTC pass through to moment.tz
2024-04-09 09:54:57 +01:00
Leonor Oliveira
8d75dcec04 Add better logging to the dual writer (#85594)
* Make Legacy a public field

* Remove duplicated Create method

* Add logger to dualwriter

* Use klog

* Add comment about selecting the dual writer

* Update pkg/apiserver/rest/dualwriter_mode1.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* Update pkg/apiserver/rest/dualwriter_mode2.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* Update pkg/apiserver/rest/dualwriter_mode3.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* Update pkg/apiserver/rest/dualwriter_mode3.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* Update pkg/apiserver/rest/dualwriter_mode2.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

* Create error var

* Lint

---------

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>
2024-04-09 10:54:09 +02:00
Misi
4c12d77b98 Util: Support parsing and splitting strings enclosed in quotes in util.SplitString (#85735)
* Support parsing string enclosed in quotation marks in util.SplitString

* Support mixed formats of string list
2024-04-09 10:35:57 +02:00
Hugo Kiyodi Oshiro
b200156a01 Plugins: Show update buttons when instance version is different (#85486) 2024-04-09 10:32:34 +02:00
Laura Fernández
0bdb96552a Grafana UI: Modal - Replace HorizontalGroup with Stack (#85756) 2024-04-09 10:31:11 +02:00
Erik Sundell
0f1b65a7ad Grafana E2E: Add deprecation notice and update docs (#85619)
* add deprecation notice

* update docs

* Update packages/grafana-e2e/README.md

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>

---------

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2024-04-09 10:10:19 +02:00
Ivan Ortega Alba
df72cfd38e Dashboard: Move "add" actions into a dropdown (#85776)
* Move all add actions into a dropdown

* Hide alerts rules when editing

* Hide fav icon when editing
2024-04-09 11:09:37 +03:00
Sonia Aguilar
e234d098e9 Alerting: Get oncall metada only when we have alert manager configuration data (#85622)
* Get oncall metada from url in settings only when we have alert manager configuration

* Add test in useContactPointsWithStatus hook

* Fix tests
2024-04-09 09:02:44 +02:00
Gábor Farkas
8a15ed42ae PostgreSQL: Fix the verify-ca mode (#85530)
postgres: fix the verify-ca problem
2024-04-09 08:39:45 +02:00
Torkel Ödegaard
4f290ebf99 DataTrails: Do not create a new VizPanel every activation (#85693) 2024-04-09 08:39:26 +02:00
Yuri Tseretyan
509691b416 Alerting: Introduce authorization logic for operations on silences (#85418)
* extract genericService from RuleService just to reuse it later
* implement silence service

---------

Co-authored-by: William Wernert <william.wernert@grafana.com>
Co-authored-by: Matthew Jacobson <matthew.jacobson@grafana.com>
2024-04-08 18:02:28 -04:00
Dai Nguyen
9d7e758e04 Update teamHttpHeaders casing (#85767)
teamHTTPHeaders does not work.
teamHttpHeaders is the correct syntax for the feature toggle.
2024-04-08 22:24:19 +01:00
Isabel Matwawana
8014665ab5 Docs: g11 preview whats new fixes (#85759)
* Made style fixes to intro

* Updated upgrade guide menu title

* Commented Explore metrics docs link back in
2024-04-08 15:08:40 -04:00
Yuri Tseretyan
e167a435c8 Alerting: Add description of a new role (#85218) 2024-04-08 15:01:15 -04:00
Eve Meelan
3721682a02 PR to document Explore Metrics (previously datatrails) (#85212)
* text dump

* initial edits

* more edits

* added more info, made edits

* first draft

* removed some commented out content

* final edits

* made requested changes

* feature name change

* missed a metrics explore - fixed

* ran prettier

---------

Co-authored-by: lwandz13 <larissa.wandzura@grafana.com>
2024-04-08 13:24:32 -05:00
Dan Cech
5dfe4cf407 Storage: Watch tests (#85496)
* basic watch tests working

* refactor to read previous event within poller

* add watch test files

* cleanup

* watch tests passing

* debug cleanup

* special handling for canceled context

* cleanup

* fix wire

* fix sqlite_sequence cleanup issue

* move watch tests to integration, wait for provisioned dashboards

* handle context deadline exceeded and eof errors

* add comment about sleep
2024-04-08 11:42:12 -04:00
Pepe Cano
0672bdf397 Alerting docs: add Template variable interpolation section in file provisioning (#84106)
* Alerting docs: add `Template variable interpolation` section in file provisioning

* Update docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

Co-authored-by: Matthew Jacobson <matthew.jacobson@grafana.com>

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Matthew Jacobson <matthew.jacobson@grafana.com>
2024-04-08 17:34:26 +02:00
Laura Fernández
0e12f60ee6 Grafana UI: FilterPill.story.tsx - Replace HorizontalGroup with Stack (#85736) 2024-04-08 17:21:58 +02:00
Gábor Farkas
ccd13bf08e postgres: add tests to handle multiple statements in the same query (#85523)
* postgres: add tests to handle multiple statements in the same query

* better test explanation
2024-04-08 16:56:23 +02:00
Isabel Matwawana
fe3b6d3c5e Docs: add youtube links to g11 preview what's new (#85738)
* Added youtube links

* Commented scenes video out
2024-04-08 10:55:48 -04:00
Torkel Ödegaard
edf36d9ec0 DashboardScene: Fixes issue with mobile responsive layout due to repeated grid item class (#85731) 2024-04-08 16:55:35 +02:00
owensmallwood
37d39de36d Storage Api: Add metrics (#85316)
* Storage server runs own instrumentation server if its the sole target. Starts adding some sample metrics for now.

* adds metric for failed optimistic locks

* refactors metrics registration to own method on service for testability. Adds tests.

* Register sql storage server metrics from within the service

* fixes test

* troubleshooting drone test failures. Maybe timing when starting instrumentation server?

* Waits until instrumentation server has started. Updates tests.

* defer wont get called unless theres an error. removing.

* wait for instrumentation server to be running

* linter - close res body

* use port 3000 for metrics and removes test metric inc() call

* fixes test - updates port

* refactors module server to provide an instrumentation server module when there is no ALL or CORE target provided and running as single target

* make instrumentation server a dependency of all modules that do not run their own http server

* adds module server test

* adds tests for instrumentation service and removes old tests that aren't needed

* ignore error in test

* uses helper to start and run service

* when running wait on ctx done or http server err

* wait for http server

* removes println

* updates module server test to be integration test

* require no error in goroutine

* skips integration test when GRAFANA_TEST_DB not defined

* move http server start into start, verify returned content

* make test error when run fails

* try waiting longer and see if drone tests pass

* update integration test mysql creds to match drone

* go back to only waiting half second

* debug log drone mysql connection string

* use same db connection config as drone

* try using same hostname as drone

* cant use localhost as mysql hostname in drone tests. Need to parse it from the cfg db connection string

---------

Co-authored-by: Dan Cech <dcech@grafana.com>
2024-04-08 08:35:01 -06:00
Isabel Matwawana
3d9a0c8398 Docs: fix link text (#85701)
* Wording fixes

* Reverted change to this section
2024-04-08 10:07:27 -04:00
Pepe Cano
441118e506 Alerting docs: include hcl format in /alert-rules/:uid/export endpoint (#85432) 2024-04-08 16:01:18 +02:00
Mitch Seaman
3865b8c980 Docs: Re-order features and update intro in Grafana 11.0-preview What's new (#85702)
* Re-order features and update intro in Grafana 11.0-preview What's new

* Removed title casing

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-04-08 10:00:15 -04:00
Dan Cech
9c46e71d5a Storage: Support continue at specified resource version (#84868)
* support continue at specified resource version

* detect whether list continue pages need to use entity_history, remove BatchRead, expand selectQuery helper

* refactor continue token handling

* fix tests, increase history chunk size

* lint fix
2024-04-08 09:57:02 -04:00
Juan Cabanas
d0312af571 PublicDashboards: Footer fix for scenes (#85684) 2024-04-08 09:44:27 -03:00
kgeckhart
5aa56c9380 CloudWatch: Add a Performance Insights and other missing metrics to aws/rds (#85680) 2024-04-08 14:00:28 +02:00
kay delaney
1b376546e2 Dashboards: Fix issue with changing panel JSON from edit view (#85717) 2024-04-08 12:49:38 +01:00
Andreas Christou
a7f7f4787d Docs: Remove excess text in changelog (#85720)
Remove unnecessary wording
2024-04-08 12:19:46 +01:00
grafana-delivery-bot[bot]
7078347d0f Changelog: Updated changelog for 11.0.0-preview (#85718)
* Changelog: Updated changelog for 11.0.0-preview

* changelog: fix style issues

---------

Co-authored-by: grafanabot <bot@grafana.com>
Co-authored-by: Matias Chomicki <matyax@gmail.com>
2024-04-08 12:56:22 +02:00
Laura Fernández
f3fb083381 GrafanaUI: DateTimePicker - replace HorizontalGroup with Stack component (#85663) 2024-04-08 12:44:01 +02:00
Ivan Ortega Alba
d983629650 Detect folder changes when saving a dashboard (#85378) 2024-04-08 13:06:50 +03:00
Santiago
6a75a8f354 Alerting: Update grafana/alerting and use Upsert for creating silences (#85676)
* Alerting: Update grafana/alerting and use Upsert for creating silences

* go.work.sum

* change error message in tests for silences (save -> upsert)
2024-04-08 11:46:14 +02:00
Mikel Vuka
724517dc40 Provisioning: datasources auto deletion (#83034) 2024-04-08 11:45:39 +02:00
antonio
4b4bdc7c33 docs: email contact point (#85627)
* docs: email contact point

* applied suggestions

* admonition fix

* small typo fix

* applied suggested changes

* formatted text / applied suggestions
2024-04-08 11:35:45 +02:00
Ashley Harrison
b3cff22db3 Chore: Improve types (#85659)
* fixing some types

* more type fixes

* few more

* last couple

* tiny tweak
2024-04-08 09:56:21 +01:00
Karl Persson
46ee87a0fc Authn: Ignore context.Canceled errors when logging auth errors (#85707)
Ignore context.Canceled errors when logging auth errors
2024-04-08 10:25:24 +02:00
Pepe Cano
d7ad7c6169 Alerting docs: update disable_provenance TF mute_timing (#85692) 2024-04-08 10:20:51 +02:00
Sofia Papagiannaki
ebf68f34fe Chore: Fix spelling (#85435)
Fix spelling
2024-04-08 11:08:43 +03:00
Sofia Papagiannaki
88be09420c Chore: Fix test to retry fetching provisioned dashboard until is in place (#85408)
Retry fetching provisioned dashboard until is in place
2024-04-08 10:47:34 +03:00
dependabot[bot]
2fd6bc65c7 Bump slackapi/slack-github-action from 1.24.0 to 1.25.0 (#85052)
Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 1.24.0 to 1.25.0.
- [Release notes](https://github.com/slackapi/slack-github-action/releases)
- [Commits](https://github.com/slackapi/slack-github-action/compare/v1.24.0...v1.25.0)

---
updated-dependencies:
- dependency-name: slackapi/slack-github-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-08 09:36:15 +02:00
Victor Marin
432936cdcf Bump scenes to v4.5.4 (#85681)
bump scenes to v4.5.4
2024-04-08 09:07:20 +02:00
Erik Sundell
170131a4f6 Chore: Use latest version of plugin-e2e (#85669)
use latest plugin-e2e
2024-04-08 08:54:27 +02:00
Isabel Matwawana
fb1afa0c34 Docs: What’s new & Upgrade guide & Breaking changes v11.0-preview (#84603)
* Updated index pages and added 11.0 breaking changes, upgrade guide, and what's new pages

* Removed references to 10.4

* Added draft breaking changes

* docs: grafana11-upgrade: postgres (#84671)

* docs: grafana11-upgrade: postgres

* fix typos

Co-authored-by: Sriram <153843+yesoreyeram@users.noreply.github.com>

* improved text

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* improved text

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* improved text

---------

Co-authored-by: Sriram <153843+yesoreyeram@users.noreply.github.com>
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Added internal note

* Added what's new items

* Added more breaking changes'

* Copy edits

* Revert "docs: grafana11-upgrade: postgres" (#85580)

Revert "docs: grafana11-upgrade: postgres (#84671)"

This reverts commit d766d734c2.

* Removed internal link and moved PR link

* Added new entries

* Made fixes

* Updated name

* Copy edits

* Fixed links and minor copy edits

* Removed link to Cloud What's new

* Added OSS what's new link

* Fixed spelling of GitHub

* Added Explore Logs and updated Explore Metrics

---------

Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
Co-authored-by: Sriram <153843+yesoreyeram@users.noreply.github.com>
2024-04-07 22:56:23 -04:00
Tim Levett
c47be316eb Reducers: Add in basic Percentile Support (#85554) 2024-04-06 06:44:49 -05:00
Adela Almasan
5f0ca1429b Annotations: Fix annotation title (#85614) 2024-04-05 17:39:10 -05:00
Nathan Marrs
391d2ba7c7 Canvas: Limit connection vertex radius to numeric fields (#85420) 2024-04-05 16:09:19 -06:00
Eduardo Franscisco Pedrosa
d23918fd95 Fixes #81465: Exclude-null now it's getting initialized properly by default (#85613)
* fix #81465 (FilterByValueTransformerEditor.tsx): Exclude-null now it's getting initialised properly by default

The default matcher of a new filter by value condition has been changed from greater to isNull. Added a file FilterByValueTransformerEditor.test.tsx with a test to confirm this change

* update tests and run linter

* filter-by-values-exclude-null/ update test definition

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
2024-04-05 11:24:57 -06:00
David Harris
cd05568459 docs: add missing viz types to index (#85400)
* docs: add missing viz types to index

* prettier

* Update _index.md

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* fix merge mistake

* fix cloud links

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-04-05 18:04:04 +01:00
github-actions[bot]
ad904d7b42 I18n: Download translations from Crowdin (#85641)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-05 19:18:31 +03:00
Leonard Gram
1332d8ba24 Cloudmigration: Sets the runID correctly when saving (#85661)
Sets the runID correctly instead of setting it to the same as the migration id.
2024-04-05 18:03:45 +02:00
Isabella Siu
58f32150c2 CloudWatch: Improve metric label parsing (#84835) 2024-04-05 11:57:56 -04:00
Bogdan Matei
9d44c8e8cf Add auto to refresh picker (#85584) 2024-04-05 18:31:40 +03:00
Josh Hunt
040966220e E2C: Show latest migration run instead of the first (#85666)
* running a new migration should only invalidate the list of migration runs

* correctly select the last migration result, not the first
2024-04-05 16:28:57 +01:00
Fabrizio
45c56d208f CI: Skip CodeQL analysis if repo is not grafana/grafana (#85652) 2024-04-05 17:10:18 +02:00
Adela Almasan
883a41e8aa Canvas: Add support for line animation (#85556) 2024-04-05 17:53:40 +03:00
Juan Cabanas
8e8bfae761 Scenes: Add PDF tab in share modal (#85541) 2024-04-05 11:29:13 -03:00
Alexander Weaver
03114e7602 Alerting: Return better error for invalid time range on alert queries (#85611)
* Return better error for invalid time range

* drop comment
2024-04-05 09:20:21 -05:00
Laura Fernández
9af259a0d6 GrafanaUI: ConfirmModal - replace HorizontalGroup with Stack and Box component (#85660) 2024-04-05 16:11:53 +02:00
Misi
8796d2d307 Auth: Convert SetDefaultOrgHook to PostLoginHook (#85649)
* Convert SetDefaultOrgHook to PostLoginHook
2024-04-05 16:03:51 +02:00
Alexander Weaver
734d0111cb Alerting: Export pure function to convert query results to alert results (#85393)
Exported pure function to convert query results to alert results
2024-04-05 08:57:31 -05:00
Laura Fernández
362c95c606 Grafana UI: Button.story.tsx - Replace HorizontalGroup and VerticalGroup with Stack and Box (#85644) 2024-04-05 15:45:55 +02:00
Eve Meelan
d8407c78db Update CODEOWNERS file for Explore docs (#85656)
Update CODEOWNERS
2024-04-05 06:29:27 -07:00
Erik Sundell
6716276463 Chore: Remove flaky test (#85645)
remove flaky test
2024-04-05 14:29:32 +02:00
Karl Persson
b1fc0861f1 AuthN: reset email verified on email change (#85643)
* AuthN: reset email verified on email change

Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
2024-04-05 14:19:12 +02:00
Laura Fernández
cd43308dc9 Betterer: improve the deprecated layout components usage tracking (#85648) 2024-04-05 13:40:46 +02:00
timo
3294411027 NodeGraph: Fix configuring arc colors with mixed case field names (#84609)
* NodeGraphPanel: Fix case comparison for arc field colors

When a field has mixed case in the data frame, the options editor
offers it with mixed case as well, so the options will have the field
with mixed case as well, making the comparison in utils.ts
applyOptiosToFrames fail, leaving the arcs uncolored.

This version of the commit allows mismatched cases between field in
dataframe and options panel in case users were depending on this
behavior in their dashboards.

* Update comment

---------

Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
2024-04-05 13:39:07 +02:00
Santiago
c7573bb0f7 Alerting: Make retention period configurable for the notification log (#85605)
* Alerting: Make retention period configurable for the notification log

* update sample.ini

* fix outdated comment (on disk -> kvstore)

* skip checking cyclomatic complexity for ReadUnifiedAlertingSettings
2024-04-05 12:25:43 +02:00
Josh Hunt
b19c246a39 Revert "Chore: Update glob-stream" (#85642)
Revert "Chore: Update glob-stream (#85107)"

This reverts commit a61cac9d51.
2024-04-05 13:22:13 +03:00
Karl Persson
ba41954854 Email: trigger email verification flow (#85587)
* Add email and email_verified to id token if identity is a user

* Add endpoint to trigger email verification for user

* Add function to clear stored id tokens and use it when email verification is completed
2024-04-05 12:05:46 +02:00
Laura Fernández
661aaf352e GrafanaUI: IconButton - replace HorizontalGroup and VerticalGroup with Stack component (#85639) 2024-04-05 12:03:57 +02:00
kay delaney
9efbf142a8 Scenes: Persist changes made in edit mode to save model (#84320) 2024-04-05 12:32:28 +03:00
Torkel Ödegaard
e0be7d29ea Users and ServiceAccount table: UX consistency updates (#85624)
UsersTable: UX concistency updates
2024-04-05 11:31:16 +02:00
Torkel Ödegaard
49a3a95dd1 DashboardScene: Fixes panel edit issue with clearing title not resulting in hover header mode (#85621)
* PanelEditor: Update hoverHeader state when changing panel title

* refactor test and remove duplicate
2024-04-05 11:24:25 +02:00
kay delaney
6a53864f7a LibraryPanelRBAC: Fix issue with importing dashboards containing library panels (#83980) 2024-04-05 10:11:02 +01:00
Josh Hunt
5ce8b60878 E2C: Resources table refactor (#85585)
* E2C: Resources table refactor

* update swagger spec with enums

* use native resource item type, rather than our mock type

* unit tests for resources table

* update spec
2024-04-05 10:08:42 +01:00
Giuseppe Guerra
c033a15aaa Angular deprecation: Prefer local "angularDetected" value to the remote one (#85571)
* Angular deprecation: Prefer local value to remote

* Update tests
2024-04-05 10:45:11 +02:00
Agnès Toulet
3ef23a5e3e Scenes: Add modal ref to custom tabs (#85602) 2024-04-05 09:28:10 +02:00
Kyle Cunningham
0a7abe4445 Transformations: Update transformation disabled UI presentation (#85566)
* Update transformation UI presentation

* codeincarnate/transformation-disable/ lint

* Update opacity

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
2024-04-05 04:57:57 +07:00
Isabel Matwawana
6fb1da42bf Docs: add xychart to panel config docs (#85615)
* Added xy chart to panel config docs

* Fixed typo
2024-04-04 17:06:20 -04:00
Nick Richmond
559fab9dc6 Prometheus: Fuzzy search for metric names in Code Mode (#85396)
* perf: limit metric names in Code Mode suggestions

* feat: configurable metric names limit

* feat: code mode autocomplete info/disclaimer

* chore: put new functionality behind new feature toggle

* refactor: avoid type assertions

* refactor: avoid explicit `any`

refactor: type guards

* refactor: type guards

* chore: add testdata results

* fix: add missing feature toggle guard

* perf: prefer array access to `Array.prototype.at`

* test: add missing config override

* test: refactor for brevity & clarity

* perf: avoid unnecessary mapping

* chore: undo testdata changes

* fix: use correct limit; perf optimizations

* refactor: avoid unnecessary `async`s

* types: simplify

* test: add missing tests

* fix: avoid hardcoding

* test: update mock path

* docs: fix typo

style: remove formatting artifact

style: remove formatting artifact

style: remove formatting artifact

* fix: event scope regression

* style: refactor for clarity

* refactor: prefer `useCallback` to in-effect handler

* refactor: simplify & broaden `filter`

* refactor: rename file to keep with conventions

* chore: mirror Prometheus package changes in app

* refactor: prefer no `@ts-ignore`

* chore: update betterer results

* docs: use type in TSDoc `@link` without `@ts-ignore`

* test: add missing provider

* test: fix jest mock path

* fix: display disclaimer in empty input case
2024-04-04 23:38:23 +03:00
Isabel Matwawana
0d7834c7f7 Docs: Add xy chart docs (#81980)
* Added xy chart page and added link to main visualizations page

* Added options

* Updated Axis options section and added doc ref links

* Added new shared files for tooltip and legend options and added them to xy chart

* Added Other visualization options section, docs refs, and updated Cloud links

* Fixed links

* Added option descriptions, hero image, content notes, and removed placeholder heading

* Apply suggestions from code review

* Added collapsible sections for series mapping modes

* Added Cloud links and fixed link text

* Added notes

* Updated series mapping descriptions

* Updated Auto series mapping options

* Updated manual section and restructured page

* Copy edits

* copy edits

* Added description

* Clarifying supported data info

* Copy edits from review

* Fixed typo

* Copy edits

* Fixed links
2024-04-04 16:30:14 -04:00
Ihor Yeromin
5a53041c49 Canvas: Fix SVG element border clipped (#85590)
fix(canvas): canvas svg element border clipped
2024-04-04 20:08:24 +02:00
Isabel Matwawana
8957fd2b3b Docs: Fix canvas G11 updates (#85024)
* Removed features not yet completed

* additional doc updates

* Fixed codespell error

* Fixed video embed link

* Fixed punctuation

* updated to do note

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-04-04 13:59:33 -04:00
Drew Slobodnjak
d91dbbbef5 Canvas: Render selected connection last (#85492) 2024-04-04 10:30:54 -07:00
Alexander Weaver
623ee3a2be Alerting: Only append /alertmanager when sending alerts to mimir targets if not already present (#85543)
Don't append alertmanager if not present
2024-04-04 11:58:41 -05:00
Dave Henderson
5687243d0b Feature Flags: use FeatureToggles interface where possible (#85131)
* Feature Flags: use FeatureToggles interface where possible

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

* Replace TestFeatureToggles with existing WithFeatures

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

---------

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
2024-04-04 12:22:31 -04:00
Kyle Cunningham
67045aa90c Table Panel: Update background colors to respect transparency (#85565)
* Update background colors to respect alpha

* codeincarnate/fix-table-background/ lint

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
2024-04-04 22:55:37 +07:00
Konrad Lalik
9b4f88c6f6 Alerting: Improve template preview (#84798)
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-04-04 18:37:24 +03:00
Alex Khomenko
b08285962d Saga-icons: Add svgs (#85522)
* Add svgs

* Fix output dir
2024-04-04 17:57:22 +03:00
Gilles De Mey
d3ee3c0a24 Alerting: Evaluation quick buttons (#85010)
Co-authored-by: Tom Ratcliffe <tomratcliffe@users.noreply.github.com>
2024-04-04 16:24:35 +02:00
kay delaney
b5c33c540c Dashboards: Removes descending z-index assignment for grid items (#85563) 2024-04-04 14:49:42 +01:00
Isabella Siu
ba3acf83bf CloudWatch: Clarify match exact tooltip and docs (#85095)
* CloudWatch: Clarify match exact tooltip

* Update docs

* fix typo

* ida comment and removing a couple "you"s

* present tense
2024-04-04 09:48:48 -04:00
Dominik Prokop
44376f8039 PanelEditor: Fix runtime error caused by panels not installed in Grafana instance (#85592)
FIx runtime error casued by panels non installed in Grafana instance
2024-04-04 15:45:27 +02:00
Laura Fernández
2e8fb1aa56 Betterer: Track deprecated layout components usage (#85574) 2024-04-04 15:40:52 +02:00
antonio
ad5ade71bb telegram url fix (#85583)
* alerging-get-started: update

* fixed url issues

* pretty

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-telegram.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-04-04 15:14:22 +02:00
Serge Zaitsev
faa1244518 Chore: Replace sqlstore with db interface (#85366)
* replace sqlstore with db interface in a few packages

* remove from stats

* remove sqlstore in admin test

* remove sqlstore from api plugin tests

* fix another createUser

* remove sqlstore in publicdashboards

* remove sqlstore from orgs

* clean up orguser test

* more clean up in sso

* clean up service accounts

* further cleanup

* more cleanup in accesscontrol

* last cleanup in accesscontrol

* clean up teams

* more removals

* split cfg from db in testenv

* few remaining fixes

* fix test with bus

* pass cfg for testing inside db as an option

* set query retries when no opts provided

* revert golden test data

* rebase and rollback
2024-04-04 15:04:47 +02:00
Gilles De Mey
c41b0a71cf Alerting: Add state history polling interval (#84837) 2024-04-04 14:06:15 +02:00
Arati R
2232fe033b Storage: Add mode-specific dual writers (#85551)
* Set up skeleton dual writers for each mode
* Add Create functionality to each of the mode-specific DualWriters
* Add switch for selecting DualWriter
2024-04-04 14:02:51 +02:00
Dominik Prokop
32b6ef9d15 Feature toggle to add filter and group by variables to all new dashboards by default (#85531)
* Add feature toggle

* Add filters and group by variables by default to all new dashboards

* Nits

* Tests

* Rename feature toggle to newDashboardWithFiltersAndGroupBy
2024-04-04 13:25:21 +02:00
Eunice Kim
4e60f44d98 Chore: Fix trailing spaces in prometheus min step (#85507)
Fix trailing spaces in prometheus min step
2024-04-04 13:14:49 +02:00
Tobias Skarhed
f387cff836 Accessibility: Default Icon to aria-hidden (#84362)
* Icon: aria hide icon, unless a label is set

* Update doc

* Remove weird auto import

* Fix fialing tests

* Add recommendation for Tooltip

* Consider more aria attributes to support Tooltip

* Handle tabIndex and aria-hidden case

* Add comment about aria-label
2024-04-04 12:07:50 +02:00
Leonor Oliveira
01afca9d99 Add setup and spies for the dual writer (#85568)
* Add setup and spy client for dual writer

* Get rid of reset method
2024-04-04 11:46:16 +02:00
kay delaney
9537de26a5 Scenes: Fix issue where annotations with same name wouldn't render properly (#85489)
Closes #85457
2024-04-04 10:45:24 +01:00
Leon Sorokin
130d561924 Chore: Restore some removed UI components to reduce BC surface area (#85546) 2024-04-04 04:31:28 -05:00
ismail simsek
9c0f9f6ba4 Fix sending maxDataPoints as string (#85561)
* make sure maxDataPoints is a number

* add migration for maxDataPoints

* remove migration
2024-04-04 11:11:18 +02:00
Giordano Ricci
6ffc08f429 Explore: Set X-Cache-Skip to true for query requests (#85460)
Explore: set X-Cache-Skip to true for query requests
2024-04-04 09:44:06 +01:00
renovate[bot]
6fd8c4afcf Update dependency @grafana/scenes to v4.3.0 (#85569)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-04 11:32:07 +03:00
Karl Persson
504870f10a Auth: Decouple client and hook registration (#85084) 2024-04-04 09:33:00 +02:00
Marcus Efraimsson
bdc492b96c Chore: Upgrade grafana-plugin-sdk-go (#85562) 2024-04-04 08:07:29 +03:00
github-actions[bot]
801d19d816 I18n: Download translations from Crowdin (#85553)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-04 04:52:30 +00:00
Todd Treece
c01531dc79 K8s: Use tracing handler from component-base (#85560) 2024-04-04 00:39:09 +03:00
Tristan
77133ac9c1 CloudWatch: Fix SageMaker MBP namespace typo (#85557) 2024-04-03 15:50:09 -04:00
Kyle Cunningham
075976bea6 Transformations: Add applicability function to group to nested table (#85501)
* Add applicability function to group to nested table

* codeincarnate/group-to-nested-cond/ run linter

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
2024-04-04 02:44:52 +07:00
Michael Mandrus
ddf5fbe591 CMS: Update permissions required to use endpoints (#85555)
* try different perms

* fix compile issue

* remove ac dependency

* remove dependency
2024-04-03 22:43:48 +03:00
Josh Hunt
aad79c9400 E2C: Start connecting on-prem to real apis (#85527)
* E2C: Start connecting on-prem to real apis

* actually run the migration

* show resources

* basic dashboards resources

* show dashboard title

* remove console logs

* cleanup 1

* i18n

* disconnect

* i18n

* restore type

* use fixed format

* fix
2024-04-03 13:47:02 -04:00
Tom Ratcliffe
0ec48cfdbd Add success toast for rule update back in 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
d585a5bc88 Rename tag for combined alert rules 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
1fcb264c87 Add InfoPausedRule back to alert detail view 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
20a1955026 Reuse StateTag for Paused state 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
0e87adbc97 Remove await from dispatch 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
ff8203a6cf Forward ref to StateTag so it can work with Tooltip 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
fb40c09eaf Reuse existing mock user method 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
2ca5e43a65 Remove superfluous alert from pause text 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
30471c340a Use verbose mutation from RTKQ for better IDE experience 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
28572102cf Use produce for pause payload generation and return early 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
12eeda5b7d Hide alert update success toast 2024-04-03 18:38:49 +01:00
Gilles De Mey
fbe43100aa add paused badge 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
30699dabec Move repeated Paused message into component 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
31fb80b29a Move MenuItemPaused to components folder 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
1e54899c6d Remove unneeded type 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
b037236b9c Add tag invalidation to updateRule mutation
...so the alert detail view updates appropriately
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
9ca2f7bece Add pause/resume logic to menu items on Alert detail view 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
7d80373b5e Move repeated menu item logic for pausing rules into separate component 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
b84962ef3f Update tests to use existing mock server approach 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
5fbca0962e Fix import/export messing with Policy tests 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
bd06607a51 Fix typing check for paused rules in table 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
820f4f0ef5 Remove console logs, fix aggregate errors and add missing endpoint 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
8c313add00 Add test for resuming a paused alert rule 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
fef481efc3 Add mock data for paused rules 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
5505b72998 Add first pass of basic mock server for alerting usage 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
72a3142c3b Add pause/resume button with mutation for saving alert rule changes 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
9a416b8241 Fix potential display of "0" on rule details tab
When looking at the details tab of an alert rule, the last evaluation could potentially display as `0` due to falsy checks on React rendering
2024-04-03 18:38:49 +01:00
Tom Ratcliffe
a94c3d63cc Update utils for determining paused state of a rule 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
7fd9cbbfb5 Export alerts limit for reuse when re-fetching rules list 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
1a5d227e05 Hide "firing for time" if a rule is paused 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
93fd11fe86 Update alert state tag to display Paused as its own "state" 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
a881e7e404 Display info message on rule detail view when a rule is paused 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
31be1231cf Move max width from rule editor parent 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
d0dcb72683 Display info message on rule form when a rule is paused 2024-04-03 18:38:49 +01:00
Tom Ratcliffe
e5a6dff801 Add mutation method to update a rule 2024-04-03 18:38:49 +01:00
William Wernert
cad8190a91 Alerting/Annotations: Return nothing from historian store if filtering by tags and matchAny is false (#85488)
* Return nothing from historian store if filtering by tag
2024-04-03 13:01:13 -04:00
Leonard Gram
a457ab3192 Cloudmigration: decode json data (#85548)
* decode get

* decode bytes

* response

* .

* linter

* quick fixes

---------

Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com>
2024-04-03 18:47:49 +02:00
Ihor Yeromin
e4c92483dc Canvas: Fix ellipse migration (#85482)
* fix(canvas): ellips migration
2024-04-03 19:29:17 +03:00
Tim Levett
a5707788ba Transformations - make substring and not substring transformer case insensitive. (#84699)
* make substring and not substring transformer case insensitive

* timlevett/case-insensitive/ run linter

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
2024-04-03 11:11:09 -05:00
Jean-Philippe Quéméner
7cfd470c91 fix(alerting): only expose metrics if executing alerts (#85512) 2024-04-03 17:18:02 +02:00
kay delaney
85127464a3 Scenes: Fix issue where unsaved changes prompt is shown when quickly adding panel to new dashboard (#85518)
Closes #84577
2024-04-03 15:39:01 +01:00
Señor Performo - Leandro Melendez
f6a94837c5 Docs: add YouTube video link and description (#85484)
* Update index.md Adding YouTube video link and description

Added a short description about the video and added the video to the page.

* Update docs/sources/panels-visualizations/visualizations/logs/index.md

Some edits went in. All nice :)

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Removed repetition

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-04-03 10:33:50 -04:00
Pepe Cano
a56a842d5f Alerting docs: fix docs/shared API to render the current version (#85526) 2024-04-03 16:04:58 +02:00
Fabrizio
027329d4b6 CI: Skip analysis steps if not needed (#85532) 2024-04-03 17:00:13 +03:00
Simon Podlipsky
61e4cfac65 Docker: Fix missing go dependencies (#85441)
ci: fix missing go dependencies

```
 > [go-builder 11/25] RUN go mod download:
0.303 go: cannot load module pkg/build/wire listed in go.work file: open pkg/build/wire/go.mod: no such file or directory
------
Dockerfile:64
--------------------
  62 |     COPY pkg/promlib/go.* pkg/promlib/
  63 |
  64 | >>> RUN go mod download
  65 |     RUN if [[ "$BINGO" = "true" ]]; then \
  66 |           go install github.com/bwplotka/bingo@latest && \
  ```
2024-04-03 14:01:09 +01:00
brendamuir
847d2b01b6 Alerting docs: note on images in notifications for cloud (#85529) 2024-04-03 14:32:56 +02:00
antonio
561838a87d convert telegram blog post to doc (#85231)
* convert telegram blog post to doc

* pretty

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-telegram.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* applied suggested changes

* fixed typo

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-04-03 14:28:50 +02:00
Simon Podlipsky
708ee9f9ee Docker: Do not run apk on non-alpine distros (#83361) 2024-04-03 13:21:27 +01:00
Josh Hunt
e08b5bd456 E2C: Fix Swagger spec for createMigration post body (#85525)
* E2C: Fix Swagger spec for CreateCloudMigration post body

* actually, don't rename that type
2024-04-03 11:59:50 +00:00
idafurjes
b885da09da CloudMigrations: Implement migrations API (#85348)
* Implement run migration endpoint

* Refactor RunMigration method into separate methods

* Save migration runs fix lint

* Minor changes

* Refactor how to use cms endpoint

* fix interface

* complete merge

* add individual items

* adds tracing to getMigration

* linter

* updated swagger definition with the latest changes

* CloudMigrations: Implement core API handlers for cloud migrations and migration runs (#85407)

* implement delete

* add auth token encryption

* implement token validation

* call token validation during migration creation

* implement get migration status

* implement list migration runs

* fix bug

* finish parse domain func

* fix urls

* fix typo

* fix encoding and decoding

* remove double decryption

* add missing slash

* fix id returned by create function

* inject missing services

* finish implementing (as far as I can tell right now) data migration and response handling

* comment out broken test, needs a rewrite

* add a few final touches

* get dashboard migration to work properly

* changed runMigration to a POST

* swagger

* swagger

* swagger

---------

Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com>
Co-authored-by: Leonard Gram <leo@xlson.com>
Co-authored-by: Michael Mandrus <41969079+mmandrus@users.noreply.github.com>
2024-04-03 13:36:13 +02:00
Ivan Ortega Alba
89638238e5 DashboardScene: Detect changes when live is enabled from settings (#85409)
* Adapt the code to the new live timer API

* Update scenes
2024-04-03 14:22:10 +03:00
Laura Fernández
4845b1e3c6 ServiceAccount : use InteractiveTable (#85203) 2024-04-03 13:12:23 +02:00
Ieva
beb15d938b RBAC: Fix access checks for interactions with RBAC roles in hosted Grafana (#85485)
* don't check global permissions for cloud instances

* linting
2024-04-03 11:44:16 +01:00
Ivan Ortega Alba
eb3d088645 DashboardScene: Implement autofit panels (#85221) 2024-04-03 13:36:29 +03:00
Sonia Aguilar
034931f9e1 Alerting: Set mimir implementation in jsonData by default when creating a new a… (#85513)
Set mimir implementation in jsonData by default when creating a new alert manager data source
2024-04-03 12:31:49 +02:00
Dominik Prokop
b4dc79401b DashboardScene: Fix explore to dashboard flow (#85140)
* DashboardScene: Fix explore to dashboard flow

* Tests

* Make sure dashboard is in edit mode when adding from explore

* Allow discarding changes when coming from explore

* Tests
2024-04-03 12:06:38 +02:00
github-actions[bot]
80b8b86c00 I18n: Download translations from Crowdin (#85515)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-03 12:18:42 +03:00
Gábor Farkas
8159e1db3a Revert "Postgres: Switch the datasource plugin from lib/pq to pgx (#8… (#85509)
Revert "Postgres: Switch the datasource plugin from lib/pq to pgx (#83768)"

This reverts commit ecd6de826a.
2024-04-03 11:02:22 +02:00
Josh Hunt
ffb5d23a13 E2C: Hook Cloud Receiver-side up to real CreateCloudMigrationToken API (#85490)
E2C: Hook Cloud Reciever-side up to real CreateCloudMigrationToken API
2024-04-03 08:55:38 +00:00
Giordano Ricci
ff39067605 Explore: Make Explore breadcrumb clickable (#85437)
* Explore: make Explore breadcrumb a link to an empty Explore page

* update tests
2024-04-03 09:24:04 +01:00
antonio
826fa2f2db alerging-get-started: update (#85434)
* alerging-get-started: update

* Update index.md

* Update index.md
2024-04-03 10:18:25 +02:00
Andres Martinez Gotor
9c7237891c Plugins: Expose ExternalService in request config (#85187) 2024-04-03 09:22:34 +02:00
Leon Sorokin
1522499c4a VizTooltips: Remove remaining old bits (#85500)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-04-02 19:32:01 -05:00
Leon Sorokin
d601acac3a VizTooltips: Remove old tooltips and annotations (#84420)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-04-02 15:32:46 -05:00
Marcus Efraimsson
c9ab4e3a9e DS apiserver: Fix resource path (#85494) 2024-04-02 20:09:18 +02:00
Nathan Marrs
b47f8b429e Canvas: Hide background image size editor options for SVG based elements (#85419) 2024-04-02 09:04:36 -07:00
renovate[bot]
a360cf0c85 Update dependency @types/node to v20.12.2 (#85480)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-02 18:47:56 +03:00
Jo
5340a6e548 Auth: Extended JWT client for OBO and Service Authentication (#83814)
* reenable ext-jwt-client

* fixup settings struct

* add user and service auth

* lint up

* add user auth to grafana ext

* fixes

* Populate token permissions

Co-authored-by: jguer <joao.guerreiro@grafana.com>

* fix tests

* fix lint

* small prealloc

* small prealloc

* use special namespace for access policies

* fix access policy auth

* fix tests

* fix uncalled settings expander

* add feature toggle

* small feedback fixes

* rename entitlements to permissions

* add authlibn

* allow viewing the signed in user info for non user namespace

* fix invalid namespacedID

* use authlib as verifier for tokens

* Update pkg/services/authn/clients/ext_jwt.go

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

* Update pkg/services/authn/clients/ext_jwt_test.go

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

* fix parameter names

* change asserts to normal package

* add rule for assert

* fix ownerships

* Local diff

* test and lint

* Fix test

* Fix ac test

* Fix pluginproxy test

* Revert testdata changes

* Force revert on test data

---------

Co-authored-by: gamab <gabriel.mabille@grafana.com>
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2024-04-02 17:45:15 +02:00
renovate[bot]
ac6e51c94a Update dependency @types/react to v18.2.74 2024-04-02 15:27:41 +00:00
Josh Hunt
33dd204466 E2C: Generate RTK Query API slice from swagger spec (#85463)
* add deps and script

* add codegen rtk api clise for cloud migration

* rename all the mock exports to mock

* Reset changes to package.json and yarn.lock

* codeowners
2024-04-02 18:01:33 +03:00
Will Browne
257cc98062 Datasources: Remove unused functions (#85473)
* cleanup unused funcs

* remove more stuff
2024-04-02 16:19:52 +02:00
Oscar Kilhed
9ba9cbf300 Bump scenes to 4.1.2 (#85470)
* Bump scenes to 4.1.2

* Fix tests after fixing the sorting in rows

---------

Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com>
2024-04-02 16:15:53 +02:00
wissy
4205491788 Docs: Fix wrong word for tempo example config (#85046)
Update configure-tempo-data-source.md

Replace traceToProfiles with tracesToProfiles
2024-04-02 15:37:20 +02:00
linoman
147154d2ea Remove AuthConfigUIAdminAccess (#85452)
* Remove AuthConfigUIAdminAccess
2024-04-02 15:02:28 +02:00
renovate[bot]
22bae345d6 Update dependency react-zoom-pan-pinch to v3.4.4 2024-04-02 12:38:39 +00:00
renovate[bot]
4fa6754b42 Update dependency i18next-browser-languagedetector to v7.2.1 2024-04-02 11:59:40 +00:00
Leonard Gram
4e89267603 Cloudmigration: swagger for the cloudmigration api (#85255)
* swagger for create token

* tried to fix errors

* update swagger annotations

* update swagger annotations

* update api GetMigrationList to return the *Response directly

* clean up previous commit

---------

Co-authored-by: joshhunt <josh@trtr.co>
2024-04-02 13:57:42 +02:00
renovate[bot]
bc77745da6 Update dependency glob to v10.3.12 2024-04-02 11:06:51 +00:00
renovate[bot]
09d4b814f4 Update dependency @types/react-dom to v18.2.23 2024-04-02 10:48:52 +00:00
ismail simsek
64236a3923 InfluxDB: Fix measurement interpolation on visual query builder (#85423)
* fix measurement interpolation

* fix unit test

* fix unit test 2
2024-04-02 12:29:49 +02:00
renovate[bot]
b0aa575643 Update dependency @types/eslint to v8.56.7 2024-04-02 10:24:48 +00:00
Bogdan Matei
582b252488 Add optional queries parameter to DataSourceGetTagValuesOptions (#85436)
Add optional `queries` parameter to `getTagKeysOptions`
2024-04-02 13:22:37 +03:00
renovate[bot]
06a22005e8 Update dependency @grafana/plugin-e2e to v0.25.1 (#85451)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-02 12:43:31 +03:00
Tobias Skarhed
c75bc5a6cf Keybindings: Replace mod+h as help shortcut with ? (#85449)
HelpModal: Remove cmd+h as help shortcut
2024-04-02 11:41:46 +02:00
renovate[bot]
5a416731f4 Update Yarn to v4.1.1 (#85350)
* Update Yarn to v4.1.1

* add new yarn version

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-04-02 10:25:30 +01:00
Andres Martinez Gotor
d2ca95d304 Update plugin SDK to v0.219.0 (#85438) 2024-04-02 10:22:24 +02:00
imalasong
81fd8f4126 Makefile: refactoring .PHONY (#85440) 2024-04-01 18:09:17 +03:00
Haris Rozajac
f8275b52aa Explore: Add padding to query content in query inspector (#85309)
Add padding
2024-03-31 17:41:44 -06:00
Dominik Prokop
fa9e139123 DashboardScene: Fix issues with dashboard empty state (#85406)
Fix

Tests

Make sure edit mode is on when adding panel/library panel

Co-authored-by: kay delaney <kay@grafana.com>
2024-03-30 18:34:26 +01:00
Nathan Marrs
368fec9b97 Canvas: Fix ellipse datalink example in gdev dashboard (#85398) 2024-03-29 23:53:27 -07:00
Drew Slobodnjak
3703196e24 Canvas: Add flowchart example to gdev (#85417)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-03-29 23:00:33 +02:00
Will Browne
22fe7b067c Plugins: Set correct PDC config values for proxy requests (#85412)
pass appropriate values
2024-03-29 20:17:05 +02:00
Ryan McKinley
dd6c8732b3 Scopes: Add basic integration tests (#85351)
Co-authored-by: Kyle Brandt <kyle@grafana.com>
2024-03-29 16:12:28 +02:00
Ihor Yeromin
20eac8d264 Canvas: Fix styles applying glitch on element type changing (#85184)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-03-29 08:10:44 +02:00
Leonard Gram
383ebb2bc4 Cloudmigration: create migration (#85386)
* Cloudmigration: create migration

* fix drone build

* lint fix

* fix unit test

---------

Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com>
2024-03-29 01:55:27 +01:00
Leon Sorokin
db6b51cb88 OptionsPicker: Allow storing raw input even when matches exist (#84790) 2024-03-29 01:18:02 +02:00
Ihor Yeromin
726a666059 Canvas: Fix SVG items background glitch (#85078) 2024-03-29 00:26:59 +02:00
Fredrik Ekre
e9969e3542 Auth: add Dex example to generic OAuth2 documentation (#84744)
This patch adds an example configuration for setting up generic OAuth2
authentication using [Dex IdP](https://dexidp.io/).
2024-03-28 15:36:00 -05:00
Tristan
58b583f0c5 AWS DataSource: Fix namespaces in sagemaker metrics (#85357) 2024-03-28 22:11:11 +02:00
Michael Mandrus
5a5f76ae0a CloudMigrations: Add instance metadata to auth token (#85381)
* update how tokens are passed around

* rename structs
2024-03-28 15:02:54 -04:00
Charandas
0f1151964c K8s: standalone authenticator that allows a type of downstream forwarding (#85130) 2024-03-28 20:52:28 +02:00
Brendan O'Handley
3c28a3d494 Graphite: second function as another function argument parsing error fix (#85224)
* update language around query editor parsing issues

* add special handling for second function arguments in divideSeriesLists

* additional check for first argument as series(string) and not a function
2024-03-28 12:22:54 -05:00
Carl Bergquist
a71dfe806a Scopes: Create binding per relationship (#85332)
scopes: create binding per relationship

Signed-off-by: bergquist <carl.bergquist@gmail.com>
2024-03-28 13:22:21 -04:00
linoman
e4250a72db JWT: Find login and email claims with JMESPATH (#85305)
* add function to static function to static service

* find email and login claims with jmespath

* rename configuration files

* Replace JWTClaims struct for map

* check for subclaims error
2024-03-28 17:25:26 +01:00
Darren Janeczek
18f3c7188b datatrails: handle "single" layout when switching to "all" labels (#85373)
* fix: handle "single" layout when switching to "all" labels
2024-03-28 18:13:43 +02:00
Dominik Prokop
63a941472e DashboardScene: Fix access to dashboard settings views (#85289)
* DashboardScene: Fix access to dashboard settings views

* Review
2024-03-28 16:40:39 +01:00
Ivan Ortega Alba
233f119037 Panel: Description display event is reported multiple times (#85283) 2024-03-28 16:39:18 +01:00
Haris Rozajac
649c456eab Explore: Nested Content Outline (#80688)
* indentation levels

* Highlight parent section when child is selected

* Fix context, add rotation to toggle button

* Merge single child logic; fix styling

* Fix collapsed logic, make elipsis work, reorganize for better readability;

* Add connector

* Tooltip placement

* Update tests so they test components the same way users would interact with them

* Clean up indendation levels

* Support collapsing logic for multiple section; highlight all items in a section of an active child - parent is active only when section is collapsed and child inside of it is active

* Simplify making ellipsis work

* Show tooltip if the text overflows in expanded mode

* The whole button container should have same background when section is expanded in mini view

* Fix a bug where root items were not being sorted by document position

* Update query order when query rows are changed through dragging and dropping

* Fix the issue where chaning the title of a query row would remove the query
2024-03-28 09:06:52 -06:00
Karl Persson
73e426b081 User: email verification completion (#85259)
* TempUser: Include InvitedById in TempUserDTO

* Extract email verfication completion flow to service
2024-03-28 16:05:33 +01:00
Marie Cruz
4a3140a0aa docs: update histogram visualization (#85125)
* docs: update histogram visualization docs

* docs: updates to histogram visualization

* Apply suggestions from code review

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Fixed typo I introduced

* docs: add youtube video

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-03-28 10:45:45 -04:00
Victor Marin
30c9307539 Scenes: Fix row crash when removing a panel from it (#85339)
* Fix row crash when removing a panel from it

* fix tests

* fix tests
2024-03-28 16:45:33 +02:00
Andreas Christou
697a18737d Azure/GCM: Update filterQuery methods to carry out migrations (#85355)
Update filterQuery methods to carry out migrations
2024-03-28 14:40:27 +00:00
Dominik Prokop
ae9a4b6467 DashboardScene: Fix constant variable not being hidden after creation (#85196) 2024-03-28 15:29:48 +01:00
Galen Kistler
0c78d80ef1 Loki: Fix test flake (#85356)
attempt to fix flake
2024-03-28 15:22:44 +01:00
Darren Janeczek
137061d1d5 datatrails: fix stability issues between conflict between browser history, URL sync, and trail history (#85134)
* fix: conflict between browser history and trail history

- ensure the back button or url changes don't generate trail steps
- ensure label breakdown TextLinks which appear on the summary tab work in embedded mode
2024-03-28 09:59:16 -04:00
butkovv
b039995a4e BrowseDashboards: Add subpath to URLs on Browse Dashboards page (#84992)
* BrowseDashboards: Add subpath to URLs on Browse Dashboards page

* comment

* use existing config

* comment

---------

Co-authored-by: joshhunt <josh@trtr.co>
2024-03-28 15:15:05 +02:00
Leonor Oliveira
29c76b98d4 Revert "Update ephemeral instances workflow to get version from package.json" (#85347)
Revert "Update ephemeral instances workflow to get version from package.json …"

This reverts commit dda1531952.
2024-03-28 13:56:48 +01:00
Kim Nylander
fe802f6d88 [DOC] Clarify compatible log stores for traces to logs (#85314)
* Clarify compatible log stores for traces to logs

* Fixes from prettier
2024-03-28 07:37:27 -05:00
renovate[bot]
b155bc11a1 Update dependency @swc/helpers to v0.5.8 (#85327)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-28 12:34:29 +00:00
Isabel Matwawana
5f38455f31 Docs: fix availability note (#85315)
Fixed availability note
2024-03-28 08:33:38 -04:00
Torkel Ödegaard
e90b87589f ModalsContext: Unify modals context and manager (#84916)
* ModalsContext: Unify modals context and manager

* Clear on location change

* fixes

* Update

* use generics to avoid anys

---------

Co-authored-by: joshhunt <josh@trtr.co>
2024-03-28 13:26:57 +01:00
Santiago
ce57ce4125 Docs: Add capture_timeout option (#85340) 2024-03-28 13:19:08 +01:00
lean.dev
5b147d0847 CloudMigration: Add service to list all migrations (#85308) 2024-03-28 08:50:31 -03:00
Tobias Skarhed
a44aa342a7 Templating: Link label to input (#85329)
Pass id to VariableInput
2024-03-28 12:45:43 +01:00
renovate[bot]
40c88596d8 Update dependency yaml to v2.4.1 (#85335)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-28 13:36:15 +02:00
github-actions[bot]
97c3c51e52 I18n: Download translations from Crowdin (#85257)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-28 13:28:07 +02:00
renovate[bot]
f5cd840dd0 Update dependency webpack-assets-manifest to v5.2.1 (#85331)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-28 11:18:45 +00:00
Ryan McKinley
45d1766524 K8s/Frontend: Add generic resource server and use it for playlists (#83339)
Co-authored-by: Bogdan Matei <bogdan.matei@grafana.com>
2024-03-28 14:01:24 +03:00
antonio
85a646b4dc fix internal url in tutorials (#85273)
* fix internal url in tutorials

* prettyfied

* fix: update broken links

---------

Co-authored-by: mdcruz <marie.descruz@gmail.com>
2024-03-28 10:51:55 +00:00
renovate[bot]
d227621217 Update dependency eslint-plugin-jsdoc to v48.2.2 2024-03-28 10:49:11 +00:00
renovate[bot]
4854f10ee2 Update dependency @grafana/aws-sdk to v0.3.3 (#85326)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-28 10:03:38 +00:00
renovate[bot]
ad1b60e651 Update dependency stylelint-config-sass-guidelines to v11.1.0 (#85291)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-28 09:52:23 +00:00
Joey
8c770a283e Tempo: Show <1ms when durationMs not in response (#85267)
* Show <1ms when durationMs not in response

* Update tests
2024-03-28 09:47:49 +00:00
renovate[bot]
50a57bb88c Update dependency webpack to v5.91.0 (#85302)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-28 09:38:15 +00:00
Joey
df39fc54a6 Tempo: Check for liveEnabled before trying to stream (#85173)
* Check for liveEnabled before attempting to stream

* Add tests

* Range const

* Update test text
2024-03-28 09:19:21 +00:00
Karl Persson
5dd98a0fd5 RBAC: handle partially resolved scopes (#85323)
* RBAC: handle partially resolved scopes

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2024-03-28 10:08:07 +01:00
Jack Westbrook
c6a489cfd8 Chore: Bump Nx to 18.1.x (#85185)
* chore: bump nx to latest version

* build(plugin-configs): reduce wonky webpack output when logged via nx

* revert(plugin-configs): remove infrastructureLogging property
2024-03-28 09:36:35 +01:00
Torkel Ödegaard
d290aaff46 DashboardScene: Support time region migrations (#84147)
* DashboardScene: Support time region migrations

* Update

* Update

* Update

* fix

* Fix lock

* fix tests

* Fix migrations test

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-03-28 07:39:26 +01:00
Adela Almasan
e5d1cd8ea5 AngularMigration: Allow dashboard by dashboard migration (#84100) 2024-03-27 16:24:24 -05:00
Leon Sorokin
1ffeb7c365 StateTimeline: Fix data links causing unrendering of string fields (#85260) 2024-03-27 13:19:13 -05:00
Dave Henderson
08d603e660 ci: Stop running ephemeral instances workflow when not needed (#85306)
Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
2024-03-27 14:17:31 -04:00
renovate[bot]
39e91e2984 Update dependency msw to v2.2.13 2024-03-27 17:36:20 +00:00
Will Browne
1a0ac381eb Plugins: Send PDC file paths and contents for backwards compatibility (#85287)
* send paths and contents

* go work sync
2024-03-27 18:19:11 +01:00
renovate[bot]
2f18148da2 Update dependency @types/react to v18.2.73 2024-03-27 17:15:47 +00:00
Brendan O'Handley
d4a68d6662 Prometheus: Use correct logic for frontend package feature flag (#85294)
use correct logic for frontend package feature flag
2024-03-27 11:57:00 -05:00
Darren Janeczek
f850b00a92 datatrails: avoid double scrollbar with new viz tooltips (#85197)
fix: avoid double scrollbar
2024-03-27 12:50:02 -04:00
Kyle Brandt
136f8e6f0c Scopes: Add Filtering for ScopeDashoardBinding and Update Prometheus for ScopeFilterOperator Changes (#85284) 2024-03-27 11:39:55 -04:00
renovate[bot]
7e1cd4397a Update dependency stylelint to v16.3.1 (#85286)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-27 15:38:44 +00:00
renovate[bot]
a6fcbd1eb2 Update dependency react-zoom-pan-pinch to v3.4.3 (#85263)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-27 15:37:39 +00:00
kay delaney
618cf8e5a1 Dashboards: Fix issue where long ad-hoc values broke UI (#85073)
Closes #69285
2024-03-27 15:11:59 +00:00
renovate[bot]
7febba947e Update dependency @grafana/scenes to v4.0.4 2024-03-27 14:51:02 +00:00
Dan Cech
ef26fe95dc Storage: GuaranteedUpdate fix & other improvements (#85206)
make GuaranteedUpdate work when ignoring not found errors, increase poll frequency, fix Delete
2024-03-27 10:38:49 -04:00
Darren Janeczek
2ecc1bb646 datatrails: hide "add to filter" button when there is no label value to add to filter (#85270)
fix: hide add to filters button when it won't work
2024-03-27 16:33:21 +02:00
Señor Performo - Leandro Melendez
d4953f4a1f Added YouTube video to index.md on Time Series (#85188)
* Added YouTube video to index.md on Time Series

Added a brief description and the YouTube link for the Time Series video.

* Update index.md

Did quick fix

* Update index.md

Found double space, removed, hope PR goes through

* Update docs/sources/panels-visualizations/visualizations/time-series/index.md

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-03-27 10:32:56 -04:00
renovate[bot]
986b078d79 Update dependency sass to v1.72.0 (#85272)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-27 14:32:02 +00:00
Karl Persson
152cb47692 AuthN: Add IsAuthenticatedBy to identity interface and replace checks (#85262)
Add IsAuthenticatedBy to identity interface and replace checks
2024-03-27 15:22:13 +01:00
Will Browne
cd912367b3 Plugins: Pass PDC info as file paths (#85239)
* pass filepaths

* fix test
2024-03-27 15:21:05 +01:00
Torkel Ödegaard
61e67423ff LLMApp: Skip 404 requests to know if the plugin exists (#85226)
---------

Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com>
2024-03-27 14:55:48 +01:00
Kyle Brandt
fe209fdf7c Revert "Scopes: Add more BE filtering (field selectors) (#85169)" (#85264)
This reverts commit 222f93794d.
2024-03-27 15:47:48 +02:00
renovate[bot]
3049acd7d7 Update dependency react-hook-form to v7.51.2 (#85249)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-27 13:29:42 +00:00
renovate[bot]
e4a265f60c Update dependency jest-date-mock to v1.0.9 2024-03-27 13:25:09 +00:00
Andrej Ocenas
20e70838e3 NodeGraph: Fix possible metadata mismatch between nodes in graph (#85254) 2024-03-27 14:23:04 +01:00
Kyle Brandt
222f93794d Scopes: Add more BE filtering (field selectors) (#85169) 2024-03-27 13:10:49 +00:00
Kyle Brandt
d71266b8af QueryLibrary: Use default variable values in render (#84678) 2024-03-27 08:48:08 -04:00
Ashley Harrison
7ad2ec9665 EmptyState: use not-found empty state variant everywhere in core (#85007)
* use EmptyState component everywhere in core

* remove GrotNotFound core component

* update unit tests

* search -> not-found

* fix 3 more
2024-03-27 12:15:12 +00:00
Gilles De Mey
a574db6f64 Alerting: Fix removing nested policy (#85242) 2024-03-27 13:58:59 +02:00
Eve Meelan
cec25113f6 correct a url (#85245) 2024-03-27 04:58:07 -07:00
renovate[bot]
7640922d76 Update dependency diff to v5.2.0 (#85244)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-27 11:51:55 +00:00
renovate[bot]
c7b4427151 Update dependency date-fns to v3.6.0 (#85243)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-27 11:51:19 +00:00
Joao Silva
951d5b4e9f Storybook: Fix link to Saga (#85179) 2024-03-27 11:50:36 +00:00
Oscar Kilhed
b7156ef2c2 Dashboard scenes: Export isExpressionReference to be accessible from scenes (#85228)
Export isExpressionRef to be accessible from scenes
2024-03-27 12:35:06 +01:00
Tobias Skarhed
6248bdda48 Pa11y: Decrease error thresholds for PRs (#85178)
* Pa11y-pr: lower error thresholds

* Increase threshold for alerting
2024-03-27 12:29:54 +01:00
renovate[bot]
4cf0c8dfb2 Update dependency @grafana/plugin-e2e to ^0.25.0 (#85236)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-27 10:26:52 +00:00
renovate[bot]
176709683a Update dependency @grafana/faro-web-sdk to v1.5.0 (#85235)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-27 10:25:40 +00:00
renovate[bot]
9787f19dc3 Update dependency @grafana/faro-web-sdk to v1.5.0 (#85234)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-27 12:05:00 +02:00
renovate[bot]
e28fc1a4a5 Update dependency msw to v2.2.12 2024-03-27 09:58:56 +00:00
renovate[bot]
869a7c8e15 Update dependency xss to v1.0.15 (#85215)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-27 11:47:13 +02:00
renovate[bot]
7df1f84c63 Update dependency nanoid to v5.0.6 (#85205)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-27 09:29:32 +00:00
Gilles De Mey
90a1e8a82f Alerting: Make hovercard accessible (#85195) 2024-03-27 10:05:30 +01:00
Pablo
ace1cd6301 CloudWatch : Add missing AWS/ES metrics (#85210)
Adding missing ES metrics
2024-03-26 16:37:07 -04:00
Sven Grossmann
e284812796 Applinks: Adds grafana-lokiexplore-app to Explore -> Logs section (#85200) 2024-03-26 22:18:17 +02:00
renovate[bot]
e184520c61 Update dependency @types/react to v18.2.72 2024-03-26 20:04:28 +00:00
Kyle Cunningham
c9f9e94a6c Table Panel: Fix issue causing incorrect background coloring (#85121)
Fix color bug
2024-03-27 03:02:31 +07:00
renovate[bot]
6ed5e36fe5 Update dependency msw to v2.2.11 2024-03-26 18:56:59 +00:00
melGL
ac9523bcad Clarify AWS Auth instructions for Grafana Cloud users (#84312)
* Clarify "Grafana Assume Role" feature instructions for Grafana Cloud users

Following the recommendations provided in Support escalation https://github.com/grafana/support-escalations/issues/8277

* Update docs/sources/datasources/aws-cloudwatch/aws-authentication/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/datasources/aws-cloudwatch/aws-authentication/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

---------

Co-authored-by: Eve Meelan <81647476+Eve832@users.noreply.github.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-03-26 11:54:57 -07:00
renovate[bot]
98eec74483 Update dependency eslint-scope to v8.0.1 2024-03-26 17:28:14 +00:00
renovate[bot]
a256c064df Update dependency @types/react to v18.2.71 2024-03-26 17:26:50 +00:00
ismail simsek
fec7765111 Chore: InfluxQL stream parser improvements (#85041)
* don't iterate over first column as it is a time column already

* don't iterate over first column as it was handled earlier

* add more flexibility to run the commands

* Update pkg/tsdb/influxdb/influxql/converter/converter.go

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

---------

Co-authored-by: Nick Richmond <5732000+NWRichmond@users.noreply.github.com>
2024-03-26 19:25:03 +02:00
Sven Grossmann
c80b31a0d4 Loki: Remove API restrictions on resource calls (#85191)
Loki: Remove API restrictions
2024-03-26 18:15:35 +01:00
renovate[bot]
1513b0cab1 Update dependency @kusto/monaco-kusto to v10.0.18 2024-03-26 17:02:35 +00:00
renovate[bot]
1df15a3a4c Update dependency @floating-ui/react to v0.26.10 (#85181)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-26 16:39:24 +00:00
renovate[bot]
af3e453068 Update dependency @glideapps/glide-data-grid to v6.0.3 (#85189)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-26 16:36:20 +00:00
Benoit Tigeot
6f38ac6615 Alerting: Reduce set of fields that could trigger alert state change (#83496)
We want to avoid too much change of alert state based on change on
alert's fields. For that we ignore some fields from the diff.
2024-03-26 12:35:30 -04:00
Julien Duchesne
2188516a21 Alerting: Fix receiver inheritance when provisioning a notification policy (#82007)
Terraform Issue: grafana/terraform-provider-grafana#1007
Nested routes should be allowed to inherit the contact point from the root (or direct parent) route but this fails in the provisioning API (it works in the UI)
2024-03-26 12:31:59 -04:00
Jo
da40158fed Auth: Improve org role sync debugging (#85146)
add login to the context of the logger
2024-03-26 17:22:10 +01:00
renovate[bot]
5146896264 Update dependency @kusto/monaco-kusto to v10 (#81382)
* Update dependency @kusto/monaco-kusto to v10

* match types + update mocks

* Add missing esModule

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
2024-03-26 16:10:06 +00:00
kay delaney
08ef6e1a42 Scenes: Fix crash when searching panel options (#85180)
Closes #81883
2024-03-26 14:55:54 +00:00
Carl Bergquist
b214b07695 Scopes: Name relationship objects *binding (#84955)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
Co-authored-by: Bogdan Matei <bogdan.matei@grafana.com>
2024-03-26 15:52:12 +01:00
Karl Persson
c39b9b2cbe EmailVerification: Generate emails after rename (#85175) 2024-03-26 15:50:11 +01:00
renovate[bot]
96c626d3d3 Update dependency @msagl/parser to v1.1.18 (#85138)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-26 16:46:35 +02:00
grafana-delivery-bot[bot]
ee4ac983b2 Changelog: Updated changelog for 10.2.6 (#85171)
* Changelog: Updated changelog for 10.2.6

* run prettier

---------

Co-authored-by: grafanabot <bot@grafana.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-03-26 14:07:40 +00:00
Eve Meelan
54270dff36 Get started with alerting fixes for publish (#85158)
* Rename alerting-get-started.md to index.md

* edits

* edits

* prettier

* Update docs/sources/tutorials/alerting-get-started/index.md

Co-authored-by: tonypowa <45235678+tonypowa@users.noreply.github.com>

---------

Co-authored-by: tonypowa <tonypowa@gmail.com>
Co-authored-by: tonypowa <45235678+tonypowa@users.noreply.github.com>
2024-03-26 06:59:01 -07:00
linoman
4e5bff0ada Auth Drawer: Use redux store to load settings (#85110)
* use actions instead of importing the backend service

* Replace the test render for redux-rtl
2024-03-26 14:56:31 +01:00
grafana-delivery-bot[bot]
da1ef0e1fa Changelog: Updated changelog for 10.1.9 (#85167)
Co-authored-by: grafanabot <bot@grafana.com>
2024-03-26 13:39:48 +00:00
Ryan McKinley
e5cf863973 Prometheus: Create jsonschema spec (#85077) 2024-03-26 16:36:39 +03:00
grafana-delivery-bot[bot]
b47dc7e8ac Changelog: Updated changelog for 10.0.13 (#85163)
Co-authored-by: grafanabot <bot@grafana.com>
2024-03-26 13:09:53 +00:00
Mihai Doarna
6ddced7ba8 SSO: add the missing fields to the okta provider (#85152)
* add the missing allowSignUp field to okta provider

* add autoLogin to okta
2024-03-26 14:45:45 +02:00
Andrej Ocenas
aba65747c9 Nodegraph: Fix issue with rendering single node (#84930)
Fix for single node graph case
2024-03-26 13:43:43 +01:00
grafana-delivery-bot[bot]
dd93d9958d Changelog: Updated changelog for 9.5.18 (#85159)
Co-authored-by: grafanabot <bot@grafana.com>
2024-03-26 12:37:21 +00:00
Alex Khomenko
d105323f15 SaveDashboardForm: Remove deprecated Form usage (#84172)
* SaveDashboardForm: Remove deprecated Form usage

* Update
2024-03-26 14:14:17 +02:00
Alex Khomenko
0f6858709b Saga-icons: Switch to ESM (#84875) 2024-03-26 13:58:25 +02:00
Chris Bedwell
b4ed72f1b6 Tooltip / Toggletip content link styling: Remove global a element selector inside tooltips (#84353)
* fix: remove global a tag styles inside tooltips

* corret inside / outside button references in toggletip test

* Remove code and pre styling rules from tooltipUtils
2024-03-26 11:47:12 +00:00
Andreas Christou
19159a89a2 SQLEngine: Use debug method instead of custom implementation (#85118)
Use debug method instead of custom implementation
2024-03-26 11:27:07 +00:00
Sven Grossmann
9a8ae3c932 Loki: Support custom X-Query-Tags header (#85123)
* Loki: Support custom `X-Query-Tags` header

* add comment
2024-03-26 13:08:09 +02:00
Alexander Zobnin
02606be3ed Access control: Improve annotation delete performance (#85068)
* Access control: Improve annotation delete performance

* simplify query string

* Refactor

* remove unnecessary join
2024-03-26 11:50:51 +01:00
Karl Persson
2f5e3023c2 IDFowrarding: ignore logging context canceled errors (#85141) 2024-03-26 11:36:44 +01:00
Sofia Papagiannaki
5ebf2d08f6 Provisioning: Fix regression when dashboardProvisioner is accessed before being initialised (#85011)
* Provisioning: Fix regression when dashboardProvisioner is accessed before being initialized

* Set dashboard provisioner in the provider
2024-03-26 12:32:56 +02:00
Torkel Ödegaard
d039a0a485 DataTrails: Fixes home page background issue to make Cards work better (#85055)
* DataTrails: Fixes home page background issue to make Cards work better

* Update DataTrailsHome.tsx
2024-03-26 10:39:56 +01:00
Dafydd
dda1531952 Update ephemeral instances workflow to get version from package.json (#85088)
* use the same value for GRAFANA_VERSION and HOSTED_GRAFANA_IMAGE_TAG

* update codeowners for these files
2024-03-26 09:24:48 +00:00
Gábor Farkas
3b7ee3a56b MySQL: snapshot tests (#84846)
mysql: add snapshot tests
2024-03-26 10:24:33 +01:00
Gábor Farkas
c835022861 postgres: improved tests (#84677)
* postgres: tests: better test aligning time-series results

* postgres: add snapshot test for a backward-compat code
2024-03-26 10:22:58 +01:00
Erik Sundell
28ecd83987 Datasources: Add fixed width to name field in config editor (#84970)
add fixed width to name field
2024-03-26 10:13:09 +01:00
renovate[bot]
d608faa9c1 Update dependency @grafana/scenes to v4.0.3 2024-03-26 08:53:45 +00:00
renovate[bot]
4b11877337 Update dependency rudder-sdk-js to v2.48.6 2024-03-26 08:26:04 +00:00
Jo
7649d93d17 AuthProxy: Fix missing session for ldap auth proxy users (#85090)
fix missing session for ldap auth proxy users
2024-03-26 09:24:24 +01:00
Darren Janeczek
5d477d711a datatrails: do not show the "le" label (#85114)
fix: do not show the "le" label
2024-03-26 09:00:25 +01:00
Ryan McKinley
4cda34ff7d Expressions: Create json schema for query types (#84032) 2024-03-26 06:58:56 +02:00
Darren Janeczek
2e06677240 datatrails: throttle the resetting of yaxis (#85117)
fix: throttle the resetting of yaxis
2024-03-25 19:33:57 -04:00
Darren Janeczek
7c03cc83c6 Datatrails: hide empty breakdown panels, improve loading status (#85028)
feat: hide empty breakdown panels, improve loading status
2024-03-25 18:56:03 -04:00
Todd Treece
d4e6b325bf Chore: Add github action to check go module updates (#84936) 2024-03-25 18:47:34 -04:00
Kyle Cunningham
154868e624 Table Panel: Fix image disappearing when datalinks applied (#84625)
* Fix link image disappearing

* Prettier

* i18n

* Fix offset to compensate for padding

* Prettier

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-03-26 04:13:24 +07:00
Todd Treece
dfe61db7a5 Scopes: Add type filter (#84866)
Co-authored-by: Kyle Brandt <kyle@grafana.com>
2024-03-25 16:45:32 -04:00
grafana-delivery-bot[bot]
99b5671fbe Release: Bump version to 11.1.0-pre (#85115)
"Release: Updated versions in package to 11.1.0-pre"

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2024-03-25 21:44:28 +02:00
Juan Cabanas
bb5c5f38db Scenes: Add reporting tab in share modal (#85086) 2024-03-25 16:37:00 -03:00
Gabriel MABILLE
5e48804364 RBAC: Fix slow user permission search query on MySQL (#85058)
* Bench testing search user perm

* Add BenchmarkSearchUsersPermissions_1K_1K

* Clarify benchmark searches by action prefix

* Make MySQL more efficient

* Move all filter options

* Expand after assignments union

* update comments
2024-03-25 19:11:17 +01:00
Ashley Harrison
4974a89316 Chore: update go version used in bump-version so it works with the new format (#85111)
update go version used in bump-version
2024-03-25 20:06:57 +02:00
Ieva
df40e13333 Public dashboards: fix public dashboard permissions so that annotations are displayed (#85091)
* fix public dashboard anonymous user permissions so they include the new annotation permissions

* test fix
2024-03-25 17:42:40 +00:00
Ashley Harrison
fb01ef749f Chore: fix go.mod format (#85108)
fix go.mod format
2024-03-25 19:19:12 +02:00
Josh Hunt
a61cac9d51 Chore: Update glob-stream (#85107) 2024-03-25 17:15:57 +00:00
Todd Treece
9684a9e39a Chore: Add depgaurd rules for sub-modules (#84084) 2024-03-25 17:15:36 +00:00
Charandas
dd7d4e2656 K8s: replace a noop certKey content func with actual if available (#84524) 2024-03-25 10:12:55 -07:00
Mihai Doarna
fad6dc4db1 SSO: fix reloading settings when a provider contains empty settings (#85102)
* fix reloading settings when a provider contains empty settings

* do not increment reloadFailures if settings are empty
2024-03-25 19:12:19 +02:00
Todd Treece
71c5070240 Chore: Run backend lint in PRs if .golangci.toml changes (#85106)
Chore: Run lint backend if .golangci.toml changes
2024-03-25 18:53:54 +02:00
ismail simsek
92f5a0305c Chore: Define promlib depguard rules (#85082)
* define promlib depguard rules

* add comment

* test: break linting on purpose

* fix linting

* simple change to trigger backend linting/build in CI pipeline
2024-03-25 17:32:56 +01:00
Marie Cruz
15dca45514 docs: update status history panel (#84939)
* docs: updates to status history panel documentation

* docs: updates to status history panel documentation

* Apply suggestions from code review

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* fix: linting issues

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-03-25 12:20:10 -04:00
Marie Cruz
34195ba854 docs: updates to stat panel documentation (#84814)
* docs: updates to stat panel documentation

* Apply suggestions from code review

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Made formatting and wording edit

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Isabel Matwawana <isabel.matwawana@grafana.com>
2024-03-25 12:14:46 -04:00
Marie Cruz
44ae127a6e docs: update text panel documentation (#84884)
* docs: update text panel

* Apply suggestions from code review

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-03-25 12:13:56 -04:00
Bruno
a2e21eac8c Cloud migrations: create endpoint to create an access token (#84690)
* fix merge conflicts

* make token expiration configurable
2024-03-25 12:43:28 -03:00
Charandas
e237b89fe7 K8s: skip invalid items in GetList when not invoked as part of SendInitialEvents (#85050) 2024-03-25 07:50:14 -07:00
Marcus Efraimsson
8f12fb94f9 Plugins: Factory for instantiating core plugin (#85047) 2024-03-25 15:41:26 +01:00
ismail simsek
6137c4e0a6 Chore: Bump golangci-lint v1.57.1 (#84998)
* bump golangci-lint v1.57.1

* update setting

* remove goconst

* fix linting issues

* prettier

* fix G601

* go mod tidy
go work sync
2024-03-25 15:28:24 +01:00
Ryan McKinley
e6fa367d02 k8s/query+ds: catch query errors, fix datasourceProvider and expose prometheus (#85071) 2024-03-25 17:22:34 +03:00
Karl Persson
2f3a01f79f OAuth: Make sub claim required for generic oauth behind feature toggle (#85065)
* Add feature toggle for sub claims requirement

* OAuth: require valid auth id

* Fix feature toggle description
2024-03-25 14:22:24 +01:00
idafurjes
e2f155f9f7 Grafana: define the api for the grafana cloudmigration api (not the csm api) (#84430)
* Add cloud migration endpoints

* Built auth into creating a migration.

* Added more detail to the migration result model

* goimports

* Update pkg/services/cloudmigration/api/api.go

Co-authored-by: lean.dev <34773040+leandro-deveikis@users.noreply.github.com>

* Update pkg/services/cloudmigration/api/api.go

Co-authored-by: lean.dev <34773040+leandro-deveikis@users.noreply.github.com>

---------

Co-authored-by: Leonard Gram <leo@xlson.com>
Co-authored-by: lean.dev <34773040+leandro-deveikis@users.noreply.github.com>
2024-03-25 13:30:47 +01:00
tonypowa
4be5eaa14f alerting: get started tutorial (#84669)
* first commit

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>

* second commit

* updated headings

* Update alerting-get-started.md

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* third commit

* Update alerting-get-started.md

* Update alerting-get-started.md

* Update alerting-get-started.md

* edited contact point - summary

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/tutorials/alerting-get-started/alerting-get-started.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* elaboration, formatting

* minor changes

* pretty

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-03-25 05:27:23 -07:00
Adam Bannach
d7f739c8e5 Fix InteractiveTable: React, less hooks rendered than previous render (#85043)
fix: react-hooks error if data length switches from above or below pageSize
2024-03-25 13:53:45 +02:00
Tom Ratcliffe
40e73f389f Add jest watch plugins for better experience filtering tests 2024-03-25 11:36:45 +00:00
Tom Ratcliffe
ebd191394a Add jest-watch-typeahead dev dependency
https://www.npmjs.com/package/jest-watch-typeahead
2024-03-25 11:36:45 +00:00
github-actions[bot]
82b82675f7 I18n: Download translations from Crowdin (#85006) 2024-03-25 10:59:46 +00:00
Serge Zaitsev
4d4c06b480 Chore: Vendor wire into pkg/build (#84637)
* vendor latest wire into pkg/build

* use vendored wire in builds

* fix wire import path

* remove wire from bingo

* also support google/wire import

* make prettier happy

* change package in tess

* add debug walk for drone

* add wire_gen in tests

* remove debug walk

* restore imports
2024-03-25 11:23:27 +01:00
Ashley Harrison
36ee1571b6 EmptyState: Rename "search" variant to "not-found" (#85062)
* rename "search" variant to "not-found"

* run i18n:extract
2024-03-25 09:55:48 +00:00
linoman
fc205db466 samlsettings: api integration (#84300)
* add strategy and tests

* use settings provider service and remove multiple providers strategy

* Move SAML strategy to ssosettings service

* Update codeowners file

* reload from settings provider

* add saml as configurable provider

* Add new SAML strategy

* rename old saml settings interface

* update saml string references

* use OSS license

* validate saml provider depends on license for List

* add tests for list rendering including saml

* change the licensing validation to service init

* replace service struct for provider
2024-03-25 10:54:45 +01:00
Karl Persson
c33bc819bc SigningKeys: Add added_at when creating new signing key (#85060) 2024-03-25 09:58:40 +01:00
Charandas
2f5be54252 Makefile: fix test-go to run all (#85048) 2024-03-25 10:49:36 +03:00
Oscar Kilhed
6c6b93d8e0 Dashboards: Fix an issue where the dashboard would unmount and then mount again causing requests to cancel under some circumstances (#85003)
* Fix issue where dashboard unmounts and mounts again causing requests to be canceled

* Fix tests, add test
2024-03-25 09:28:36 +02:00
Ryan McKinley
713970d00a SQLStore: Cleanup migrationLocking (#85054) 2024-03-25 10:09:15 +03:00
Charandas
3c42a2efd2 K8s: file storage - add sync around resource version (RV) management (#84694) 2024-03-23 23:58:48 -07:00
Brendan O'Handley
d084595211 Prometheus: Use frontend package in Prometheus DS with a feature toggle (#84397)
* add feature toggle usePrometheusFrontendPackage

* add feature toggle logic to Prometheus module

* use config editor with package and remove configOverhaul feature toggle

* update betterer because we will be removing other files as we replace with files from @grafana/prometheus

* fix exemplar ds picker selector

* add more description to ts-ignore

* remove go.work.sum change

* copy go.work.sum from main

* update go.work.sum after talking with ismail

* put back the promlib entry

---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-03-22 19:47:53 -05:00
Nathan Marrs
cdb64cb7eb Canvas: Address connection vertex bug (#85026) 2024-03-23 01:54:10 +02:00
Khushi Jain
076dd53a40 Chore: Remove gf-form from InfluxDB Annotation Query Editor (#84809)
Chore: Remove gf-form from Annotation Query Editor - Influx DB
2024-03-23 00:52:40 +01:00
Matthew Jacobson
0c3c5c5607 Alerting: Stop persisting silences and nflog to disk (#84706)
With this change, we no longer need to persist silence/nflog states to disk in addition to the kvstore
2024-03-23 00:37:33 +02:00
Yuri Tseretyan
48de8657c9 Alerting: Editor role can access all provisioning API (#85022) 2024-03-23 00:14:15 +02:00
George Robinson
87548968e9 Alerting: Update grafana/alerting to a4bb859 (#84815) 2024-03-22 22:03:13 +00:00
Lars Stegman
188aed05f9 Transformer: Config from Query: set threshold colours (#83366)
* Fix typo

* Create handler arguments

* Create handler arguments editor

* Create link in editor

* Add labels to arguments editor fields

* Create unit tests

* Hide "Additional settings" header when no additional settings possible

* Remove div

* Fix invalid DOM

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
2024-03-22 15:39:01 -06:00
Adela Almasan
5b0b8cb4bf DashboardAI: UX improvements (#84934) 2024-03-22 15:39:26 -05:00
Nathan Marrs
26473a0074 Canvas: Add "infinite" pan / zoom functionality (#84968)
* attempt at solving issue and resetting bounds to match panel content

* cleanup failed experiments

* add toggle for infinite pan - dont love naming but open to suggestions; clean up scene transform function

* add ability to "infinite" zoom (i.e. render more canvas via zooming out)

* slight refactor

* revert refactor as it broke things
2024-03-22 21:38:45 +01:00
Darren Janeczek
810c224039 datatrails: synchronize the range of the y axis for all breakdown panels (#84781)
feat: sync the yaxis of breakdown panels
2024-03-22 16:19:11 -04:00
Dominik Prokop
b6cea0d7fe VizPanelManager: Load default/last used data source if no data source specified for a panel (#84999) 2024-03-22 21:08:40 +01:00
Nathan Marrs
566cee7d6b Canvas: Add ability to rotate elements (#83295) 2024-03-22 13:00:50 -07:00
Isabel Matwawana
ae59ab2f5b Docs: canvas flowchart & rotation updates G11 (#84696)
* Added new connector functions and new shape elements

* Grouped basic elements, added element intro, moved element snapping info, and added subheadings for connectors section

* Copy edits and restructuring

* Add rotation

* Broke up sentence

* Added gif using midpoint controls

* ihm/180324-canvas-flowchart-features/ run linter

* Remove comment

* Removed extra line

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
2024-03-22 15:47:26 -04:00
Yuri Tseretyan
b9abb8cabb Alerting: Update provisioning API to support regular permissions (#77007)
* allow users with regular actions access provisioning API paths
* update methods that read rules
skip new authorization logic if user CanReadAllRules to avoid performance impact on file-provisioning
update all methods to accept identity.Requester that contains all permissions and is required by access control.

* create deltas for single rul e 

* update modify methods
skip new authorization logic if user CanWriteAllRules to avoid performance impact on file-provisioning
update all methods to accept identity.Requester that contains all permissions and is required by access control.

* implement RuleAccessControlService in provisioning

* update file provisioning user to have all permissions to bypass authz

* update provisioning API to return errutil errors correctly

---------

Co-authored-by: Alexander Weaver <weaver.alex.d@gmail.com>
2024-03-22 15:37:10 -04:00
Drew Slobodnjak
0b4830ccfd Canvas: Add corner radius option (#84873)
* Canvas: Add corner radius option

* Update connection radius logic

* Simplify angle calcs

* Simplify math to be a bit more clear and efficient

* Add checks for hyperbola behavior

* Prevent arc calcs if no radius

* Add comments for SOME clarity

* Add some more clarity to comments

* Fix linter issue

* Check for segment overlap for first vertex

* Update public/app/plugins/panel/canvas/components/connections/ConnectionSVG.tsx

* Add comment for calc clarity
2024-03-22 12:32:12 -07:00
Torkel Ödegaard
863a3d1c2c TeamsTable: Improve user experiance with links (#84973) 2024-03-22 20:27:50 +01:00
Sofia Papagiannaki
33b653534e SQLStore: Enable migration locking by default (#84983)
* Introduce new configuration for migration locking

* Remove feature toggle

* Fix test and turn it into an integration

* Fix docs
2024-03-22 21:22:29 +02:00
Matthew Jacobson
980b9a62c6 Alerting: Enable simplified routing FF by default (#84856) 2024-03-22 13:45:20 -04:00
Ezequiel Victorero
c57c033522 Snapshots: Viewers can not create a Snapshot (#84952) 2024-03-22 14:31:01 -03:00
ismail simsek
629a8808e0 Chore: Bump promlib v0.0.4 (#84882)
* Update the readme

* bump promlib v0.0.3

* update

* update

* use promlib v0.0.4
2024-03-22 18:28:22 +01:00
Tristan
78c6c7fef4 CloudWatch: Add additional AWS/SageMaker metrics (#85009)
add additional AWS/SageMaker metrics for customer
2024-03-22 10:14:21 -07:00
Andreas Christou
4855751d0d CloudMonitoring: Only run query if filters are complete (#85004)
* Only run query if filters are complete

- Update tests

* Fix tests
2024-03-22 19:06:51 +02:00
Yuri Tseretyan
e138ae3eb9 Alerting: Improve openAPI specification and docs for export endpoints (#85008) 2024-03-22 18:25:27 +02:00
Timur Olzhabayev
e9db9106c1 Chore: Disable angular support by default (#84738)
* Flipping angular support to disabled by default
2024-03-22 17:09:53 +01:00
Kyle Brandt
86a2a1a19b Prometheus: remove scope dependency (#84991)
* Prometheus: remove scope dependency
temp workaround

* depguard

* comment

* remove rules since they need a newer version of golangci-lint

---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-03-22 16:52:42 +01:00
Eric Leijonmarck
2f7fd729ef Auth: Enable case insensitive logins/emails by default (#84840)
* wip

* wip

* wip

* wip postgres tests
2024-03-22 16:45:18 +01:00
Leon Sorokin
d7fa99e2df XYChart: Refactor to new model (behind feature toggle) (#82499)
Co-authored-by: drew08t <drew08@gmail.com>
Co-authored-by: Ihor Yeromin <yeryomin.igor@gmail.com>
2024-03-22 10:44:37 -05:00
Nathan Marrs
7df8d6e8cb Canvas: Fix crash when trying to add wind turbine element (#84962) 2024-03-22 09:31:27 -06:00
ismail simsek
5c146c7832 InfluxDB: Fix querying with template variables without using regex operator (#84953)
* remove regex wrappers if the operator is not a regex operator

* fix import
2024-03-22 16:14:11 +01:00
chalapat
65c0669f01 Server: Reload TLS certs without a server restart (#83589)
* server: reload of grafana server certs when renewed without restart.

Signed-off-by: Rao, B V Chalapathi <b_v_chalapathi.rao@nokia.com>

* server: reload of grafana server certs when renewed without restart.

Signed-off-by: Rao, B V Chalapathi <b_v_chalapathi.rao@nokia.com>

* Update http_server.go

* Update docs/sources/setup-grafana/configure-grafana/_index.md

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

* Update http_server.go

Address the comments

* Update docs/sources/setup-grafana/configure-grafana/_index.md

Co-authored-by: Dan Cech <dan@aussiedan.com>

* Update http_server.go

Align the spaces

* Update http_server.go

* Update http_server.go

* Update pkg/api/http_server.go

Co-authored-by: Dan Cech <dan@aussiedan.com>

---------

Signed-off-by: Rao, B V Chalapathi <b_v_chalapathi.rao@nokia.com>
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
Co-authored-by: Dan Cech <dan@aussiedan.com>
2024-03-22 17:13:22 +02:00
Kyle Cunningham
658183d792 Table Panel: Fix hover regression (#84964)
Fix hover bug
2024-03-22 21:55:17 +07:00
Juan Cabanas
8d4ca72f2a PublicDashboards: Scene migration (#84409) 2024-03-22 11:48:21 -03:00
Ashley Harrison
a0bcc44b63 GrafanaUI: Add new EmptyState component (#84891)
* add empty search state component

* extract translations

* nicer prop spreading

* actually expose component in grafana-ui

* use requestAnimationFrame

* add rollup-plugin-svg-import

* move to a single EmptyState component with variants

* update docs

* remove CTA

* add some more prop documentation

* just use 1 svg
2024-03-22 14:46:32 +00:00
Ashley Harrison
f47916253c Chore: update webpack-dev-middleware (#85002)
update webpack-dev-middleware
2024-03-22 16:45:18 +02:00
github-actions[bot]
2ad1eef21f I18n: Download translations from Crowdin (#84912)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-22 14:36:52 +00:00
Eric Leijonmarck
bb792ff540 Auth: Remove oauth skip org role sync (#84972)
* remove oauth wide skip org role sync

* we are warning from config

* set it to false

* removed from config ini files and updated docs
2024-03-22 15:34:05 +01:00
Jean-Philippe Quéméner
f2c7023fe6 fix(alerting): use uid and not rand() in tests for title (#85001) 2024-03-22 16:26:09 +02:00
Santiago
a2facbecd4 Alerting: Implement ApplyConfig for remote primary mode (forked AM) (#84811)
* Alerting: Implement ApplyConfig for remote primary mode (forked AM)

* add TODO for saving the config hash in other config-related methods

* fix bad method receiver name (m -> am)

* tests

* add mutex

* remove sync loop
2024-03-22 15:17:41 +01:00
Darren Janeczek
08c24e4133 datatrails: feat: metadata for metric panels (#84872)
* feat: metadata for metric panels

* fix: missing import?

* fix: async await to get description first

- also add description to metric-name-only panels

* fix: change description, remove from main viz

* fix: remove import
2024-03-22 10:05:20 -04:00
Darren Janeczek
a2795f1291 datatrails: fix: only show datatrails link for timeseries dashboard panels (#84942)
fix: only show datatrails link for timeseries dashboard panels
2024-03-22 10:05:03 -04:00
Ezequiel Victorero
d2dd15e223 PublicDashboards: Change tab title (#84997) 2024-03-22 10:55:43 -03:00
Adam Bannach
16737c5b27 InteractiveTable: Add expand all to column (#84966)
* feat: add expand all to InteractiveTable

* chore: pr feedback; type tightening and better testing practice

* chore: pr feedback; type cleanup
2024-03-22 15:55:04 +02:00
Sofia Papagiannaki
369cb5b6eb Usage stats: Fix concurrency issue (#84993)
* Usage stats: Fix concurrency issue
2024-03-22 15:52:59 +02:00
Andre Pereira
93ca49b785 Explore Metrics: Show toast when bookmarking (#84987)
* Show toast notification when bookmarking a trail

* Copy change

* Move to LinkButton

* Secondary solid button
2024-03-22 15:33:50 +02:00
Karl Persson
f5692f06a5 FeatureToggles: Remove unused feature flag (#84988)
Remove unused flag
2024-03-22 14:30:58 +01:00
Laura Benz
e51a8c25d1 ReturnToPrevious: Fix e2e test (#84938)
refactor: remove some waiting for elements that seem to have been removed
2024-03-22 14:26:09 +01:00
Serge Zaitsev
df2d0574c1 Chore: Enable nestedFolders by default (#84631)
* Enable nestedFolders by default

* Make nestedFolders GA

Co-authored-by: Timur Olzhabayev <timur.olzhabayev@grafana.com>

* regenerate files

* also update docs

* skip failing test

---------

Co-authored-by: Timur Olzhabayev <timur.olzhabayev@grafana.com>
2024-03-22 14:13:43 +01:00
Will Browne
b765c21d4c Plugins: Pass PDC file contents in requests (#84783)
* Plugins: Pass PDC file contents in requests

* go mod tidy

* undo go.mod changes

* fix linter

* fix tests

* undo unnecessary changes

* update dep

* join with comma

* update naming

* bump SDK
2024-03-22 13:52:24 +01:00
Andre Pereira
0b4c81158e Datatrails: Sync layout with URL values (#84865)
* Sync layout with URL values

* Refactor
2024-03-22 12:27:19 +00:00
Darren Janeczek
1eff5fb791 datatrails: lazy load the breakdown queries, reduce panels, reduce number of points (#84965)
fix: lazy load the breakdown queries, reduce panels
2024-03-22 08:26:35 -04:00
Marcus Efraimsson
488bbaacab Chore: Remove unused dependenices in plugin client middlewares (#84624)
* Chore: Remove unused dependenices in plugin client middlewares

* refactor logger middleware to remove cfg dependency

* hack to make tracing work in api group builders
2024-03-22 12:54:35 +01:00
Dominik Prokop
41bf6a92fd Influx: Replace pre-calculated $__interval values for backend interpolation (#84975) 2024-03-22 12:48:41 +01:00
Erik Sundell
86bb91e1ce Datasources: Fix expressions that reference hidden queries (#84977)
call expression ds before filter query
2024-03-22 12:19:31 +01:00
Torkel Ödegaard
bb1133d6d9 DashboardScene: Fixes navbar action buttons collapse to menu (#84928)
* DashboardScene: Fixes navbar action buttons collapse to menu

* Update

* Change zindex
2024-03-22 12:05:25 +01:00
Ivan Ortega Alba
521d686ca4 DashGPT: Autogenerate panel title and description on scenes (#84726)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-03-22 12:56:19 +02:00
ismail simsek
016d6f2f6d InfluxDB: Fix alias interpolation when it has $__interval or multiple tags (#84940)
fix $__interval interpolating in alias
2024-03-22 11:27:04 +01:00
Giuseppe Guerra
ef5d71711a Plugins: Enable feature toggle enablePluginsTracingByDefault by default (#84645)
* Enable feature flag enablePluginsTracingByDefault by default

* re-generate feature toggles
2024-03-22 11:22:36 +02:00
Agnès Toulet
4f8b14ebf4 FeatureToggle: Update newPDFRendering to public preview (#84883)
FeatureToggle: update newPDFRendering to public preview
2024-03-22 09:50:53 +01:00
Torkel Ödegaard
b20da139ad DashboardScene: Show insights icon (#84877)
* DashboardScene: Show insights icon

* Update

* Create separate group for precence indicators

* fix

* Update

* fix tests
2024-03-22 09:46:29 +01:00
Ieva
9772ed6526 RBAC: Enable annotation permission update by default (#84787)
* display teams to team reader if they also have the access to list team permissions

* fix a typo in the docs

* enable annotationPermissionUpdate by default

* update wording
2024-03-22 00:45:23 +02:00
Nihal
15122bc71c InfluxDB: Fix for wrong query generated with template variable and non regex operator on frontend mode (#84175)
* fix for wrong query generated for influxdb. see:https://github.com/grafana/grafana/issues/81517

Signed-off-by: Syed Nihal <syed.nihal@nokia.com>

* added unit tests

Signed-off-by: Syed Nihal <syed.nihal@nokia.com>

* fixed linting

Signed-off-by: Syed Nihal <syed.nihal@nokia.com>

* addressed review comments

Signed-off-by: Syed Nihal <syed.nihal@nokia.com>

* fixed linting issue

Signed-off-by: Syed Nihal <syed.nihal@nokia.com>

---------

Signed-off-by: Syed Nihal <syed.nihal@nokia.com>
2024-03-21 20:42:53 +01:00
Isabel Matwawana
e192c0aa05 Docs: add Configure tooltips page (#84089)
* Added Configure tooltips page

* Added intro, description options and image

* Updated weight and removed passive voice

* Replaced list with table and updated non-configurable tooltips section

* Updated info about other tooltips

* Wording edits

* Apply suggestions from code review

* Fixed table

* Added hover value in color scheme info with image
2024-03-21 15:07:28 -04:00
Drew Slobodnjak
c1065e6e68 Canvas: Add direction options for connections (#84620)
* Canvas: Add direction options for connections

* Fix radio control to handle default

* Fix broken options from merge

* Remove unused comment

* Change category and capitalize options for arrow

* Consolidate marker start and end for connections

* Fix linter issue
2024-03-21 11:38:17 -07:00
Brendan O'Handley
c4645c81da Prometheus: Default support labels value endpoint with match param when prom type and version not set (#84778)
* default to support labels match endpoint

* add test and fix tests
2024-03-21 12:50:17 -05:00
Darren Janeczek
e233c963a3 datatrails: fix dark mode drawer background clashing with data trail backgrounds (#84941)
fix: drawer background clashed with data trail bgs
2024-03-21 19:49:32 +02:00
Dominik Prokop
f74d5ff93e Data layers: Integrate latest scenes changes (#84804)
* bump scenes

* Improved data layers

* DashboardScene: Allow transformations by topic

* Use stable version

* Mock grafana ds to avoid anno layers test failure

* Fix name change

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-03-21 18:23:47 +01:00
Jack Westbrook
1ba4d525a2 Chore: Bump follow-redirects to latest (#84920)
chore(npm): bump follow-redirects to latest 1.15.6
2024-03-21 19:03:32 +02:00
Pepe Cano
2d6586952d Alerting: Add placeholder to the Email Contact Point Message (#84064) 2024-03-21 13:03:12 -04:00
Jack Westbrook
47421febf8 Chore: Bump ip to latest (#84921)
chore(npm): bump ip to latest
2024-03-21 19:03:02 +02:00
Ivan Ortega Alba
33f9e8554d GenAI: Autogenerate title and description for panels and dashboards (#84933) 2024-03-21 17:58:27 +01:00
kay delaney
86afe012c5 Scenes: Enable live now feature (#84399) 2024-03-21 16:57:22 +00:00
Josh Hunt
648f5ff1ab E2C: Migration summary (#84890)
* E2C: Migration summary

* remove polling

* stack -> box, box -> stack

* justify

* one less stack
2024-03-21 18:49:21 +02:00
Todd Treece
cdb2e7dd3e Chore: Sync go workspace (#84932) 2024-03-21 18:34:40 +02:00
Giuseppe Guerra
eb31f71f60 Plugins: Enable feature toggle pluginsDynamicAngularDetectionPatterns by default (#84723)
* Enable feature toggle pluginsDynamicAngularDetectionPatterns by default

* Change backgroundJobInterval to 24h

* re-generate feature toggles

* Use different intervals for cloud vs on-prem

* temporarily switch interval log to info level

* debug level again

* Simplify provideDynamic for tests

* re-generated feature toggles files

* PR review feedback

* PR review feedback: removed dependency from plugin management config
2024-03-21 18:22:06 +02:00
Marcus Efraimsson
6c1de260a2 API Server: Standalone observability (#84789)
Adds support for logs (specify level), metrics (enable metrics and Prometheus /metrics endpoint 
and traces (jaeger or otlp) for standalone API server. This will allow any grafana core service 
part of standalone apiserver to use logging, metrics and traces as normal.
2024-03-21 17:06:32 +01:00
grafana-delivery-bot[bot]
856ed64aac Changelog: Updated changelog for 10.3.5 (#84927)
Co-authored-by: grafanabot <bot@grafana.com>
2024-03-21 12:06:14 -04:00
Josh Hunt
35c846f47b Skip RTP e2e tests for now (#84925) 2024-03-21 17:59:13 +02:00
Xavi Lacasa
a813046f3d Better tracing during extSvcAcc registration (#84719) 2024-03-21 16:41:10 +01:00
grafana-delivery-bot[bot]
b848d8709c Changelog: Updated changelog for 10.4.1 (#84923)
Co-authored-by: grafanabot <bot@grafana.com>
2024-03-21 17:39:12 +02:00
kay delaney
424b3528ca Scenes: Persist variable options in save model (#84812)
* Scenes: Persist variable options in save model

* Updated snapshot
2024-03-21 16:35:48 +01:00
Isabel Matwawana
a64977d12a Docs: restructure Configure standard options (#84225)
* Removed unnecessary task

* Fixed note formatting

* Added supported visualizations section

* Docs: edit Configure standard options (#84226)

* Edited heading

* Added table and intro text to Supported visualizations section and updated intro to Standard options section

* Replaced grafana link with cloud link

* Copy edits

* Copy edits

* Updated intro

* Copy edits and updated images

* trigger CI

* Deleted local images and linked to uploaded ones

* Removed jargon
2024-03-21 11:03:57 -04:00
Isabel Matwawana
3219b6f8a7 Docs: update docs for dashgpt GA G11 (#84842)
* Updated generative AI links

* Added option to use AI

* Fixed typos

* Removed public preview note and feature toggle information
2024-03-21 10:43:43 -04:00
Ihor Yeromin
8b32073d5f Canvas: New basic elements (#84205)
* feat(canvas): new canvas shapes added
2024-03-21 15:23:35 +01:00
brendamuir
f30f7dfb93 Alerting docs: updates alert list view details (#84913)
* Alerting docs: updates alert list view details

* couple fixes

* prettier fixes

* corrects title
2024-03-21 14:57:54 +01:00
Dominik Prokop
a4ff2abd9d PanelGridItemRepeater: Refactor (#84710)
* wip

* serialisation tests updates

* VizPanelManager test updates

* ests updates

* Making it green

* Use DashboardGridItem instead of SceneGridItem

* Cleanup tests that unnecessarily depend on dashboard grid items

* Fix row repeater behavior test

* Update public/app/features/dashboard-scene/panel-edit/PanelEditor.tsx

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>

* Fix unnecessary library panel changes detection

* Fix test

---------

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
2024-03-21 14:38:00 +01:00
ismail simsek
20bb9d60dc Chore: Update influxdb docs with new parameter insecureGrpc (#84885)
add insecureGrpc parameter
2024-03-21 14:29:29 +01:00
Gilles De Mey
8c9ba97642 Alerting: Support PromQL-style matchers (#84672) 2024-03-21 14:11:18 +01:00
Gilles De Mey
4c247f959b Alerting: Fix broken panelId links (#84839) 2024-03-21 13:58:34 +01:00
renovate[bot]
6ce3469bb8 Update dependency postcss to v8.4.38 2024-03-21 12:52:01 +00:00
Erik Sundell
29d4f6a217 Datasource: Change query filtering (#84656)
* call filterQuery from queryrunner

* test query hide filtering

* fix more broken tests

* lint errrors

* remove redundant filterQuery call

* skip filter in variable queries

* fix broken cypress test

* change tooltip text

* fix translations

* fix comments

* do not execute query is targets are empty

* add more tests

* remove unsued import

* update translations

* revert id change

* change header text

* update comment for hide prop

* rename hide query prop

* change tooltip and introduce different toggle state text

* update tests

* update comment and regenerate types

* run extract again

* fix broken e2e test

* track event

* fix build issues

* revert changes in wire file
2024-03-21 13:39:39 +01:00
renovate[bot]
410f5e3e3a Update dependency dompurify to v3.0.11 2024-03-21 12:21:51 +00:00
Isabel Matwawana
f4c156d228 Docs: add canvas datalinks updates G11 (#84754)
* Created elements intro section, moved snapping and alignment content to intro, removed snapping and alightment heading

* Updated data links availability

* Remove element section changes
2024-03-21 08:20:49 -04:00
Bogdan Matei
30a1178624 Integrate Scopes with Prometheus datasource (#84888) 2024-03-21 14:02:57 +02:00
renovate[bot]
db791e8955 Update dependency autoprefixer to v10.4.19 2024-03-21 11:59:27 +00:00
Adela Almasan
25a058f7ec Histogram: Add support for stacking mode (#84693) 2024-03-21 06:57:10 -05:00
Josh Hunt
b525de07cd I18n: Add Brazilian Portuguese (#84461)
* Add pt-br as supported language

* docs

* update pt-br path:

* docs
2024-03-21 13:51:30 +02:00
renovate[bot]
fc5d323cd5 Update dependency systemjs-cjs-extra to v0.2.1 (#84849)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-21 12:39:58 +01:00
Ashley Harrison
bc8c3f99ae Chore: Remove custom values from TextLink story (#84889)
remove default values
2024-03-21 13:33:53 +02:00
Giuseppe Guerra
3387132b9b Build: Add "gen-feature-toggles" Makefile target (#84803)
* Add Makefile target "make gen-feature-toggles" to generate feature toggles files

* Better output for gen-feature-toggles
2024-03-21 12:04:49 +01:00
Bogdan Matei
b23541c298 Implement Scopes UI (#82920) 2024-03-21 13:01:47 +02:00
Alex Khomenko
b41ad688f2 Alerting: Remove deprecated InputControl (#84793) 2024-03-21 12:59:41 +02:00
Jack Westbrook
f67e56939a Tests: Isolate script tests to prevent jest errors locally (#84881)
* test(jest): isolate script tests to prevent jest errors in grafana-server/tmp tests

* chore(codeowners): update so generate-transformations matches in docs and tests directory
2024-03-21 12:36:37 +02:00
Selene
473898e47c Core: Remove thema and kindsys dependencies (#84499)
* Move some thema code inside grafana

* Use new codegen instead of thema for core kinds

* Replace TS generator

* Use new generator for go types

* Remove thema from oapi generator

* Remove thema from generators

* Don't use kindsys/thema for core kinds

* Remove kindsys/thema from plugins

* Remove last thema related

* Remove most of cuectx and move utils_ts into codegen. It also deletes wire dependency

* Merge plugins generators

* Delete thema dependency 🎉

* Fix CODEOWNERS

* Fix package name

* Fix TS output names

* More path fixes

* Fix mod codeowners

* Use original plugin's name

* Remove kindsys dependency 🎉

* Modify oapi schema and create an apply function to fix elasticsearch errors

* cue.mod was deleted by mistake

* Fix TS panels

* sort imports

* Fixing elasticsearch output

* Downgrade oapi-codegen library

* Update output ts files

* More fixes

* Restore old elasticsearch generated file and skip its generation. Remove core imports into plugins

* More lint fixes

* Add codeowners

* restore embed.go file

* Fix embed.go
2024-03-21 11:11:29 +01:00
Pepe Cano
856e410480 Alerting docs: Update Alert rules intro and Introduction pages (#84772)
undefined
2024-03-21 11:06:49 +01:00
Jack Westbrook
3c359376e1 Grafana/Runtime: Remove SystemJS export (#84561)
* feat(systemjs): move systemjs to grafana core and stop exporting from runtime

* feat(plugins): move systemjs to own file, update imports

* chore(plugins): call systemjs directly from window as ref can be undefined

* chore(plugins): make sure systemjs is imported before its shared dependencies

* chore(systemjs): move dependency to root package.json
2024-03-21 09:22:35 +01:00
Pepe Cano
60b9a1058a Docs: Specify Recorded queries is available in Grafana Cloud (#84716) 2024-03-21 09:17:27 +01:00
Laura Benz
d8a116e696 ReturnToPrevious: Add e2e test (#83115)
* feat: add incomplete unit test

* refactor: add idea for unit test

* feat: create new e2e test

* feat: add some steps

* feat: add comment

* feat: complete prep work

* feat: complete clean up

* rebase

* feat: add more steps to test flow

* refactor: remove unit test

* refactor: clean up

* refactor: create a provisioned alert rule

* refactor: change location and content

* refactor: e2e test

* refactor: betterer

* refactor: move provisioned alert rule

* refactor: make provisioning file available remote

* refactor: clean up test

* refactor: move provisioned alert rule

* refactor: remove wait()

* feat: restructure first test and add more tests

* feat: add another provisioned alert rule

* feat: add a new test

* feat: complete new test

* refactor: replace data-testid in alert rules

* refactor: replace data-testid

* refactor: fix tests for drone

* refactor: fix third test after review

* refactor: fix last test

* temp

* refactor: improve some things

* refactor: adjust unit tests

* refactor: remove assertions for alert rule details view

* refactor: remove assertions

* refactor: add check for button text

* refactor: remove session storage

* refactor: apply changes from code review

* refactor: add codeowner

* refactor

* refactor

* refactor: clean up

* refactor: clean up

* refactor: clean up

* refactor: increase pa11y threshold for /alerting/list
2024-03-21 09:05:51 +01:00
Andres Martinez Gotor
9298a5fcb5 AzureMonitor: Update standalone HTTP middlewares (#84833) 2024-03-21 08:53:27 +01:00
Drew Slobodnjak
3877d976d6 Canvas: Add snapping to vertex edit (#84417)
* Canvas: Add vertex control to connections

* Add function for vertex conversion

* Add vertex interface

* Add future vertex handling

* Only show vertices when connection selected

* Add vertices to save model

* Apply select constraint to first midpoint

* Add some infrastructure for vertex edit

* Render vertex edit and capture events

* Save vertex edit on button release

* Handle adding new vertices

* Limit number of vertices to 10

* Handle zoom for vertex edit and creation

* Rename future to add

* Remove more references to future

* Remove unsued console log

* Clean up styles

* Add some clarity for path generation

* Add clarity to connections event handling

* Canvas: Add snapping to vertex edit

* Remove unused color styling

* Add horizontal and vertical snap for vertex edit

* Add snapping during vertex creation

* Hide vertex before removal
2024-03-20 23:49:28 -07:00
github-actions[bot]
f96de9d0f8 I18n: Download translations from Crowdin (#84826)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-21 05:38:09 +00:00
Darren Janeczek
7653da1870 datatrails: add ability to deselect currently metric (#84586)
* feat: ability to deselect currently metric
2024-03-20 21:51:47 -04:00
Darren Janeczek
d58e652cc3 datatrails: include description of related metrics tab (#84525)
* fix: include description of related metrics tab
2024-03-21 00:20:23 +02:00
Darren Janeczek
5d5e22ae11 datatrails: fix: position of new metric exploration button (#84844)
fix: position of new metric exploration button
2024-03-20 18:08:13 -04:00
Andreas Christou
0718605f75 Azure: Support multi-resource namespace (NetApp Volumes) (#84779)
Add multi-resource namespace (NetApp Volumes)
2024-03-20 20:07:47 +00:00
Matthew Jacobson
fbd057b258 Alerting: Stop returning autogen routes for non-admin on api/v2/status (#84864)
* Alerting: Stop returning autogen routes for non-admin on api/v2/status

* Improve api/v2/status integration tests for user roles
2024-03-20 22:04:35 +02:00
Kyle Cunningham
7eee34311d Table Panel: Add documentation for apply to row (#84786)
* Add documentation for apply to row

* Updated wording

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Remove image

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Prettier

* Added word to improve clarity

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-03-21 02:55:13 +07:00
Will Browne
c8c372c327 Prometheus: Prevent duplicate registration of custom header middleware (#84860)
* remove dupe middleware

* fix test
2024-03-20 21:22:33 +02:00
Andreas Christou
00c094f7cf Azure: Update data link title for clarity (#84686)
Update data link title for clarity
2024-03-20 13:39:00 -05:00
Josh Hunt
00d6e1d7f8 E2C: Move frontend feature folder up one (#84851)
* E2C: Move frontedn folder up one

* codeowners
2024-03-20 19:39:39 +02:00
Marie Cruz
72bf647dc6 fix: update slack for alerting link (#84854) 2024-03-20 17:27:00 +00:00
William Wernert
c5b04b5674 Alerting: Add docs for "Keep Last State" feature (#84676)
Add initial docs for "Keep Last State" feature
2024-03-20 13:11:16 -04:00
William Wernert
6d16cf2699 Alerting: Marshal incoming json.RawMessage in diff (#84692)
This will ensure the encoding is correct when comparing
to the existing rule.
2024-03-20 13:10:39 -04:00
lean.dev
8336f1fc1e Update feature toggle code owner (#84817)
Co-authored-by: Dave Henderson <dave.henderson@grafana.com>
2024-03-20 18:06:14 +01:00
renovate[bot]
6813210ed0 Update react monorepo 2024-03-20 16:40:05 +00:00
renovate[bot]
92ab85e066 Update dependency @types/node to v20.11.30 (#84836)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-20 17:53:35 +02:00
Matias Chomicki
7e8e7429ec Popover menu: remove selectionchange listener (#84832) 2024-03-20 17:48:33 +02:00
Marie Cruz
821d9a5565 docs: add links to KillerCoda tutorial environments (#84831) 2024-03-20 15:47:45 +00:00
Kyle Brandt
0df7c9201a Make: Speed up make run by removing redundant make go-gen in .bra (#84827)
Make: Remove redundant `make go-gen` in .bra, build-go already calls this
Calling twice really slows down backend build time since wire gets called twice and that uses a few gigs of memory
2024-03-20 16:39:49 +01:00
renovate[bot]
78f1551b8e Update dependency @grafana/faro-web-sdk to v1.5.0 (#84820)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-20 15:31:34 +00:00
Adela Almasan
9fced253f5 VizTooltips: Switch data links display to column (#84828) 2024-03-20 17:29:37 +02:00
Alex Khomenko
b9b42ba10f Grafana/icons: Add icons package (#82314)
* Add separate icons package

* Update package.json

* Codeformat

* Use the new icon

* Sanitize SVGs

* Sync deps

* Add publish script

* Add pre-commit hook

* Test pre-commit

* Rename

* Comment out local dev configs

* Add generate action

* Update readme

* Update script

* Add license

* Rename icons to icons-generated

* Codeformat

* Update lerna

* Remove fill attribute from SVG path elements

* Revert lerna upgrade

* Update codeowners

* Add lint scripts

* Exclude more attributes

* Add missing deps

* Update lockfile

* Remove CI actions

* Remove generated components from VC

* Fix path

* Build ESM only

* Include cjs

* Update lockfile

* Move generated icons into src

* Update lockfile

* Sync deps with grafana

* Update lockfile

* Update lockfile

* Update package name

* Cleanup

* Memoize the components

* Publish esm only

* Do not overwrite props

* Add generate script to build

* Update comment

* Generate typedefs from index.ts

* test

* test

* Restore

* Add more complex icons

* Add readme

* Update lockfile

* Make the package private

* Move package exclusion to lerna.json

* Remove exclusion

* Revert

* test packages

* Fix

* Fix

* Revert

* Move generate icons script to the root

* Update script

* Remove icons script

* Move icons exclusion to package.json
2024-03-20 17:03:40 +02:00
Juan Cabanas
98a6b5debf Scenes: Fix public dashboard email sharing section (#84467) 2024-03-20 12:00:19 -03:00
Adam Simpson
311aa94fab MSSQL: Add Windows AD/Kerberos auth (#84742)
* mssql: Add Kerberos/Windows AD auth

* need username for cache file

* account for no port in cc file

* add tests around constring

* remove un-needed port

* add docs

* remove comments

* move defer to same locale as where it begins

* fix linting and spelling

* fix gosec linter

* note lack of grafana cloud support
2024-03-20 16:41:57 +02:00
Yuri Tseretyan
04c9f459ec Alerting: do not check for folder in file provisioning (#84822)
provide nil folder service in file provisioning
2024-03-20 10:39:03 -04:00
Ida Štambuk
18eac9df9e Feature toggles: Remove redshiftAsyncQueryDataSupport and athenaAsyncQueryDataSupport toggles (#84653) 2024-03-20 15:14:21 +01:00
renovate[bot]
339a2ba4e9 Update dependency msw to v2.2.9 2024-03-20 13:44:32 +00:00
Matthias Meyer
af820f29f8 Docs: updated provisioning documentation (#84711) 2024-03-20 12:56:10 +00:00
renovate[bot]
e2109f9b2a Update babel monorepo to v7.24.3 2024-03-20 12:50:51 +00:00
Andres Martinez Gotor
a705ff7892 API Server: refactor plugin ID handling (#84753) 2024-03-20 13:49:19 +01:00
renovate[bot]
d0935fe44c Update dependency @testing-library/react to v14.2.2 2024-03-20 12:31:21 +00:00
renovate[bot]
6cf34a76cf Update dependency @msagl/parser to v1.1.18 2024-03-20 10:49:24 +00:00
Alex Khomenko
c632cabb3b NewOrgPage: Update Form import (#84792) 2024-03-20 12:47:22 +02:00
renovate[bot]
fe623760a8 Update dependency @msagl/core to v1.1.18 2024-03-20 10:22:49 +00:00
github-actions[bot]
cd3312ba02 I18n: Download translations from Crowdin (#84799)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-20 10:17:56 +00:00
renovate[bot]
9b6c32163d Update dependency @grafana/faro-core to v1.5.0 (#84784)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-20 10:04:08 +00:00
Fabrizio
288b06b64c Loki: Replace imports of infra/log with SDK (#84336) 2024-03-20 11:25:35 +02:00
Jack Westbrook
421ef641d0 Azure Monitor: Externalise kusto (#84749)
fix(azuremonitor): externalise kusto so it loads via core
2024-03-20 10:16:54 +01:00
Dominik Prokop
d5e293c18d GroupBy variable: Allow detecting static dimensions changes (#84715)
* GroupBy variable: Allow detecting static dimensions changes

* Review

* Lint
2024-03-20 10:08:42 +01:00
Ivana Huckova
77b1c97482 Elasticsearch: Remove xpack button and make includeFrozen not dependant on it (#84734) 2024-03-20 09:59:26 +01:00
Gábor Farkas
fba2b61408 postgres: removed unused code (#84736)
sql: removed unused code
2024-03-20 09:28:42 +01:00
George Robinson
f3e5ad00d6 Remove extra defers in screenshot sevice (#84697) 2024-03-20 07:13:16 +00:00
github-actions[bot]
034c232ec9 I18n: Download translations from Crowdin (#84670)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-20 06:26:46 +00:00
Yuri Tseretyan
e593d36ed8 Alerting: Update rule access control to explicitly check for permissions "alert.rules:read" and "folders:read" (#78289)
* require "folders:read" and "alert.rules:read"  in all rules API requests (write and read). 

* add check for permissions "folders:read" and "alert.rules:read" to AuthorizeAccessToRuleGroup and HasAccessToRuleGroup

* check only access to datasource in rule testing API

---------

Co-authored-by: William Wernert <william.wernert@grafana.com>
2024-03-19 22:20:30 -04:00
Zoltán Bedi
a4fe7f39ea E2E: Rewrite mysql tests to playwright (#83424)
* E2E: Rewrite mysql tests to playwright

* Fix lint

* Add more selectors and address comments

* Scope locators when locating text

* Don't run it 20 times

* Update new-datasource-variable to assert mysql
2024-03-19 23:07:48 +01:00
Lucy Chen
351425ab3d Reporting: Update api doc files (#84358) 2024-03-19 17:19:14 -04:00
renovate[bot]
1cc31a4d62 Update dependency webpack-dev-server to v5.0.4 2024-03-19 20:48:38 +00:00
renovate[bot]
97e49d37e7 Update dependency react-hook-form to v7.51.1 2024-03-19 20:31:35 +00:00
brendamuir
d01d99a585 Alerting docs: change icon and simplified routing (#84729) 2024-03-19 21:29:45 +01:00
renovate[bot]
f3986f0dc7 Update dependency postcss to v8.4.37 2024-03-19 18:56:16 +00:00
Jack Baldry
fef0c66b03 Use $host nginx variable instead of $http_host (#84354) 2024-03-19 18:54:25 +00:00
renovate[bot]
590c657828 Update dependency msw to v2.2.8 2024-03-19 18:21:50 +00:00
renovate[bot]
9d058f8db0 Update dependency eslint-plugin-react to v7.34.1 2024-03-19 17:44:17 +00:00
Señor Performo - Leandro Melendez
e011c60a75 Visualizations-TablePanel: added YouTube link to Table Panel (#84533)
* Update index.md added YouTube link to Table Panel

* Moved video and added placement note

* Update index.md adding video description

Added a description to the video. Feel free to edit if my syntax or writing needs improvement.

* Wording and style edits

* Wording fix

---------

Co-authored-by: Isabel Matwawana <isabel.matwawana@grafana.com>
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-03-19 13:41:10 -04:00
Gilles De Mey
5a57ff1307 Alerting: Preserve newlines and whitespace for Prometheus and Loki queries (#84755) 2024-03-19 19:38:04 +02:00
renovate[bot]
d12faee989 Update dependency dompurify to v3.0.10 2024-03-19 17:26:08 +00:00
renovate[bot]
6166c88ab7 Update dependency core-js to v3.36.1 2024-03-19 17:06:50 +00:00
Ihor Yeromin
3c97476390 Canvas: Support dashed connection lines (#84496)
* feat(canvas): add connection types
2024-03-19 17:56:10 +01:00
renovate[bot]
aa9dc9c821 Update dependency @types/react-table to v7.7.20 2024-03-19 16:47:05 +00:00
Andreas Christou
6bb7ab261a AzureMonitor: User authentication support (#81918)
* Stub out frontend user auth

* Stub out backend user auth

* Add context

* Reorganise files

* Refactor app registration form

* Alert for user auth service principal credentials

* AzureMonitor: Add flag for enabling/disabling fallback credentials for current user authentication (#82332)

* Rename field

* Add fallback setting

* Update tests and mock

* Remove duplicate setting line

* Update name of property

* Update frontend settings

* Update docs and default config files

* Update azure-sdk

* Fix lint

* Update test

* Bump dependency

* Update configuration

* Update docs/sources/setup-grafana/configure-grafana/_index.md

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

* Docs review

* AzureMonitor: User authentication frontend updates (#83107)

* Rename field

* Add fallback setting

* Update tests and mock

* Remove duplicate setting line

* Update name of property

* Update frontend settings

* Update docs and default config files

* Add alerts to query editor

- Add authenticatedBy property to grafana/data
- Update mocks
- Update query editor to disable it under certain circumstances
- Update tests

* Add separate FallbackCredentials component

- Reset AppRegistrationCredentials component to only handle clientsecret credentials
- Update AzureCredentialsForm
- Update selectors
- Update tests
- Update credentials utility functions logic

* Alert when fallback credentials disabled

* Update condition

* Update azure-sdk

* Fix lint

* Update test

* Remove unneeded conditions

* Set auth type correctly

* Legacy cloud options

* Fix client secret

* Remove accidental import

* Bump dependency

* Add tests

* Don't use VerticalGroup component

* Remove unused import

* Fix lint

* Appropriately set oAuthPassThru and disableGrafanaCache properties

* Clear azureCredentials on authType change

* Correctly retrieve secret

* Fix bug in authTypeOptions

* Update public/app/plugins/datasource/azuremonitor/components/ConfigEditor/CurrentUserFallbackCredentials.tsx

Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>

* Update public/app/plugins/datasource/azuremonitor/components/QueryEditor/QueryEditor.tsx

Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>

* Update public/app/plugins/datasource/azuremonitor/components/ConfigEditor/CurrentUserFallbackCredentials.tsx

Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>

* Add documentation links

* Fix broken link

---------

Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>

* AzureMonitor: Update docs for current user authentication (#83440)

* Rename field

* Add fallback setting

* Update tests and mock

* Remove duplicate setting line

* Update name of property

* Update frontend settings

* Update docs and default config files

* Add alerts to query editor

- Add authenticatedBy property to grafana/data
- Update mocks
- Update query editor to disable it under certain circumstances
- Update tests

* Add separate FallbackCredentials component

- Reset AppRegistrationCredentials component to only handle clientsecret credentials
- Update AzureCredentialsForm
- Update selectors
- Update tests
- Update credentials utility functions logic

* Alert when fallback credentials disabled

* Update condition

* Update azure-sdk

* Fix lint

* Update test

* Remove unneeded conditions

* Set auth type correctly

* Legacy cloud options

* Fix client secret

* Remove accidental import

* Bump dependency

* Add tests

* Don't use VerticalGroup component

* Remove unused import

* Update docs

* Fix lint

* Appropriately set oAuthPassThru and disableGrafanaCache properties

* Clear azureCredentials on authType change

* Correctly retrieve secret

* Feedback

* Spelling

* Update docs/sources/datasources/azure-monitor/_index.md

Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>

* Update docs/sources/datasources/azure-monitor/_index.md

Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>

* Update docs/sources/datasources/azure-monitor/_index.md

Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>

* Update docs/sources/datasources/azure-monitor/_index.md

Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>

---------

Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>

* Docs review

* Update docs with additional configuration information

* Fix to appropriately hide the query editor

* Typo

* Update isCredentialsComplete

* Update test

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>
2024-03-19 16:32:24 +00:00
Kyle Cunningham
2a6a1fb3b3 Table Panel: Add ability to set background colors for entire rows (#83939)
* Table: hacky poc for colored rows

* update

* Update options editor

* Refactor out styling

* Make sure option applies

* Start unifying coloring logic

* Support various options

* Cleanups

* Fix up hover behavior

* Update label

* Fix bug with sorting and make cleanups

* Ensure text color also applies to whole row

* New treatment for cell inspect

* Update cell inspect spacing

* codeincarnate/table-row-background-selected-riffs/ run linter

* Fix hover colors

* Fix coloring

* The other part of color application

* Another color fix

* codeincarnate/table-row-background-selected-riffs/ lint

* Update cell value inspect

* Prettier

* Update cell value inspect coloring

* Fix text coloring

* Update inspect style

* Linting and betterer

* Fix tests

* i18n

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
2024-03-19 23:23:12 +07:00
renovate[bot]
5b1b280798 Update dependency @types/react to v18.2.67 2024-03-19 16:21:08 +00:00
Jev Forsberg
b14525a402 Transformations: Update docs for "Filter data by values" substring matcher (#84619)
* baldm0mma/substring/ update docs

* Update public/app/features/transformers/docs/content.ts

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* baldm0mma/substring/ skip 1st test

* baldm0mma/substring/ unskip

* baldm0mma/substring/ update skip

* baldm0mma/substring/ update anno

* baldm0mma/substring/ unrelated spelling error

* baldm0mma/substring/ update annos

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-03-19 10:17:34 -06:00
Marie Cruz
2f539060f8 docs: initial updates to state timeline documentation (#84224)
* docs: initial updates to state timeline documentation

* docs: apply linting

* Apply suggestions from code review

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* docs: add feedback from PR review

* docs: apply linting

* Wording and formatting edits

* Fixed grammar

* Update docs/sources/panels-visualizations/visualizations/state-timeline/index.md

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* docs: add two examples for state timeline to show null values and two timestamps

* docs: add steps to configuring a state timeline

* docs: add state timeline video

* docs: add link to creating dashboards

* Changed link text and added version interpolation syntax

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-03-19 12:07:53 -04:00
Torkel Ödegaard
862305d5ce DashboardScene: Only update/replace location for normal dashboard route (#84747) 2024-03-19 16:40:49 +01:00
renovate[bot]
97156bb759 Update dependency @types/node to v20.11.30 2024-03-19 15:36:35 +00:00
Hugo Kiyodi Oshiro
b1c4ebe6e8 Plugins: Enable managedPluginsInstall by default (#84721)
Plugins: enable managedPluginsInstall by default
2024-03-19 16:34:46 +01:00
renovate[bot]
107dd15e12 Update dependency @types/eslint to v8.56.6 2024-03-19 14:58:44 +00:00
Andreas Christou
7c3f621688 Chore: Update grafana-azure-sdk-go (#84741)
* Update grafana-azure-sdk-go

* Update test
2024-03-19 14:56:40 +00:00
Gilles De Mey
5bd670592d Alerting: Rename "classic condition" to "classic condition (legacy)" (#84743) 2024-03-19 16:29:08 +02:00
Joey
a8e211bf77 Tempo: Update condition for migration from old nativeSearch editor (#84731)
Update condition for migration from old nativeSearch editor
2024-03-19 14:12:04 +00:00
Ivan Ortega Alba
74e62ac6fa Dashgpt: Make generate title and description work in scened dashboard settings (#84649)
* wip

* add GenAI to scenes dashboard settings

* rework title and description into controlled inputs

---------

Co-authored-by: Sergej-Vlasov <sergej.s.vlasov@gmail.com>
2024-03-19 14:06:03 +00:00
Yuri Tseretyan
9dc4221508 Alerting: Log expression command types during evaluation (#84614) 2024-03-19 10:00:03 -04:00
Diego Augusto Molina
09817e2c7f Chore: ignore Go coverage .out files (#84702)
ignore Go coverage .out files
2024-03-19 10:55:33 -03:00
Ryan McKinley
e27c08cfa9 QueryService: Return application/json and better errors (#84234) 2024-03-19 15:52:15 +02:00
Fabrizio
d1f791cf1f Jaeger: Decouple Jaeger plugin (#81377) 2024-03-19 15:39:31 +02:00
renovate[bot]
83597e6c37 Update dependency @swc/helpers to v0.5.7 (#84725)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-19 13:24:10 +00:00
Sonia Aguilar
b38436eeb0 Alerting: Fix used badge in contact points list (#84714)
Fix used badge in contact points list
2024-03-19 13:30:06 +01:00
Torkel Ödegaard
a095888522 DashboardScene: Fixes visualization suggestions (#84439)
* DashboardScene: Fixes visualization suggestions

* Update public/app/features/dashboard-scene/panel-edit/PanelOptionsPane.tsx

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>

* fix prettier issue

---------

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
2024-03-19 13:12:46 +01:00
Santiago
4ad6d66479 Alerting: Remove ID from UserGrafanaConfig struct (#84602)
* Alerting: Remove ID from UserGrafanaConfig struct

* user custom mimir image withoud id in grafana config

* change mimir image name
2024-03-19 12:47:13 +01:00
Josh Hunt
365fd2cb72 FolderPicker: Add permission filter to nested folder picker (#84644)
* FolderPicker: Add permission filter to nested folder picker

* Add permission filtering to Searcher

* make default edit only

* dashlist view folders

* update tests
2024-03-19 13:44:52 +02:00
Mathieu Parent
4a50897f39 CI: Fix missing vendor dependencies (#84375)
Fixes: #84342
2024-03-19 12:41:27 +01:00
renovate[bot]
f3337b96b8 Update dependency @manypkg/get-packages to v2.2.1 (#84722)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-19 13:36:35 +02:00
renovate[bot]
bc0f054fa7 Update dependency @braintree/sanitize-url to v7.0.1 2024-03-19 11:20:26 +00:00
Santiago
c9bb18101c Alerting: Decrypt secrets before sending configuration to the remote Alertmanager (#83640)
* (WIP) Alerting: Decrypt secrets before sending configuration to the remote Alertmanager

* refactor, fix tests

* test decrypting secrets

* tidy up

* test SendConfiguration, quote keys, refactor tests

* make linter happy

* decrypt configuration before comparing

* copy configuration struct before decrypting

* reduce diff in TestCompareAndSendConfiguration

* clean up remote/alertmanager.go

* make linter happy

* avoid serializing into JSON to copy struct

* codeowners
2024-03-19 12:12:03 +01:00
renovate[bot]
b5d74ac200 Update babel monorepo to v7.24.1 (#84718)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-19 12:56:16 +02:00
renovate[bot]
31bbd49459 Update dependency @rollup/plugin-terser to v0.4.4 (#84550)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-19 10:37:33 +00:00
renovate[bot]
169be9e401 Update dependency eslint-plugin-import to v2.29.1 (#83523)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-19 12:25:22 +02:00
Ashley Harrison
15194b41b4 Dropdown: Fix keyboard accessibility (#84683)
* fix dropdown keyboard a11y

* remove unnecessary css

* restore tabIndex to keep linting happy

* use Box in Menu

* fix unit test
2024-03-19 10:22:17 +00:00
Mihai Doarna
6febfdffd2 Auth: add the missing fields for all SSO providers (#83813)
* add the missing fields for sso providers

* remove fields array

* add the validate_hd field for google

* submit only fields defined on the provider

* fix unit tests

* add unit tests for the new fields/sections from the form

* add hosted_domain field for the google provider

* reorder fields in user mapping

* remove authStyle field from gitlab and okta

---------

Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com>
2024-03-19 12:20:19 +02:00
Fabrizio
c1c9ccb8e8 Loki: Replace imports of infra/httpclient with SDK (#84337) 2024-03-19 10:59:53 +01:00
Agnès Toulet
7c17290da5 Chore: Fix Webpack config for Windows (#84709) 2024-03-19 09:36:54 +01:00
Andres Martinez Gotor
abb8ba3885 Update comment in service.go (#84674) 2024-03-19 09:09:07 +01:00
Marcus Efraimsson
e978d0810e DS apiserver: Minor fixes (#84691) 2024-03-19 09:02:52 +01:00
Agnès Toulet
58170d4141 Rendering: Add PDFRendering capability (#84438)
* Rendering: Add PDFRendering capability

* fix tests
2024-03-19 08:48:46 +01:00
Tim Levett
d3571c399a substring should be lowercase (#84682) 2024-03-18 16:40:46 -05:00
Isabella Siu
0606a8e413 CloudWatch: Static labels should use label name (#84611)
CloudWatch: static labels should use label name
2024-03-18 17:30:59 -04:00
Charandas
2d1cd82a98 K8s: standalone: use Grafana's logger to stream all logs (#84530)
---
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2024-03-18 19:25:30 +02:00
Matthew Jacobson
3ea5c08c88 Alerting: External AM fix parsing basic auth with escape characters (#84681) 2024-03-18 13:04:57 -04:00
Ivana Huckova
494d169980 Elasticsearch: Fix legend for alerting, expressions and previously frontend queries (#84485)
* Elasticsearch: Fix legend for alerting, expressions and previously frontend queries

* Add comment

* Update comment
2024-03-18 18:01:33 +01:00
Tom Ratcliffe
296f4219f8 Add missing external link for TextLink 2024-03-18 16:50:30 +00:00
Tom Ratcliffe
8f50ccbb7c Fix display of Alert diagram in Safari 2024-03-18 16:50:30 +00:00
Tom Ratcliffe
b3e9a6d0b3 Use Text component more consistently in GettingStarted 2024-03-18 16:50:30 +00:00
Tom Ratcliffe
fb2ba574c6 Convert getting started styles to object syntax 2024-03-18 16:50:30 +00:00
Tom Ratcliffe
30a791d77a Tidy up styling for Getting Started page and use @grafana/ui components 2024-03-18 16:50:30 +00:00
Tom Ratcliffe
2e2a5bca11 Remove unused showWelcomeHeader prop 2024-03-18 16:50:30 +00:00
Tom Ratcliffe
83464781be Remove video from Alert Getting Started page 2024-03-18 16:50:30 +00:00
Leon Sorokin
2e6bb6416d VizTooltips: Fix position during bottom or right edge initial hover (#84623) 2024-03-18 11:20:43 -05:00
Kyle Brandt
818c94f067 Scopes: (Chore) Fix ScopeDashboard by adding spec (#84675) 2024-03-18 17:16:53 +01:00
Darren Janeczek
63e8753aa0 datatrails: integrate dashboard panels with metrics explore (#84521)
* feat: integrate dashboard panels with metrics explore

- add dashboard panel menu items (in non-scenes dashboard) to open
  `metric{filters}` entries detected from queries to launch
  "metrics explorer" drawers for the selected `metric{filter}`

* fix: remove OpenEmbeddedTrailEvent

* fix: use modal manager dismiss capabilities instead
2024-03-18 17:16:38 +01:00
Ashley Harrison
b1b65faf02 Variables: Support static keys in AdHocFiltersVariable (#83157)
* initial start

* don't use getTagKeysProvider

* some cleanup

* undo kinds adjustment

* simplify

* remove async declaration

* add description and a couple of unit tests

* add transformSaveModelToScene test

* add tests for AdHocVariableForm

* add tests for AdHocFiltersVariableEditor

* update to defaultKeys

* fix snapshots

* update to 3.13.3
2024-03-18 16:12:00 +00:00
Rob
677b765dab NodeGraph: Edge color and stroke-dasharray support (#83855)
* Adds color and stroke-dasharray support for node graph edges

Adds support for providing color, highlighted color, and visual display of node graph edges as dashed lines via stroke-dasharray.

* Updates node graph documentation

* Updates documentation

Adds default for `highlightedColor`

* Update docs/sources/panels-visualizations/visualizations/node-graph/index.md

Co-authored-by: Fabrizio <135109076+fabrizio-grafana@users.noreply.github.com>

* Update packages/grafana-data/src/utils/nodeGraph.ts

Co-authored-by: Fabrizio <135109076+fabrizio-grafana@users.noreply.github.com>

* Update docs/sources/panels-visualizations/visualizations/node-graph/index.md

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Removes highlightedColor; deprecates highlighted

Per [request](https://github.com/grafana/grafana/pull/83855#issuecomment-1999810826), deprecates `highlighted` in code and documentation, and removes `highlightedColor` as an additional property. `highlighted` will continue to be supported in its original state (makes the edge red), but is superseded if `color` is provided.

* Update types.ts

Missed a file in my last commit. Removes `highlightedColor` and deprecates `highlighted`.

* Add test scenario in test data source

---------

Co-authored-by: Fabrizio <135109076+fabrizio-grafana@users.noreply.github.com>
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
2024-03-18 16:26:22 +01:00
Darren Janeczek
e96836d19e datatrails: Remove prefix filter (#84661)
* fix: use cascader's clear button

* fix: remove the prefix filter from metric select

* fix: remove supporting code in metric select scene

- For the removed prefix filter

* fix: spacing
2024-03-18 11:00:31 -04:00
github-actions[bot]
259d4eb6ec I18n: Download translations from Crowdin (#84664)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-18 14:45:34 +00:00
Darren Janeczek
767608f3a6 Data trails: use description of data source to shorten label (#84665)
fix: use description of data source to shorten label
2024-03-18 16:23:19 +02:00
Kyle Brandt
aec2ef727a Prometheus/Scopes: Update to use scopespec type from app (#84593) 2024-03-18 09:49:26 -04:00
github-actions[bot]
cc6459deaf I18n: Download translations from Crowdin (#84660)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-18 13:39:05 +00:00
Erik Sundell
ebcca97052 Annotation query: Render query result in alert box (#83230)
* add alert to annotation result

* cleanup

* add tests

* more refactoring

* apply pr feedback

* change severity

* use toHaveAlert matcher
2024-03-18 14:26:56 +01:00
Andrej Ocenas
5b085976bf Pyroscope: Fix template variable support (#84477) 2024-03-18 14:25:47 +01:00
Kyle Brandt
aac2cf0aa5 Scopes: Update BE API to include object for linking scope to dashboards (#84608)
* Add ScopeDashboard

---------

Co-authored-by: Todd Treece <todd.treece@grafana.com>
2024-03-18 09:22:28 -04:00
Levente Balogh
155e38edfe Plugin Extensions: Add prop types to component extensions (#84295)
* feat: make it possible to specify prop types for component extensions

* Update packages/grafana-runtime/src/services/pluginExtensions/getPluginExtensions.ts

* chore: adapted test case

* chore: update betterer

* feat: update types for configureComponentExtension()

* fix: remove type specifics for `configureExtensionComponent`

* Update betterer config

---------

Co-authored-by: Darren Janeczek <38694490+darrenjaneczek@users.noreply.github.com>
Co-authored-by: Darren Janeczek <darren.janeczek@grafana.com>
2024-03-18 15:14:51 +02:00
Josh Hunt
fbb6ae35e7 E2C: Use cloudMigrationIsTarget config (#84654)
Use cloudMigrationIsTarget config
2024-03-18 13:00:18 +00:00
Isabella Siu
00f16cd018 CloudWatch Logs: Remove toggle for cloudWatchLogsMonacoEditor (#84414) 2024-03-18 08:56:57 -04:00
Ieva
7aa0ba8c59 Teams: Display teams page to team reader if they also have the access to list team permissions (#84650)
* display teams to team reader if they also have the access to list team permissions

* fix a typo in the docs
2024-03-18 14:52:01 +02:00
Jack Westbrook
4ca68925a1 Backend: Delete bundled plugin tests (#84646) 2024-03-18 13:28:24 +01:00
Matias Chomicki
3e97999ac5 LogRowMessageDisplayedFields: increase rendering performance (#84407)
* getAllFields: refactor for improved performance

* LogRowMessageDisplayedFields: refactor line construction for performance

* AsyncIconButton: refactor to prevent infinite loops
2024-03-18 13:24:06 +01:00
Pepe Cano
a7c7a1ffed Alerting docs: Fix format issues in recent Slack tutorial (#84651)
* Alerting docs: Fix format issues in Slack tutorial

* Alerting docs: Include link to Slack docs

* Alerting docs: fix Slack `nested-policy` link
2024-03-18 13:18:57 +01:00
Ashley Harrison
3297d589c0 ConfirmButton: Stop pointerEvents on the correct element (#84648)
stop pointerEvents on the correct element
2024-03-18 14:04:43 +02:00
Sergej-Vlasov
26e1a5887a DashboardScene: Reset editIndex on variable delete (#84589)
* reset edit index on variable delete

* adjust delete variable test

* adjust test to be more in line with user flow
2024-03-18 12:02:12 +00:00
Andre Pereira
6241386a96 Data Trails: Sticky main metric graph (#84389)
* WIP

* Refactor code a bit so we can sticky the main graph and tabs

* Make sure it works in Firefox. Avoid annoying warnings in breakdown tab. Update pin metrics graph label

* Small copy change

Co-authored-by: Darren Janeczek <38694490+darrenjaneczek@users.noreply.github.com>

---------

Co-authored-by: Darren Janeczek <38694490+darrenjaneczek@users.noreply.github.com>
2024-03-18 13:38:17 +02:00
Andres Martinez Gotor
e394110f44 Fix api_plugins_test locally (#84484) 2024-03-18 12:08:49 +01:00
Josh Hunt
ed3bdf5502 I18n: Expose current UI language in @grafana/runtime config (#84457)
* I18n: Expose current UI language in Grafana config

* fix
2024-03-18 11:00:43 +00:00
Serge Zaitsev
aa03b4393f Chore: Clean up CHANGELOG for 10.4.0 (#84551)
clean up changelog for 10.4.0 to remove the items that did not make it into the release
2024-03-18 11:45:25 +01:00
tonypowa
eb813f2a19 changes to #84476 (#84638)
* removed note shortcode

* prettyfied
2024-03-18 11:24:18 +01:00
Karl Persson
8714b7cd8c RolePicker: Don't try to fetch roles for new form (#84630) 2024-03-18 11:15:49 +01:00
Polina Boneva
fce78aea2c Variables: Multi-select DataSource variables are inconsistently displayed in the Data source picker (#76039)
Always show multi-select DataSource(DS) variables in the DS picker, and display a warning in the panel when a DataSource variable holds multiple values and is not being repeated.

---------

Co-authored-by: Alexandra Vargas <alexa1866@gmail.com>
Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com>
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-03-18 10:30:27 +01:00
Joey
f5e83d07a7 Tempo: Deprecate old search (#84498)
* Add logic to update query from old search to new search i.e. nativeSearch to traceqlSearch

* Remove nativeSearch query and transform

* Update tracking

* Remove nativeSearch from query field

* Udpdate gen comment

* Fix tests

* Add tests

* Remove comments

* Remove log

* Remove log

* Update comment

* Update ids etc for migratedQuery

* Remove old nativeSearch folder

* Fix tests, manual testing
2024-03-18 09:17:10 +00:00
Jack Westbrook
1de4187a6e Chore: Delete Input Datasource (#83163)
* chore(input-datasource): delete bundled plugin for grafana 11

* chore(betterer): refresh results file

* chore(yarn): run dedupe to clean up deps

* chore(yarn): pin playwright to 1.41.2 to see if CI passes

* chore(yarn): pin playwright to 1.42.1
2024-03-18 09:48:19 +01:00
Andres Martinez Gotor
6204f1e847 Chore: Use SigV4 middleware from aws-sdk (#84462) 2024-03-18 09:33:22 +01:00
Alex Khomenko
39b32524e2 AnnotationsEditor: Remove deprecated components (#84538)
* AnnotationEditorForm: Remove deprecated components

* AnnotationEditor2: Remove deprecated components
2024-03-16 09:48:17 +02:00
Alex Khomenko
1714d52f17 Chore: Replace deprecated Form imports (#84537)
* SignupInvited: replace Form

* Chore: replace Form import

* Chore: replace HorizontalGroup

* Replace the component in OrgProfile
2024-03-16 09:48:05 +02:00
Alex Khomenko
5fa627e207 Playlist: Remove deprecated components (#84536) 2024-03-16 09:47:39 +02:00
Dan Cech
89f3b70e17 Storage: Add support for listing resource history (#84331)
* add support for listing resource history

* make watch handle custom label selectors properly

* fix tests

* Apply suggestions from code review

Co-authored-by: Diego Augusto Molina <diegoaugustomolina@gmail.com>

* properly handle special characters in json label matcher

* tidy up

---------

Co-authored-by: Diego Augusto Molina <diegoaugustomolina@gmail.com>
2024-03-15 19:17:54 -04:00
Chris Bedwell
9c7a5ed506 Alerting: Fix infinite re-render when linking to alert redirect page (#84305)
fix: move where the fallback array is initialized so not to create an infinite re-render
2024-03-15 22:57:31 +00:00
ismail simsek
d0885ffdaa Chore: Bump the promlib version to v0.0.2 (#84616)
bump the promlib version
2024-03-15 22:35:07 +01:00
Darren Janeczek
59baa7a4a4 fix: data trails ignore usage syntax (#84610) 2024-03-15 21:27:31 +02:00
Josh Hunt
08f4aeded1 E2C: Change permissions for navigating to Cloud Migration (#84594)
* allow org admins / settings writers to access e2c

* test for org admin specifically
2024-03-15 17:22:39 +00:00
William Wernert
97f37b2e6f Alerting: Clamp Loki ASH range query to configured max_query_length (#83986)
* Clamp range in loki http client to configured max_query_length

Defaults to 721h to match Loki default
2024-03-15 18:59:45 +02:00
Josh Hunt
f2628bfad4 Whitelabelling: Override version in UI from config (#84392)
* Unify how the version is shown in the UI

* use versionString in dashboard help bundles

* fix lint

* remove comment

* fix test types

* make test less flakey
2024-03-15 18:39:13 +02:00
Gilles De Mey
1ce2ae427f Alerting: Query and conditions improvements (#83426) 2024-03-15 18:37:11 +02:00
Drew Slobodnjak
f273681956 Canvas: Add vertex control to connections (#83653)
* Canvas: Add vertex control to connections

* Add function for vertex conversion

* Add vertex interface

* Add future vertex handling

* Only show vertices when connection selected

* Add vertices to save model

* Apply select constraint to first midpoint

* Add some infrastructure for vertex edit

* Render vertex edit and capture events

* Save vertex edit on button release

* Handle adding new vertices

* Limit number of vertices to 10

* Handle zoom for vertex edit and creation

* Rename future to add

* Remove more references to future

* Remove unsued console log

* Clean up styles

* Add some clarity for path generation

* Add clarity to connections event handling

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-03-15 09:35:07 -07:00
github-actions[bot]
6d74553653 I18n: Download translations from Crowdin (#84601)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-15 16:22:27 +00:00
Matias Chomicki
bba1b12448 Logs popover: allow click listeners to run before closing the menu (#84583)
* Logs popover: allow click listeners to run before closing the menu

* Decrease buffer time
2024-03-15 17:24:41 +02:00
Pepe Cano
200ff7f9b4 Alerting docs: fix broken link (#84572) 2024-03-15 16:23:52 +01:00
Laura Benz
7e5ce8fc20 I18n: Add milestone automatically to Crowdin PRs (#84253)
* refactor: add milestone automatically

* refactor: remove step for extracting pr number

* refactor: milestone step
2024-03-15 16:14:11 +01:00
Torkel Ödegaard
d4b3877eb8 Table: Fixes migration for hidden columns in angular table (#84579)
* Table: Fixes migration for hidden columns in angular table

* update
2024-03-15 16:05:34 +01:00
Torkel Ödegaard
4dcbf4e5bb Select: Fixes virtualized select showing empty space above selected value (#84544)
* Select: Virtualized select bug replication

* Update with fix

* remove story

* Pin version

* Update

* Update
2024-03-15 16:00:58 +01:00
Darren Janeczek
e93ba13f7a datatrails: style: update buttons to secondary solid format (#84526)
* fix: secondary solid buttons for selecting metrics

* fix: secondary solid buttons for selecting labels

* fix: secondary solid buttons for adding filters
2024-03-15 11:00:05 -04:00
Gilles De Mey
85bd116a10 Alerting: Fix optional fields requiring validation rule (#84584)
fixes #84296
2024-03-15 15:49:05 +01:00
Sonia Aguilar
1f13a14815 Alerting: Fix wrong use of empty list in times field in the UI (#84179)
* Fix wrong use of empty list in times field in the UI

* Add tooltip for disable switch

* Show disabled badge in mute timings

* Disable time ranges when disabling time interval in the UI

* PR review comments

* remove tooltip for the field as it does not register it correctly

* remove wrong code line

* Add comment

* Address PR review comments
2024-03-15 15:48:16 +01:00
Torkel Ödegaard
4753948262 DashboardScene: Don't show switch to old dashboard architecture toggle unless you are in dev mode (#84444)
* DashboardScene: Don't show switch to old architecture toggle unless you are in dev mode

* Update
2024-03-15 15:39:04 +01:00
Karl Persson
d4e802dd47 Authn: Add function to resolve identity from org and namespace id (#84555)
* Add function to get the namespaced id

* Add function to resolve an identity through authn.Service from org and namespace id

* Switch to resolve identity for re-authenticate in another org
2024-03-15 15:08:15 +01:00
renovate[bot]
ced09883d3 Update dependency react-hook-form to v7.51.0 (#84582)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-15 14:08:06 +00:00
Eric Leijonmarck
6c8895e349 Service accounts: Same Org fix migration to account for duplicate entries (#84349)
* bug: fix migration to account for duplicate entries

* refactoring to create test folder for user migrations

* fix migration log

* added the migration

* additional tests

* added extSrv tests
2024-03-15 15:00:25 +01:00
Isabella Siu
a0b68deae4 Cloudwatch: Remove cloudWatchWildCardDimensionValues feature toggle (#84329) 2024-03-15 09:49:53 -04:00
Jack Westbrook
06723b9647 Chore: Pin version of playwright (#84558)
chore(playwright): pin version of playwright to prevent CI failures
2024-03-15 15:14:25 +02:00
Sonia Aguilar
fa9f692707 Alerting: Fix AlertsFolderView not showing rules when using nested folders (#84465)
* Fix AlertsFolderView not showing rules when using nested folders

* Fix tests
2024-03-15 14:08:09 +01:00
Isabel Matwawana
d06e73ac28 Docs: add alt text (#84532)
Added alt text
2024-03-15 09:04:46 -04:00
renovate[bot]
7a28ce7795 Update dependency eslint-webpack-plugin to v4.1.0 (#84571)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-15 13:04:38 +00:00
Matias Chomicki
15a641a509 Infinite Scroll: wait for users to reach the top before triggering new requests (#84318)
* Infinite Scroll: wait for users to reach the top before triggering new requests

* Prettier

* Infinite Scroll: control top scrolling via prop

* Prettier
2024-03-15 13:52:55 +01:00
ismail simsek
eae9bfe4bc Chore: Promlib allows extendOptions to be nil (#84463)
* use logger from service

* allow extendOptions to be nil

* Update logger
2024-03-15 13:37:29 +01:00
Isabel Matwawana
94a9aeaccc Docs: fix broken links (#84531)
Fixed broken links
2024-03-15 08:36:07 -04:00
renovate[bot]
25ed621aa3 Update dependency date-fns to v3.5.0 (#84557)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-15 12:10:17 +00:00
Sofia Papagiannaki
1208888bb6 Folders: Allow listing folders with write permission (#83527)
* Folders: Allow listing folders with write permission

* Check for subfolder access if parent does not have

* Add test

* GetFolders: fix ordering

* Apply suggestion from code review
2024-03-15 14:05:27 +02:00
Sonia Aguilar
39232a0776 Alerting: Show error message when error is thrown after clicking create alert f… (#84367)
Show error message when error is thrown after clicking create alert from panel
2024-03-15 12:36:34 +01:00
Jack Westbrook
0acb400248 Chore: Remove unused rollup plugin dependencies (#84492)
* chore(runtime): remove unused rollup-plugin-terser dependency

* chore(packages): remove more unused rollup plugins
2024-03-15 12:02:27 +01:00
renovate[bot]
a8432aad3d Update dependency @types/node to v20.11.28 2024-03-15 10:28:53 +00:00
tonypowa
500840ab77 alerting docs: slack integration (#84476)
* alerting docs: slack integration

* added links

* removed aliases and formated notes

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* amended links

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-slack.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* couple of minor corrections

* fixing link

* ran prettier

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-03-15 11:27:11 +01:00
Fabrizio
458d694d78 Update GitHub Actions to add datasource/Parca label (#84455) 2024-03-15 03:11:12 -07:00
kay delaney
6e6d6e368e Scenes: Restrict panel menu options when in edit mode (#84509) 2024-03-15 12:06:05 +02:00
Will Browne
9d453d0dcc Plugins: Remove direct featuremgmt.FeatureToggles dependency from plugins config (#84482) 2024-03-15 10:58:51 +01:00
kay delaney
c13e248384 Scenes: Fix issue with discarding unsaved changes modal in new dashboards (#84369) 2024-03-15 09:58:08 +00:00
Fabrizio
78d7ebd499 Fix GitHub action to add datasource/Jaeger label (#84448) 2024-03-15 10:54:00 +01:00
renovate[bot]
cc6439d989 Update dependency @manypkg/get-packages to v2.2.1 2024-03-15 09:50:28 +00:00
kay delaney
e5faeb324d Scenes: Make repeat panels respect maxPerRow (#84497) 2024-03-15 09:48:29 +00:00
Karl Persson
ebf455d107 RBAC: Don't refetch permissions when searching for users in authenticated org (#84546)
Don't refetch permissions when searching for users in authenticated org
2024-03-15 10:36:16 +01:00
renovate[bot]
25631fd107 Update dependency @grafana/scenes to v3.13.2 2024-03-15 09:27:41 +00:00
renovate[bot]
05f737b712 Update dependency @types/react to v18.2.66 2024-03-15 09:02:47 +00:00
Pepe Cano
06b8eb6279 Alerting docs: update Supported data sources (#84495)
* Alerting docs: update `Supported data sources`

* Update docs/sources/alerting/fundamentals/alert-rules/_index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-03-15 10:00:51 +01:00
dependabot[bot]
ff03cb33f1 Bump actions/upload-artifact from 3 to 4 (#84527)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-15 08:40:46 +00:00
Charandas
759cefd94c ExtSvcAccounts: FIX tests that accidently depended on enterprise (#84535)
* ExtSvcAccounts: FIX tests that accidently depended on enterprise

* fix
2024-03-15 08:18:11 +01:00
Lucy Chen
9d4504da08 Reporting: Update api doc for deprecated old schedule (#84072)
update api doc
2024-03-15 14:46:53 +09:00
Nick Richmond
8389ce3862 Prometheus: Fix incorrect baseline in classic histogram (#83863)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-03-15 02:49:13 +02:00
Charandas
34b5303daf K8s: file-storage: provide empty for resourceVersion initially (#84523) 2024-03-14 16:33:41 -07:00
Dan Cech
0fa0cede75 Storage: streamline context handling (#84319)
streamline context handling
2024-03-14 17:12:20 -04:00
Gabriel MABILLE
2795f9827a ExtSvcAccounts: FIX prevent service account deletion (#84502)
* ExtSvcAccounts: Fix External Service Accounts Login check

Co-authored-by: Karl Persson <kalle.persson@grafana.com>

* Remove service accounts assignments and permissions on delete

* Fix first set of tests

* Fix second batch of tests

* Fix third batch of tests

---------

Co-authored-by: Karl Persson <kalle.persson@grafana.com>
2024-03-14 19:11:02 +01:00
Yuri Tseretyan
827860d459 Alerting: Alerting accesscontrol utilities (#84508)
* create fake for accesscontrol.RuleService
* make errAuthorizationGeneric public
2024-03-14 14:03:53 -04:00
Timur Olzhabayev
6bc662e53b Chore: Removing error object from tracking (#84500)
Removing error object from tracking
2024-03-14 19:15:36 +02:00
Larissa Wandzura
f727e21873 Docs: Fixed a typo in the Azure config page (#84475)
fixed typo, cleaned up some language
2024-03-14 11:10:35 -05:00
Yuri Tseretyan
f7d836feed Alerting: Update rule provisioning service to accept user (#84480) 2024-03-14 12:04:10 -04:00
renovate[bot]
6d19894a7d Replace dependency rollup-plugin-terser with @rollup/plugin-terser 0.1.0 (#84487)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-14 16:01:58 +00:00
Pepe Cano
ec42b2a361 Alerting docs: restructure Introduction (#84248)
* Rename `Data sources` title

* Relocate and rename `Introduction/Notification templates`

* Rename `alert-rules/alert-instances` to `alert-rules/multi-dimensional-alerts`

* Move `fundamentals/high-availability` to `setup/enable-ha`

* Fix 404 high-availability alerting link on Setup HA Grafana docs

* Move alert manager/contact poitns/notification templates within Notifications

* Remove `Alerting on numeric data`

* Restructure Introduction v2

* Continue Intro restructuring

* Update docs/sources/alerting/fundamentals/alert-rules/_index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Complete contact point TODO

* Alias: alertManager

* Aliases `annotation-label` + content changes

* Aliases to `templating-labels-annotations`

* Aliases to `queries-conditions`

* Rename `rule-evaluation.md` file

* Aliases: `contact points`

* Aliases to `message-templating`

* Aliases to `alert-rules`

* Update links to new URL slugs

* Remove duplicated alias

* Remove trailing slash for external heading links

* Remove trailing slash in heading links to other grafana pages

* Change URL directory slug `fundamentals/notifications`

* rename title `Configure High Availability`

* Content changes

* Update docs/sources/alerting/fundamentals/alert-rules/_index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/configure-alert-state-history/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/configure-high-availability/_index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/configure-alert-state-history/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/configure-high-availability/_index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/configure-high-availability/_index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/configure-high-availability/_index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/fundamentals/alert-rules/_index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Fix broken link reference

* Fix `queries-and-conditions`

* Fix `alert-rule-evaluation` ref link

* Fix aliases + inline doc comments

* Fix broken link

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-03-14 16:58:18 +01:00
Ashley Harrison
321148511b Chore: Rewrite ConfirmButton (#84402)
* convert to function component, clean up + fix a11y

* use position: fixed;

* fix
2024-03-14 15:50:44 +00:00
renovate[bot]
81a63efab2 Update dependency rc-cascader to v3.24.0 (#84453)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-14 17:39:28 +02:00
Gilles De Mey
fe15bb5f48 Alerting: Update composable_kind.go (#84479)
update composable_kind.go
2024-03-14 17:20:23 +02:00
Alexander Zobnin
f36ad469d0 Access Control: Get global role from request params (#84469) 2024-03-14 16:17:24 +01:00
renovate[bot]
da66f560a5 Update dependency rc-tooltip to v6.2.0 (#84454)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-14 14:59:32 +00:00
Joao Silva
0b033106b0 Cascader: Add clear button (#84449) 2024-03-14 14:41:54 +00:00
Darren Janeczek
73d96b6d1f datatrails: fix: clearly identify unspecified label values (#84474)
fix: clearly identify unspecified label values
2024-03-14 10:39:01 -04:00
Gilles De Mey
8765c48389 Alerting: Remove legacy alerting (#83671)
Removes legacy alerting, so long and thanks for all the fish! 🐟

---------

Co-authored-by: Matthew Jacobson <matthew.jacobson@grafana.com>
Co-authored-by: Sonia Aguilar <soniaAguilarPeiron@users.noreply.github.com>
Co-authored-by: Armand Grillet <armandgrillet@users.noreply.github.com>
Co-authored-by: William Wernert <rwwiv@users.noreply.github.com>
Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
2024-03-14 15:36:35 +01:00
Alex Khomenko
f26344e176 Share modal: Remove deprecated Form components (#84173)
* EmailSharingConfiguration: Remove deprecated component

* CreatePublicDashboard: Remove deprecated component

* Update imports

* Update imports[2]

* Fix import
2024-03-14 16:26:15 +02:00
Yulia Shanyrova
9de3d75bea Plugins: Add reportInteraction into plugin search (#84283)
add reportInteraction into plugin search
2024-03-14 15:25:59 +01:00
Gilles De Mey
336acaf0bf Alerting: Promote new alerting detail view (#84277) 2024-03-14 15:18:01 +01:00
William Wernert
8690a42e33 Alerting: Disallow invalid rule namespace UIDs in provisioning API (#83938)
* Disallow invalid rule namespace UIDs in provisioning

Reject requests with rules that reference a nonexistent folder or have an empty folder uid
2024-03-14 09:58:25 -04:00
Timur Olzhabayev
8e90e02db2 Chore: Adding log also for cases where datasource UID length is invalid (#84443)
* Adding log also for datasource length
2024-03-14 14:49:07 +01:00
github-actions[bot]
660fe64bc6 I18n: Download translations from Crowdin (#84458)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-14 14:37:33 +02:00
Karl Persson
8d9521fb6d Refactor: Email verification (#84393)
* Update template names

* Add verifier that we can use to start verify process

* Use userVerifier when verifying email on update

* Add tests
---------

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2024-03-14 13:25:28 +01:00
Laura Fernández
38a8bf10f3 TimeRangePicker: Show UTC+00:00 instead of just UTC (#84395) 2024-03-14 13:06:34 +01:00
github-actions[bot]
ec5e18cd93 I18n: Download translations from Crowdin (#84435)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-14 11:45:51 +00:00
Gábor Farkas
97521ef988 postgres: improve snapshot-tests for long/wide situations (#84387) 2024-03-14 12:37:04 +01:00
Piotr Jamróz
0c4e0d0f70 Explore: Reorganize useStateSync code (#84281)
* Reorganize the code

* Simplify syncToURL

* Introduce InitState type
2024-03-14 13:27:18 +02:00
linoman
831ee9ee16 samlsettings: add sso settings saml feature flag (#84433)
* add feature flag for ssosettings saml configuration

* add generated files
2024-03-14 12:04:45 +01:00
Andreas Christou
391d14d091 Chore: Bump update checker interval to 1 day (#84404)
* Bump interval to 1hr

* 2 hours is better than 1

* Bump further to 1 day
2024-03-14 13:00:26 +02:00
Fabrizio
917b66bb7a Jaeger: Fix flaky test (#84441) 2024-03-14 12:54:04 +02:00
renovate[bot]
3692af05f8 Update dependency i18next-parser to v8.13.0 (#84437)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-14 10:46:12 +00:00
renovate[bot]
3dc7c4a2e3 Update dependency i18next to v23.10.1 (#84436)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-14 10:45:38 +00:00
dependabot[bot]
187d1afb9c Bump peter-murray/workflow-application-token-action from 2 to 3 (#84236)
Bumps [peter-murray/workflow-application-token-action](https://github.com/peter-murray/workflow-application-token-action) from 2 to 3.
- [Release notes](https://github.com/peter-murray/workflow-application-token-action/releases)
- [Commits](https://github.com/peter-murray/workflow-application-token-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: peter-murray/workflow-application-token-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-14 11:25:36 +01:00
Dmitry Filimonov
33154abcd9 FlameGraph: adds ability to add context menu items (#81675)
* pyroscope: adds ability to add context menu items

* moves things around

* removes console.log

* improvements

* Change the extra context button API shape

* Add test

* lint

---------

Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
2024-03-14 11:00:30 +01:00
renovate[bot]
40c2c2d6b8 Update dependency @grafana/scenes to v3.13.1 2024-03-14 09:54:46 +00:00
Josh Hunt
e6949d9838 E2C: Resources table (#84317)
* first pass at mock api and table

* finish up resources table

* i18n

* centre icon:
2024-03-14 09:46:18 +00:00
Torkel Ödegaard
5d23bc48b4 DashboardScene: Fixes panel editor padding (#84426) 2024-03-14 10:37:26 +01:00
renovate[bot]
0c472ff00d Update dependency eslint-plugin-jsdoc to v48.2.1 (#84427)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-14 11:34:14 +02:00
renovate[bot]
84cbd5fe5c Update dependency eslint-plugin-react to v7.34.0 (#84428)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-14 11:30:50 +02:00
dependabot[bot]
5cc92b6202 Bump frabert/replace-string-action from 2.0 to 2.5 (#84235)
Bumps [frabert/replace-string-action](https://github.com/frabert/replace-string-action) from 2.0 to 2.5.
- [Release notes](https://github.com/frabert/replace-string-action/releases)
- [Commits](https://github.com/frabert/replace-string-action/compare/v2.0...v2.5)

---
updated-dependencies:
- dependency-name: frabert/replace-string-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-03-14 10:20:24 +01:00
renovate[bot]
0b806597c3 Update dependency date-fns to v3.4.0 (#84390)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-14 09:10:59 +00:00
renovate[bot]
1d96707295 Update dependency eslint-plugin-jest to v27.9.0 (#84425)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-14 10:56:05 +02:00
renovate[bot]
b3f28205a1 Update dependency @grafana/scenes to v3.13.0 (#84405)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-14 08:35:41 +00:00
Pepe Cano
e1d9aa5a7b Alerting docs: document HTTP API to create templates (#84055) 2024-03-14 09:01:13 +01:00
Charandas
b6a020148b K8s: disallow MT storage functionality for Aggregator builders (#84408) 2024-03-14 01:54:30 +02:00
renovate[bot]
3696eca280 Update dependency diff to v5.2.0 (#84391)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-13 17:45:47 +00:00
Nathan Marrs
9573c13223 Canvas: Add universal data link support (#84142) 2024-03-13 19:30:12 +02:00
Oscar Kilhed
0fe5b62fa5 Dashboard scenes: Unlink library panel inside edit mode (#84355)
Unlink library panel inside edit mode
2024-03-13 18:22:22 +01:00
Kevin Minehart
cf6bed7ae5 Trigger downstream from grafana and not the mirror (#84381) 2024-03-13 12:21:08 -05:00
Sven Grossmann
34f9bff9e0 Loki: Fix null pointer exception in case request returned an error (#84398)
Loki: Fix nullpointer in case query returned an error
2024-03-13 18:14:21 +01:00
David Harris
d3ef762cb9 docs: update angular guidance (#84363)
* docs: update angular guidance

* Update docs/sources/developers/angular_deprecation/_index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/developers/angular_deprecation/_index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* update

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-03-13 16:42:48 +00:00
mschaul
3a2c7d8a99 Transformations: Fix series to rows to work with only one series (#84232) 2024-03-13 10:28:29 -06:00
Giuseppe Guerra
f554bc8224 Chore: Remove go mod replace directives for otel dependencies (#81628)
* Chore: Remove go mod replace directives for otel dependencies

* go mod tidy
2024-03-13 18:27:44 +02:00
Victor Marin
90e0f8cab6 Allows re-entering edit mode after version restore (#84298)
* Allows re-entering edit mode after version restore

* refactor

* revert to previous commit
2024-03-13 18:24:26 +02:00
Selene
5c7849417b Schemas: Replace registry generation and github workflow (#83490)
* Create small registries for core and composable kinds

* Update workflow with new registries

* Fix imports in plugin schemas and deleted old registry generation files

* Remove verification and maturity

* Modify registries and add missing composable information to make schemas in kind-registry work

* Add missing aliases

* Remove unused templates

* Remove kinds verification

* Format generated code

* Add gen header

* Delete unused code and clean path in composable template

* Delete kind-registry loader

* Delete unused code

* Update License link

* Update codeowners path

* Sort imports

* More cleanup

* Remove verify-kinds.yml from codeowners

* Fix lint

* Update composable_kidns

* Fix cue extension

* Restore verify-kinds to avoid to push outdated kind's registry

* Fix composable format

* Restore code owners for verify-kinds

* Remove verify check
2024-03-13 18:05:21 +02:00
Alexander Zobnin
fd9031ca37 Access Control: Get org from request data for authorization (#84359)
* Access Control: Get org from request data for authorization

* move type to models

* Update pkg/services/accesscontrol/middleware.go

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>

* refactor

* refactor

* Fix linter

---------

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2024-03-13 17:05:03 +01:00
renovate[bot]
d480d3296c Update d3 (#84383)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-13 15:42:18 +00:00
renovate[bot]
6cc51b21d1 Update dependency @grafana/scenes to v3.12.0 (#84385)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-13 17:36:04 +02:00
Gábor Farkas
eca1bba01e postgres: add more tests (to handle zero-rows queries) (#84384) 2024-03-13 16:23:50 +01:00
renovate[bot]
2420c5aa4d Update dependency @types/node to v20.11.27 2024-03-13 15:17:45 +00:00
Dominik Prokop
8c7e65f6f4 Dashboard settings: Allow saving dashboard from JSON model view (#84343)
* Dashboard settings: Allow saving dashboard from JSON model view

* Dashboard settings: Allow saving dashboard from JSON model view

* Review fix
2024-03-13 16:15:40 +01:00
Ivana Huckova
447e72fe43 Docs: Add information about supported Loki versions by Loki data source (#84376)
* Docs: Add Loki supported versions

* Update
2024-03-13 16:03:20 +01:00
renovate[bot]
bc2d7cf8e1 Update dependency xss to v1.0.15 (#84379)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-13 15:02:06 +00:00
kay delaney
1e02c831ad Chore: Bump esbuild and esbuild-loader (#84164)
Chore: Bump esbuild and related dependencies
2024-03-13 14:39:30 +00:00
Joey
2f0784186b Tempo: Minor update to fix Tempo dev env as new vParquet used (#84348)
* Minor update to fix Tempo dev env as new vParquet used

* Remove vParquet version
2024-03-13 14:22:57 +00:00
Joey
1f2e9a544d Tempo: Remove Loki tab (#84346)
* Update docs

* Remove loki tab from config settings

* Remove loki query field

* Remove loki search from ds, resultTransformer, tracking and tests

* Cleanup removal of loki search

* Remove loki section from query editor docs

* Remove search type
2024-03-13 14:22:20 +00:00
Georges Chaudy
06b7f6befa k8s: ensure unified storage address is populated from config ini (#84373)
fix: ensure unified storage address is populated from config ini
2024-03-13 15:17:26 +01:00
renovate[bot]
f2567f5100 Update dependency webpackbar to v6.0.1 2024-03-13 13:49:43 +00:00
Misi
f5c78e0ad9 RBAC: Add ActionSettingsRead action to general.auth.config writer (#84366)
Add ActionSettingsRead action to general.auth.config writer
2024-03-13 14:48:13 +01:00
Sergej-Vlasov
c0d0f13a8d DashboardScene: Reset query variable query and definition on datasource change (#84347)
reset query variable query and definition on datasource change
2024-03-13 15:41:03 +02:00
Erik Sundell
c0933fa6bb Chore: Bump to latest version of plugin-e2e (#84370)
bump plugin-e2e and update tests
2024-03-13 14:37:28 +01:00
renovate[bot]
0604ddac13 Update dependency nanoid to v5.0.6 (#84372)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-13 15:28:29 +02:00
Gábor Farkas
0981403373 PostgreSQL: Display correct initial value for tls mode (#84356) 2024-03-13 14:23:17 +01:00
renovate[bot]
cd545ecb71 Update dependency dompurify to v3.0.9 (#84371)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-13 13:10:37 +00:00
renovate[bot]
d6acb474cf Update dependency @types/react-dom to v18.2.22 2024-03-13 12:47:58 +00:00
renovate[bot]
13f597ef63 Update dependency @glideapps/glide-data-grid to v6.0.3 (#84361)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-13 12:25:28 +00:00
Alex Khomenko
7feeb7ce4e Cascader: Add id prop (#84240)
* Cascader: Add id prop

* Remove placeholder
2024-03-13 14:01:24 +02:00
Matias Chomicki
a89f1c2200 Popover Menu: fix issue hiding menu behind scrollable container (#84311)
* PopoverMenu: change position to fixed

* PopoverMenu: close on empty selectionchange

* Popover Menu: do not let menu overflow the window dimensions

* Prettier
2024-03-13 13:41:18 +02:00
Jack Westbrook
6599fa805d Plugins: Always load decoupled frontend assets from builds (#81873)
* Wip

* Wip

* Adapt to load external module

* build: remove cloudmonitoring from built_in_plugins, clean up webpack output

* chore(plugins): remove decoupled plugins from package.json deps

* chore(codeowners): update file for nx.json

* revert(webpack): put back path in config

* build(frontend): use nx to run prod builds of decoupled plugins with yarn build

* style(prometheus): run prettier-write to fix tsconfig.json

* style(backend): remove unused subFile.isDistDir

* revert(locales): remove formatting changes adding new line at end of files

* chore(webpack): clean up dev output

* build(nx): make grafana an nx project, bump lerna and nx

* build(plugin-configs): move cache directory to node_modules

* style(datasource-plugins): add eslint ignore for .gen.ts files

* chore(codeowners): add frontend-ops as owner of project.json

* build(webpack): add getDecoupledPlugins to automatically ignore when watching

* ci(drone): skip nx cache when building frontend packages

* style(ci): fix missing trailing comma

* Revert "style(ci): fix missing trailing comma"

This reverts commit 7520d41576.

* Revert "ci(drone): skip nx cache when building frontend packages"

This reverts commit 46938883ac.

* feat(zipkin): remove from grafana core bundle

* chore(npm): bump nx package to latest 18.0.8

* docs(dev-guide): add a note about what yarn start now builds

---------

Co-authored-by: Andres Martinez <andres.martinez@grafana.com>
2024-03-13 12:40:09 +01:00
Selene
75ea33e0cd Schemas: Delete unused code from the previous refactors (#84254)
* Delete unused code from the previous refactors

* Sort imports
2024-03-13 12:30:05 +01:00
Ivana Huckova
2a1a5145d0 Elasticsearch: Fix using of individual query time ranges when querying (#84201)
* WIP - proof of concept

* Update pkg/tsdb/elasticsearch/client/client.go

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

* update and add test

* lint

* Fix lint

* Bring back logging when creating client

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2024-03-13 12:49:35 +02:00
Fabrizio
8ed4d5127f Jaeger: Add tests (#83431) 2024-03-13 11:38:17 +01:00
Ivana Huckova
154896b47e Docs: Update documentation for Elasticsearch (#84350)
* Docs: Update documentation for Elasticsearch lucene query

* Update docs/sources/datasources/elasticsearch/query-editor/index.md

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

* Update docs/sources/datasources/elasticsearch/query-editor/index.md

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2024-03-13 12:25:28 +02:00
Timur Olzhabayev
c6140b9893 Docs: Aligning fallback values with documentation (#83617)
aligning fallback values with documentation
2024-03-13 11:19:04 +02:00
Andres Martinez Gotor
c061cc33cc Chore: Use response limit middleware from SDK (#83915) 2024-03-13 10:14:16 +01:00
Gábor Farkas
ecd6de826a Postgres: Switch the datasource plugin from lib/pq to pgx (#83768)
postgres: switch from lib/pq to pgx
2024-03-13 09:52:39 +01:00
Mihai Doarna
2acd48d1c2 SSO: fix mergeSettings() in case the DB contains empty URLs (#84290)
* fix mergeSettings() in case the db contains empty strings

* use correct github urls in test

* overwrite only urls

* update comment for mergeSettings()
2024-03-13 10:31:17 +02:00
linoman
66fa310fba SAMLSettings: implement settings strategy (#84191)
* add strategy and tests

* use settings provider service and remove multiple providers strategy

* update codeowners file

* reload from settings provider
2024-03-13 09:14:42 +01:00
Domas
9b2058f814 TracesPanel: Expose focusedSpanLink and createFocusSpanLink as options (#84060)
expose focus span link via traces panel options
2024-03-13 09:23:51 +02:00
Alex Khomenko
e6c20e91bc UserInviteForm: Remove deprecated Form components (#84293)
* UserInviteForm: Remove deprecated Form components

* Use the Form rom core
2024-03-13 08:52:57 +02:00
Leon Sorokin
608b40b2a8 Transforms: Fix field matching in Format time, and add tpl var interpolation (#84239) 2024-03-12 17:55:23 -05:00
Leon Sorokin
220fea966b CursorSync: Extract EventBus logic into shared plugin (#84111) 2024-03-12 17:15:38 -05:00
Sarah Zinger
3f5526b915 Cloudwatch: Fix issue with Grafana Assume Role (#84315) 2024-03-12 16:30:54 -04:00
Charandas
0eee72824c K8s: omit CABundle until insecure is false (#84323) 2024-03-12 21:58:02 +02:00
Yuri Tseretyan
cfc3957894 Alerting: move store.ErrAlertRuleGroupNotFound to models package (#84308)
move ErrAlertRuleGroupNotFound to models to avoid future circular dependencies
2024-03-12 15:38:21 -04:00
Isabel Matwawana
e552e21221 Docs: clarify query formatting for time range variable queries (#84074)
* Added time range variable guidance

* Reworded

* Applied review suggestion
2024-03-12 15:37:50 -04:00
Isabel Matwawana
9da48a8a48 Docs: add table visualization for logs entry to what's new (#84313)
Added new entry
2024-03-12 13:28:58 -04:00
Andres Martinez Gotor
265200799d Chore: Update grafana-plugin-sdk (#84289) 2024-03-12 17:13:23 +01:00
Gilles De Mey
e6150a792a Alerting: Always omit IDs from all routes when updating notification policy tree (#84304) 2024-03-12 18:04:49 +02:00
renovate[bot]
e421ff3e2c Update dependency webpack-dev-server to v5.0.3 2024-03-12 15:40:14 +00:00
Aaron Godin
5c96b90852 docs: rewrite grafana-com oauth to better align with naming conventions (#84294)
* docs: rewrite grafana-com oauth to better align with naming conventions

* docs: update links used to grafana-cloud auth page
2024-03-12 10:38:43 -05:00
Ezequiel Victorero
98fb8fad43 Docs: Update external snapshots cloud docs (#84255)
* Docs: Update external snapshots cloud docs

* Update docs/sources/dashboards/share-dashboards-panels/index.md

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-03-12 12:22:10 -03:00
renovate[bot]
46a35775ae Update dependency @types/lodash to v4.17.0 (#84299)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-12 17:13:14 +02:00
Dominik Prokop
7c1ad64bb2 DashboardScene: Make sure dashboard prompt is shown when navigating away way from an edited dashboard (#84077)
DashboardScene: Make sure dashboard prompt is shown when navigating away from an edited dashboard

Co-authored-by: Oscar Kilhed <oscar.kilhed@grafana.com>
2024-03-12 16:12:00 +01:00
ismail simsek
22860a7978 Chore: Use mapUtil from grafana-plugin-sdk-go (#84297)
use mapUtil from grafana-plugin-sdk-go
2024-03-12 10:08:10 -05:00
Joao Silva
6080a9c094 Cascader: Don't lose input value when typing (#84274) 2024-03-12 15:00:51 +00:00
renovate[bot]
d63bc6d2e4 Update dependency @playwright/test to v1.42.1 (#84292)
* Update dependency @playwright/test to v1.42.1

* update playwright image

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-03-12 14:53:55 +00:00
Matias Chomicki
fb172b1b33 Explore logs: remove exploreScrollableLogsContainer and track scroll to top (#84291)
* exploreScrollableLogsContainer: remove

* LogsNavigation: track scroll to top clicks

* Add missing dependency to the effect
2024-03-12 15:53:13 +01:00
Leonard Gram
f15aa2d30d CloudMigrations: draft of cloud migration tables (#83990)
* CloudMigrations: draft of cloud migration tables

* naming migration rules

* removes feature flag for migration

* tweaked db types

* removed comment
2024-03-12 15:44:10 +01:00
Marie Cruz
90ff576cb7 docs: slight update to grafana fundamentals (#84287) 2024-03-12 14:23:45 +00:00
Michael Mandrus
d69b19e431 Queries: Improve debug logging of metrics queries (#84048)
* just log everything

* fix times
2024-03-12 16:17:22 +02:00
Joey
42d8f1bef9 Tempo: Update TraceQLStreaming feature toggle stage (#84203)
Update TraceQLStreaming feature toggle stage
2024-03-12 14:10:13 +00:00
renovate[bot]
bce6a0a987 Update dependency @grafana/scenes to v3.12.0 (#84280)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-12 14:03:20 +00:00
William Wernert
10dc6c6d75 Alerting: Add "Keep Last State" backend functionality (#83940)
* Implement keep last state for state transitions

* Respect For duration when keeping state

* Only keep transition from recording an annotation

* Add keep last state option for nodata/error in UI
2024-03-12 10:00:43 -04:00
Sergey Kostrukov
fe1ed0a9e1 Azure: Add list of clouds in frontend AzureSettings (#84039)
Add list of supported clouds in AzureSettings
2024-03-12 13:49:30 +00:00
ismail simsek
ae70cd953d Chore: Use the promlib v0.0.1 (#84210)
* use the promlib v0.0.1

* add a readme

* go mod update

* replace promlib

* update readme

* update

* update go work sum

* update 2

* update readme
2024-03-12 15:25:32 +02:00
Eric Leijonmarck
0cb9f2bb8d Users: Add back check for undefined / null for value for lastSeenAtAge in table view (#84265)
bug: add check for undefined / null for value
2024-03-12 14:22:13 +01:00
Josh Hunt
6eaab9e57d E2C: Use ConfirmModal for DisconnectModal (#84279)
change disconnect modal to use confirmmodal
2024-03-12 13:07:23 +00:00
renovate[bot]
ff62474f9b Update dependency @grafana/faro-web-sdk to v1.4.2 (#84278)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-12 13:03:21 +00:00
Dominik Prokop
b8d4d28f4a DashboardScene: Fix Get Help panel menu for lib panels (#84272) 2024-03-12 13:54:55 +01:00
Dominik Prokop
39b682e333 DashboardScene: Fix dashboard being restored to initial state after successful save (#84183)
* Failing test

* Do not restore initial state after edit mode exit when dashboard is not dirty
2024-03-12 13:54:47 +01:00
Erik Sundell
2a7785c262 CI: Allow failed Playwright tests to fail entire build (#84244)
* bump plugin-e2e and fix failing test

* do not ignore failures

* generate trace on every test

* force test to fail for debugging purposes

* fix broken test

* regenerate drone file
2024-03-12 13:48:32 +01:00
renovate[bot]
7348d9cd47 Update dependency @grafana/faro-web-sdk to v1.4.2 (#84270)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-12 12:42:24 +00:00
Josh Michielsen
297d73a7df InfluxDB: Add configuration option for enabling insecure gRPC connections (#83834)
* InfluxDB: add configuration option for enabling insecure gRPC connections

* fix: add insecureGrpc to InfluxOptions

* rename options label 'gRPC' -> 'Connection'

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>

* update docs: rename options label 'gRPC' -> 'Connection'

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>

* default insecure connection boolean to false in frontend

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>

* run prettier:write

---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-03-12 13:36:11 +01:00
Gilles De Mey
388e0c27f2 Alerting: Allow inserting before or after existing policy (#83704) 2024-03-12 13:28:37 +01:00
renovate[bot]
78478dc235 Update dependency @grafana/faro-core to v1.4.2 (#84267)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-12 14:09:47 +02:00
renovate[bot]
2fe9376d12 Update dependency ol-ext to v4.0.17 2024-03-12 11:50:49 +00:00
Josh Hunt
4fc4a1c4a8 Playlists: Fix kiosk mode not activating when starting a playlist (#84262)
* Playlists: Fix Kiosk mode not activating when starting a playlist

* oops remove debugger
2024-03-12 11:48:18 +00:00
renovate[bot]
a883df633e Update dependency @types/react to v18.2.65 2024-03-12 11:30:56 +00:00
Victor Gorchilov
fa6e4bbcd0 Users: Resurrect org picker's search functionality (#78886)
[up] return search for org picker
2024-03-12 13:29:02 +02:00
Eric Leijonmarck
fbfaf8e003 OrgUsers: Refactor change LastSeenAtAge from '10 years' to 'Never' (#84247)
* refactor: change lastseenatage to Never

* removed unncessecary fragments
2024-03-12 12:18:33 +01:00
ismail simsek
c45f96e9de Chore: Fix feature toggle docs (#84256)
update docs
2024-03-12 12:07:07 +01:00
Alex Khomenko
59fed9278b Switch: Remove "transparent" prop (#83705)
* Switch: Remove transparent prop

* Cleanup

* Remove redundant prop
2024-03-12 12:51:58 +02:00
Sofia Papagiannaki
22d8258e48 Postgres: Allow disabling SNI on SSL-enabled connections (#83892)
* Postgres: Allow disabling SNI on SSL-enabled connections

* Update docs/sources/setup-grafana/configure-grafana/_index.md

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2024-03-12 12:03:24 +02:00
Adam Yeats
c2b94429e4 Google Cloud Monitor: Fix res being accessed after it becomes nil in promql_query.go (#84223)
Fix res being accessed after it becomes nil in promql_query.go
2024-03-12 10:38:16 +01:00
renovate[bot]
3085d53802 Update dependency @types/node to v20.11.26 2024-03-12 09:32:25 +00:00
renovate[bot]
6e661fa770 Update babel monorepo to v7.24.0 (#84206)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-12 08:46:11 +00:00
Misi
63f1c30313 Auth: Set the default org after User login (#83918)
* poc

* add logger, skip hook when user is not assigned to default org

* Add tests, move to hook folder

* docs

* Skip for OrgId < 1

* Address feedback

* Update docs/sources/setup-grafana/configure-grafana/_index.md

* lint

* Move the hook to org_sync.go

* Update pkg/services/authn/authnimpl/sync/org_sync.go

* Handle the case when GetUserOrgList returns error

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
Co-authored-by: Karl Persson <kalle.persson@grafana.com>
2024-03-12 09:35:13 +01:00
Erik Sundell
8c06c0dea7 Panel edit: Add e2e selectors to input fields (#83246)
add selectors for input fields
2024-03-12 09:17:41 +01:00
Karl Persson
6ea9f0c447 AuthN: Use fetch user sync hook for render keys connected to a user (#84080)
* Use fetch user sync hook for render keys connected to a user
2024-03-12 09:15:14 +01:00
Victor Marin
f50624d257 Scenes: Duplicate library panels (#84159)
duplicate library panels
2024-03-12 10:11:15 +02:00
linoman
298384cea9 Disable skip button when strong password feature is enabled (#84211) 2024-03-12 08:31:52 +01:00
Armand Grillet
e33e219a9a Remove legacy alerting docs (#84190) 2024-03-12 05:37:41 +01:00
Charandas
da327ce807 K8s: enable insecure to skip server cert validation for now (#84038) 2024-03-12 01:13:14 +02:00
Alexander Weaver
6c5e94095d Alerting: Scheduler and registry handle rules by an interface (#84044)
* export Evaluation

* Export Evaluation

* Export RuleVersionAndPauseStatus

* export Eval, create interface

* Export update and add to interface

* Export Stop and Run and add to interface

* Registry and scheduler use rule by interface and not concrete type

* Update factory to use interface, update tests to work over public API rather than writing to channels directly

* Rename map in registry

* Rename getOrCreateInfo to not reference a specific implementation

* Genericize alertRuleInfoRegistry into ruleRegistry

* Rename alertRuleInfo to alertRule

* Comments on interface

* Update pkg/services/ngalert/schedule/schedule.go

Co-authored-by: Jean-Philippe Quéméner <JohnnyQQQQ@users.noreply.github.com>

---------

Co-authored-by: Jean-Philippe Quéméner <JohnnyQQQQ@users.noreply.github.com>
2024-03-11 22:57:38 +02:00
Oscar Kilhed
0b2640e9ff Dashboard scenes: Editing library panels. (#83223)
* wip

* Refactor find panel by key

* clean up lint, make isLoading optional

* change library panel so that the dashboard key is attached to the panel instead of the library panel

* do not reload everything when the library panel is already loaded

* Progress on library panel options in options pane

* We can skip building the edit scene until we have the library panel loaded

* undo changes to findLibraryPanelbyKey, changes not necessary when the panel has the findable id instead of the library panel

* fix undo

* make sure the save model gets the id from the panel and not the library panel

* remove non necessary links and data providers from dummy loading panel

* change library panel so that the dashboard key is attached to the panel instead of the library panel

* make sure the save model gets the id from the panel and not the library panel

* do not reload everything when the library panel is already loaded

* Fix merge issue

* Clean up

* lint cleanup

* wip saving

* working save

* use title from panel model

* move library panel api functions

* fix issue from merge

* Add confirm save modal. Update library panel to response from save request. Add library panel information box to panel options

* Better naming

* Remove library panel from viz panel state, use sourcePanel.parent instead. Fix edited by time formatting

* Add tests for editing library panels

* implement changed from review feedback

* minor refactor from feedback
2024-03-11 20:48:27 +01:00
David Harris
efbcd53119 docs: update angular deprecation notice (#84227)
update docs
2024-03-11 19:17:20 +00:00
Dan Cech
1ffd1cc8f4 Storage: Support listing deleted entities (#84043)
* support listing deleted entities

* fold listDeleted into List
2024-03-11 13:59:54 -04:00
Isabel Matwawana
ffd0bdafe4 Docs: fix broken link (#84103)
* Fixed broken link

* Removed trailing slash

* Ran prettier
2024-03-11 12:57:51 -04:00
Isabel Matwawana
e2cc5e57e5 Docs: add missing alt text (#84102)
Added missing alt text
2024-03-11 12:57:02 -04:00
Tobias Skarhed
5ae9cd561c Accessibility: Improve HelpModal markup (#83171)
* HelpModal: Make more accessible

* Remove console.log

* Handle custom keys for screen reader

* Rewrite using tables

* Increase gap

* Change order of help categories

* HelpModal: Add tabIndex and imrpove sr-only display
2024-03-11 16:43:55 +00:00
renovate[bot]
3449a43ff2 Update react monorepo 2024-03-11 16:24:00 +00:00
ismail simsek
3fb6319d1b Prometheus: Introduce prometheus backend library (#83952)
* Move files to prometheus-library

* refactor core prometheus to use prometheus-library

* modify client transport options

* mock

* have a type

* import aliases

* rename

* call the right method

* remove unrelated test from the library

* update codeowners

* go work sync

* update go.work.sum

* make swagger-clean && make openapi3-gen

* add promlib to makefile

* remove clilogger

* Export the function

* update unit test

* add prometheus_test.go

* fix mock type

* use mapUtil from grafana-plugin-sdk-go
2024-03-11 17:22:33 +01:00
Usman Ahmad
cfc7ea92da corrected the minor details (#84046)
* corrected the minor details

Making minor changes after the PR merged on Data sources and Data source administration.

https://github.com/grafana/grafana/pull/83712

* Apply suggestions from code review

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Update docs/sources/panels-visualizations/_index.md

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Ran prettier

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: Isabel Matwawana <isabel.matwawana@grafana.com>
2024-03-11 16:21:37 +00:00
renovate[bot]
b6c550c524 Update dependency xss to v1.0.15 2024-03-11 15:51:26 +00:00
ismail simsek
3bb38d82ab Chore: Bump grafana-plugin-sdk-go version to v0.214.0 (#84162)
* bump grafana-plugin-sdk-go version to v0.214.0

* make swagger-clean && make openapi3-gen
2024-03-11 16:49:53 +01:00
renovate[bot]
7d1ea1c655 Update dependency rudder-sdk-js to v2.48.3 2024-03-11 15:30:46 +00:00
Will Browne
225ac8003c Plugins: Tidy config struct (#84168)
* tidy plugins config usage

* fix tests
2024-03-11 16:28:46 +01:00
Giordano Ricci
0c6b0188c8 Explore: Remove deprecated query option from splitOpen (#83973)
* Chore: remove deplrecated queries option from splitOpen

* make queries option required

* use left pane queries when splitting an existing pane
2024-03-11 15:17:07 +00:00
Karl Persson
9c292d2c3f AuthN: Use sync hook to fetch service account (#84078)
* Use sync hook to fetch service account
2024-03-11 15:56:53 +01:00
kay delaney
d8b8a2c2b0 Dashboard: Fix issue where out-of-view shared query panels caused blank dependent panels (#83966) 2024-03-11 14:53:59 +00:00
renovate[bot]
dd01743de7 Update dependency react-virtualized-auto-sizer to v1.0.24 2024-03-11 16:50:20 +02:00
Ashley Harrison
b0848c9726 Empty state: Add animation for Grot (#83770)
* add animation for grot not found

* extract default interval out into constant

* improve relative path

* extract magic numbers out into constants + throttle properly

* better width/height definitions

* use consistent background + apply to PageNotFound as well

* increase gap in command palette empty state
2024-03-11 14:46:53 +00:00
Jack Westbrook
d4b43640f3 Revert "Update dependency @swc/core to v1.4.6" (#84186)
* Revert "Update dependency @swc/core to v1.4.6"

This reverts commit 4d7220dbdf.

* chore(renovate): ignore swc/core for time being due to bugs in versions ~1.4.5
2024-03-11 16:33:37 +02:00
renovate[bot]
ad280db89e Update dependency postcss-loader to v8.1.1 2024-03-11 16:28:12 +02:00
Jo
108202f96c UsageStats: Separate context and threads for usage stats (#83963)
* separate context and threads for usage stats

* use constants

* ignore original context

* fix runMetricsFunc

* fix collector registration

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

* change background ctx

* fix test randomness

* Add traces to support bundle collector

* Remove unecessay span

* Add trace to usagestats api

* Close spans

* Mv trace to bundle

* Change span name

* use parent context

* fix runtime declare of stats

* Fix pointer dereference problem on usage stat func

Co-authored-by: Karl Persson <kalle.persson@grafana.com>
Co-authored-by: jguer <joao.guerreiro@grafana.com>

* fix broken support bundle tests by tracer

---------

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
Co-authored-by: gamab <gabriel.mabille@grafana.com>
Co-authored-by: Karl Persson <kalle.persson@grafana.com>
2024-03-11 15:18:42 +01:00
renovate[bot]
5653518e1a Update dependency ol-ext to v4.0.16 2024-03-11 14:10:54 +00:00
Karl Persson
0b55d72fb5 FeatureToggles: Add feature toggle for sso email verification (#84184)
* FeatureToggles: Add feature toggle for sso email verification

* Rename toggle

* Fix json
2024-03-11 15:09:44 +01:00
renovate[bot]
876030f7a6 Update dependency msw to v2.2.3 2024-03-11 13:50:05 +00:00
github-actions[bot]
c21278397b I18n: Download translations from Crowdin (#84051)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-11 15:17:13 +02:00
Karl Persson
4272483c54 Auth: Only call rotate token if we have a session expiry cookie (#84169)
Only call rotate token if we have a session expiry cookie
2024-03-11 14:10:03 +01:00
carrychair
0913324668 Chore: Remove repetitive words (#84132)
remove repetitive words

Signed-off-by: carrychair <linghuchong404@gmail.com>
2024-03-11 08:55:18 -04:00
renovate[bot]
2d0fc3ef33 Update dependency mini-css-extract-plugin to v2.8.1 2024-03-11 12:53:41 +00:00
Torkel Ödegaard
8048e1360d Dashboards: Update scenes lib to 3.10 (#84075)
* Dashboards: Update scenes lib to 3.10

* Update
2024-03-11 13:33:48 +01:00
Ivan Ortega Alba
4a81a0388b Playlist: run on Scenes (#83551)
* DashboardScene: Implement playlist controls

* Mock the runtime config properly

* PlaylistSrv: with state you can subscribe to (#83828)

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-03-11 13:33:32 +01:00
Josh Hunt
1ab8857e48 E2C: Add cloud migration is_target server config option (#83419) 2024-03-11 14:29:44 +02:00
renovate[bot]
fa888af212 Update dependency marked to v12.0.1 2024-03-11 12:25:02 +00:00
Giordano Ricci
c950b716ff Chore: Remove deprecated ExploreQueryFieldProps (#83972) 2024-03-11 12:10:06 +00:00
Giordano Ricci
937390b91c Chore: Remove deprecated exploreId from QueryEditorProps (#83971) 2024-03-11 12:09:43 +00:00
ldomesjo
01c8b7b611 Documentation: Updated yaml for influxdb data sources (#84119)
* Update _index.md

Updated instructions for influx v2

* Added version:SQL to influx v3 example in _index.md
2024-03-11 12:55:21 +01:00
Selene
275ccf994b Schemas: Reduce duplicated jenny code (#84061)
* Remove jenny_ts_resources and use jenny_ts_types for all cases

* Unify TS generated files into one jenny

* Add missing imports to versioned files

* Update Parca plugin

* Fix loki

* Use LokiQuery

* Fix pyroscope tests

* Fix prettier

* 😒 fix default pyroscope value name

* Set the LokiQuery

* Update Elasticsearch and TestData

* Missed files from testdata

* Order imports
2024-03-11 12:51:44 +01:00
renovate[bot]
bd9f9c9eb0 Update dependency immer to v10.0.4 2024-03-11 13:44:39 +02:00
Leonard Gram
5a123bda80 CloudMigration: wires the service (#84081) 2024-03-11 12:40:26 +01:00
Alex Khomenko
ffe5c97b2d Chore: Remove InputControl usage from explore (#83742)
* Explore: Remove deprecated Form components from CorrelationTransformationAddModal.tsx

* Explore: Remove deprecated Form components from AddToDashboardForm.tsx
2024-03-11 13:36:36 +02:00
Alex Khomenko
4fc5c0dc21 Chore: Remove Form components from TransformationsEditor (#83743)
Chore: remove Form components from correlations
2024-03-11 13:36:24 +02:00
Ashley Harrison
0280fac0e3 DatePickerWithInput: Set zIndex for popover correctly (#84154)
set zIndex for popover correctly
2024-03-11 11:35:59 +00:00
kay delaney
8206a23061 Scenes/Repeats: Show reduced panel menu for repeat panels (#84085) 2024-03-11 13:27:12 +02:00
renovate[bot]
b2b825db69 Update dependency centrifuge to v5.0.2 2024-03-11 11:16:29 +00:00
renovate[bot]
0a12377a19 Update dependency autoprefixer to v10.4.18 2024-03-11 10:57:19 +00:00
Tobias Skarhed
940d20e115 Accessibility: Improve landmark markup (#83576)
* Landmark: main

* Landmark: add header

* Submenu: Move conditional display up

* NewsPanel: use h3 as the article label

* Use title for article id

* Update test showing a false positive

* DashboardPage: Expect submenu to not be shown
2024-03-11 11:43:22 +01:00
renovate[bot]
534855d086 Update dependency @types/node to v20.11.25 2024-03-11 10:39:32 +00:00
Victor Marin
9c22a6144e Scenes: Row controls (#83607)
* wip row controls

* wip row repeats

* wip

* wip

* row repeat functional

* refactor

* refactor to reuse RepeatRowSelect2

* refactor + tests

* remove comment

* refactor
2024-03-11 12:34:40 +02:00
Oscar Kilhed
87d6bebb9e Dashboard scenes: Remove panel menu options that are dashboard editing activities when not in edit mode. (#84156)
* remove panel menu options that are dasbhoard editing activities when the dashboard is not in edit mode

* remove corresponding keybindings when not in edit mode

* add keyboard shortcuts but inactivate them when not in edit mode

* Add tests; fix tests
2024-03-11 11:33:33 +01:00
Joey
e8ecbaffc2 UX: Update trace to logs tooltip to improve clarity (#83508)
* Update tooltip to improve clarity

* Update packages/grafana-o11y-ds-frontend/src/TraceToLogs/TraceToLogsSettings.tsx

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2024-03-11 10:26:59 +00:00
renovate[bot]
c5080ca135 Update dependency @types/eslint to v8.56.5 2024-03-11 10:20:02 +00:00
Georges Chaudy
15e358e3b9 k8s: add support for configuring the gRPC server address (#84006)
* k8s: add support for configuring the gRPC server address
2024-03-11 11:23:03 +02:00
renovate[bot]
4d7220dbdf Update dependency @swc/core to v1.4.6 2024-03-11 09:14:25 +00:00
Andreas Christou
07676ab8a0 Prometheus: Add missing Azure setting (#84094) 2024-03-11 08:57:42 +00:00
renovate[bot]
ea84a66ff4 Update dependency @emotion/react to v11.11.4 2024-03-11 08:53:49 +00:00
Sonia Aguilar
0e7c0d25fe Alerting: Add test for creating an alert rule with simplified routing. (#80610)
* Add test for creating an alert rule with simplified routing

* Fix mocking folders after merging from main (folder uid change)
2024-03-11 08:47:56 +01:00
Sonia Aguilar
7a741a31bd Alerting: Track when switching from simplified routing to policies routing or vice versa (#83108)
Track when switching from simplified routing to policies routing or vice versa
2024-03-11 08:47:22 +01:00
Leon Sorokin
57df3b84dc StateTimeline: Treat second time field as state endings (#84130) 2024-03-10 22:11:11 -05:00
Misi
0b71354c8d Docs: Improve SSO Settings docs (#83914)
* Improve docs

* remove trailing slash

* Update relref
2024-03-09 19:24:48 +01:00
Ryan McKinley
d82f3be6f7 QueryService: Use types from sdk (#84029) 2024-03-08 18:12:59 +02:00
Leon Sorokin
f11b10a10c BarChart: Show tooltip options unconditionally (#84109) 2024-03-08 02:10:56 +02:00
Yuri Tseretyan
21719a6b5b Chore: Fix log message in access control (#84101) 2024-03-07 23:34:22 +02:00
Yuri Tseretyan
7147af6b8e Alerting: Disable legacy alerting for ever (#83651)
* hard disable for legacy alerting
* remove alerting section from configuration file 
* update documentation to not refer to deleted section
* remove AlertingEnabled from usage in UA setting parsing
2024-03-07 16:01:11 -05:00
Christopher Moyer
8c7090bc11 docs: adds alt text to images where missing (#84028)
* adds alt text

* makes prettier
2024-03-07 12:53:10 -06:00
Lisa
a15e48052f Embed two visualization videos from the Grafana for Beginners series (#83928)
* Embed two visualization videos from Grafana for Beginners series

* Implementing Isabel's recommendation on second video placement.

* edited introductory sentence to the second video.

* Added line between text and video

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-03-07 20:42:16 +02:00
Dominik Prokop
1da78ac846 DashboardScene: Allow unlinking a library panel (#83956)
* DashboardScene: Allow unlinking a library panel

* Betterer

* Revert

* Review
2024-03-07 18:11:34 +01:00
Gilles De Mey
f5dab6b5a5 Alerting: Refactor analytics to use pushMeasurements (#83850) 2024-03-07 16:41:38 +01:00
linoman
6fdcc6ff18 Password Policy: Add validation labels to Update Password screen (#84052)
* add validation labels to update the password screen

* address rendering tests

* update changePassword for profile screen
2024-03-07 16:01:17 +01:00
Adela Almasan
429ef9559c FeatureToggles: Allow changing prod env safe feature toggles via URL (#84034) 2024-03-07 08:49:37 -06:00
Andreas Christou
0236053f70 Chore: Bump docker image versions (#84033)
Bump docker image versions
2024-03-07 13:04:37 +00:00
Xavi Lacasa
d1f8f7774d Document verification_email_max_lifetime_duration config option (#84057) 2024-03-07 13:51:27 +01:00
Torkel Ödegaard
edd1864439 AngularMigrate: Auto migrate graph to multiple panels (#83992)
* AngularMigrate: Auto migrate graph to multiple panels

* add unit test, and histogram migration

* add new cases to existing angular migration gdev dashboard

* fix stat feature toggle handling so all panels dont turn into stat panels 😅; fix betterer

* Use same function when clicking manual migrate button

* Update

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-03-07 12:33:30 +01:00
Pepe Cano
9c520acf9c Alerting: Minor changes to UI help text and descriptions (#84023) 2024-03-07 12:33:16 +01:00
Konrad Lalik
a4acd9d204 Alerting: Improve alert list panel and alert rules toolbar permissions handling (#83954)
* Improve alert list panel and alert rules toolbar permissions handling

* Refactor permission checking, add tests

* Remove unneccessary act wrapper

* Fix test error
2024-03-07 12:30:37 +01:00
Selene
1181141b40 Schemas: Refactor plugin's metadata (#83696)
* Remove kinds verification for kind-registry

* Read plugin's json information with json library instead of use thema binding

* Remove grafanaplugin unification

* Don't use kindsys for extract the slot name

* Fix IsGroup

* Remove all plugindef generation

* Refactor schema interfaces

* Pushed this change from a different branch by mistake...

* Create small plugin definition structure adding additional information for plugins registration

* Add some validation checks

* Delete unused code

* Fix imports lint
2024-03-07 11:09:19 +01:00
Mihai Doarna
beea7d1c2b Auth: use the scope parameter instead of a hardcoded value in appendUniqueScope() (#84053)
use the scope parameter instead of a hardcoded value
2024-03-07 12:08:58 +02:00
Sofia Papagiannaki
b8d8662bd9 Swagger: Re-generate the enterprise specification if enterprise is cloned (#81730)
* Swagger: Re-generate the enterprise specification if enterprise is cloned successfully

* API change to trigger the swagger CI step execution

* Swagger: Silence logs
2024-03-07 12:07:35 +02:00
Javier Ruiz
5a727a0b41 [Service map] Send name and namespace separately when going to traces explore (#83840)
Send name and namespace separately when going to traces explroe
2024-03-07 10:40:43 +02:00
Mihai Doarna
e3314f04e4 Auth: perform read locking on every exported func from social providers (#83960)
perform read locking on every exported func from social providers
2024-03-07 10:32:55 +02:00
Victor Marin
20d201ca6a Scenes: Remove normal and library panels from layout or rows (#83969)
* Remove normal/lib panels from layout or rows

* refactor
2024-03-07 10:24:12 +02:00
linoman
8e827afb8c Password Policy: Validate strong password upon update (#83959)
* add drawer for auth settings

* add StrongPasswordField component

* Add style to different behaviours

* update style for component

* add componenet to ChangePasswordForm

* pass the event handlers to the child component

* add style for label container

* expose strong password policy config option to front end

* enforce password validation with config option
2024-03-07 01:56:48 -06:00
linoman
7bc8b27c33 Update README.md (#84011) 2024-03-07 01:54:53 -06:00
Pepe Cano
dbb55f291a Alerting docs: update the supported export template functionality (#83816) 2024-03-07 08:42:38 +01:00
Erik Sundell
a722b2608a TimeZonePicker: Add e2e selector to change time zone settings button (#83248)
add selector to change time zone settings
2024-03-07 07:25:48 +01:00
Erik Sundell
bc34874bbb Annotations: Add selector to new query button (#83240)
add selector
2024-03-07 07:25:11 +01:00
Leon Sorokin
d549a3aabb VizTooltips: Heatmap fixes and improvements (#83876)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-03-06 19:30:33 -06:00
Alexander Weaver
201f5d3ac9 Alerting: Extract large closures in ruleRoutine (#84035)
* extract notify

* extract resetState

* move evaluate metrics inside evaluate

* split out evaluate
2024-03-06 16:39:23 -06:00
Alexander Weaver
7a171fd14a Regenerate openapidocs at 1.21.8 to match ci (#84037)
* Regenerate openapidocs at 1.21.8 to match ci

* Adjust trigger to work on the actual outputted files

* Also put go.mod and go.sum in the triggers

* manually fix

* Make an arbitrary change rather than touching the trigger to force a run

* Drop all triggers - run all the time

* Print diff - taken from @papagian's PR

* Manual fixes to swagger doc

---------

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-03-06 16:08:45 -06:00
gotjosh
948c8c45d6 Alerting: Use Alertmanager types extracted into grafana/alerting (#83824)
* Alerting: Use Alertmanager types extracted into grafana/alerting

We're in the process of exporting all Alertmanager types into grafana/alerting so that they can be imported in the Mimir Alertmanager, without a neeed to import Grafana directly.

This change introduces type aliasing for all Alertmanager types based on their 1:1 copy that now live in grafana/alerting.

Signed-off-by: gotjosh <josue.abreu@gmail.com>
---------

Signed-off-by: gotjosh <josue.abreu@gmail.com>
2024-03-06 20:48:32 +00:00
Alexander Weaver
d5fda06147 Alerting: Decouple rule routine from scheduler (#84018)
* create rule factory for more complicated dep injection into rules

* Rules get direct access to metrics, logs, traces utilities, use factory in tests

* Use clock internal to rule

* Use sender, statemanager, evalfactory directly

* evalApplied and stopApplied

* use schedulableAlertRules behind interface

* loaded metrics reader

* 3 relevant config options

* Drop unused scheduler parameter

* Rename ruleRoutine to run

* Update READMED

* Handle long parameter lists

* remove dead branch
2024-03-06 13:44:53 -06:00
Leon Sorokin
8b9bc9a919 Histogram: Fix 'combine' option & legend rendering (#84026) 2024-03-06 20:50:28 +02:00
Marcus Efraimsson
61f6c4f84d Chore: Upgrade grafana-plugin-sdk-go (#84010)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-03-06 19:51:16 +02:00
Dai Nguyen
2142efc1a5 disable_sanitize_html update (#83643)
* disable_sanitize_html update

Added a note that states this configuration is not available for Grafana Cloud instances.

* Update docs/sources/setup-grafana/configure-grafana/_index.md

* Update docs/sources/setup-grafana/configure-grafana/_index.md

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2024-03-06 11:33:36 -06:00
Leon Sorokin
e88858edb1 Histogram: Fix heuristic for x axis distribution from bucket progression (#83975) 2024-03-06 11:27:46 -06:00
grafana-delivery-bot[bot]
7f2e245d0b Changelog: Updated changelog for 9.5.17 (#84015)
Co-authored-by: grafanabot <bot@grafana.com>
2024-03-06 16:43:40 +00:00
Ivan Ortega Alba
920d50cb76 Worker: Use CorsWorker to avoid CORS issues (#83976) 2024-03-06 18:43:19 +02:00
Isabel Matwawana
4bb5915183 Docs: comment in SSO for terraform video (#83978)
* Commented in SSO for terraform video

* Updated youtube link
2024-03-06 11:37:07 -05:00
grafana-delivery-bot[bot]
32480b49aa Changelog: Updated changelog for 10.0.12 (#84008)
Co-authored-by: grafanabot <bot@grafana.com>
2024-03-06 18:35:01 +02:00
linoman
6287e1f8ed Auth: Auth Drawer (#83910)
* add drawer for auth settings

* add auth drawer component

* include AuthDrawer component in auth providers page

* protect the feature as enterprise only

* add unit test
2024-03-06 17:27:55 +01:00
grafana-delivery-bot[bot]
6731aacea9 Changelog: Updated changelog for 10.1.8 (#84005)
Co-authored-by: grafanabot <bot@grafana.com>
2024-03-06 18:21:58 +02:00
grafana-delivery-bot[bot]
1e6f14c103 Changelog: Updated changelog for 10.2.5 (#84001)
Co-authored-by: grafanabot <bot@grafana.com>
2024-03-06 17:55:47 +02:00
Pepe Cano
ce827f9518 Configure Grafana docs: fix custom configuration file location (#83169)
* Configure Grafana docs: fix custom configuration file location

* Replace config file with `custom.ini`

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-03-06 16:46:28 +01:00
grafana-delivery-bot[bot]
d3207df8b4 Changelog: Updated changelog for 10.3.4 (#83993)
Co-authored-by: grafanabot <bot@grafana.com>
2024-03-06 15:39:30 +00:00
grafana-delivery-bot[bot]
146ad85a56 Changelog: Updated changelog for 10.4.0 (#83987)
Co-authored-by: grafanabot <bot@grafana.com>
2024-03-06 15:14:51 +00:00
Josh Hunt
6a4e0c692a Page: Use browser native scrollbars for the main page content (#82919)
* remove custom scroll bars from Page component

* make flagged scroller the actual scrolling element,

* enable feature flag by default

* re-enable the scroll props in Page

* rename feature toggle

* fix css

* only update when deleted

* set .scrollbar-view on our scrolling wrapper

---------

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-03-06 15:06:47 +00:00
Kyle Brandt
0929bf7c00 Prometheus: Remove < and > from Query Builder Label Matcher operations (#83981)
They are not valid promql label matcher operations
2024-03-06 09:57:01 -05:00
Usman Ahmad
544bff2539 Docs/datasources usman (#83712)
* changed tags from oss to enterprise and cloud

* added Dashboard Panel example

* swapped the all-grafana-umbrella information to the correct page

* added minor visibility improvements in steps

* made some minor adjustments

* added minor improvements

* fixed a link

* updates links

* Apply suggestions from code review

thanks for the improved suggestions. looks more better

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* fixed links

* fixed Grafana Enterprise link

* run prettier

* fixed add a data source links

---------

Co-authored-by: Chris Moyer <chris.moyer@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-03-06 08:50:49 -06:00
Tom Ratcliffe
7527d30ec9 Documentation: Fix link to .nvmrc file in developer guide (#83911)
Documentation: Fix link to .nvmrc file
2024-03-06 15:44:27 +01:00
Leon Sorokin
1dc6014b10 Dashboard: Revert descending z-index changes (#83466)
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-03-06 16:31:54 +02:00
Isabel Matwawana
316601258a Docs: comment youtube videos back in (#83974)
* Commented 4 youtube links back in

* Fixed id
2024-03-06 09:06:23 -05:00
Josh Hunt
183aa09eeb Dashboards: Fix scroll position not being restored when leaving panel edit (#83787)
* Dashboards: Fix scroll position not being restored when leaving panel edit view

* remove mock from tests

* remove console log

* Remove my debugging stuff, and don't render grid if width is 0

* remove old comment (but retain old, probably unneeded css)

* rename ref

* fix it not actually working anymore!!!

* add e2e tests

* jsonnet, i guess
2024-03-06 13:57:11 +00:00
Giordano Ricci
6db7eafd7e Explore: Remove plus icon from Add button (#83587) 2024-03-06 13:00:56 +00:00
Victor Marin
d269b4bf0d Scenes: Copy/paste library panels (#83962)
* Scenes: Copy/paste library panels

* more tests
2024-03-06 14:47:18 +02:00
Ieva
2c5b72e844 AuthZ: add headers for IP range AC checks for data source proxy requests (#81662)
* add a middleware that appens headers for IP range AC to data source proxy requests

* update code

* add tests

* fix a mistake

* add logging

* refactor to reuse code

* small cleanup

* skip the plugins middleware if the header is already set

* skip the plugins middleware if the header is already set
2024-03-06 12:40:48 +00:00
Ivana Huckova
401265522e Logs volume: Add options to specify field to group by (#83823)
Logs volume: Add options to specify field to group by in options
2024-03-06 12:32:28 +01:00
brendamuir
5950dc3279 Alerting docs: adds top-level landing page tiles (#83825)
* Alerting docs: adds top-level landing page tiles

* updated description

* update frontmatter

* ran prettier

* Update docs/sources/alerting/_index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/_index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/_index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/_index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/_index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/_index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/_index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-03-06 12:24:02 +01:00
Konrad Lalik
708aeb0682 Alerting: Pass queryType parameter to the query model in recording rules preview (#83950) 2024-03-06 11:42:28 +01:00
Jennifer Villa
d767c4f694 Remove hanging text block from traces->profiles docs (#83859)
Remove hanging text block

This is causing the page to render a bit oddly on the website
2024-03-06 09:33:09 +00:00
Eric Leijonmarck
e611a736ed Serviceaccounts: Add ability to add samename SA for different orgs (#83893)
* add ability to add samename SA for different orgs

* Update pkg/services/user/userimpl/user.go

* fix tests

* refactor name

* removed tests

* add migration

* fix linting
2024-03-06 09:53:58 +01:00
Pepe Cano
2653bd8fab Alerting docs: update file provisioning guide (#83924) 2024-03-06 09:18:59 +01:00
Fabrizio
2c09d86395 Tempo: Fix by operator to support multiple arguments (#83947) 2024-03-06 08:45:07 +01:00
Isabel Matwawana
de563aa39c Docs: fix commented out Slack team names (#83946) 2024-03-06 07:14:31 +00:00
Isabel Matwawana
db13c0839f Docs: What’s new & Upgrade guide 10.4 (#83133)
* Updated index pages and added v10.4 breaking changes, upgrade guide, and what's new pages

* Added what's new entries

* Removed empty headings

* Fixed link

* Removed duplicate entry and fixed styling

* Removed breaking changes page and references to it

* Added intro text

* Docs: 10.4 technical note for alertingUpgradeDryrunOnStart (#83262)

* Docs: 10.4 technical note for alertingUpgradeDryrunOnStart

* Apply suggestions from code review

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Address PR comments

* restarts -> starts

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Fixed spelling

* Added new entries to What's new

* reorder and add intro

* Added PagerDuty data source entry

* Added entries

* Added new entries

* Fixed formatting

* Fixed page weight and links

* Apply suggestion from review

Co-authored-by: Mitch Seaman <mjseaman@users.noreply.github.com>

* remove team lbac, move return to previous (#83921)

- Remove Team LBAC for Loki (it is Cloud only)
- Move Return to Previous into the Alerting section, since it only works for Alerting now
- Add a note that data sources are separate from Grafana but included for visibility

* Replaced manual note with admonition shortcode

* move Return to Previous out of Alerting section

* Added youtube links

* Commented out youtube videos and removed duplicate video embed

---------

Co-authored-by: Matthew Jacobson <matthew.jacobson@grafana.com>
Co-authored-by: Mitchel Seaman <mitchel.seaman@gmail.com>
Co-authored-by: Mitch Seaman <mjseaman@users.noreply.github.com>
2024-03-05 22:02:19 -05:00
Leon Sorokin
a4b31ed140 BarChart: Improve x=time tick formatting (#83853) 2024-03-05 19:03:50 -06:00
Nathan Marrs
5c27d28ba4 Canvas: Add datalink support to rectangle and ellipse elements (#83870) 2024-03-05 15:25:12 -08:00
Nathan Marrs
38a0eab137 Canvas: Fix datalink positioning glitch (#83869) 2024-03-05 15:23:10 -08:00
Dan Cech
7e4badff1d Storage: Use our own key format and support unnamespaced objects (#83929)
* use our own key format and support unnamespaced objects

* fix tests
2024-03-05 16:31:39 -05:00
Dave Henderson
01fb2cff62 chore: bump Go to 1.21.8 (#83927)
* chore: bump Go to 1.21.8

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

* bump workflows too

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

---------

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
2024-03-05 15:24:34 -05:00
Ryan McKinley
3e86a4edc8 PanelTitleSearch: Show datasource usage in plugins (#83922) 2024-03-05 22:20:38 +02:00
Kyle Cunningham
cb008657cb Table Panel: Update column filters to use Stack component (#83800)
* Update filter list to use stack

* Remove dead comments
2024-03-05 21:54:31 +02:00
Kyle Cunningham
f4da9bd09e Table Panel: Text wrapping fix inspect viewing issues (#83867)
* Fix inspect viewing issues

* Fix long line wrapping

* Prettier

* Fix text wrapping

* Fix overflowing text
2024-03-06 02:00:41 +07:00
Charandas
e916372249 K8s: bug fixes for file storage to allow for watcher initialization on startup (#83873)
---------

Co-authored-by: Todd Treece <todd.treece@grafana.com>
2024-03-05 10:34:47 -08:00
Andreas Christou
3f2820a552 Chore: Bump whats new (#83841)
Bump whats new
2024-03-05 16:09:42 +00:00
Dan Cech
9fa9eaab44 Storage: Support get with resourceversion (#83849)
support getting old resourceversion, return explicit resource version in list
2024-03-05 10:57:32 -05:00
Carl Bergquist
b3efb4217e Cfg: Adds experimental scope grafana.ini settings (#83174)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2024-03-05 16:41:19 +01:00
Hugo Kiyodi Oshiro
7f970d4887 Plugins: Fetch instance provisioned plugins in cloud, to check full installation (#83784) 2024-03-05 16:30:14 +01:00
Dan Cech
7b4925ea37 Storage: Watch support (#82282)
* initial naive implementation

* Update pkg/services/store/entity/sqlstash/sql_storage_server.go

Co-authored-by: Igor Suleymanov <radiohead@users.noreply.github.com>

* tidy up

* add action column, batch watch events

* initial implementation of broadcast-based watcher

* fix up watch init

* remove batching, it just adds needless complexity

* use StreamWatcher

* make broadcaster generic

* add circular buffer to replay recent events to new watchers

* loop within poll until all events are read

* add index on entity_history.resource_version to support poller

* increment r.Since when we send events to consumer

* switch broadcaster and cache to use channels instead of mutexes

* cleanup

---------

Co-authored-by: Igor Suleymanov <radiohead@users.noreply.github.com>
2024-03-05 10:14:38 -05:00
Lucy Chen
71fe675fb7 Reporting: Update swagger and openapi doc for deleted deprecated endpoint for Email (#83832) 2024-03-06 00:09:44 +09:00
kay delaney
4b0547014a Scenes/LibraryPanels: Fix transformSceneToSaveModel for library panel repeats (#83843) 2024-03-05 14:09:24 +00:00
ismail simsek
2cce9aa2f7 Chore: Move tracing function in influxdb package (#83899)
move tracing function in influxdb package
2024-03-05 07:34:08 -06:00
Michael Mandrus
73c4b24a52 Queries: Fix debug logging of metrics queries (#83877)
fix log statements
2024-03-05 08:27:44 -05:00
Levente Balogh
fdd2c1c59e Plugins Catalog: Fix plugin details page initial flickering (#83896)
fix: wait for the local and remote fetches to fulfill
2024-03-05 14:23:29 +01:00
brendamuir
05865034d7 Docs: removes note as recovery threshold now in cloud (#83907) 2024-03-05 14:22:03 +01:00
Sven Grossmann
9f73fb65cd Loki: Fix permalink timerange when multiple logs share a timestamp (#83847)
* Loki: Slide permalink timerange `1ms` to make sure to include line

* find previous log with different time

* fix test not being agnostic
2024-03-05 14:04:57 +02:00
Ivan Ortega Alba
a7c06d26f1 Dashboards: Add new toggle for dashboard changes out of dashgpt toggle (#83897) 2024-03-05 14:01:31 +02:00
Ivan Ortega Alba
112c0e7a79 Dashboards: Auto-generate get stuck and quick feedback actions doesn't respond (#83879)
* Update the component only when the response is fully generated

* Fix quick feedback action doesn't respond

* Fix history not displaying after the second click

* Fix the history that moves when regenerating

---------

Co-authored-by: Adela Almasan <88068998+adela-almasan@users.noreply.github.com>
2024-03-05 12:10:46 +01:00
ismail simsek
dc4c539d46 InfluxDB: Fix sql query generation by adding quotes around the identifiers (#83765)
* Quote the identifiers

* wrap where filter with quotes

* fix query generation
2024-03-05 11:22:33 +01:00
Oscar Kilhed
bc7eacfcbd Dashboard Scenes: Add model to library panel inspect json (#83536)
* Add model to library panel inspect json

* Add missing information from library panel when inspecting its JSON

* minor refactor

* refactor inspect library panel model to show the model that was fetched from the api

* nit: improve comment

* fix library panel import path

---------

Co-authored-by: Alexandra Vargas <alexa1866@gmail.com>
2024-03-05 10:51:22 +01:00
Pepe Cano
019c9618f0 Alerting docs: improve visibility on the distinct options to edit provisioned resources (#83839)
Alerting docs: specify the distinct options to edit provisioned resources
2024-03-05 10:48:04 +01:00
Oscar Kilhed
c9ac6dd3e7 Dashboard scenes: debounce name validation when saving dashboards (#83580)
* Dashboard scenes: debounce name validation when saving dashboards

* add newline
2024-03-05 10:46:03 +01:00
Yulia Shanyrova
e930b49db3 Plugins: Add intraMode 1 into fuzzy search for plugins (#83846)
add intraMode 1 into fuzzy search for plugins
2024-03-05 09:27:34 +01:00
Karl Persson
22074c5026 RBAC: add debug log for permission evaluation (#83880)
* fix: add debug log when evaluating permissions that includes target permissions
2024-03-05 08:50:19 +01:00
Torkel Ödegaard
9264e2a3bd Table: Custom headerComponent field config option (#83254)
* Table: Custom headerComponent field config option

* Table custom header component (#83830)

* Add tests, fix bug

---------

Co-authored-by: Galen Kistler <109082771+gtk-grafana@users.noreply.github.com>
Co-authored-by: Galen <galen.kistler@grafana.com>
2024-03-05 08:49:22 +01:00
Alexander Weaver
1bb38e8f95 Alerting: Move ruleRoutine to be a method on ruleInfo (#83866)
* Move ruleRoutine to ruleInfo file

* Move tests as well

* swap ruleInfo and scheduler parameters on ruleRoutine

* Fix linter complaint, receiver name
2024-03-04 17:15:55 -06:00
Kyle Cunningham
c88accdf99 Transformations: Docs for Group to nested table (#83559)
* Start group to nested table docs

* Group to nested table docs

* Remove dead content

* Update docs content

* codeincarnate/nested-table-docs/ run formatter

* Update punctuation (thanks Isabel 🙏)

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Update wording and structure ((thanks Isabel 🙏)

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* More wording and structure changes (thanks Isabel 🙏)

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Escape backticks

* Add imagery

* Add generated docs

* Language updates

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Language updates

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Language updates

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Update formatting

* Rebuild transformation docs

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-03-04 23:31:00 +02:00
Alexander Weaver
f2a9d0a89d Alerting: Refactor ruleRoutine to take an entire ruleInfo instance (#83858)
* Make stop a real method

* ruleRoutine takes a ruleInfo reference directly rather than pieces of it

* Fix whitespace
2024-03-04 15:15:01 -06:00
Kyle Cunningham
3121fce305 Timeseries to table transformation: Improve Documentation (#83647)
* Flesh out timeseries to table docs

* Add generated documentation

* Update docs

* Fix spelling

* Fix link formatting

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* Update language

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-03-04 22:57:47 +02:00
Kyle Cunningham
13f037d617 Table Panel: Fix condition for showing footer options (#83801)
* Fix condition for showing footer options

* codeincarnate/table-footer-config/ lint

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
2024-03-05 03:17:20 +07:00
Josh Hunt
52de1a9a33 Change codeowners of library panels to dashboards squad (#83862)
* Change codeowners of library panels to dashboards squad

* Update CODEOWNERS
2024-03-04 21:18:35 +02:00
Galen Kistler
f1000978cb Logs: e2e test flake in loki-table-explore-to-dash.spec.ts (#83856)
fix flake in e2e test checking monaco loading state
2024-03-04 13:01:48 -06:00
Ryan McKinley
5aa965b9e9 Prometheus: remove cue definition (#83808)
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-03-04 10:23:32 -08:00
Matthew Jacobson
2e8c514cfd Alerting: Stop persisting user-defined templates to disk (#83456)
Updates Grafana Alertmanager to work with new interface from grafana/alerting#161. This change stops passing user-defined templates to the Grafana Alertmanager by persisting them to disk and instead passes them by string.
2024-03-04 20:12:49 +02:00
Alexander Weaver
fa51724bc6 Alerting: Move alertRuleInfo and tests to new files (#83854)
Move ruleinfo and tests to new files
2024-03-04 11:24:49 -06:00
Ryan McKinley
3036b50df3 Expressions: expose ConvertDataFramesToResults (#83805) 2024-03-04 18:22:56 +02:00
Alex Khomenko
9bd84b30e9 Chore: Remove deprecated components from dashboard import pages (#83747)
* Add Form component to core

* Chore: Replace deprecated components in DashboardImportPage.tsx

* Chore: Replace deprecated components in ImportDashboardForm.tsx

* Chore: Replace deprecated components in ImportDashboardOverview.tsx
2024-03-04 17:22:13 +02:00
Will Browne
c644826f50 Query: Add query type to json marshal/unmarshal (#83821)
add query type to json marshal/unmarshal
2024-03-04 16:06:57 +01:00
Kim Nylander
57935250fd [DOC] Add profile-traces intro material; update Pyroscope data source info (#83739)
* Add profile-traces intro material; update Pyroscope data source info

* Apply suggestions from code review

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Updates and file rename from review

* Add PYROSCOPE_VERSION

* Apply suggestions from code review

* Format tables

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Apply suggestions from code review

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Jennifer Villa <jvilla2013@gmail.com>

* Apply suggestions from code review

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Jennifer Villa <jvilla2013@gmail.com>
2024-03-04 10:03:33 -05:00
tonypowa
89575f1df4 alerting:clarify silence preview (#83754)
* alerting:clarify silence preview

* prettier

* Update docs/sources/alerting/configure-notifications/create-silence.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Lint docs

---------

Co-authored-by: Armand Grillet <2117580+armandgrillet@users.noreply.github.com>
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-03-04 16:03:20 +01:00
Leon Sorokin
7cf419c09a Dashboard: Revert LayoutItemContext (#83465) 2024-03-04 16:47:20 +02:00
Ivana Huckova
b63866baaf Loki: Interpolate variables in live queries (#83831)
* Loki: Interpolate variables in live queries

* Update to not have to rempve private

* Update comment
2024-03-04 16:26:46 +02:00
Ivan Ortega Alba
59fb26443f DashboardSceneChangeTracker: Do not load the worker until is editing (#83817) 2024-03-04 14:31:14 +01:00
kay delaney
519f965c8e Scenes/LibraryPanels: Fixes issue where repeat panel would disappear if dashboard didn't have variable used by lib panel (#83780) 2024-03-04 15:10:04 +02:00
kay delaney
ad28e3cc77 Scenes: Fix panel repeats (#83707) 2024-03-04 13:01:17 +00:00
Alexander Zobnin
82a88cc83f Access control: Extend GetUserPermissions() to query permissions in org (#83392)
* Access control: Extend GetUserPermissions() to query permissions in specific org

* Use db query to fetch permissions in org

* refactor

* refactor

* use conditional join

* minor refactor

* Add test cases

* Search permissions correctly in OSS vs Enterprise

* Get permissions from memory

* Refactor

* remove unused func

* Add tests for GetUserPermissionsInOrg

* fix linter
2024-03-04 13:29:13 +01:00
linoman
67c062acc7 Adjust HD validation default value (#83818) 2024-03-04 12:45:07 +01:00
Pepe Cano
111df1bba0 Alerting docs: update the Terraform Provision guide (#83773)
* Alerting docs: update the Terraform Provision guide

* Fix incorrect links

* Update docs/sources/alerting/set-up/provision-alerting-resources/terraform-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/terraform-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/terraform-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-03-04 12:10:37 +01:00
Misi
07e26226b7 Auth: Add all settings to Azure AD SSO config UI (#83618)
* Add all settings to AzureAD UI

* prettify

* Fixes

* Load extra keys with type assertion
2024-03-04 11:55:59 +01:00
Laura Fernández
fa44aebeff ReturnToPrevious: Improve tests (#83812) 2024-03-04 11:38:00 +01:00
Mitch Seaman
9e12caebc7 Docs: typo fix (remove an extra parenthesis) (#83811) 2024-03-04 10:14:37 +00:00
Pepe Cano
244589d7ea Alerting docs: document mute-timings export endpoints (#83797) 2024-03-04 10:50:44 +01:00
Pepe Cano
9eb69b9213 Alerting docs: fix incorrect docs/reference link (#83809) 2024-03-04 10:20:10 +01:00
Todd Treece
869b89dce4 K8s: Add accept header to ctx (#83802) 2024-03-01 20:32:59 -05:00
Ryan McKinley
d7bcd119c3 K8s: improve openapi generation (#83796) 2024-03-02 00:26:04 +02:00
Laura Fernández
2184592174 ReturnToPrevious: create tests to check reportInteraction (#83757) 2024-03-01 19:01:27 +01:00
Ryan McKinley
5f6bf93dd5 Expressions: Use enumerations rather than strings (#83741) 2024-03-01 19:38:32 +02:00
Jack Westbrook
c59ebfc60f Fix: Cache busting of plugins module.js file (#83763)
fix(plugins): make sure extractPath regex matches with and without leading slash
2024-03-01 18:29:39 +01:00
Kyle Cunningham
886d8fae36 Table Panel: Improve text wrapping on hover (#83642)
* Fix up text wrapping

* Make sure there are basic cell styles

* codeincarnate/text-wrapping-hover-pt2/ run prettier

* Add comment for conditional

* Update condition

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
2024-03-02 00:20:14 +07:00
Kyle Cunningham
33cb4f9bf4 Table: Preserve filtered value state (#83631)
* Hoist state

* codeincarnate/table-filter-state/ lint

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-03-02 00:19:21 +07:00
George Robinson
96127dce62 Alerting: Fix bug in screenshot service using incorrect limit (#83786)
This commit fixes a bug in the screenshot service where
[alerting].concurrent_render_limit was used instead of
[rendering].concurrent_render_request_limit, as in the
docs.
2024-03-01 17:17:55 +00:00
Gilles De Mey
582fd53fac Alerting: Implement correct RBAC checks for creating new notification templates (#83767) 2024-03-01 18:09:14 +01:00
Gilles De Mey
fc10600ca5 Alerting: Fix editing Grafana folder via alert rule editor (#83771) 2024-03-01 18:08:42 +01:00
Gilles De Mey
675b7debe7 Alerting: Assume rule not found when everything is undefined (#83774) 2024-03-01 18:08:17 +01:00
Eric Leijonmarck
8b551b08f9 TeamLBAC: Change to public preview (#83761)
change to public preview
2024-03-01 17:05:59 +00:00
Santiago
2964901ea6 Chore: Fix typo in template not found error message (#83778) 2024-03-01 18:04:20 +01:00
Santiago
8ad367e4ad Chore: Remove redundant error check (#83769) 2024-03-01 13:28:08 -03:00
owensmallwood
0dfdb2ae47 Revert "Add FolderUID for library elements" (#83776)
Revert "Add FolderUID for library elements (#79572)"

This reverts commit 2532047e7a.
2024-03-01 18:16:43 +02:00
Ida Štambuk
068e6f6b94 Cloudwatch: Fix new ConfigEditor to add the custom namespace field (#83762) 2024-03-01 16:56:45 +01:00
foehammer
1c2b8576e1 CloudWatch: de-duplicate implementation of AWSDatasourceSettings.Load in LoadCloudWatchSettings (#83556) 2024-03-01 10:48:20 -05:00
Ashley Harrison
086d47d83c Chore: replace react-popper with floating-ui in ExemplarMarker (#83694)
* replace react-popper with floating-ui in ExemplarMarker

* fix e2e test

* floating-ui uses mousemove
2024-03-01 14:54:39 +00:00
kay delaney
10a55560df Scenes: Add support for repeated library panels (#83579) 2024-03-01 15:25:15 +02:00
Ida Štambuk
dbe621eeb4 Cloudwatch: Bump grafana/aws-sdk-go to 0.24.0 (#83480) 2024-03-01 13:52:45 +01:00
Misi
371aced092 Chore: Add enabled status to authentication_ui_provider_clicked (#83766)
Add enabled metadata to authentication_ui_provider_clicked
2024-03-01 13:49:06 +01:00
Ashley Harrison
21affd3b0e Library panels: Ensure all filters are visible on mobile (#83759)
* convert styles to emotion object syntax

* allow items to wrap
2024-03-01 12:24:19 +00:00
Gábor Farkas
142ac22023 Revert "Postgres: Switch the datasource plugin from lib/pq to pgx" (#83760)
Revert "Postgres: Switch the datasource plugin from lib/pq to pgx (#81353)"

This reverts commit 8c18d06386.
2024-03-01 12:20:47 +01:00
Jo
0aebb9ee39 Misc: Remove unused params and impossible logic (#83756)
* remove unused params and impossible logic

* remove unused param
2024-03-01 12:08:00 +01:00
Konrad Lalik
11d341d2bb Alerting: Add escape and quote support to the matcher name (#83601)
Add escape and quote support to the matcher name
2024-03-01 11:34:58 +01:00
Jo
36a19bfa83 AuthProxy: Allow disabling Auth Proxy cache (#83755)
* extract auth proxy settings

* simplify auth proxy methods

* add doc mentions
2024-03-01 11:31:06 +01:00
Levente Balogh
1cec975a66 Docs: Update "What's new in G10?" (#83467)
* docs: add info about the react-router migration into v10 what's new

* fix: linting issue

* Update docs/sources/whatsnew/whats-new-in-v10-0.md

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>

* docs: update linting

---------

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-03-01 11:13:16 +01:00
Anton Patsev
1a7af2d843 Сorrection of spelling errors (#83565)
thanks for your contribution !
2024-03-01 11:00:15 +01:00
linoman
824c26cd5e Password Policy: add documentation (#83208)
* add documentation

* Update docs/sources/setup-grafana/configure-security/configure-authentication/grafana/index.md

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2024-03-01 10:56:26 +01:00
Misi
75b020c19d Cfg: Add a setting to configure if the local file system is available (#83616)
* Introduce environment.local_filesystem_available

* Only show TLS client cert, client key, client ca when local_filesystem_available is true

* Rename LocalFSAvailable to LocalFileSystemAvailable
2024-03-01 10:39:50 +01:00
idafurjes
2532047e7a Add FolderUID for library elements (#79572)
* Add FolderUID in missing places for libraryelements

* Add migration for FolderUID in library elements table

* Add Folder UIDs tolibrary panels

* Adjust dashboard import with folder uid

* Fix lint

* Rename back FolderUID to UID

* Remove default

* Check if folderUID is nil

* Add unique indes on org_id,folder_uid,name and kind

* Update pkg/services/libraryelements/database.go

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>

* Fix folder integration test, with unique index on library elements

* Make folder uids nullable and rewrite migration query

* Use dashboard uid instead of folder_uid

* Adjust test

---------

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
2024-03-01 10:16:33 +01:00
Jo
2182cc47ac LDAP: Fix LDAP users authenticated via auth proxy not being able to use LDAP active sync (#83715)
* fix LDAP users authenticated via auth proxy not being able to use ldap sync

* simplify id resolution at the cost of no fallthrough

* remove unused services

* remove unused cache key
2024-03-01 10:14:32 +01:00
github-actions[bot]
4dc8094514 I18n: Download translations from Crowdin (#83695)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-01 07:59:07 +00:00
Charandas
b87ec69431 K8s: add a remote services file config option to specify aggregation config (#83646) 2024-02-29 17:29:05 -08:00
Nathan Marrs
5d7a979199 Canvas: Add ability to edit selected connections in the inline editor (#83625) 2024-02-29 16:56:40 -08:00
Leon Sorokin
859ecf2a34 VizTooltips: Render data links only when anchored (#83737) 2024-02-29 17:28:37 -06:00
Tim Levett
88ebef5cba Transformations: Add substring matcher to the 'Filter by Value' transformation (#83548) 2024-02-29 16:59:40 -06:00
Ryan McKinley
74115f1f08 Chore: fix apiserver integration tests (#83724)
Co-authored-by: Todd Treece <todd.treece@grafana.com>
2024-02-29 14:58:49 -08:00
Todd Treece
d7b031f318 Chore: Update Makefile to support go workspace (#83549) 2024-02-29 17:22:18 -05:00
Leon Sorokin
42b55aedbc DataLinks: Handle getLinks() regen during data updates and frame joining (#83654) 2024-02-29 21:46:53 +02:00
Andreas Christou
c9d8d8713b CI: Bump alpine image version (#83716)
Bump image version
2024-02-29 18:00:21 +00:00
Josh Hunt
d21a61752f Docs: Mention nvm in contribute docs (#83709)
Mention nvm in contribute docs
2024-02-29 19:43:00 +02:00
Spencer Torres
098c611b65 Docs: add ClickHouse to exploring logs/traces page (#83178) 2024-02-29 19:30:40 +02:00
JERHAV
b2cb8d8038 CloudWatch: Remove unnecessary sortDimensions function (#83450)
Remove sortDimension

Closes #83338
2024-02-29 08:54:37 -08:00
Misi
0218e94d93 Auth: Add Save and enable, Disable buttons to SSO UI (#83672)
* Add Save and enable and Disable button

* Change to use Dropdown, reorder buttons

* Improve UI

* Update public/app/features/auth-config/ProviderConfigForm.tsx

* Apply suggestions from code review

* Use Stack instead of separate Fields

---------

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2024-02-29 17:41:08 +01:00
Josh Hunt
f0dce33034 Chore: Taint ArrayVector with never to further discourage (#83681)
Chore: Taint ArrayVector with never to further discourage
2024-02-29 16:29:17 +00:00
Ivan Ortega Alba
29d6cd8fa0 DashboardScene: Share change detection logic between saving and runtime (#81958)
Co-authored-by: Alexandra Vargas <alexa1866@gmail.com>
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-02-29 18:18:26 +02:00
linoman
b02ae375ba Chore: Query oauth info from a new instance (#83229)
* query OAuth info from a new instance

* add `hd` validation flag

* add `disable_hd_validation` to settings map

* update documentation

---------

Co-authored-by: Jo <joao.guerreiro@grafana.com>
2024-02-29 16:48:32 +01:00
Jack Baldry
2a1d4f85c7 Update links to default Grafana branch (#83025) 2024-02-29 17:08:45 +02:00
Will Browne
549094d27c grafana/data: Gardening 👨‍🌾✂️🌳 (#83615)
* remove suspected unused dependencies from grafana/data

* un-export funcs and types

* re-export NoopTransformerOptions

* remove knip
2024-02-29 15:53:09 +01:00
Isabel Matwawana
e26cd8614d Docs: fix config file info in upgrade guide (#83273)
* Updated incorrect custom config file names and locations

* Corrected default config file name

* Updated more config file info

* Apply suggestions from code review

Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com>

* Reverted change

* Fixed default config file info, added second custom file option, and added note about file locations

* Added file path for second custom option

* Apply suggestion from review

Co-authored-by: Usman Ahmad <usman.ahmad@grafana.com>

* Apply suggestion from review

Co-authored-by: Usman Ahmad <usman.ahmad@grafana.com>

* Apply suggestions from review

Co-authored-by: Usman Ahmad <usman.ahmad@grafana.com>

* Apply suggestion from review

* Add version interpolation syntax

* Updated wording

* Ran prettier

---------

Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com>
Co-authored-by: Usman Ahmad <usman.ahmad@grafana.com>
2024-02-29 09:39:25 -05:00
Esteban Beltran
ca81d1f22d Revert "Chore: Remove components from the graveyard folder in grafana/ui" (#83687)
Revert "Chore: Remove components from the graveyard folder in grafana/ui (#83…"

This reverts commit 6517431165.
2024-02-29 15:25:33 +01:00
github-actions[bot]
9ab03d4e20 I18n: Download translations from Crowdin (#83605)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-29 15:47:17 +02:00
David Harris
5572158eea chore: update core plugin descriptions (#83449)
* update alertmanager

* fix typo

* update candlestick

* update histogram

* update xy

* fix prettier

* dh-update-desc/ update snapshots

* dh-update-desc/ revert variable

* update failing test snapshot

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-02-29 13:14:12 +00:00
Ashley Harrison
1994d1e2c7 E2C: Implement on-prem auth flow (#83513)
* add connection modal

* extend api with connect/disconnect endpoints

* extract translations

* display stack url

* use react-hook-form

* fix links spanning whole modal

* review comments
2024-02-29 13:10:04 +00:00
Andre Pereira
036e19037e Tempo: Better fallbacks for metrics query (#83619)
* Use query as fallback when there's one series and no labels. Use "" as the fallback for empty label values. Stop using the `promLabels` value from the Tempo response

* Set refId to remove mentions of promLabels

* Add quotes around the string value, add space after comma separator

* Use name as refId when possible
2024-02-29 14:41:31 +02:00
Gábor Farkas
9f617191da grafana-data: fix the export of arrayvector (#83678) 2024-02-29 14:02:32 +02:00
Pepe Cano
88f010a72a Alerting docs: remove admonition/notes related to old Grafana versions (#83669) 2024-02-29 12:55:52 +01:00
github-actions[bot]
2a78ffdb75 Update make docs procedure (#83658)
Co-authored-by: grafanabot <bot@grafana.com>
2024-02-29 11:49:05 +00:00
Josh Hunt
0fd46a1bd3 Revert "CodeEditor: Ensure latest onChange callback is called" (#83677)
Revert "CodeEditor: Ensure latest onChange callback is called (#83599)"

This reverts commit 3363e3f2d3.
2024-02-29 11:40:11 +00:00
Laura Fernández
f0822e0aef ReturnToPrevious: Add this functionality to the "Go to panel" button on Alert rules (#83630)
Add RTP to the 'Go to panel' button
2024-02-29 12:19:59 +01:00
omahs
2a429cd7db Fix typos (#83621)
Co-authored-by: Isabel Matwawana <isabel.matwawana@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-02-29 10:47:22 +00:00
Levente Balogh
f394e8333e Chore: remove the dataConnectionsConsole feature toggle (#83661)
chore: remove `dataConnectionsConsole` feature toggle
2024-02-29 10:29:41 +01:00
Selene
f8ce8d0600 Schemas: Restore spec core go generation (#83594)
* Restore spec core go generation

* Fix go imports
2024-02-29 10:20:28 +01:00
David Harris
10721bfcd9 Update angular-plugins.md (#83635)
* Update angular-plugins.md

Removes advice which only worked in `dev` instances.

* Update angular-plugins.md

Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>

---------

Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>
2024-02-29 09:03:47 +00:00
Ivana Huckova
a76e21c837 TimeSeries: Support vertical orientation (#83272)
* Time series with flipped axes

* Ass prop and fix timezone labes

* Remove not needed css

* Fix zoomplugin

* Update comment

* Fix zoomplugin

* Update

* Update TooltipPlugin2

* Update variable names

* Update naming and comments

* Update public/app/plugins/panel/timeseries/TimeSeriesPanel.tsx

Co-authored-by: Jev Forsberg <46619047+baldm0mma@users.noreply.github.com>

---------

Co-authored-by: Jev Forsberg <46619047+baldm0mma@users.noreply.github.com>
2024-02-29 09:53:00 +01:00
Alex Khomenko
8ed932bb60 Select: Add instructions for resetting a value (#83603) 2024-02-29 08:38:09 +02:00
Isabel Matwawana
2c95782b10 Docs: restructure Configure panel options (#83438)
* Moved view json panel content from configure panel options to panel inspect view

* Converted add title and description task to reference section

* Removed edit panel section

* Updated bullet list to match content

* Removed view json content to be integrated later

* Ran prettier

* Docs: Edit Configure panel options (#83439)

* Updated intro

* Updated intro, descriptions, and repeating panels task

* Reformatted sections of task and updated wording of LLM info

* Copy edits

* Added Cloud links and updated version syntax

* Fixed link

* Fixed formatting and removed vestigial sentence
2024-02-28 23:37:29 -05:00
Darren Janeczek
88f5b62a23 VizTooltips: Tolerate missing annotation text (#83634) 2024-02-28 17:06:55 -06:00
Leon Sorokin
5eb7e09351 VizTooltips: Show data links without anchoring (#83638) 2024-02-28 17:06:05 -06:00
Darren Janeczek
6e75584505 datatrails: improve label filter behavior (#83411) 2024-02-28 16:06:31 -05:00
Darren Janeczek
d6b1aa6575 datatrails: standardize loading and blocking message indicators (#83560)
fix: standardize loading and blocking message indicators
2024-02-28 16:05:22 -05:00
Ryan McKinley
239abe4234 Chore: Restore vectorator export (#83637) 2024-02-28 23:00:00 +02:00
Alexander Weaver
a862a4264d Alerting: Export rule validation logic and make it portable (#83555)
* ValidateInterval doesn't need the entire config

* Validation no longer depends on entire folder now that we've dropped foldertitle from api

* Don't depend on entire config struct

* Export validate group
2024-02-28 14:40:13 -06:00
William Wernert
af528d2f66 Alerting/Annotations: Prevent panics from composite store jobs from crashing Grafana (#83459)
* Don't directly use pointer to json

* Don't crash entire process if a store job panics

* Add debug logs when failing to parse/handle Loki entries
2024-02-28 20:16:37 +02:00
Leon Sorokin
9190fb28e8 VizTooltip: Improve edge positioning and a11y (#83584) 2024-02-28 11:42:46 -06:00
Eric Leijonmarck
b89de96681 Anonymous: Add docs for anon users charged on enterprise (#83626)
add anon users enterprise
2024-02-28 17:35:10 +00:00
Josh Hunt
3363e3f2d3 CodeEditor: Ensure latest onChange callback is called (#83599) 2024-02-28 16:47:10 +00:00
Ryan McKinley
6517431165 Chore: Remove components from the graveyard folder in grafana/ui (#83545) 2024-02-28 08:36:53 -08:00
Victor Marin
528ce96118 Scenes: Fix lib panel and lib widget placement in collapsed/uncollapsed rows (#83516)
* wip

* tests + refactor ad panel func

* Add row functionality

* update row state only when there are children

* Add new row + copy paste panels

* Add library panel functionality

* tests

* PR mods

* reafctor + tests

* reafctor

* fix test

* refactor

* fix bug on cancelling lib widget

* dashboard now saves with lib panel widget

* add lib panels widget works in rows as well

* split add lib panel func to another PR

* Add library panel functionality

* Fix lib panel and lib widget placement in collapsed/uncollapsed rows

* refactor

* take panelKey into account when getting next panel id in dashboard

* fix tests
2024-02-28 18:25:22 +02:00
Larissa Wandzura
260a87a3f6 Docs: updated codeowners file (#83546)
* removed myself from data sources, added to admin (IAM)

* Remove accidental changes

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Rewrite Technical documentation codeowners for readability and consistency

Now it is consistent with the comments at the head of the file, at
least for this section of the repo.

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-02-28 10:02:41 -06:00
Konrad Lalik
183a42b7f6 Alerting: Improve alert rule and search interaction tracking (#83217)
* Fix alert rule interaction tracking

* Add search component interaction tracking

* Add fine-grained search input analytics
2024-02-28 16:52:56 +01:00
Ryan McKinley
07128cfec1 Chore: Restore ArrayVector (#83608) 2024-02-28 07:38:21 -08:00
Marie Cruz
ba4470dd7d docs: link annotation queries video to documentation (#83586) 2024-02-28 16:23:37 +01:00
Joe Blubaugh
b905777ba9 Alerting: Support deleting rule groups in the provisioning API (#83514)
* Alerting: feat: support deleting rule groups in the provisioning API

Adds support for DELETE to the provisioning API's alert rule groups route, which allows deleting the rule group with a
single API call. Previously, groups were deleted by deleting rules one-by-one.

Fixes #81860

This change doesn't add any new paths to the API, only new methods.

---------

Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
2024-02-28 10:19:02 -05:00
Arati R
467302480f Search: Include collapsed panels in search v2 (#83047)
* Include collapsed panels in searchv2
* Include collapsed row in TestReadSummaries
2024-02-28 16:11:09 +01:00
Misi
91cd17f012 Chore: Move TLS settings to the Extra Security Measures section (SSO Settings UI) (#83602)
Move TLS settings to the Extra Security Measures section
2024-02-28 16:01:02 +01:00
ismail simsek
757fa06b85 InfluxDB: Fix interpolation of multi value template variables by adding parenthesis around them (#83577)
Put parenthesis around multi value template variable
2024-02-28 15:59:06 +01:00
Ezequiel Victorero
7d6d256335 Snapshots: Change default expiration (#83550) 2024-02-28 11:45:22 -03:00
Victor Marin
58d6ce1c87 Add lib panel from empty dashboard page (#83522)
* wip

* tests + refactor ad panel func

* Add row functionality

* update row state only when there are children

* Add new row + copy paste panels

* Add library panel functionality

* tests

* PR mods

* reafctor + tests

* reafctor

* fix test

* refactor

* fix bug on cancelling lib widget

* dashboard now saves with lib panel widget

* add lib panels widget works in rows as well

* split add lib panel func to another PR

* Add library panel functionality

* Add lib panel from empty dashboard page

* refactor

* take panelKey into account when getting next panel id in dashboard

* fix tests
2024-02-28 16:41:56 +02:00
Victor Marin
04539ffccb Scenes: Add 'Import from library' functionality (#83498)
* wip

* tests + refactor ad panel func

* Add row functionality

* update row state only when there are children

* Add new row + copy paste panels

* Add library panel functionality

* tests

* PR mods

* reafctor + tests

* reafctor

* fix test

* refactor

* fix bug on cancelling lib widget

* dashboard now saves with lib panel widget

* add lib panels widget works in rows as well

* split add lib panel func to another PR

* Add library panel functionality

* refactor

* take panelKey into account when getting next panel id in dashboard

* fix tests
2024-02-28 16:41:12 +02:00
Jára Benc
393b12f49f Sql: Fix an issue with connection limits not updating when jsonData is updated (#83175) 2024-02-28 15:24:34 +01:00
Sonia Aguilar
ed3c36bb46 Alerting: Use time_intervals instead of the deprecated mute_time_intervals in a… (#83147)
* Use time_intervals instead of the deprecated mute_time_intervals in alert manager config

* don't send mute_time_intervals in the payload

* Add and update tests

* Fix usecase when having both fields in response from getting alert manager config

* Use mute_timings for grafana data source and both for cloud data source when deleting mute timing

* Use mute_timings for grafana data source and both for cloud data source when saving a new or existing alert rule

* Address first code review

* Address more review comments
2024-02-28 15:21:00 +01:00
Brendan O'Handley
90e7791086 Prometheus: Reduce flakiness in prometheus e2e tests (#83437)
* reduce flakiness in prometheus e2e tests

* prettier fix for azure docs

* Update e2e/various-suite/prometheus-config.spec.ts

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

---------

Co-authored-by: Nick Richmond <5732000+NWRichmond@users.noreply.github.com>
2024-02-28 08:03:36 -06:00
Sven Grossmann
411c89012f Elasticsearch: Fix adhoc filters not applied in frontend mode (#83592) 2024-02-28 14:32:01 +01:00
Misi
3b7e7483c8 Auth: Align loading the legacy auth.grafananet section to the current behaviour in OAuthStrategy (#83479)
* Align oauth_strategy to the current behaviour

* lint

* Address feedback
2024-02-28 13:45:59 +01:00
Jack Baldry
acf97e43b6 Review "Team LBAC" page (#83406) 2024-02-28 09:54:19 +00:00
Tobias Skarhed
213e399563 Docs: Change link in Trusted Types (#83391) 2024-02-28 10:50:03 +01:00
Ashley Harrison
d83319365f DatePickerWithInput: use floating-ui so calendar can overflow scroll containers (#83521)
* move DatePickerWithInput to use floating-ui

* remove position: absolute from DatePicker, remove unnecessary css from CreateTokenModal
2024-02-28 09:45:11 +00:00
Victor Marin
738e9126de Scenes: Add new row and copy/paste functionalities (#83231)
* wip

* tests + refactor ad panel func

* Add row functionality

* update row state only when there are children

* Add new row + copy paste panels

* Add library panel functionality

* tests

* PR mods

* reafctor + tests

* reafctor

* fix test

* refactor

* fix bug on cancelling lib widget

* dashboard now saves with lib panel widget

* add lib panels widget works in rows as well

* split add lib panel func to another PR
2024-02-28 11:13:01 +02:00
Piotr Jamróz
ecb8447a7f Explore: Translate table title in runtime to get a better test id (#83236)
* Explore: Translate table title in runtime to get a better test id

* Fix escaping

* Retrigger the build

* Prettify
2024-02-28 09:19:20 +01:00
brendamuir
3901077f39 Alerting docs: changes weights and titles (#83519)
* Alerting docs: changes weights and titles

* language improvements to intro topic

* corrects rulle spelling

* adds alert instance info

* updates admonition note
2024-02-28 10:10:19 +02:00
Gábor Farkas
8c18d06386 Postgres: Switch the datasource plugin from lib/pq to pgx (#81353)
* postgres: switch from lib/pq to pgx

* postgres: improved tls handling
2024-02-28 07:52:45 +01:00
Señor Performo - Leandro Melendez
e8df62941b Docs: Add missing visualizations to Grafana vizualization index page (#83351)
Co-authored-by: Nathan Marrs <nathanielmarrs@gmail.com>
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
2024-02-27 14:12:08 -08:00
Scott Lepper
70009201d4 Expressions: Sql expressions with Duckdb (#81666)
duckdb temp storage of dataframes using parquet and querying from sql expressions
---------

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-02-27 16:16:00 -05:00
Sven Grossmann
d8b7992c0c Loki: Fix failing test waiting for Loading... copy (#83547)
fix monaco tests
2024-02-27 21:59:38 +01:00
Ryan McKinley
de75813d8d Chore: Remove the deprecated Vector type (#83469) 2024-02-27 12:28:57 -08:00
Leon Sorokin
5c60f4d468 VizTooltip: Remove use of LayoutItemContext (#83542) 2024-02-27 13:33:33 -06:00
Leon Sorokin
0f1cefa942 VizTooltip: Cleanup (#83462) 2024-02-27 12:07:55 -06:00
Jev Forsberg
a30617f8bd Transformations: Add transformation builder tests and refactor (#83285)
* baldm0mma/script_tests/ update jest.config paths

* baldm0mma/script_tests/ refactor makefile content

* baldm0mma/script_tests/ refactor file write commands

* baldm0mma/script_tests/ create test module

* baldm0mma/script_tests/ add to codeowners

* baldm0mma/script_tests/ recenter content

* baldm0mma/script_tests/ create buildMarkdownContent and update whitespace

* baldm0mma/script_tests/ run build script

* baldm0mma/script_tests/ update tests to remove make dep and node dep

* baldm0mma/script_tests/ update cntent

* baldm0mma/script_tests/ update makefile

* baldm0mma/script_tests/ update buildMarkdownContent

* baldm0mma/script_tests/ remove unused imports

* baldm0mma/script_tests/ update test annotation

* baldm0mma/script_tests/ prettier

* baldm0mma/script_tests/ update tests

* baldm0mma/script_tests/ update content

* baldm0mma/script_tests/ update annos

* baldm0mma/script_tests/ remove unused vars

* baldm0mma/script_tests/ remove unused imports

* baldm0mma/script_tests/ update annos

* baldm0mma/script_tests/ update paths

* Update scripts/docs/generate-transformations.test.ts

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* baldm0mma/script_tests/ update comment

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-02-27 10:41:55 -07:00
Oscar Kilhed
19743a7fef Dashboard scenes: Change library panel to set dashboard key to panel instead of library panel. (#83420)
* change library panel so that the dashboard key is attached to the panel instead of the library panel

* make sure the save model gets the id from the panel and not the library panel

* do not reload everything when the library panel is already loaded

* Fix merge issue

* Clean up
2024-02-27 17:56:29 +01:00
김은빈
96dfb385ca Grafana: Replace magic number with a constant variable in response status (#80132)
* Chore: Replace response status with const var

* Apply suggestions from code review

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>

* Add net/http import

---------

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
2024-02-27 18:39:51 +02:00
linoman
a7fbe3c6dc Password Policy: Update frontend facing messages (#83227)
* update tests

* update error messages
2024-02-27 17:34:43 +01:00
Ashley Harrison
fc29182f16 Chore: Remove React 17 peer deps (#83524)
remove react 17 peer dep
2024-02-27 16:34:00 +00:00
Jack Westbrook
0ad8c215aa Build: Update plugin-config webpack config (#83256)
build(plugin-configs): update webpack config to match latest create-plugin config
2024-02-27 17:12:53 +01:00
Sergej-Vlasov
30965d47a3 DashboardScene: Update query variable definition on query change (#83218)
* update scenes query variable definition on query change

* add variable query definition test
2024-02-27 17:48:08 +02:00
Adam Yeats
facb19fefb AzureMonitor: Fix mishandled resources vs workspaces (#83184) 2024-02-27 16:46:29 +01:00
Pepe Cano
eb25b669c6 Alerting docs: update Alerting Provisioning (#83376)
* Minor updates to Provisioning Index page

* Add instructions to export other alerting resources

* Edit example provisioning a `template` via config file

* Add `Resource` column to the `Export API endpoints` table

* Sort the `export` endpoint on the table in `Alerting Provisioning HTTP API`

* Minor updates for clarity to `Use configuration files to provision` docs

* Add `More examples` in Terraform Provisioning docs

* File provisioning: rename `Useful Links` section to `More examples`

* Minor grammar change

* Update docs/sources/alerting/set-up/provision-alerting-resources/_index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/_index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/export-alerting-resources/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/export-alerting-resources/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/export-alerting-resources/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/file-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Address requested changes to `Export` docs

* export: Minor grammar change

* Update docs/sources/alerting/set-up/provision-alerting-resources/export-alerting-resources/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Fix `doc-validator` issue with relative link

* Use patch fixed version of doc-validator that better supports docs/reference destinations

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-02-27 16:22:24 +01:00
ismail simsek
6fab62739d InfluxDB: Fix escaping template variable when it was used in parentheses (#83400)
escape properly regardless of the parentheses
2024-02-27 15:40:32 +01:00
Kristina
e564024883 Docs: change discussion link to issue link (#83434)
* change discussion link to issue link

* run prettier
2024-02-27 08:14:54 -06:00
Giuseppe Guerra
e068804a9e Plugins: Angular deprecation: Fix AngularDeprecationNotice not being rendered on first page load (#83221)
* Plugins: Angular deprecation: Wait for plugins to be inizialized before rendering AngularDeprecationNotice

* use then

* fix tests

* mockCleanUpDashboardAndVariables.mockReset();

* Handle plugin not found

* PR review feedback

* Add comment

* removed unnecessary return

* PR review feedback

* Use grafanaBootData

* Removed comments

* fix tests

* Use config for hideDeprecation as well
2024-02-27 16:14:23 +02:00
kay delaney
a8574226bb Dashboards: Fixes issue where panels would not refresh if time range updated while in panel view mode (#83418) 2024-02-27 14:14:01 +00:00
renovate[bot]
d6eefc7303 Update dependency eslint to v8.57.0 (#83517)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-27 13:59:24 +00:00
renovate[bot]
12e0d5bef3 Update dependency diff to v5.2.0 (#83511)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-27 13:43:13 +00:00
brendamuir
93f18404c0 Alerting docs: readjust titles (#83504)
* Alerting docs: readjust titles

* removes outdated videos

* removes menutitle
2024-02-27 15:00:09 +02:00
renovate[bot]
98efb2cf32 Update dependency browserslist to v4.23.0 (#83505)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-27 12:52:47 +00:00
Josh Hunt
db131f3312 E2C: Refactor api with dataWithMockDelay helper: (#83509)
* E2C: Refactor api with dataWithMockDelay helper:

* update codeowners

* owner comment
2024-02-27 12:52:21 +00:00
Saturn IDC
ac284def02 CI: Fix missing vendor dependencies (#83464) 2024-02-27 12:29:58 +00:00
Joey
92f53d3670 Tracing: Add node graph panel suggestion (#83311)
* Add node graph panel suggestion

* Update logic

* Add comment

* Check for correct fields

* Simplify logic

* Also check for viz type

* Remove extra logic on boolean
2024-02-27 12:28:17 +00:00
renovate[bot]
d94db905c7 Update dependency @grafana/scenes to v3.8.0 (#83502)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-27 13:52:12 +02:00
Will Browne
5edd96ae77 Plugins: Refactor plugin config into separate env var and request scoped services (#83261)
* seperate services for env + req

* merge with main

* fix tests

* undo changes to golden file

* fix linter

* remove unused fields

* split out new config struct

* provide config

* undo go mod changes

* more renaming

* fix tests

* undo bra.toml changes

* update go.work.sum

* undo changes

* trigger

* apply PR feedback
2024-02-27 12:38:02 +01:00
renovate[bot]
d04c579fc2 Update dependency webpack to v5.90.3 2024-02-27 11:36:22 +00:00
Gabriel MABILLE
8d9921a5ba RBAC: Fix delete team permissions on team delete (#83442)
* RBAC: Remove team permissions on delete

* Remove unecessary deletes from store function

* Nit on mock

* Add test to the database

* Nit on comment

* Add another test to check that other permissions remain
2024-02-27 12:21:26 +01:00
renovate[bot]
ffae7d111c Update dependency rudder-sdk-js to v2.48.2 2024-02-27 11:18:13 +00:00
brendamuir
45f8e7f8cf Revert "Revert "Alerting docs: rework create alert rules definition and topic"" (#83372)
* Revert "Revert "Alerting docs: rework create alert rules definition and topic…"

This reverts commit 2b4f108771.

* updates aliases

* fixes after testing aliases

* more alias updates

* test silence alias

* fix alias for mute timings

* attempt alias fix

* ran prettier

* fixes more aliases

* quick title update

* fixes alias

* Update docs/sources/alerting/configure-notifications/manage-contact-points/_index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/_index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/_index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-oncall.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/configure-notifications/template-notifications/reference.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/configure-notifications/template-notifications/use-notification-templates.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/configure-notifications/template-notifications/using-go-templating-language.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/configure-notifications/create-silence.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/webhook-notifier.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/configure-notifications/mute-timings.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/configure-notifications/template-notifications/_index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/manage-notifications/_index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/configure-notifications/create-notification-policy.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/_index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/configure-oncall.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/pager-duty.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/configure-notifications/manage-contact-points/integrations/webhook-notifier.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/configure-notifications/mute-timings.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/configure-notifications/template-notifications/_index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* fix silence aliases

* fix canonical

* Update docs/sources/alerting/configure-notifications/template-notifications/create-notification-templates.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/configure-notifications/create-notification-policy.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-02-27 11:56:11 +01:00
renovate[bot]
ff28c04245 Update dependency ol-ext to v4.0.15 2024-02-27 10:40:43 +00:00
github-actions[bot]
4d0fca443c I18n: Download translations from Crowdin (#83390)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-27 10:25:32 +00:00
renovate[bot]
801107892b Update dependency @types/react to v18.2.60 2024-02-27 10:22:14 +00:00
Jo
cc3b088b6c Teams: Fix missing context in team service (#83327)
fix missing context in team service
2024-02-27 11:10:54 +01:00
renovate[bot]
81eded16aa Update dependency react-virtualized-auto-sizer to v1.0.23 2024-02-27 09:55:58 +00:00
Ashley Harrison
faaf4dc1e3 E2C: Implement cloud auth flow (#83409)
* implement cloud auth

* move logic into MigrationTokenPane folder

* update PDC link

* add missed translations
2024-02-27 09:54:06 +00:00
Adela Almasan
2540842c95 Histogram: Replace null values (#83195) 2024-02-27 05:25:26 +02:00
Leon Sorokin
93fef224ae TimeSeries: Don't re-init chart with bars style on data updates (#83355) 2024-02-27 03:41:39 +02:00
Leon Sorokin
2c3596854f BarChart: TooltipPlugin2 (#80920)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-02-26 19:18:40 -06:00
renovate[bot]
2ed8201f25 Update dependency nanoid to v5.0.6 2024-02-27 00:36:47 +00:00
Adela Almasan
99271441fb Legend: Allow item copy in Table mode (#83319) 2024-02-27 02:35:45 +02:00
Leon Sorokin
4db30754a6 Graph (old): Migrate right y axis to TimeSeries via custom.axisPlacement (#83452) 2024-02-26 18:22:36 -06:00
renovate[bot]
d4a932ae33 Update dependency dompurify to v3.0.9 2024-02-27 00:05:18 +00:00
renovate[bot]
77f9d29291 Update dependency @types/semver to v7.5.8 2024-02-26 23:34:35 +00:00
renovate[bot]
f2a21f3831 Update dependency @types/react-window-infinite-loader to v1.0.9 (#83445)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-27 00:55:27 +02:00
Yuri Tseretyan
6a11bee6af Alerting: Deprecate max_annotations_to_keep and max_annotation_age in [alerting] configuration section (#83266)
* introduce new config section [unified_alerting.state_history.annotations] and deprecate settings in [alerting]

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-02-26 17:04:27 -05:00
Isabella Siu
bdeff84068 CloudWatch: Refactor "getDimensionValuesForWildcards" (#83335) 2024-02-26 16:19:45 -05:00
renovate[bot]
6097ce5b61 Update dependency @types/react-color to v3.0.12 2024-02-26 21:19:27 +00:00
Isabella Siu
44639e1063 CloudWatch: Fetch externalId from settings instead of env (#83332) 2024-02-26 16:18:22 -05:00
Todd Treece
f8dc40df52 Chore: Point to xorm fork in go.mod (#83436) 2024-02-26 16:07:27 -05:00
renovate[bot]
0848e7dd69 Update dependency @types/react to v18.2.59 2024-02-26 21:01:35 +00:00
Isabella Siu
0bfe9db668 CloudWatch: Move SessionCache onto the instance (#83278) 2024-02-26 15:59:54 -05:00
Fabrizio
58b0323bbb Fix linting of docs file (#83441) 2024-02-26 21:03:13 +01:00
Misi
9709ac8b84 Auth: Revert provider list change (#83435)
* Load auth.grafananet as the last provider

* skip test
2024-02-26 20:59:49 +01:00
Takashi Idobe
f209a5a8b8 fix typos (#83414) 2024-02-26 10:52:44 -07:00
renovate[bot]
e9a1150b35 Update dependency @types/node to v20.11.20 2024-02-26 17:19:05 +00:00
kay delaney
c6a16e5520 Scenes/VizPanel: Add support for panel repeat options (#81818) 2024-02-26 17:03:36 +00:00
Stephanie Hingtgen
e295c38a6e Chore: fix shellchecks (#83421) 2024-02-26 08:59:55 -08:00
Nick Richmond
b3363543ea Prometheus: avoid unnecessary network requests (#83342)
* perf: avoid unnecessary network requests

* test: restore mocks to undo `jest.replaceProperty`

* chore: mirror updates for Prometheus library
2024-02-26 11:56:40 -05:00
Usman Ahmad
9f88a88303 Docs/grafana helm (#80390)
* added the helm project

* added page metadata

* added the intro section

* fixed menuTitle

* added section i.e. Setting up the Grafana Helm repository

* added the deployment section

* finished the deploying grafana section

* completed access grafana section

* updating changes

* added persistent storage section

* added debugging section

* fixed typos

* fixed headings

* fixed numerious typos

* Apply suggestions from code review

looks good now !!

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

* Apply suggestions from code review

Thanks for the changes. It looks much better now

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

* fixed the suggested changes and fixed minor typos

* Apply suggestions from code review

thanks for the improvements. looks polished now!!

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

* fixed download link

* fixed typo

* final adjustments

* corrects spelling

* makes prettier

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
Co-authored-by: Chris Moyer <chris.moyer@grafana.com>
2024-02-26 10:53:38 -06:00
renovate[bot]
6183f7ea6c Update dependency @types/lucene to v2.1.7 (#83422)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-26 18:52:55 +02:00
ismail simsek
949156e842 InfluxDB: Fix fetching tag values only for selected measurement (#83353)
show tag values only for selected measurement
2024-02-26 17:28:37 +01:00
renovate[bot]
af76b8937e Update dependency @types/js-yaml to v4.0.9 (#83417)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-26 18:16:01 +02:00
Mihai Doarna
7b2fa28e0b SSO: update info field from SocialBase struct (#83407)
update info field from SocialBase struct
2024-02-26 18:02:46 +02:00
renovate[bot]
2c38bc5f13 Update dependency @types/d3-force to v3.0.9 (#83413)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-26 17:59:30 +02:00
Ryan McKinley
d122af6b97 Live: Improve the debug panel and add a devenv dashbaord (#83350) 2024-02-26 07:56:35 -08:00
renovate[bot]
715ea44466 Update dependency @types/common-tags to v1.8.4 (#83410)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-26 17:43:52 +02:00
renovate[bot]
050cf85e27 Update dependency @types/chance to v1.1.6 (#83401)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-26 15:27:16 +00:00
Tobias Skarhed
432fffcf4c Docs: Update help keyboard shortcut (#83397) 2024-02-26 16:10:15 +01:00
Darren Janeczek
fb324fc8ac datatrails: fix: indicate __ignore_usage__ for preview queries (#82291)
* fix: indicate __ignore_usage__ for preview queries

* fix: further remove var that shouldn't be there

* refactor: move previewPanel code and add tests

* fix: use simpler `AdHocFiltersVariable` state

Co-authored-by: Andre Pereira <adrapereira@gmail.com>

---------

Co-authored-by: Andre Pereira <adrapereira@gmail.com>
2024-02-26 10:01:54 -05:00
Ashley Harrison
da4fb8b3ed E2C: Initial config to switch between cloud and onprem pages (#83380)
hacky config to switch between cloud and onprem pages
2024-02-26 14:36:34 +00:00
Isabella Siu
7f8a87458f CloudWatch: Remove unused handleGetRegions and regionCache (#83333)
* remove unused handleGetRegions and regionCache

* cleanup
2024-02-26 09:35:59 -05:00
Misi
617adb137c Auth: OAuth strategy load extra fields separately (#83408)
Load extra fields separately
2024-02-26 15:33:29 +01:00
Eric Leijonmarck
1f484fef9d Team LBAC: Add doc description of lbac rule (#83384)
* chore: add doc description of lbac rule

* spellling

* Update docs/sources/administration/data-source-management/teamlbac/_index.md

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>

---------

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
2024-02-26 14:31:21 +00:00
Gábor Farkas
4c0da354ca update go.mod/sum/work (#83402)
* update go.mod/sum/work

* updated codeowners
2024-02-26 16:24:08 +02:00
Hugo Häggmark
005b2c0f25 Docs: Update HALL_OF_FAME.md (#79775)
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-02-26 15:04:58 +01:00
idafurjes
80447dd0cc Restructure cloudmigration service (#83211)
* Restructure cloudmigation service

* Adjust codewoners and wire

* Comment out unused metrics
2024-02-26 14:52:16 +01:00
renovate[bot]
648abdbd0e Update dependency @swc/core to v1.4.2 2024-02-26 12:49:29 +00:00
Victor Marin
09c8e7ccc0 Scenes: Add new vizualisation functionality (#83145)
* wip

* tests + refactor ad panel func

* PR mods
2024-02-26 14:48:27 +02:00
renovate[bot]
445aeca04b Update dependency @react-types/shared to v3.22.1 2024-02-26 12:28:41 +00:00
Khushi Jain
d02de5ddb9 Image Rendering: Add settings for default width, height and scale (#82040)
* Add Image width & height

* ability to change default width, height and scale

* default ini

* Update conf/defaults.ini

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* Update pkg/setting/setting.go

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* Update pkg/setting/setting.go

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* Added docs, changed frontend

* Update conf/defaults.ini

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* Update conf/defaults.ini

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* Update conf/defaults.ini

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* Update docs/sources/setup-grafana/configure-grafana/_index.md

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* Update pkg/api/dtos/frontend_settings.go

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* Update pkg/api/frontendsettings.go

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* Update pkg/api/render.go

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* add query float 64

* Update packages/grafana-runtime/src/config.ts

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* Update public/app/features/dashboard/components/ShareModal/utils.ts

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* spacing

* fix tests

* Update docs/sources/setup-grafana/configure-grafana/_index.md

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

* Update docs/sources/setup-grafana/configure-grafana/_index.md

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

* Update docs/sources/setup-grafana/configure-grafana/_index.md

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

---------

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2024-02-26 13:27:34 +01:00
renovate[bot]
3f2eb8bd6a Update dependency @grafana/faro-web-sdk to v1.3.9 2024-02-26 12:04:59 +00:00
Andres Martinez Gotor
fc8a9aad22 Datasource API: Add config to ctx (#83386) 2024-02-26 13:02:55 +01:00
renovate[bot]
5756f365e3 Update dependency @grafana/faro-web-sdk to v1.3.9 2024-02-26 11:32:47 +00:00
renovate[bot]
171852546d Update dependency @grafana/faro-core to v1.3.9 2024-02-26 11:09:56 +00:00
Laura Fernández
f6fa248ac1 ReturnToPrevious: Add guidelines to returnToPrevious hook (#83219) 2024-02-26 12:08:00 +01:00
Fabrizio
2fa4ac2a73 Tempo: Remove duplicated code (#81476) 2024-02-26 11:39:26 +01:00
Gabriel MABILLE
80d6bf6da0 AuthN: Remove embedded oauth server (#83146)
* AuthN: Remove embedded oauth server

* Restore main

* go mod tidy

* Fix problem

* Remove permission intersection

* Fix test and lint

* Fix TestData test

* Revert to origin/main

* Update go.mod

* Update go.mod

* Update go.sum
2024-02-26 11:29:09 +01:00
Serge Zaitsev
d0679f0993 Chore: Add support bundle for folders (#83360)
* add support bundle for folders

* fix ProvideService in tests

* add a test for collector
2024-02-26 11:27:22 +01:00
renovate[bot]
ae00b4fb53 Update dependency @grafana/aws-sdk to v0.3.2 (#83374)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-26 12:24:33 +02:00
Ashley Harrison
d5adcf350a E2C: Add cloud landing page (#83316)
* restructure and create cloud empty state

* use new Grid prop and run i18n:extract
2024-02-26 10:10:35 +00:00
Selene
dea0a0f6c8 Kinds: Generate k8 resources without use kindys/thema (#83310)
Generate k8 resources reading cue file directly instead of use thema/kindsys binding
2024-02-26 10:18:19 +01:00
Joey
1899afccb5 Tempo: Add support for ad-hoc filters (#83290)
* Add support for ad-hoc filters

* Add tests

* Update types
2024-02-26 08:59:13 +00:00
Erik Sundell
af4382e4c2 plugin-e2e: Fix flaky test (#83370)
fix mock issue
2024-02-26 09:21:29 +01:00
Darren Janeczek
11ff4e7b8c fix: datatrails: start step is "metric select" after reinitializing from URL (#83179)
fix: datatrails: start step is "metric select"

If restoring from a saved data trail, or URL,
the selection of metric becomes a second step.
The first step is always without a metric, and
displays the metric selection scene.
2024-02-25 12:54:10 -05:00
Todd Treece
110028706a K8s: Update codegen to support new packages (#83347)
---------

Co-authored-by: Charandas Batra <charandas.batra@grafana.com>
2024-02-23 16:36:23 -08:00
Leon Sorokin
6e6b9a62a2 VizTooltips: Use global portal (#81986)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-02-24 00:18:24 +02:00
Haris Rozajac
e4276a4ede Dashboard-Scene: Show empty state after removing last panel (#83114)
* Show empty state after removing last panel

* betterer

* Refactor isEmpty state update in DashboardScene.tsx

* don't need viewPanelScene check

* track isEmpty through a behavior

* Fix test

* Add test for empty state

* minor fix

* Refactor isEmpty check

* Don't use const

* clean up
2024-02-23 15:03:35 -07:00
ismail simsek
240480ac9b Chore: Add a key prop to warning component to prevent "should have a unique key prop" error (#83340)
add a key prop to prevent "should have a unique key prop" warning/error on the browser console
2024-02-23 23:57:12 +02:00
Isabel
dfeb33fe55 Docs: restructure Configure field overrides (#81833)
* Removed view and delete overrides sections

* Added examples heading and moved examples down one heading level

* Added override rules section and removed rule definitions from task

* Added supported visualizations section and table and docs ref links

* Docs: edit Configure field overrides (#81834)

* Formatted note

* Added missing content and general edits

* Updated screenshots and examples and general edits

* Fix small formatting issues

* Fixed links

* Uploaded images to admin, updated image links, and removed local images

* Swapped figure shortcode for simple Markdown
2024-02-23 16:51:00 -05:00
Todd Treece
e5a26a3f7c K8s: Add apimachinery and apiserver packages (#83190) 2024-02-23 15:15:43 -05:00
Todd Treece
f4b432841b Chore: Add env var check to make drone (#83337) 2024-02-23 21:28:30 +02:00
Todd Treece
2146f6ce1f Chore: Update drone signature (#83334) 2024-02-23 14:10:51 -05:00
Tania
8895b43c85 Chore: Remove docs and kinds report generators (#83277)
* Chore: Remove codegen for docs

* Remove kindsysreport
2024-02-23 20:06:43 +01:00
Todd Treece
23963a1f34 Chore: Update wire to v0.6.0 using bingo (#83323) 2024-02-23 12:48:26 -05:00
Jack Baldry
2b4f108771 Revert "Alerting docs: rework create alert rules definition and topic" (#83328) 2024-02-23 19:30:08 +02:00
Darren Janeczek
18d1ced069 style: datatrails: indicate prometheus data source (#83199)
* style: indicate prometheus data source
2024-02-23 12:03:40 -05:00
Darren Janeczek
b3c0f69576 style: datatrails: use Tag on cards (#83198)
* style: datatrails: use Tag on cards
2024-02-23 12:03:10 -05:00
Jev Forsberg
a97562906c Table: Add ability for Table to render Standard Options "No value" value when DataFrames or field values are empty (#82948)
* baldm0mma/no_value_message/ add fieldConfig to Table props

* baldm0mma/no_value_message/ add noValuesDisplayText to table props

* baldm0mma/no_value_message/ add fieldConfig to tablePanel

* baldm0mma/no_value_message/ add tests

* baldm0mma/no_value_message/ update test values

* baldm0mma/no_value_message/ update args in tests

* baldm0mma/no_value_message/ update with NO_DATA_TEXT const
2024-02-23 10:00:24 -07:00
Kristina
92fa868a77 remove oss from security config docs (#82936) 2024-02-23 10:55:44 -06:00
brendamuir
57114a4916 Alerting docs: rework create alert rules definition and topic (#83220)
* Alerting docs: rework create alert rules definition and topic

* ran prettier

* corrects note

* adds configure notifications section

* update branch

* corrects links

* parts of alert rule creation

* Update docs/sources/alerting/configure-notifications/_index.md

Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com>

* moved section

* updates recording rule steps

* gets rid of configure integrations topic

* deletes configure integrations topic

* deletes links

* ran prettier

* Include contact point links

* phase 2 sorting out manage notifications

* manage notification changes

* manage notification updates

* finishing touches

* fixes links

* link fixes

* more link fix

* link fixes

* ran prettier

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Pepe Cano <825430+ppcano@users.noreply.github.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-02-23 17:52:19 +01:00
Andreas Christou
1477e658ec CI: Add retry for yarn install (#83317)
Add retry for yarn install
2024-02-23 16:15:28 +00:00
Ieva
19b1e71fee IP range AC for data sources: compare the base of the URL only (#83305)
* compare the base of the URL and ignore the path

* change the logic to compare scheme and host explicitly

* fix the test
2024-02-23 18:13:21 +02:00
Ieva
65534e62a6 RBAC: add kind, attribute and identifier to annotation permissions during the migration (#83299)
add kind, attribute and identifier to annotation permissions during the migration
2024-02-23 16:03:23 +00:00
Jo
b2601d71d5 IAM: Remove fully rolled out feature toggles (#83308)
* remove anon stat ft

* remove split scope flag

* remove feature toggle from frontend
2024-02-23 17:53:37 +02:00
Kristina
bbe9c8661a Explore: Use rich history local storage for autocomplete (#81386)
* move autocomplete logic

* Tests

* Write to correct history

* Remove historyUpdatedAction and related code

* add helpful comments

* Add option to mute all errors/warnings for autocomplete

* Add back in legacy local storage query history for transition period

* Move params to an object for easier use and defaults

* Do not make time filter required

* fix tests

* change deprecation version and add issue number
2024-02-23 09:44:21 -06:00
Torkel Ödegaard
ea8b3267e5 DataTrails: Sticky controls (#83286)
* DataTrails: Sticky controls

* Update
2024-02-23 16:22:34 +01:00
Ashley Harrison
49e18a3e7a Chore: replace react-popper with floating-ui in Popover (#82922)
* replace react-popper with floating-ui in Popover

* update HoverCard

* fix unit tests

* mock useTransitionStyles to ensure consistent unit test results
2024-02-23 15:00:24 +00:00
Darren Janeczek
83c01f9711 datatrails: detect if current trail state is bookmarked (#83283)
* fix: detect if current trail state is bookmarked
2024-02-23 17:00:10 +02:00
Ashley Harrison
604e02be15 Grid: Add alignItems prop (#83314)
add alignItems props to Grid
2024-02-23 14:25:44 +00:00
Joey
1631e41303 Tempo: Add template variable interpolation for filters (#83213)
* Interpolate template variables in filters

* Add tests
2024-02-23 14:03:35 +00:00
Todd Treece
49d3cb29eb Chore: Add go workspace (#83191)
---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-02-23 08:54:24 -05:00
Daniel Reimhult
43b186a52e Unit: Add SI prefix for empty unit (#79897)
* Unit: Add SI prefix for empty unit

* Units: Change name from SI prefix to SI short
2024-02-23 15:24:12 +02:00
Andreas Christou
7730a38474 CI: Remove inline-builds flag (#83306)
Remove inline-builds
2024-02-23 15:11:04 +02:00
Erik Sundell
3e456127cb E2E: Add plugin-e2e scenario verification tests (#79969)
* add playwright test and plugin-e2e

* run tests in ci

* add ds config tests

* add panel edit tests

* add annotation test

* add variable edit page tests

* add explore page tests

* add panel plugin tests

* add readme

* remove comments

* fix broken test

* remove user.json

* remove newline in starlark

* fix lint issue

* ignore failure of playwright tests

* update code owners

* add detailed error messages in every expect

* update message frame

* fix link

* upload report to gcp

* echo url

* add playwright developer guide

* bump plugin-e2e

* add custom provisioning dir

* update plugin-e2e

* remove not used imports

* fix typo

* minor fixes

* use latest version of plugin-e2e

* fix broken link

* use latest plugin-e2e

* add feature toggle scenario verification tests

* bump version

* use auth file from package

* fix type error

* add panel data assertions

* rename parent dir and bump version

* fix codeowners

* reset files

* remove not used file

* update plugin-e2e

* separate tests per role

* pass prov dir

* skip using provisioning fixture

* wip

* fix permission test

* move to e2e dir

* fix path to readme

* post comment with report url

* format starlark

* post comment with report url

* post comment with report url

* fix token

* make test fail

* fix exit code

* bump version

* bump to latest plugin-e2e

* revert reporting message

* remove comments

* readding report comment

* change exit code

* format starlark

* force test to fail

* add new step that posts comment

* fix link

* use latest playwright image

* fix failing test

* format starlark

* remove unused fixture

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>

---------

Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2024-02-23 12:39:30 +01:00
Ashley Harrison
b25667223c Box: add direction prop to Box (#83296)
add "direction" prop to Box
2024-02-23 13:38:36 +02:00
George Robinson
a0353b237a Alerting: Update swagger specs (#83260) 2024-02-23 11:25:43 +00:00
Ashley Harrison
a3c73ae7c4 E2C: Add initial empty state (#83232)
* update subtitle

* add empty state

* rename to InfoPaneLeft/Right

* use &apos;

* add "direction" prop to Box

* update subtitle

* Revert "add "direction" prop to Box"

This reverts commit 99f82a27c7.
2024-02-23 13:18:09 +02:00
Ashley Harrison
c63456612e Chore: replace react-popper with floating-ui in time pickers (#82640)
* replace react-popper with floating-ui in RelativeTimeRangePicker

* replace react-popper with floating-ui in DateTimePicker
2024-02-23 10:45:04 +00:00
Ben Donnelly
fa37d8467f fix(build): make python and gcc are needed for some yarn dependencies… (#83228)
fix(build): make python and gcc are needed for some yarn dependencies to build
2024-02-23 11:14:54 +01:00
renovate[bot]
d4bc0fe018 Update dependency stylelint to v16 (#83252)
* Update dependency stylelint to v16

* remove stylelint-config-prettier since it's no longer necessary

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-02-23 11:56:38 +02:00
renovate[bot]
ad80518db0 Update dependency webpack-dev-server to v5 (#83258)
* Update dependency webpack-dev-server to v5

* update webpack.hot config (is this even used anymore?)

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-02-23 11:43:16 +02:00
renovate[bot]
217154f85d Update dependency stylelint-config-sass-guidelines to v11 (#83253)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-23 09:20:02 +00:00
Konrad Lalik
cc9ff3f8c9 Alerting: Add Loki ASH tests checking proper rendering of timeline chart component (#83235)
Add Loki ASH tests checking proper rendering of timeline chart component
2024-02-23 09:19:16 +01:00
Kyle Cunningham
a4cc4179c8 Table: Fix units showing in footer after reductions without units (#82081)
* Add preservesUnits property to reducer registry items

* Hide units when appropriate

* Prettier

* some code cleanup

* Prevent error when no stat is selected.

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-02-22 22:28:15 -06:00
Alvaro Huarte
49299ebd9c Table Component: Improve text-wrapping behavior of cells (#82872)
* Fix text-wrapping of cells in Tables

* Set wordbreak on hover for long texts without spaces
2024-02-23 06:20:56 +02:00
Kim Nylander
62163f8844 [DOC] Tempo data source: fix broken link and clarify traces to profile (#83135)
* Update Tempo data source to fix broken link

* Correct profiles content

* Move explanation table up

* Chagnes from prettier

* Resolve conflict
2024-02-22 16:22:00 -06:00
Ezequiel Victorero
455bccea2a Scenes: Render old snapshots (#82277) 2024-02-22 16:56:31 -03:00
Torkel Ödegaard
086e60488f DataTrails: Remove the adhoc filters label (#83237) 2024-02-22 20:11:09 +01:00
Andreas Christou
d503107d7a Docker: Add workaround for building on arm64 (#83242)
Add workaround for building on arm64
2024-02-22 18:59:06 +00:00
Haris Rozajac
28fa2849df Dashboard-Scene: View panel as table in edit mode (#83077)
* WIP: working functionality

* betterer

* Fully working: Alerts show up, toggling table view doesn't update viz type in options pane

* betterer

* improve

* betterer

* Refactoring a bit

* wrong step

* move data provider to vizPanel

* Update

* update

* More refactorings

* Fix InspectJsonTab tests (except 1); remove obsolete PanelControls

* Fixed test

* Update

* minor fix

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-02-22 10:34:21 -07:00
George Robinson
a564c8c439 Alerting: Keep order of time and mute time intervals consistent (#83257) 2024-02-22 16:57:20 +00:00
Misi
1ef2e8d366 Chore: Allow self-serve for ssoSettingsApi feature toggle (#83140)
* Set AllowSelfServe to true ssoSettingsApi

* Align ft registry validation with latest changes
2024-02-22 18:33:27 +02:00
renovate[bot]
18ec6fcdd3 Update dependency sass-loader to v14 (#83255)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-22 18:26:01 +02:00
George Robinson
1ed1242358 Alerting: Basic support for time_intervals (#83216)
This commit adds basic support for time_intervals, as mute_time_intervals
is deprecated in Alertmanager and scheduled to be removed before 1.0.
It does not add support for time_intervals in API or file provisioning,
nor does it support exporting time intervals. This will be added in
later commits to keep the changes as simple as possible.
2024-02-22 15:58:56 +00:00
renovate[bot]
13cb09b178 Update dependency postcss-loader to v8 (#83161)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-22 15:52:20 +00:00
renovate[bot]
0b62c15e4b Update dependency rc-drawer to v7 (#83162)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-22 15:48:37 +00:00
Gábor Farkas
ae77fe3602 postgres: do not use unexported grafana-core config (#83241)
* postgres: do not use unexported grafana-core config

* fixed wrong value
2024-02-22 16:47:03 +01:00
Jack Westbrook
5f89c69b66 Chore: Bump Lerna 8.x.x (#83233)
* chore(lerna): bump lerna to 8.x.x

* chore(lerna): run lerna repair command to update lerna.json

* ci(drone): use raw output (no quotes) when updating package.json version

* ci(drone): update config file
2024-02-22 16:22:23 +01:00
Isabel
5f41cc632e Docs: update import troubleshoot dashboards links (#83124)
* Updated links to former manage dashboards content

* Removed links to manage dashboards and added export content to Sharing page

* Replaced grafana links with cloud docs links

* Removed trailing slash from link

* trigger CI

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-02-22 09:34:16 -05:00
Jack Westbrook
15d83960ec Chore: Align usage of tsconfig in yarn workspaces to 1.3.0-rc1 (#83160)
chore(tsconfig): align all usage in workspaces to 1.3.0-rc1
2024-02-22 15:30:20 +01:00
Joey
ee5dc14e17 Tempo: Remove trace to metrics feature toggle (#82884)
* Remove trace to metrics feature toggle

* Fix after merge
2024-02-22 13:30:41 +00:00
Sonia Aguilar
2a1873f038 Alerting: Fix saving evaluation group. (#83188)
fix saving evaluation group
2024-02-22 14:29:57 +01:00
Gábor Farkas
3ba33fe278 mysql: do not use unexported grafana-core config (#83062)
* mysql: do not use unexported grafana-core config

* updated test
2024-02-22 14:22:14 +01:00
Marie Cruz
74c0463cd3 Docs: update grafana fundamentals (#83075)
* docs: update grafana fundamentals

* fix: lint issues

* docs: added more content on grafana fundamentals tutorial
2024-02-22 13:27:29 +01:00
Leon Sorokin
dbbbfa282d StateTimeline: Properly type tooltip prop, remove ts-ignore (#83189) 2024-02-22 06:14:53 -06:00
Jack Westbrook
0dcdfc261b Monaco Editor: Load via ESM (#78261)
* chore(monaco): bump monaco-editor to latest version

* feat(codeeditor): use esm to load monaco editor

* revert(monaco): put back previous version

* feat(monaco): setup MonacoEnvironment when bootstrapping app

* feat(monaco): load monaco languages from registry as workers

* feat(webpack): clean up warnings, remove need to copy monaco into lib

* fix(plugins): wip - remove amd loader workaround in systemjs hooks

* chore(azure): clean up so QueryField passes typecheck

* test(jest): update config to fix failing tests due to missing monaco-editor

* test(jest): update config to work with monaco-editor and kusto

* test(jest): prevent message eventlistener in nodeGraph/layout.worker tripping up monaco tests

* test(plugins): wip - remove amd related tests from systemjs hooks

* test(alerting): prefer clearAllMocks to prevent monaco editor failing due to missing matchMedia

* test(parca): fix failing test due to undefined backendSrv

* chore: move monacoEnv to app/core

* test: increase testing-lib timeout to 2secs, fix parca test to assert dom element

* feat(plugins): share kusto via systemjs

* test(e2e): increase timeout for checking monaco editor in exemplars spec

* test(e2e): assert monaco has loaded by checking the spinner is gone and window.monaco exists

* test(e2e): check for monaco editor textarea

* test(e2e): check monaco editor is loaded before assertions

* test(e2e): add waitForMonacoToLoad util to reduce duplication

* test(e2e): fix failing mysql spec

* chore(jest): add comment to setupTests explaining need to incresae default timeout

* chore(nodegraph): improve comment in layout.worker.utils to better explain the need for file
2024-02-22 12:31:40 +01:00
Josh Hunt
0dbf2da254 MigrateToCloud: Add API interface for frontend (#83215)
Add RTK Query mocks
2024-02-22 13:12:00 +02:00
Ashley Harrison
5561ace467 Navigation: Scroll the active menu item into view when menu is an overlay (#83212)
scroll the active menu item into view even when not docked
2024-02-22 11:04:18 +00:00
Pepe Cano
9c42826c30 Alerting docs: fix broken link and apply the Writer toolkit guideline to other links (#83209)
* Fix `/docs/reference` cannot be used within admonitions

* Remove `relref` links to apply Writers toolkit guidelines
2024-02-22 11:31:59 +01:00
Fabrizio
a35dc9ad4e Allow build and release process for Zipkin plugin (#83116) 2024-02-22 10:49:51 +01:00
Fabrizio
8852b1dcc5 Run analysis steps only on grafana/grafana (#83185) 2024-02-22 10:26:50 +01:00
Konrad Lalik
b02183e9ac Alerting: Fix dashboard nav drawers disappearing (#82890)
Add DashNav modal renderer to handle modals rendered from Toolbar buttons
2024-02-22 10:16:27 +01:00
Fabrizio
3dea5e30c3 Yarn: Clean up PnP fragments (#83138) 2024-02-22 10:04:58 +01:00
Klesh Wong
9282c7a7a4 AuthProxy: Invalidate previous cached item for user when changes are made to any header (#81445)
* fix: sign in using auth_proxy with role a -> b -> a would end up with role b

* Update pkg/services/authn/clients/proxy.go

Co-authored-by: Karl Persson <kalle.persson92@gmail.com>

* Update pkg/services/authn/clients/proxy.go

Co-authored-by: Karl Persson <kalle.persson92@gmail.com>
2024-02-22 10:02:31 +01:00
Agnès Toulet
8d68159b52 Public Dashboards: Disable email-sharing when there is no license (#80887)
* PublicDashboards: Disable email-shared dashboards when feature is disabled

* fix pubdash creation when it was email-shared

* add feature name const in OSS

* update doc

* Update service.go

* fix test & linter

* fix test

* Update query_test.go

* update tests

* fix imports

* fix doc linter issues

* Update docs/sources/administration/enterprise-licensing/_index.md

* fix after merge
2024-02-22 09:34:14 +01:00
Pablo
cfcf03bf7a CloudWatch: Add Firehose kms-related metrics (#83192)
Add KMS firehose metrics
2024-02-21 14:57:31 -05:00
Josh Hunt
030b83d8f2 NestedFolderPicker: Seperate state from Browse Dashboards (#82672)
* initial very very early stab at isolated state for nested folder picker

* more

* complete state rework. still need to do search

* tidy up some comments

* split api hook into seperate file, start to try and get search results back (its not working)

* Fix loading status

* Reset files

* cleanup

* fix tests

* return object

* restore hiding items

* restore

* restore

* remove those comments

* rename hooks

* rename hooks

* simplify selectors - thanks ash!!!

* more ci please?
2024-02-21 20:02:37 +02:00
Jev Forsberg
d883af08dd Dependencies(Dev): Add @types/eslint-scope (#83118)
baldm0mma/add_eslint-scope_dep/ add dep and yarn add
2024-02-21 10:26:49 -07:00
github-actions[bot]
ac88cfbdbb I18n: Download translations from Crowdin (#83182)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-21 18:23:53 +02:00
Alex Khomenko
5132828a2b Chore: Remove Form usage from notification policies (#81758)
* Chore: Replace Form component usage in EditDefaultPolicyForm.tsx

* Chore: Replace Form component usage in EditNotificationPolicyForm.tsx

* Remove ts-ignore
2024-02-21 18:14:49 +02:00
Ivan Ortega Alba
5460d75e74 QueryVariableEditor: Select a variable ds does not work (#83144) 2024-02-21 17:57:53 +02:00
Darren Janeczek
db4b4c4b0a datatrails: refactor: auto query generator, use more suitable queries (#82494)
* refactor: datatrails auto query generator

* fix: use "per-second rate" instead
2024-02-21 10:52:49 -05:00
Ashley Harrison
c75502dd8c Cloud migration UI: Add migrate-to-cloud route (#83072)
* add migrate-to-cloud route

* fix chunk name

* gate route behind feature toggle

* update permission checks
2024-02-21 15:50:13 +00:00
Sergej-Vlasov
e1edec02d0 DashboardScene: Validate variable name in scenes variable editor (#82415)
* add variable name validation

* adjust variable name validation logic

* move variable name validation logic to model

* add tests for onValidateVariableName

* extract variable name validation itest into separate describe
2024-02-21 17:16:57 +02:00
linoman
7e8b679237 OAuth: Improve domain validation (#83110)
* enforce hd claim validation

* add tests
2024-02-21 15:40:18 +01:00
Khushi Jain
1394b3341f Chore: Remove gf-form from datasource/loki and datasource/cloud-monitoring (#80117)
* Chore: Remove gf-form from datasource/loki

* remove query field

* update betterer
2024-02-21 16:37:40 +02:00
Carl Bergquist
028d0d0c2c Rename scope.name to scope.title since name exists in metadata. (#83172)
name is part of metadata which is confusing

Signed-off-by: bergquist <carl.bergquist@gmail.com>
2024-02-21 09:32:57 -05:00
Joey
2258e6bd16 Traces: Add traces panel suggestion (#83089)
* Add traces panel suggestion

* Render suggestion

* Update styling

* Update styling
2024-02-21 13:49:41 +00:00
Alexander Zobnin
9bbb7f67e0 Chore: Move store interface to top level (#83153)
* Chore: Move store interface to top level

* Update store mock
2024-02-21 14:32:54 +01:00
Ben Sully
be71277d33 Plugins: fix loading of modules which resolve to Promises (#82299)
* Plugins: fix loading of modules which resolve to Promises

Prior to this commit we expected the default export of a plugin module
to be an object with a `plugin` field.

This is the case for the vast majority of plugins, but if a plugin uses
webpack's `asyncWebAssembly` feature then the default export will actually
be a promise which resolves to such an object.

This commit checks the result of the SystemJS import to make sure it has
a `plugin` field. If not, and if the `default` field looks like a Promise,
it recursively attempts to resolve the Promise until the object looks like
a plugin.

I think this may have broken with the SystemJS upgrade (#70068) because it used
to work without this change in Grafana 10.1, but it's difficult to say
for sure.

* Use Promise.resolve instead of await to clean up some logic

* Override systemJSPrototype.import instead of handling defaults inside importPluginModule

* Add comment to explain why we're overriding systemJS' import

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>

---------

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2024-02-21 13:25:00 +00:00
Ryan McKinley
809c1eaddb Snapshots: delete from same org (#83111)
delete in org
2024-02-21 08:04:15 -05:00
Esteban Beltran
49a3553b94 Sandbox: Fix custom variable query editors not working inside the sandbox (#83152) 2024-02-21 13:31:16 +01:00
Giuseppe Guerra
68fe045ec7 Plugins: Remove pluginsInstrumentationStatusSource feature toggle (#83067)
* Plugins: Remove pluginsInstrumentationStatusSource feature toggle

* update tests

* Inline pluginRequestDurationWithLabels, pluginRequestCounterWithLabels, pluginRequestDurationSecondsWithLabels
2024-02-21 12:57:40 +01:00
Dan83
b6b5935992 Chore: Remove Form usage in NewFolderForm components (#83028)
* Chore: Remove Form usage from NewFolderForm

* Chore: Remove Form usage from NewFolderForm

* Chore: Remove Form usage from NewFolderForm

* Replace HorizontalGroup with Stack

* add Default Values and launch prettier
2024-02-21 13:56:04 +02:00
Torkel Ödegaard
bfdb4625a0 Grafana/UI: Replace Splitter with useSplitter hook and refactor PanelEdit snapping logic to useSnappingSplitter hook (#82895)
* Hook refactor

* Update

* Test

* Update

* Both directions work

* fixes

* refactoring

* Update

* Update

* update

* Remove consolo.log

* Update

* Fix
2024-02-21 12:34:19 +01:00
Laura Fernández
6b31b1fc03 TimeRangeList: absolute time range list not scrollable (#82887) 2024-02-21 12:28:57 +01:00
brendamuir
d091e4c264 Alerting docs: adds simplified alert routing (#82158)
* Alerting docs: adds simplified alert routing

* adds to preview section

* adds numbering

* adds indent

* deletes fullstop

* ran prettier

* adds feature toggle notes

* fixes spelling error
2024-02-21 12:21:44 +01:00
Gábor Farkas
a62dccb0c0 plugins: add more configuration parameters to the plugin-config (#83060)
* envvars: add more configs

* made row-limit optional

* more consistent naming
2024-02-21 12:32:10 +02:00
Jack Westbrook
778d80f922 Chore: Remove React from o11y dependencies and align zipkin and tempo dependencies (#83143)
chore(zipkin): remove react from o11y dependencies, tidy tempo and zipkin dependencies
2024-02-21 11:02:16 +01:00
Wilbert Guo
1352072338 Cloudwatch: Fix filter button issue in Variable Editor (#83082) 2024-02-21 10:55:06 +01:00
brendamuir
4720c99bd5 Alerting docs: Fix migrating alert links (#83141)
* Alerting docs: fixes migrating links

* Fixes underscores and stars

* Corrects numbering

* ran prettier

* Fix links

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/alerting/set-up/migrating-alerts/_index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-02-21 10:41:12 +01:00
Alexander Zobnin
e7a1ecca28 Annotations: Improve query performance when using dashboard filter (#83112)
* Annotations: Improve query performance when using dashboard filter

* Add dashboard id filter
2024-02-21 10:30:26 +01:00
Eric Leijonmarck
620cc6dced Team LBAC: Add epilogue to permissions (#82523)
* add epilogue to permissions

* gs
linting fix

* update docs

* Revert "update docs"

This reverts commit 0902ce2d8a.
2024-02-21 09:26:09 +00:00
Andrej Ocenas
d48bf34227 DataFrame: Improve typing of arrayToDataFrame helper and fix null/undefined handling (#83104) 2024-02-21 10:14:29 +01:00
brendamuir
4b2ef36165 Alerting docs: fixes oncall broken links (#83139) 2024-02-21 09:39:13 +01:00
Torkel Ödegaard
64e0a4282e DataQuery: Track panel plugin id not type (#83091) 2024-02-21 09:38:42 +01:00
Charandas
0bd009fb53 K8s: fix nil deref from dummy factory for API Server options (#83132) 2024-02-20 23:00:02 +02:00
Sonia Aguilar
16dee3cf1c Alerting: Protect possible undefined (#83128)
Protect possible undefined
2024-02-20 21:17:40 +01:00
Sven Grossmann
f2c0309d71 Logs Panel: Add option extra UI functionality for log context (#83123)
* use ref rather than state

* add `getLogRowContextUi` to panel
2024-02-20 21:07:47 +01:00
Carl Bergquist
53c19e4988 move codespell check into /docs (#83109)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2024-02-20 20:40:31 +01:00
grafana-delivery-bot[bot]
8f3d49687e Release: Bump version to 11.0.0-pre (#83119)
"Release: Updated versions in package to 11.0.0-pre"

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2024-02-20 19:02:36 +00:00
Jan Garaj
8162ec2960 CloudWatch: Update AWS/ES metrics (#83037)
CloudWatch: update AWS/ES metrics
2024-02-20 13:46:29 -05:00
Jan Garaj
ef23148b36 CloudWatch: Update AWS/EC2 metrics (#83039)
CloudWatch: update AWS/EC2 metrics
2024-02-20 12:13:50 -05:00
Jack Westbrook
3ca01f5486 Yarn: Fix workspace refs (#83117)
* Wip

* chore(yarn): refresh lock file
2024-02-20 18:03:07 +01:00
Kyle Brandt
4859cdeae5 K8S/Scopes: App-server for storing scope objects (#81996)
Build out app-server stub

---------

Signed-off-by: bergquist <carl.bergquist@gmail.com>
Co-authored-by: bergquist <carl.bergquist@gmail.com>
Co-authored-by: Todd Treece <360020+toddtreece@users.noreply.github.com>
2024-02-20 18:28:27 +02:00
Fabrizio
d1c5e491ac Zipkin: Decouple Zipkin plugin (#81354) 2024-02-20 18:24:40 +02:00
Josh Hunt
db1388ca22 Chore: Temp remove betterer json from precommit (#83113) 2024-02-20 18:16:31 +02:00
Andres Martinez Gotor
7f9ebe5464 Chore: Make the secret table name configurable (#83106) 2024-02-20 16:56:43 +01:00
Jan Garaj
3829da0616 CloudWatch: Update AWS/Lambda metrics (#83038) 2024-02-20 16:39:03 +01:00
Piotr Jamróz
30178d468f Skip a flaky test (#82522)
Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2024-02-20 15:08:29 +01:00
Jack Baldry
8c963ad90c Use updated default branch for links to Grafana repository (#83026) 2024-02-20 14:05:55 +00:00
Laura Fernández
c237a39020 ReturnToPrevious: Check the state of the RTP feature toggle in the hook (#83087) 2024-02-20 15:05:12 +01:00
Ida Štambuk
5431c51490 Cloudwatch: Add linting to restrict imports from core (#82538)
---------

Co-authored-by: Kevin Yu <kevinwcyu@users.noreply.github.com>
2024-02-20 14:52:11 +01:00
Isabel
f18b9ddac6 Docs: add information about filtering for annotations (#82957)
* Added information about filtering for annotations

* Update generate-transformations.ts
2024-02-20 08:46:38 -05:00
Kristina
9d6da82e36 Query History: Count using SQL, not post query (#82208)
* Count in SQL, not externally

* Fix linter
2024-02-20 07:32:40 -06:00
Timur Olzhabayev
1c8a2f136d Docs: making docs clearer on subpath (#82239)
* making docs clearer on subpath

* Update docs/sources/tutorials/run-grafana-behind-a-proxy/index.md

Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>

* Update docs/sources/tutorials/run-grafana-behind-a-proxy/index.md

Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>

* Update docs/sources/tutorials/run-grafana-behind-a-proxy/index.md

Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>

* Update docs/sources/tutorials/run-grafana-behind-a-proxy/index.md

Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>

---------

Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>
2024-02-20 15:18:32 +02:00
Lev Zakharov
8138ca34a4 Parca: Apply template variables for labelSelector in query (#82910)
* Parca: Apply template variables for labelSelector in query

* Remove unused imports

---------

Co-authored-by: Joey Tawadrous <joey.tawadrous@grafana.com>
2024-02-20 12:58:47 +00:00
Carl Bergquist
5e65820bee Cleanup root folder by moving a few files intro /contribute (#83103)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2024-02-20 14:54:46 +02:00
Pepe Cano
5b918f555c Alerting docs: correct notification-policies link (#83099) 2024-02-20 13:50:31 +01:00
Yulia Shanyrova
8586893731 Plugins: Fix enable button to appear after installing APP plugin (#82511)
* Fix enable button to appear after installing APP plugin

* add plugin isFullyInstalled check for grafana cloud
2024-02-20 12:48:51 +01:00
Fabrizio
f683ba8bfc Run downstream patch check only for grafana/grafana (#83050) 2024-02-20 12:21:38 +01:00
Pepe Cano
b6098f2dde Alerting docs: clean up Cloud links (#83073)
* Use fixed `/docs/grafana-cloud/alerting-and-irm` URLs for cloud references

* Fix `docs/grafana-cloud/` data sources links

* Fix `docs/grafana-cloud/` Panel & Visualization links

* Fix `/docs/grafana-cloud/` link to Dashboard page

* Set root directory `docs/reference` for non-cloud pages

* Fix `admonition` cannot use a  `docs/reference` relative link

* Update `doc-validator`

https://github.com/grafana/technical-documentation/releases/tag/doc-validator%2Fv4.1.0

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-02-20 11:49:39 +01:00
Jan Garaj
914f033497 CloudWatch: Update AWS/AutoScaling metrics (#83036) 2024-02-20 11:22:28 +01:00
Will Browne
941881266a Plugins: Remove unused metadata.md file (#83086)
* remove unused metadata

* remove CODEOWNERS ref
2024-02-20 12:11:50 +02:00
Ivana Huckova
dc718a7d9d Loki: Pass time range variable in variable editor (#82900)
* Loki: Pass time range variable in variable editor

* Remove not needed type

* Update

* Add tests, not re-run if type does not change

* Add range as dependency
2024-02-20 10:07:42 +01:00
Torkel Ödegaard
6db2d1a411 DashboardScene: Simplify controls a bit (#82908)
* DashboardScene: Simplify controls a bit

* update tests

* more test updates

* Update

* improvements

* Fix

* Fix merge

* Update

* update
2024-02-20 08:43:02 +01:00
Gábor Farkas
57499845c2 envvars: improve tests (#83071)
* envvars: improve tests

* removed commented-out code

Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>

---------

Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
2024-02-20 09:41:11 +02:00
Matthew Jacobson
87ab98ea95 Alerting: Fix panic in provisioning filter contacts by unknown name (#83070) 2024-02-19 17:30:13 +02:00
Oscar Kilhed
b56f6ed0dc Dashboard scenes: Fixes inspect library panels (#82879)
* working except for links

* Make sure the links are present on the library panels

* add tests, add empty links before panel is loaded, refactor legacy representation

* Update

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-02-19 15:25:45 +01:00
ismail simsek
1f98028962 Chore: Bump grafana-plugin-sdk-go version to v0.212.0 (#83064)
bump version v0.212.0
2024-02-19 15:12:46 +01:00
renovate[bot]
2768c92519 Update dependency @react-types/overlays to v3.8.5 2024-02-19 13:25:37 +00:00
renovate[bot]
d90774e8c2 Update dependency @react-types/menu to v3.9.7 2024-02-19 12:51:25 +00:00
Tobias Skarhed
6ca26dd043 Grafana UI: Add code variant to Text component (#82318)
* Text: Add code variant

* Add TextLinkVariants

* Add don't
2024-02-19 14:49:34 +02:00
renovate[bot]
b4a77937fd Update dependency @react-types/button to v3.9.2 2024-02-19 12:12:10 +00:00
Jack Baldry
72c8ae2d8a Remove duplicate paragraph and wrap in note (#82575) 2024-02-19 11:21:51 +00:00
github-actions[bot]
d541416615 Update make docs procedure (#83045)
Co-authored-by: grafanabot <bot@grafana.com>
2024-02-19 13:16:52 +02:00
Jan Garaj
bfd5475e1e CloudWatch: Update AWS/Kafka metrics (#83035) 2024-02-19 12:04:23 +01:00
renovate[bot]
2175509929 Update React Aria 2024-02-19 11:04:09 +00:00
Hugo Kiyodi Oshiro
4910a901de Plugins: Disable uninstall while cloud uninstall is not completed (#81907) 2024-02-19 12:00:47 +01:00
Gábor Farkas
7f77be8f85 postgres: tls: only use non-empty certificates (#82182) 2024-02-19 11:58:42 +01:00
Hugo Kiyodi Oshiro
dcc977005c Plugins: Disable update button when cloud install is not completed (#81716) 2024-02-19 09:38:06 +01:00
Serge Zaitsev
1aff748e8f Use split scopes instead of substr in search v1 (#82092)
* use split scopes instead of substr in search v1

* tests, of course

* yet, some test helpers dont use split scopes

* another test helper to fix

* add permission.identifier to group by

* check if attribute is uid

* fix tests

* use SplitScope()

* fix more tests
2024-02-18 22:26:08 +01:00
Leon Sorokin
94a274635b VizTooltips: Fix series labels after zooming (#82985) 2024-02-17 00:38:13 -06:00
renovate[bot]
a02519895e Update dependency msw to v2.2.1 2024-02-17 06:37:32 +00:00
Leon Sorokin
edb799bf82 VizTooltips: Fix drag-zoom causing annotation init in other shared-cursor panels (#82986) 2024-02-17 00:35:41 -06:00
Ryan McKinley
f23f50f58d Expressions: Add model struct for the query types (not map[string]any) (#82745) 2024-02-17 02:59:11 +02:00
Matthew Jacobson
46a77c0074 Alerting: Validate upgraded receivers early to display in preview (#82956)
Previously receivers were only validated before saving the alertmanager
configuration. This is a suboptimal experience for those upgrading with preview
as the failed channel upgrade will return an API error instead of being
summarized in the table.
2024-02-16 15:17:07 -05:00
Sofia Papagiannaki
38e8c62972 Folders: Switch order of the columns in folder table indexes so that org_id becomes first (#82454)
* Folders: Switch order of the columns in folder table so that org_id becomes first
2024-02-16 21:10:46 +02:00
Brendan O'Handley
c6f8462a06 Prometheus: Library fixes for using in external vendor DS (#82115)
* fix stateSlice type errors for build, do not export stateSlice in the future

* fix exports for consistency

* fix package.json for rollup, update licence, keep private

* rollup as devdependencies

* try a different version of @testing-library/dom to try to fix the aria-query issue in drone

* remove testUtils export

* change @testing-library/dom version back

* remove icon bundling, grafana-ui handles this

* remove unused dependencies

* components folder: avoid nested barrel files and use named exports

* configuration folder: avoid nested barrel files and use named exports

* querybuilder folder: avoid nested barrel files and use named exports

* general files: use named exports

* fix loader issue with promql for external ds

* default to support labels match api

* export things necessary for custom config auth

* remove changes to core datasource.test.ts

* Update packages/grafana-prometheus/package.json

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>

* remove icons script, not needed

* update readme, remove references to grafana/ui

* remove private property

* check tests

* remove private property in package.json

* update changelog

* update npm drone script for file checks

* debug why updating test in script broke another library that had never been tested before

* fix npm test for checking licenses

* fix npm test for checking licenses

* fix npm test for checking licenses

* fix npm test for checking licenses

* update license file for npm drone test

* fix bash script

---------

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2024-02-16 12:55:39 -06:00
Señor Performo - Leandro Melendez
0a9389c8f7 Add video to variables _index.md (#82926)
Added the YouTube link to the video created explaining Variables.
2024-02-16 13:28:56 -05:00
David Harris
538617bb00 docs: angular plugins list rewrite (#82456) 2024-02-16 17:56:26 +00:00
Xavi Lacasa
46c26bbd0b Auth: Fix email verification bypass when using basic authentication (#82914) 2024-02-16 18:54:59 +01:00
William Wernert
fabaff9a24 Alerting: Create metric for rules using simple notifications (#82904)
---------

Co-authored-by: Matthew Jacobson <matthew.jacobson@grafana.com>
2024-02-16 19:01:49 +02:00
kay delaney
3a63311286 Scenes/LibraryPanels: Fix issue where library panels plugin type was not set correctly (#82917) 2024-02-16 16:46:10 +00:00
Matthew Jacobson
dfaf6d1e2e Alerting: Dry-run legacy upgrade on startup (#82835)
Adds a feature flag (alertingUpgradeDryrunOnStart) that will dry-run the legacy 
alert upgrade on startup. It is enabled by default.

When on legacy alerting, this feature flag will log the results of the legacy 
alerting upgrade on startup and draw attention to anything in the current legacy 
alerting configuration that will cause issues when the upgrade is eventually 
performed. It acts as a log warning for those where action is required before 
upgrading to Grafana v11 where legacy alerting will be removed.
2024-02-16 11:29:54 -05:00
Misi
bc8952b9f1 Docs: Setup OAuth providers using the SSO Settings UI (#81589)
* initial changes for generic_oauth, okta

* updates

* add terraform examples for each provider

* add link to terraform registry for grafana_sso_settings resource

* remove auth_url, token_url and api_url from github, gitlab and google

* Add documentation for enabling email lookup

* Apply suggestions from code review

Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>

* Address review feedback

* Update TF provider version

* Apply suggestions from code review

Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>

* Use Azure AD for now

---------

Co-authored-by: Mihai Doarna <mihai.doarna@grafana.com>
Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>
2024-02-16 17:24:42 +01:00
Gilles De Mey
f71f54c872 Alerting: Updates to recording rules (#82329) 2024-02-16 17:13:43 +01:00
Sonia Aguilar
5de17432f5 Alerting: Add pagination and improved search for notification policies (#81535) 2024-02-16 17:11:03 +01:00
Laura Fernández
7422a90e8b ReturnToPrevious: modify stage of the feature toggle (#82912) 2024-02-16 17:00:51 +01:00
Matthew Jacobson
e7c6e9c5c9 Alerting: Fix migration edge-case race condition for silences (#81206)
If the db already has an entry in the kvstore for the silences of an
alertmanager before the migration has taken place, then it's possible that the
active alertmanager will overwrite the silence file created by the migration
before it has a chance to load it into memory.

This should not happen normally but is possible in edge-cases.

This change opts to bypass the unnecessary step of writing the silences to disk
during the migration and instead write them directly to the kvstore. This avoids
 the race condition entirely and is more correct as we treat the database as the
  source of truth for AM state.
2024-02-16 10:47:34 -05:00
Sven Grossmann
7f7ab32444 Elasticsearch: Add error source to logs (#82901) 2024-02-16 16:28:46 +01:00
Todd Treece
8f0431ba46 K8s: Pass ID token in X-Extra-id-token header (#82893) 2024-02-16 17:07:37 +02:00
Ashley Harrison
ffb9a4de4a Chore: some test type fixes (#82889)
* some test type fixes

* ignore table-old since it's an angular panel that will be removed
2024-02-16 14:35:26 +00:00
kay delaney
82e3e2e558 LibraryPanels/RBAC: Fix issue where folder scopes weren't being correctly inherited (#82700) 2024-02-16 14:17:41 +00:00
Sonia Aguilar
7b415cf79e Alerting: Skip fetching receivers status in the alert rule form (#82892) 2024-02-16 15:15:02 +01:00
Kristina
7b4dd4fe47 Explore: Only update pane's instance of Inspector (#80106)
* send instance ID to query inspector, ensure requestId match before updating data

* Extract logic for mixed request ID, use in Explore prefix when appropriate

* Change query inspector to get passed request ID

* Fix test
2024-02-16 08:10:22 -06:00
Karl Persson
9e04fd0fb7 AuthToken: Remove client token rotation feature toggle (#82886)
* Remove usage of client token rotation flag

* Remove client token rotation feature toggle
2024-02-16 15:03:37 +01:00
Gilles De Mey
248031d007 Alerting: Show legacy provisioned alert rules warning (#81902) 2024-02-16 14:47:03 +01:00
Giuseppe Guerra
6ce0efeb41 Plugins: Enable feature toggle angularDeprecationUI by default (#82880)
* Plugins: Enable feature toggle angularDeprecationUI by default

* Clarified feature toggle description
2024-02-16 14:46:14 +02:00
Torkel Ödegaard
592b830fd8 DashboardScene: Panel edit ux tweaks (#82500)
* Panel edit ux

* Update

* Update

* switch panel plugin bugfix

* Icon change

* Update

* Update

* Fixes
2024-02-16 13:04:45 +01:00
Ieva
7343102d59 RBAC: Migration to remove the scope from permissions where action is alert.instances:read (#82202)
* add a migration to remove the scope from any permissions where action is alert.instances:read

* linting
2024-02-16 11:52:43 +00:00
Joey
1744487487 Tempo: Upgrade @grafana/lezer-traceql patch version to use trace metrics syntax (#82532)
* Upgrade patch version

* Update autocomplete/highlighting to be more specific

* Update test
2024-02-16 11:17:41 +00:00
Alex Khomenko
df8250ff48 Card: Remove mdx file and render docs from the story (#82565)
* Card: Generate docs from the story

* Update sort

* Update betterer to check for the "autodocs" tag
2024-02-16 13:13:50 +02:00
Misi
bb9d5799cf Auth: Load oauth_allow_insecure_email_lookup using the SettingsProvider (#82460)
* wip

* Introduce fixed:server.config:writer role

* Fix tests

* Update name
2024-02-16 12:05:00 +01:00
linoman
ac84069071 Password policy (#82268)
* add password service interface

* add password service implementation

* add tests for password service

* add password service wiring

* add feature toggle

* Rework from service interface to static function

* Replace previous password validations

* Add codeowners to password service

* add error logs

* update config files


---------

Co-authored-by: Karl Persson <kalle.persson@grafana.com>
2024-02-16 04:58:05 -06:00
Gabriel MABILLE
846eadff63 RBAC Search: Replace userLogin filter by namespacedID filter (#81810)
* Add namespace ID

* Refactor and add tests

* Rename maxOneOption -> atMostOneOption

* Add ToDo

* Remove UserLogin & UserID for NamespaceID

Co-authored-by: jguer <joao.guerreiro@grafana.com>

* Remove unecessary import of the userSvc

* Update pkg/services/accesscontrol/acimpl/service.go

* fix 1 -> userID

* Update pkg/services/accesscontrol/accesscontrol.go

---------

Co-authored-by: jguer <joao.guerreiro@grafana.com>
2024-02-16 11:42:36 +01:00
Misi
fe0fc08b93 Chore: Update ssoSettingsApi feature toggle state to Public Preview (#82521)
Update feature toggle state to Public Preview
2024-02-16 12:20:08 +02:00
Ashley Harrison
691115da7a Chore: replace react-popper with @floating-ui/react in DataSourcePicker (#82528)
* replace react-popper with floating-ui in DataSourcePicker

* don't need {force:true}
2024-02-16 09:40:16 +00:00
ismail simsek
94f544c9f6 InfluxDB: Fix tag interpolation when varable used within a regex pattern (#82785)
* fix tag interpolation

* remove redundant variables
2024-02-16 10:20:09 +01:00
Sven Kirschbaum
86c618a6d6 Alerting: Escape namespace and group path parameters (#80504)
Co-authored-by: Jean-Philippe Quéméner <JohnnyQQQQ@users.noreply.github.com>
2024-02-16 09:43:47 +01:00
Sofia Papagiannaki
69f604f7fa Chore: Fix benchmarks (#82714) 2024-02-16 10:40:39 +02:00
Jo
901e1b1865 TeamSync: Fix auth proxy docs on teamsync (#82457)
fix auth proxy docs on teamsync
2024-02-16 09:40:28 +01:00
Jo
c5d1b295ec Plugins: Allow plugin page access granting via permissions (#82508)
* AccessControl: Check permissions on AppRootPage

* add frontend tests for app root permission checks

* add accesscontrol oncall ft to tests
2024-02-16 09:36:52 +01:00
Nathan Marrs
cdd3e1c776 chore: Promote panel monitoring feature toggle to GA (#82472) 2024-02-15 21:29:59 -08:00
Yuri Tseretyan
5985876f4a Alerting: make feature flag alertingSimplifiedRouting public (#82808) 2024-02-15 17:58:34 -05:00
Matthew Jacobson
118e4a50b7 Alerting: Remove start page of legacy upgrade preview (#82010)
Alerting: Remove start page of upgrade preview

Alerting upgrade page will now always show the summary table even before
upgrading any alerts or notification channels. There a few reasons for this:

- The information on the start page is redundant as it's now contained in the
documentation.
- Previously, if some unexpected issue prevented performing a full upgrade, a
user would have limited to no means to using the preview tool to help fix the
problem. This is because you could not see the summary table until the full
upgrade was performed at least once. Now, you can upgrade individual alerts and
notification channels from the beginning.
2024-02-15 17:34:00 -05:00
Adela Almasan
8de9c4c373 Timeseries: Add hover proximity option (#81421) 2024-02-16 00:29:36 +02:00
ismail simsek
c540fd4195 Prometheus: Fix expanding that contains multiple metrics (#82354)
* fix expanding rules with one metric wrapped in a parenthesis

* fix expanding rules with regex match operator

* fix for multiple labels

* refactor

* don't modify recording rules name in label values

* metric + metric fix

* fix last issues with label regex and spaces

* add comments

* add the same changes to the prometheus library
2024-02-15 21:33:28 +01:00
Ryan McKinley
c879588332 APIServer: Use options pattern in standalone mode (#82760)
use options
2024-02-15 12:00:20 -08:00
Julien Duchesne
ba63e62311 Alerting: Return provenance of notification templates (#82274) 2024-02-15 14:35:54 -05:00
Leon Sorokin
4b67ac117f VizTooltips: Fix sorting (#82278) 2024-02-15 12:54:43 -06:00
Lisa
80f324fadb Adding "Exploring logs, metrics, and traces with Grafana" video to docs (#82724) 2024-02-15 10:37:07 -08:00
renovate[bot]
3427321f65 Update dependency webpack to v5.90.2 2024-02-15 18:31:17 +00:00
Laura Fernández
7b37e225ca ReturnToPrevious: Modify zIndex to avoid overlapping with the nav, a drawer or a modal (#82680) 2024-02-15 19:29:22 +01:00
Lisa
8e7c9f6587 Adding Grafana for Beginners video to doc (#82710) 2024-02-15 10:14:21 -08:00
Marcus Efraimsson
b894d26cbc SQLStore: New store without side-effects (#82657) 2024-02-15 14:03:55 -04:00
renovate[bot]
23a3fddca4 Update dependency @types/node to v20.11.19 2024-02-15 17:31:16 +00:00
Todd Treece
f593161ef6 K8s: Set X-Remote- headers for SignedInUser (#82543) 2024-02-15 12:29:36 -05:00
renovate[bot]
644d721cf0 Update dependency @grafana/faro-web-sdk to v1.3.8 2024-02-15 17:03:37 +00:00
William Wernert
b7bbc5058f Alerting: Don't validate rules on group update if they've only been reordered (#81841)
---------

Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
2024-02-15 12:03:28 -05:00
Haris Rozajac
16f5220adc DashboardScene: Empty dashboard state (#82338)
* Organize

* Refactor

* Fix where settings were not showing up
2024-02-15 09:40:58 -07:00
renovate[bot]
f4d81a8480 Update dependency @grafana/faro-web-sdk to v1.3.8 2024-02-15 16:35:29 +00:00
Ieva
4d53385d5f RBAC: allow listing permissions on the root folder (#82184)
* allow returning AC metadata for the root folder

* add a test

* share the reserved root folder UID with frontend
2024-02-15 16:13:14 +00:00
renovate[bot]
d019335473 Update dependency @grafana/faro-core to v1.3.8 2024-02-15 16:09:43 +00:00
Galen Kistler
d071f4170d Logs Panel: Add CSV to download options (#82480)
* add CSV download to logs panel
2024-02-15 17:42:58 +02:00
Isabel
0f47a6fa10 Docs: add RBAC for library panels (#82495)
* Added RBAC section to library panels page

* Added some library panel basic role and fixed role information

* Added remaining basic role information

* Added library panel fixed role permissions and descriptions

* Replaced 'general folder' with 'root level'

* Added library panel action definitions

* Added scope definitions

* Fixed fixed role information

* Added library panels to list of fixed roles

* Fixed typos

* Ran prettier

* Fixed links

* Fixed links again

* Updated link syntax
2024-02-15 10:29:33 -05:00
Sven Grossmann
7ec97f4ad8 Loki: Fix fetching of label names if no previous equality operator (#82582) 2024-02-15 16:28:05 +01:00
Yuri Tseretyan
1eebd2a4de Alerting: Support for simplified notification settings in rule API (#81011)
* Add notification settings to storage\domain and API models. Settings are a slice to workaround XORM mapping
* Support validation of notification settings when rules are updated

* Implement route generator for Alertmanager configuration. That fetches all notification settings.
* Update multi-tenant Alertmanager to run the generator before applying the configuration.

* Add notification settings labels to state calculation
* update the Multi-tenant Alertmanager to provide validation for notification settings

* update GET API so only admins can see auto-gen
2024-02-15 09:45:10 -05:00
Arati R
ff916d9c15 Docs: Update docs for creating nested folders (#82310) 2024-02-15 15:21:01 +01:00
Brian Gann
4aabfb7835 Area Build/Packaging: release process - remove image check for armhf rpm no longer being built (#82406)
remove image check for armhf rpm no longer being built
2024-02-15 09:10:08 -05:00
ismail simsek
916a7bbb08 Prometheus: Move converter in prometheus package (#82269)
* use jsoniter from sdk

* move converter into the prometheus

* remove jsonitere

* unit test

* remove redundant ownership
2024-02-15 15:09:30 +01:00
Ivana Huckova
45c7393564 Loki: Fix fetching of values for label if no previous equality operator (#82251)
* Loki: Fix teching of values if no previoous equality operator

* Update to consider regex with match everything

* Update public/app/plugins/datasource/loki/querybuilder/components/LokiQueryBuilder.tsx

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

* Fix lint

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2024-02-15 13:02:26 +01:00
renovate[bot]
951399ac39 Update dependency eslint-plugin-jsdoc to v48.1.0 (#82531)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-15 13:44:59 +02:00
renovate[bot]
7ab203cf6e Update dependency eslint-plugin-jest to v27.8.0 (#82529)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-15 13:26:12 +02:00
Gábor Farkas
c6d91e9065 sql: remove unused code (#82527) 2024-02-15 12:25:35 +01:00
renovate[bot]
749a31738d Update dependency @types/node to v20.11.18 2024-02-15 11:03:03 +00:00
Gábor Farkas
1bab82ab36 mssql: socks proxy: use plugin-sdk (#82407) 2024-02-15 12:01:18 +01:00
renovate[bot]
db7fcd153b Update dependency browserslist to v4.23.0 (#82516)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-15 10:36:16 +00:00
Ashley Harrison
c0b5b32650 Chore: replace react-popper with floating-ui in InlineToast (#82381)
replace react-popper with floating-ui in InlineToast
2024-02-15 09:44:44 +00:00
renovate[bot]
5105be4eeb Update dependency diff to v5.2.0 (#82465)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-15 09:43:34 +00:00
Joey
b81c3ab9c1 Tempo: Improve UX of the query editors status select (#82167)
Improve status UX
2024-02-15 09:34:14 +00:00
Joey
a922ce86c8 Pyroscope: Add Pyroscope to build and release step (#82363)
Add Pyro to release step
2024-02-15 09:33:29 +00:00
Joey
2ef17efaf9 Tempo: Reset tag value when key changed in Search tab (#82365)
Reset tag value when key changed
2024-02-15 09:33:15 +00:00
Sven Grossmann
808be099a7 Rollback ansicolor package to 1.1.100 to fix ansi styled logs (#82506)
* rollback ansicolor

* upgrade ansicolor in grafana-ui
2024-02-15 10:30:11 +01:00
Dimitris Sotirakis
a6bc262093 Chore: Remove grafana-delivery references (#82505)
* s/grafana-delivery/grafana-release-guild/g

* Remove -squad suffix
2024-02-15 10:00:30 +01:00
Sofia Papagiannaki
6a47c8da8e Drone: Do not upload artifacts if e2e tests have not run (#82451) 2024-02-15 10:26:43 +02:00
Torkel Ödegaard
b7b83ded71 DashboardScene: Panel edit search crash fix (#82449)
* DashboardScene: Panel edit search crash fix

* Fix issue with removing data links
2024-02-15 06:46:50 +01:00
Todd Treece
8832971aff Perf: Lazy initialization of charsetmaps in go-mssqldb (#79729) 2024-02-15 00:53:33 +02:00
Ryan McKinley
3482c8ef09 Chore: Add omit wrapper for xorm (#82476) 2024-02-14 12:19:46 -08:00
Alexander Weaver
d4ae10ecc6 Alerting: Small refactor, move unrelated functions out of fetcher (#82459)
Move unrelated functions out of fetcher
2024-02-14 20:01:32 +02:00
Diego Augusto Molina
ff08c0a790 Chore: improve test readability in ngalert/schedule (#82453)
Chore: improve test readability
2024-02-14 14:53:32 -03:00
renovate[bot]
c490b702bf Update dependency core-js to v3.36.0 (#82464)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-14 19:32:05 +02:00
Dominik Prokop
62efe6e170 Panel Query Options: Support query caching options (#82448)
* schema update

* Panel Query Options: Support query caching options
2024-02-14 09:19:39 -08:00
Dominik Prokop
f016f95298 GroupBy variable core integration (#82185)
* Bump scenes

* Make GroupByVariableModel a VariableWithOptions

* Serialise/deserialise group by variable

* WIP: Group by variable editor

* WIP tests

* Group by variable tests

* add feature toggle and gate variable creation behind it

* Fix types

* Do not resolve DS variable

* Do not show the message if no DS is selected

* Now groupby has options and current

* Update public/app/features/dashboard-scene/settings/variables/components/GroupByVariableForm.test.tsx

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>

* don't allow creating groupby if toggle is off + update tests

* add unit tests

* remove groupByKeys

---------

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com>
2024-02-14 09:18:04 -08:00
renovate[bot]
269fa400f0 Update dependency @types/semver to v7.5.7 2024-02-14 17:11:58 +00:00
Josh Hunt
2d4307d3d1 Chore: Update Inter font files (#82446)
* Chore: Update Inter font files

* change codeowner of fonts to us
2024-02-14 16:57:02 +00:00
renovate[bot]
63cf8c8808 Update dependency @swc/core to v1.4.1 2024-02-14 16:36:43 +00:00
Kyle Cunningham
26b25dad42 Tooltips: Hide dimension configuration when tooltip mode is hidden (#81627)
* Hide dimensions when tooltip mode is hidden

* add logic to heatmap

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-02-14 23:35:14 +07:00
Sven Grossmann
e422309bc4 Loki: Enable lokiStructuredMetadata feature flag by default (#82325) 2024-02-14 17:24:56 +01:00
Sven Grossmann
062fa2daa2 Loki Log Context: Always show label filters with at least one parsed label (#82211)
* Loki: Always show label filter for parsed labels

* add label as structured metadata

* change contextfilter `fromParser` to `nonIndexed`

* rename variable

* simplify

* fix test

* fix test

* rename more properties
2024-02-14 17:18:46 +01:00
Nathan Marrs
ce750e0618 Deprecation: Create explicit feature toggles for remaining panels (#82217) 2024-02-14 18:06:25 +02:00
renovate[bot]
c8ba2163e9 Update dependency @grafana/lezer-logql to v0.2.3 (#82450)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-14 17:46:22 +02:00
Diego Augusto Molina
9c29e1a783 Alerting: Fix data races and improve testing (#81994)
* Alerting: fix race condition in (*ngalert/sender.ExternalAlertmanager).Run

* Chore: Fix data races when accessing members of *ngalert/state.FakeInstanceStore

* Chore: Fix data races in tests in ngalert/schedule and enable some parallel tests

* Chore: fix linters

* Chore: add TODO comment to remove loopvar once we move to Go 1.22
2024-02-14 12:45:39 -03:00
Alvaro Huarte
06b5875c3c Table Panel: Filter column values with operators or expressions (#79853)
* Select column values using comparison operators

* Select column values using expressions

* Capitalize operator labels

* Update docs/sources/panels-visualizations/visualizations/table/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Use $ instead of v to represent a variable

* Define operators as a map string of objects

* Fix typo

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2024-02-14 22:36:30 +07:00
renovate[bot]
7d21eb0631 Update React Aria (#82447)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-14 17:24:30 +02:00
Misi
12b1170631 Auth: Validation fixes for SSO Settings (#82252)
* Validation fixes

* Add URL validations + tests

* Add ApiUrl validation

* Refactor validators

* lint

* Clean up

* Improvements
2024-02-14 16:06:52 +01:00
renovate[bot]
8a7828da48 Update dependency marked to v12 (#82245)
* Update dependency marked to v12

* make sure marked return value is synchronous

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-02-14 15:01:33 +00:00
Torkel Ödegaard
d956282913 Scenes: Upgade to 3.5.0 (#82441)
* Scenes: Upgade to 2.4.1

* Update
2024-02-14 15:56:01 +01:00
Kyle Cunningham
88481fed1a Table Panel: Fix display of ad-hoc filter actions (#82442)
Remove block display from ad-hoc filter actions
2024-02-14 16:34:14 +02:00
Varsha
7efa8c2840 Docs: Add copy dashboard instructions (#82155)
* Update index.md

Added description of how to copy an existing dashboard

* Moved Copy dashboard task from Import to Create page and edited for style

---------

Co-authored-by: Isabel Matwawana <isabel.matwawana@grafana.com>
2024-02-14 09:28:48 -05:00
Alexa V
04005d770b Revert: Scenes/PanelEditor: Fix panel options search crash 82003 (#82439) 2024-02-14 16:18:46 +02:00
Konrad Lalik
44ecb26ea1 Alerting: Clarify provisioning export types (#82420)
Add provisioning type export Alert
2024-02-14 15:04:15 +01:00
Tobias Skarhed
6ce286246b Betterer: Expose results as JSON (#81352)
* Expose betterer results as JSON

* Make prettier and add command

* Add aggregation

* Add json generation to lefthook

* Use relative path

* Add grafanabot as codeowner

* Fix parameter type

* Include changes to results

* Run betterer:json
2024-02-14 16:01:22 +02:00
Andriy
4cbc7dfb5b Add PagerDuty to the plugins list (#82419) 2024-02-14 14:56:18 +01:00
Sonia Aguilar
8dc1cd6d59 Alerting: Fix reading props from undefined in settings (#82418)
* Fix reading props from undefined in settings

* Make settings optional in GrafanaManagedReceiverConfig type
2024-02-15 00:38:20 +11:00
Yulia Shanyrova
9dcb7800de Plugins: Add fuzzy search to plugins catalogue (#81001)
* WIP add fuzzysearch to plugins catalog

* Add keywords to the plugins listing output

* add fuzzy search to plugin catalog, add keywords to plugins at frontend side

* refactor fuzzysearch function after review

* review changes

* change the version of uFuzzy library

* change reduce result object in getPluginDetailsForFuzzySearch

* fix yarn lock error

* fix helpers tests

* fix frontend searching test

* fix frontend linting issues

* fix tests

---------

Co-authored-by: Esteban Beltran <esteban@academo.me>
Co-authored-by: Giuseppe Guerra <giuseppe@guerra.in>
2024-02-14 14:30:24 +01:00
Ashley Harrison
cf65d91ee9 Chore: upgrade to msw v2 (#82270)
* Update dependency msw to v2

* close

* minor fixes

* fetch import changes

* fix some alerting tests

* fix another alerting test

* fix systemjs tests

* don't return undefined in json mocks

* don't return undefined in json response

* add type

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-14 13:16:44 +00:00
Galen Kistler
4dcc59244a Logs panel: Table UI - Guess string field types (#82397)
* Guess field type for string fields in logs table
2024-02-14 07:14:22 -06:00
Misi
705ab460a2 Devenv: Add groups to jwt_proxy (#82424)
Add groups claim to jwt, add groups
2024-02-14 13:57:36 +01:00
Torkel Ödegaard
526916e10f DashboardScene: Panel edit use new splitter and new conditional data and options pane logic (#82377)
Rebase
2024-02-14 13:37:52 +01:00
Gilles De Mey
70aa8fe6b3 Alerting: Fix slack double pound and email summary (#82333) 2024-02-14 13:12:04 +01:00
Gábor Farkas
2938f891dd mysql: socks proxy: use plugin-sdk (#82375) 2024-02-14 13:05:47 +01:00
Gábor Farkas
4c221966e4 postgres: socks proxy: use plugin-sdk (#82376) 2024-02-14 13:05:31 +01:00
Ieva
7c44dd713a IP range AC: Add X-Real-IP header (#82390)
add X-Real-IP header
2024-02-14 11:45:55 +00:00
Torkel Ödegaard
fe795417f7 Grafana/UI: Add new Splitter component (#82357)
* Initial thing working

* Update

* Progress

* Update

* Update

* Simplify a bit more

* minor refacto

* more review fixes

* Update

* review fix

* minor fix

* update
2024-02-14 12:45:29 +01:00
Andre Pereira
7694e7bca3 Tempo: Support TraceQL metrics queries (#81886)
* Support requesting traceql metrics. Small refactor of Tempo query function

* Address PR comments and improve displayName
2024-02-14 11:24:03 +00:00
Gilles De Mey
f6ea39ff00 Alerting: Prevent state badge from wrapping (#82330) 2024-02-14 12:12:05 +01:00
Sonia Aguilar
92eb2c900e Alerting: Use VirtualizedSelect for ContactPointSelector (#82345)
* Use VirtualizedSelect for ContactPointSelector

* Conditionally use virtualized to keep description when having less than 500 contact points
2024-02-14 12:43:46 +02:00
grafana-delivery-bot[bot]
37c860daf0 Changelog: Updated changelog for 10.2.4 (#82411)
Co-authored-by: grafanabot <bot@grafana.com>
2024-02-14 09:56:28 +01:00
Victor Marin
a1ff439a20 Fix query inspector in explore to scroll to bottom (#82369) 2024-02-14 10:00:16 +02:00
grafana-delivery-bot[bot]
cb47177df9 Changelog: Updated changelog for 10.1.7 (#82401)
Co-authored-by: grafanabot <bot@grafana.com>
2024-02-13 17:00:27 -05:00
grafana-delivery-bot[bot]
b3663eafee Changelog: Updated changelog for 10.3.3 (#82399)
Co-authored-by: grafanabot <bot@grafana.com>
2024-02-13 14:47:17 -07:00
Galen Kistler
ff5b0f7bd8 Logs panel: Table UI - remove beta badge (#82395)
* remove beta badge
2024-02-13 23:04:09 +02:00
Ivan Ortega Alba
3d86d101b7 Dashboards: Use auto and only use AdHocFiltersVariable to manage filters (#81318) 2024-02-13 22:38:26 +02:00
ismail simsek
63670b7adc Chore: Use jsoniter in prometheus from grafana-plugin-sdk-go (#82359)
use jsoniter from grafana-plugin-sdk-go
2024-02-13 21:19:13 +01:00
grafana-delivery-bot[bot]
558dc74b4d Changelog: Updated changelog for 10.0.11 (#82392)
Co-authored-by: grafanabot <bot@grafana.com>
2024-02-13 19:10:06 +00:00
Lucy Chen
f2ac24f9a0 Documentation: Incorrect API example for Public Dashboard (#82335)
fix doc
2024-02-13 13:08:49 -05:00
Sofia Papagiannaki
28de94f6a2 Folders: Modify folder service Get() to optionally return fullpath (#81972)
* Folders: Modify Get() to optionally return fullpath

* Set FullPath to folder title if feature flag is off

* Apply suggestion from code review
2024-02-14 04:47:46 +11:00
grafana-delivery-bot[bot]
e6e9d6a782 Changelog: Updated changelog for 9.5.16 (#82386)
Co-authored-by: grafanabot <bot@grafana.com>
2024-02-13 18:47:26 +01:00
Ezequiel Victorero
dbde08b03c Scenes: Refactor original snapshot button in a new component (#82199) 2024-02-13 14:15:55 -03:00
Alexander Weaver
ccb4533a86 Alerting: Remove unused AlertRuleVersionWithPauseStatus (#82383)
Remove unused AlertRuleVersionWithPauseStatus
2024-02-13 10:56:24 -06:00
ismail simsek
3f940f4da1 Chore: Use jsoniter in influxdb from grafana-plugin-sdk-go (#82360)
use jsoniter from grafana-plugin-sdk-go
2024-02-13 17:47:00 +01:00
Andreas Christou
dcbc3aa46a Chore: Update grabpl to v3.0.50 (#82379)
Bump grabpl version
2024-02-13 15:39:41 +00:00
Ivana Huckova
65a0a8cd3c Loki: Update @grafana/lezer-logql to 0.2.3 containing fix for ip label name (#82378)
Loki: Update @grafana/lezer-logql to 0.2.3 containing fix for ip label name
2024-02-13 15:56:59 +01:00
Alexander Weaver
99fa064576 Alerting: Emit warning when creating or updating unusually large groups (#82279)
* Add config for limit of rules per rule group

* Warn when editing big groups through normal API

* Warn on prov api writes for groups

* Wire up comp root, tests

* Also add warning to state manager warm

* Drop unnecessary conversion
2024-02-13 08:29:03 -06:00
George Robinson
556d531c8d Alerting: Update grafana/alerting to 92f64f0 (#82373) 2024-02-13 15:37:33 +02:00
Torkel Ödegaard
763dab7532 DashboardScene: Panel edit toolbar actions (#82302)
* DashboardScene: Panel edit toolbar actions

* Make saving work

* Update public/app/features/dashboard-scene/panel-edit/PanelEditor.test.ts

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-02-13 14:23:47 +01:00
Ivana Huckova
082f020b7d Elasticsearch: Fix resource calls for paths that include : (#82327)
* Elasticsearch: Fix resource calls for paths that include :

* Add tests

* Add test case and comment

* Remove redundant comment
2024-02-13 13:44:08 +01:00
Torkel Ödegaard
baa46e6a46 DasbhoardScene: Fixes panel menu new alert rule action (#82366)
* DasbhoardScene: Fixes panel menu new alert rule action

* Update
2024-02-13 13:36:07 +01:00
Ihor Yeromin
1abe4a02b4 Table: Update page index on data update (#81574)
* fix(table): page index reset on data update
2024-02-13 13:21:36 +01:00
Alex Khomenko
6c42bd31c6 Teams: Remove Form component usage (#82367)
* Teams: Remove Form usage

* Update team settings
2024-02-13 13:04:42 +01:00
ismail simsek
34fddfce10 Chore: Use jsoniter in cloud-monitoring from grafana-plugin-sdk-go (#82358)
use jsoniter from grafana-plugin-sdk-go
2024-02-13 12:23:37 +01:00
Joey
d33a087756 Tempo: Remove unused code (#82151)
Remove unused code
2024-02-13 10:56:46 +00:00
Joey
4054590526 Tempo: Use grafana/ui divider (#82141)
* Use Grafana divider

* Remove custom divider
2024-02-13 10:56:37 +00:00
Alex Khomenko
55d17c7fcb Chore: Remove Form usage from alerting config components (#81681)
* Chore: Replace InputControl in BaseSettings

* Chore: Replace InputControl and FormAPI in OptionElement.tsx

* Update ConfigEditor.tsx
2024-02-13 12:51:54 +02:00
Gábor Farkas
d07aa25512 go: updated grafana-plugin-sdk-go version (#82346) 2024-02-13 11:51:19 +01:00
Fabrizio
86b8a0af9f Tempo: Improve Betterer results (#81338) 2024-02-13 11:48:39 +01:00
Torkel Ödegaard
f7a425d352 DashboardScene: Panel edit visualization suggestions (#82296)
* DashboardScene: Panel edit visualization suggestions

* Tweak

* tweak

* Update betterer

* Update
2024-02-13 11:37:49 +01:00
github-actions[bot]
8a90c0f868 Update make docs procedure (#82342)
Co-authored-by: grafanabot <bot@grafana.com>
2024-02-13 09:45:15 +00:00
Pepe Cano
3909b4c14a Alerting docs: update <GRAFANA VERSION> to <GRAFANA_VERSION> (#82324) 2024-02-13 09:21:50 +00:00
Ryan McKinley
0c6e409350 Chore: Update arrow and prometheus dependencies (#82215)
* update arrow and prometheus

* keep codeowner

* use compare

* use grafana-plugin-sdk-go v0.210.0

---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-02-13 01:50:25 +01:00
Ryan McKinley
d1e5e4e747 FeatureToggles: keep older history (#82336) 2024-02-12 15:13:51 -08:00
Todd Treece
d6e6298103 K8s: Add Aggregation to Backend Service (#81591)
Co-authored-by: Charandas Batra <charandas.batra@grafana.com>
2024-02-12 22:59:35 +02:00
Todd Treece
6d5211e172 K8s: Fix windows filepath issue in file storage (#81919)
Co-authored-by: Dan Cech <dcech@grafana.com>
2024-02-12 13:21:57 -05:00
Josh Hunt
2210d5228f Fix frontend-observability icon fill colour (#82326) 2024-02-12 19:31:14 +02:00
Ashley Harrison
fea23862b4 Chore: remove react-popper from AnnotationEditor and AnnotationMarker (#82090)
update AnnotationEditor and AnnotationMarker to use floating-ui/react instead of react-popper
2024-02-12 17:18:10 +00:00
Galen Kistler
29be9b127a Logs: Table UI - Enable feature flag by default (GA) (#81185)
default logsExploreTableVisualisation to true
2024-02-12 10:12:05 -06:00
Galen Kistler
c4b869790a Logs Panel: Table UI - better default column spacing (#82205)
* add default width to time fields in logs table
2024-02-12 09:35:03 -06:00
Torkel Ödegaard
8f36f905ee SceneSolo: Minor fixes (#82289)
* SceneSolo: Minor fixes

* remove logging
2024-02-12 16:23:12 +01:00
Darren Janeczek
cd09c36448 datatrails: fix: improve performance of related metrics sort (#82285)
fix: improve performance of related metrics sort
2024-02-12 09:52:44 -05:00
Victor Marin
1fe32479d7 Scenes: Annotations functionality in settings (#81361)
* wip listing/viewing annotations

* list annotations in settings

* fix tests

* wip edit mode

* PR mods

* move, delete, edit, add new

* edit annotation in settings

* Annotations functionality

* revert change

* add ui tests, move angularEditorLoader

* remove flaky test

* refactor

* bump scenes version, refactor getVizPanels, refactor edit page

* fix nav breadcrumbs

* annotation set dirty flag, add overlay to edit view

* PR mods

* PR mods

* remove flaky test

* change dirty flag setting logic for anotations

* change button variants
2024-02-12 16:06:46 +02:00
Karl Persson
1315c67c8b Team/User: UID migrations (#82298)
* Add user uid migration to run on every startup to protect against empty values in a upgrade downgrade scenario

* Add team uid migration to run on every startup to protect against empty values in a upgrade downgrade scenario

* Run team uid migration
2024-02-12 14:48:29 +01:00
Ashley Harrison
685e84b1f8 Chore: Remove react-popper from DataLinkInput and SuggestionsInput (#82160)
* replace popper with floating-ui in DataLinkInput

* replace popper with floating-ui in SuggestionsInput
2024-02-12 13:22:24 +00:00
Joao Silva
71e7d654de Card: Revert adding overline component (#82308) 2024-02-12 13:07:40 +00:00
Will Browne
788b9afda3 Plugins: Make it possible to support multiple plugin versions (#82116)
* first pass

* use version in more places

* add comment

* update installer

* fix wire

* fix tests

* tidy

* simplify changes

* fix in mem

* remove unused step

* fix step dupe logic for child plugins + add tests
2024-02-12 12:47:49 +01:00
Sonia Aguilar
730e1d2485 Alerting: Fix folder and rule name in groupBy for simplified routing (#82148)
* Fix folder and rule name in groupBy for simplified routing

* Review suggestions

* Use proper type for MultiValueRemove props

* hoist getting groupBy count

* Use watch instead of getValues

* Bring back validation for required fields
2024-02-12 12:45:29 +01:00
Gábor Farkas
d65d2ceb1b sql: add explanation comment (#82304) 2024-02-12 12:42:12 +01:00
Gábor Farkas
67f006a91d sql: remove setting-import from sqleng (#82088) 2024-02-12 12:37:23 +01:00
Faye Lin
a3f3429290 Variable: Inform users of the error details when Grafana is unable to retrieve the variable values from an SQL data source. (#82222)
* feat: Inform users of the error details when Grafana is unable to retrieve the variable values from an SQL data source.

* format code

* use getAppEvents

* throw an error when failing to executing the sql query

* optimize code

* prettier
2024-02-12 12:19:22 +01:00
Gilles De Mey
70fc603d26 Alerting: Improve 404 and other HTTP request error handling (#82249) 2024-02-12 12:17:19 +01:00
Tobias Skarhed
d91803c35a Keybindings: Change 'h' to 'mod+h' to open help modal (#82253)
Keybindings: Change 'h' to 'mod+h'
2024-02-12 11:54:24 +01:00
Torkel Ödegaard
7f7f1b17e6 DashboardScene: Panel edit progress (#82288) 2024-02-12 11:45:34 +01:00
github-actions[bot]
18ee8f7583 I18n: Download translations from Crowdin (#82181)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-12 10:35:01 +00:00
Torkel Ödegaard
e2ea20b446 DashboardScene: Fixes compatability wrapper to make annotation list panel work (#82287) 2024-02-12 11:26:39 +01:00
Kyle Cunningham
14ec1a7971 Table Panel: Update column alignment labels in panel config (#82069)
Update column alignment labels
2024-02-12 17:15:26 +07:00
Misi
00e96e4584 Auth: SSO Settings UI frontend improvements (#82264)
* Add frontend fixes

* Update labels + link
2024-02-12 11:12:08 +01:00
Pepe Cano
9c92329bee Alerting docs: Provision alerting resources updates (#82221)
* Alert provisioning: initial restructuring

* Fix products labels

* Restructure `Import and export Grafana Alerting resources`

* Change URL to `export-alerting-resources`

* Complete `Export alerting resources`

* Export alerting resources

* Update `configuration files` provisioning

* Terraform Provisioning

* Change to `Provision/Import/Export` terms and some notes

* Replace `config` to `configuration`

* Set (menu)Title `Export alerting resources`

* Minor change on note about `Export Alerting endpoints`

* Fix `doc-validator` issues

* Fix grammar

* Update docs/sources/alerting/set-up/provision-alerting-resources/terraform-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/terraform-provisioning/index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Fix numbered lists and `Note:` without admonition

* Convert text-based notes (`Note:`) to `admonition` blocks

* Replace text-based `Note:` with adminitions

* Remove `file-provisioning` grafana-cloud links

* Update `Export alerting resources` intro

* nitpicky format order

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-02-12 10:27:18 +01:00
Kim Nylander
815e61258c [DOC] Update Pyroscope data source (#82130)
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-02-12 08:34:36 +00:00
Gábor Farkas
fcf2543fe3 updated grafana-plugin-sdk-go dependency (#82136)
update grafana-plugin-sdk-go dependency
2024-02-12 09:14:03 +01:00
Torkel Ödegaard
fe6d1460b0 DashboardScene: Adds solo page that uses dasboarde scene to render single panel (#77940)
* DashboardScene: Adds solo page that uses dasboarde scene to render single panel

* Update

* Panel and row repeats working

* Update

* added e2e tests

* Refactor

* Fixes

* Fix e2e

* fix

* fix

* fix
2024-02-11 09:08:47 +01:00
Darren Janeczek
02c0f5929c prometheus: fix: use shallow clone of scopedVars (#82280)
fix: use shallow clone of scopedVars
2024-02-10 09:57:11 -05:00
Kyle Cunningham
f0bbfc8422 Chore: Move BI feature flags to Dataviz (#82224) 2024-02-10 02:24:08 +02:00
Ryan McKinley
ce910a7eb2 FeatureFlags: manage creation/modification times automatically (#82131) 2024-02-09 15:34:12 -08:00
Todd Treece
14869cc400 Docs: Update developer dependencies (#82034) 2024-02-09 17:25:15 -05:00
Alexander Weaver
5bbe9c6e61 Alerting: Enable group-level rule evaluation jittering by default, remove feature toggle (#82212)
* remove jitter feature flag

* Add an out so users can manually disable jitter

* Pass in cfg

* Add TODO to remove knob in future
2024-02-09 15:53:58 -06:00
Torkel Ödegaard
b5d14d03d7 Scenes: Upgrade to 2.6.5 and Add query controller DashboardScene (#82232)
* Update scenes and add query controller

* Update

* Update
2024-02-09 21:44:44 +01:00
Stephanie Hingtgen
87c3d0fb6a K8s: Update stack id validation (#82275) 2024-02-09 21:51:00 +02:00
Matias Chomicki
c9593531ef Loki query builder: force click in e2e test (#82051) 2024-02-09 20:48:10 +02:00
Alyssa Bull
77111a0714 Cloud Monitoring: Fix naming and warnings (#82271) 2024-02-09 11:22:44 -07:00
Kevin Yu
7f109c885d CloudWatch: Fix code editor not resizing on mount when content height is > 200px (#81911) 2024-02-09 09:44:29 -08:00
João Calisto
42d6e176bc Feature Toggle Management: allow editing PublicPreview toggles (#81562)
* Feature Toggle Management: allow editing PublicPreview toggles

* lint

* fix a bunch of tests

* tests are passing

* add permissions unit tests back

* fix display

* close dialog after submit

* use reload method after submit

* make local development easier

* always show editing alert in the UI

* fix readme

---------

Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com>
2024-02-09 18:48:56 +02:00
Ryan McKinley
f60b5ecec4 Chore: Avoid NPE with annotations query (#82216) 2024-02-09 08:48:11 -08:00
Alex Khomenko
1f208cd8ae Icons: Update observability icon (#82266)
Update observability icon
2024-02-09 17:42:17 +01:00
Stephanie Hingtgen
54a77fa55e K8s: StackIDs can be single digits (#82267) 2024-02-09 18:39:58 +02:00
Mitsuhiro Tanda
9bc3517617 Snapshots: Fix issue where off-screen panels are not included in snapshots (#82135) 2024-02-09 11:37:55 -05:00
Jo
6f62d970e3 JWT Authentication: Add support for specifying groups in auth.jwt for teamsync (#82175)
* merge JSON search logic

* document public methods

* improve test coverage

* use separate JWT setting struct

* correct use of cfg.JWTAuth

* add group tests

* fix DynMap typing

* add settings to default ini

* add groups option to devenv path

* fix test

* lint

* revert jwt-proxy change

* remove redundant check

* fix parallel test
2024-02-09 16:35:58 +01:00
Adela Almasan
32a1f3955a Canvas: Keep tooltip open until dismissed (#82213) 2024-02-09 09:09:34 -06:00
Konrad Lalik
fbdd27c237 Alerting: Add support for UTF-8 characters in notification policies and silences (#81455)
* Add label matcher validation to support UTF-8 characters

* Add double quotes wrapping and escaping on displating matcher form inputs

* Apply matchers encoding and decoding on the RTKQ layer

* Fix unescaping order

* Revert "Apply matchers encoding and decoding on the RTKQ layer"

This reverts commit 4d963c43b5.

* Add matchers formatter

* Fix code organization to prevent breaking worker

* Add matcher formatter to Policy and Modal components

* Unquote matchers when finding matching policy instances

* Add tests for quoting and unquoting

* Rename cloud matcher formatter

* Revert unintended change

* Allow empty matcher values

* fix test
2024-02-09 15:46:28 +01:00
Dan Cech
790e1feb93 Chore: Update test database initialization (#81673)
* streamline initialization of test databases, support on-disk sqlite test db

* clean up test databases

* introduce testsuite helper

* use testsuite everywhere we use a test db

* update documentation

* improve error handling

* disable entity integration test until we can figure out locking error
2024-02-09 09:35:39 -05:00
Galen Kistler
de4acb27ce Table: Add initial row index (#82200)
* Add initial row index prop in table
2024-02-09 07:49:48 -06:00
kay delaney
984d2da9ae LibraryPanels: Fix issue with repeated library panels (#82255)
Fixes an issue where a library panel being repeated by a
template variable would briefly use the All value for the first
repeat instance
2024-02-09 13:48:53 +00:00
Ashley Harrison
fc5f228675 Revert "Update dependency lerna to v8 (#82196)" (#82254)
This reverts commit 00fd023fda.
2024-02-09 15:30:50 +02:00
Leon Sorokin
02d61857ab Annotations: Fix axis markers rendering in wrong (stale) positions (#82219) 2024-02-09 06:55:09 -06:00
Joao Silva
bc83d8263b Card: Add isCompact prop and Overline sub-component (#82077) 2024-02-09 12:37:28 +00:00
Ivana Huckova
48b4ca8228 Elasticsearch: Decouple frontend dependencies from core (#82179)
* Elasticsearch: Decouple frontend dependencies from core

* Remove not needed code change
2024-02-09 14:11:08 +02:00
Misi
b1dc505a2b Auth: Validate admin assignment in SSO Settings (#82233)
* Add validation for allowAssignGrafanaAdmin

* Update default values

* Do not render hidden fields

* Change error message

* Improve tests

---------

Co-authored-by: Clarity-89 <homes89@ukr.net>
2024-02-09 13:10:23 +01:00
Sergej-Vlasov
5a5520b5da Dashboards: add delete variable flow to VariableEditorForm (#82149)
* add delete variable flow to VariableEditorForm

* adjust modal logic and replace HorizontalGroup with Stack

* revert onDelete prop name
2024-02-09 12:01:58 +00:00
Ashley Harrison
e0bff6247c Chore: ignore loader-utils update (#82236)
ignore loader-utils
2024-02-09 11:46:23 +00:00
Fabrizio
8beff98142 Update Prettier checks to parse also JSON files (#82046) 2024-02-09 13:16:40 +02:00
Sonia Aguilar
beca6a08b0 Alerting: defaults for simplified routing (#82050)
* Expand route settings by default when alert rule has values in these fields

* Default to manual routing option if FF is enabled and local storage is not set to false

* Add test for getDefautManualRouting function

* Update seting local storage item to false in case of policy routing

* Only save to local storage when creating a new alert rule
2024-02-09 12:16:28 +01:00
Sonia Aguilar
3e93a0991f Alerting: Use new readonly permission endpoints for getting contact points and mute timings (#82132)
* use new read only contact points list endpoint in simplified routing section

* Dont use alertmanager endpoint to get groupby defaults

* Use the new read only endpoint for mute timings in route settings

* review suggestions

* Rename hook

* Use options in params for useContactPointsWithStatus hook

* Refactor useContactPointsWithStatus

* second part of the enhanceContactPointsWithMetadata refactor
2024-02-09 12:13:37 +01:00
renovate[bot]
ed9e26122a Update dependency @types/node to v20.11.17 2024-02-09 10:47:01 +00:00
marybelvargas
fc498f5375 Update RBAC role name: fixed:datasources.id:reader (#82186) 2024-02-09 10:44:29 +00:00
ismail simsek
b0dfeb1911 Chore: Clean up intervalv2 functions (#82074)
* clean up intervalv2 functions

* use roundInterval from grafana-plugin-sdk-go

* use from grafana-plugin-sdk-go

* have intervalv2 in publicdashboards and remove tsdb/intervalv2

* legacydata cleanup

* remove unused variables

* Update pkg/tsdb/legacydata/interval/interval.go

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>

---------

Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>
2024-02-09 11:39:21 +01:00
Eric Leijonmarck
3d73cd5c8e Docs: Team LBAC create concept and tasks (#82020)
* create concept and tasks

* update docs

* formattting

* Update docs/sources/administration/data-source-management/teamlbac/create-teamlbac-rules/index.md

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>

* Update docs/sources/administration/data-source-management/teamlbac/create-teamlbac-rules/index.md

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>

* Update docs/sources/administration/data-source-management/teamlbac/create-teamlbac-rules/index.md

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>

* Update docs/sources/administration/data-source-management/teamlbac/create-teamlbac-rules/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/data-source-management/teamlbac/create-teamlbac-rules/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/data-source-management/teamlbac/create-teamlbac-rules/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/data-source-management/teamlbac/_index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Update docs/sources/administration/data-source-management/teamlbac/create-teamlbac-rules/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* update of docs

* updated w. limitations and explaination of permissions

* spelling

* formatting

* formatting

* added another task

* formatting

---------

Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-02-09 10:20:09 +00:00
Misi
e03a96d09b Docs: Update default value of rbac.permission_validation_enabled (#82234)
* Update permission_validation_enabled default value in docs

* Lint
2024-02-09 11:14:56 +01:00
renovate[bot]
00fd023fda Update dependency lerna to v8 (#82196)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-09 10:07:57 +00:00
Ashley Harrison
765a1f8533 Chore: fix some bad uses of userEvent (#82191)
* fix some bad uses of userEvent

* wrap advance call in act

* don't use act

* remove skip

* need act here (see https://kentcdodds.com/blog/fix-the-not-wrapped-in-act-warning#1-when-using-jestusefaketimers)

* remove test that isn't correct anymore

* implement same change in grafana-prometheus
2024-02-09 10:04:35 +00:00
github-actions[bot]
e9dab611fe Update make docs procedure (#82223)
Co-authored-by: grafanabot <bot@grafana.com>
2024-02-09 10:01:47 +00:00
Eric Jacobson
8afab6a80f Icons: Add support for docker icon (#81884)
- add docker icon to registry
2024-02-09 14:37:43 +07:00
Sergey Kostrukov
cc33f0bd10 Prometheus: Azure scopes from Grafana Azure SDK (#82023)
* Prometheus: Azure scopes from Grafana Azure SDK

* Refactor and add tests

* Cosmetic fix

* Cosmetic change 2
2024-02-08 23:47:09 +01:00
Leon Sorokin
930c8c5aa3 EventBus: Add ability to tag events with arbitrary classification meta (#82087) 2024-02-08 16:15:32 -06:00
Nathan Marrs
829672759c Deprecation: Create explicit feature toggle to auto-migrate from graph panel (#79369) 2024-02-08 14:00:48 -08:00
Matthew Jacobson
ce57166c9a Alerting: GA alertingPreviewUpgrade and enable by default (#82038)
* Alerting: GA alertingPreviewUpgrade and enable by default
2024-02-08 18:59:25 +01:00
Galen Kistler
633e354a76 Transformations: Fix converting time fields to number in reduceFields (#81830)
* Fix bug converting time fields to number in reduce
---------

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-02-08 11:29:10 -06:00
renovate[bot]
903e54e622 Update dependency postcss to v8.4.35 2024-02-08 17:27:54 +00:00
Ryan McKinley
ac5a387086 Peakq: move templates into query service (#82193) 2024-02-08 18:27:03 +01:00
Darren Janeczek
a439ee46bf datatrails: fix: propagate unit to breakdown graphs (#82176)
fix: propagate unit to breakdown graphs
2024-02-08 12:02:03 -05:00
renovate[bot]
b8f7230dee Update dependency @types/gtag.js to ^0.0.19 (#82178)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-08 17:29:00 +01:00
renovate[bot]
e612b9b46b Update dependency @types/react-dom to v18.2.19 2024-02-08 16:26:58 +00:00
Jo
fb86ed79fc Stats: Remove ACL references (#82112)
remove acl references
2024-02-08 17:19:24 +01:00
renovate[bot]
37eb2e39f4 Update dependency @grafana/scenes to v2.6.6 2024-02-08 16:04:36 +00:00
Ashley Harrison
0e15b4ac76 Navigation: Add config for grafana-slo-app and grafana-aws-app (#82174)
add config for grafana-slo-app and grafana-aws-app
2024-02-08 15:56:43 +00:00
Misi
4a7dde5b97 Chore: Remove unnecessary usage of DynamicSection from SocialService (#82139)
Remove unnecessary usage of DynamicSection
2024-02-08 16:53:51 +01:00
renovate[bot]
36a1f28086 Update dependency i18next-parser to v8 (#82085)
* Update dependency i18next-parser to v8

* remove deprecated option

* fix lockfile

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-02-08 15:47:29 +00:00
Josh Hunt
732f9cacb4 ReturnToPrevious: Add interaction reporting (#81948)
* Add analytics for return to previous

* fix typos lol
2024-02-08 15:44:22 +00:00
Darren Janeczek
71497c98e8 datatrails: style: improve panel display (#82017)
* style: improve panel display

- Show summary text in hover legends (no queries)
- Show additional description in main panel title
2024-02-08 10:36:20 -05:00
Darren Janeczek
312f8f0f69 datatrails: debounce search and prefix filter (#81842)
fix: debounce search and prefix filter
2024-02-08 10:35:09 -05:00
Ashley Harrison
3756234de6 Navigation: bump the bottom padding of the megamenu slightly (#82171)
bump the bottom padding of the megamenu slightly
2024-02-08 16:24:23 +01:00
github-actions[bot]
83270b3625 I18n: Download translations from Crowdin (#82119)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-08 14:55:31 +00:00
Gábor Farkas
2250e358c7 postgres: updated snapshot test with better floating point values (#82168) 2024-02-08 15:52:20 +01:00
renovate[bot]
04ff7a1f1d Update dependency @grafana/experimental to v1.7.10 2024-02-08 13:55:50 +00:00
Andres Martinez Gotor
b658b562e8 Chore: Allow standalone release for core plugins without a backend (#82157) 2024-02-08 14:54:42 +01:00
Ryan McKinley
4884194879 Peakq: use generic query function (#82121)
Co-authored-by: Kyle Brandt <kyle@grafana.com>
2024-02-08 08:29:42 -05:00
renovate[bot]
685ba7d287 Update dependency i18next to v23 (#82084)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-08 13:29:17 +00:00
chalapat
59b78cec43 Doc: Custom branding is not applicable to OSS (#82082)
Custom branding is not applicable to OSS

Signed-off-by: Rao, B V Chalapathi <b_v_chalapathi.rao@nokia.com>
2024-02-08 07:25:49 -06:00
Jean-Philippe Quéméner
4dc1ebbb66 fix(alerting): add a proper compare func for location in mute timings (#82153) 2024-02-08 13:36:09 +01:00
Misi
74d7cd2cad Auth: Add name to be configurable from the UI (#82144)
* Add name to be configurable from the UI

* Update public/app/features/auth-config/ProviderConfigPage.tsx

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>

* Align test

---------

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2024-02-08 13:33:47 +01:00
Gilles De Mey
19b07fbbfc Alerting: Fix editing group of nested folder (#81665) 2024-02-08 13:18:20 +01:00
Agnès Toulet
28e66b4ad8 Rendering: Adds PDF support behind feature toggle (#81811)
* start pdf refactor

* Update AppChrome.tsx

* Update AppChrome.tsx

* add encoding param to rendering grpc service

* fix plugin mode

* clean up

* fix backend tests

* fix lint errors

* Support pdf encoding in render http api

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-02-08 13:09:34 +01:00
George Robinson
90a26e18db Alerting: Update Alertmanager to e82436c (#82145)
This commit updates Alertmanager to commit e82436c, which is based
on commit f69a508 from Prometheus Alertmanager.
2024-02-08 11:25:27 +00:00
Will Browne
99feb928cf Plugins: Don't auto prepend app sub url to plugin asset paths (#81658)
* don't prepend app sub url to paths

* simplify logo path

* fix(plugins): dynamically prepend appSubUrl for System module resolving to work

* fix(sandbox): support dynamic appSuburl prepend when loading plugin module.js

* fix tests

* update test name

* fix tests

* update fe + add some tests

* refactor(plugins): move wrangleurl to utils, rename to resolveModulePath, update usage

* chore: fix a typo

* test(plugins): add missing name to utils test

* reset test flag

---------

Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2024-02-08 12:19:28 +01:00
Mikel Vuka
18963dc3ae Elasticsearch: Apply ad-hoc filters to annotation queries (#82032)
* Elasticsearch: filter annotations

* fix broken tests

* add a new test case

* allow type assertion

There is a lint rule to not be able to use assertions. In this case, it is needed and correct way to asset AdHocVariableModel[]

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* simplify the code to add adhoc filters

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

* lint

---------

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2024-02-08 11:47:18 +01:00
Sergey Kostrukov
9bfb7e1f0b Azure Monitor: Azure routes from Grafana Azure SDK (#82043)
Prometheus: Azure routes from Grafana Azure SDK
2024-02-08 10:42:20 +00:00
mikkancso
7814c817b9 Select: fix type of formatCreateLabel prop (#82138)
fix type of formatCreateLabel prop of Select
2024-02-08 11:04:51 +01:00
Ivan Ortega Alba
35e96d6b04 Settings: Consistent footer actions across edit views (#82048) 2024-02-08 11:50:53 +02:00
Joey
ea96c83a2c Tempo: Improve tags UX (#81166)
* Only show add/remove tag when necessary in span filters

* Only show add/remove tag when necessary in traceql

* Only show add/remove tag when necessary in aggregateBy

* Update styles

* Add tests

* Show remove tag for all if more than one tag

* Also check for value only in search editor and update tests
2024-02-08 09:24:23 +00:00
Alex Khomenko
e09a29d891 Chore: Remove Form usage in Signup components (#81532)
* Chore: Remove Form component from SignupPage.tsx

* Replace HorizontalGroup with Stack

* Replace form in VerifyEmail.tsx

* Remove max-width
2024-02-08 11:10:30 +02:00
Jo
6ac0bc5ecf Seeder: Add missing methods to Registrations (#81961)
* add slice copy method

* fix slice copy
2024-02-08 09:54:17 +01:00
Charandas
117a4b4b0a K8s: resolve crash due to looking up aggregation config when running in a K8s environment (#82125)
K8s: apply authn options only in dev mode - resolves crash due to looking up aggregation config
2024-02-07 16:43:07 -08:00
Oscar Kilhed
1ecf9faded Chore: Skip flaky dashboard settings test. (#82098)
skip flaky dashboard test
2024-02-07 23:51:39 +01:00
Matthew Jacobson
4b609f1121 Alerting: upgrade preview enable folder alert tab and dashboard alert panel (#81992)
* Alerting: upgrade preview enable folder alert tab and dashboard alert panel

Enable the folder alert tab and the dashboard alert panel when the
alertingPreviewUpgrade feature flag is enabled

* Link directly to folder alerts in upgrade page
2024-02-07 23:14:56 +02:00
ismail simsek
b25ffe2b15 Prometheus: Remove all intervalv2 imports and use gtime functions wherever it's possible (#82064)
* Remove all intervalv2 imports and use gtime functions where ever it's possible

* Add a comment line

* use roundInterval from grafana-plugin-sdk-go
2024-02-07 22:32:57 +02:00
ismail simsek
367790663c Chore: Bump grafana-plugin-sdk-go version to v0.208.0 (#82123)
bump grafana-plugin-sdk-go version to v0.208.0
2024-02-07 22:08:20 +02:00
Dan Cech
1f1461734c Storage: Add support for sortBy selector (#80680)
* add support for sortBy field selector

* use label selectors instead of field selectors

* set entity_labels on create & update

* make entity server integration tests work

* test fixes

* be more consistent with handling of empty body, meta or status

* workaround for database is locked errors during migration

* fix double import of sqlite3

* rename functions and tidy up

* refactor update

* disable integration tests until we can fix the database locking issue
2024-02-07 15:05:10 -05:00
Todd Treece
bb6db46ecc Chore: Update wire to v0.6.0 (#82114) 2024-02-07 13:29:32 -05:00
Dan Cech
156d7ae194 use in-process grpc client instead of wrapping server interface (#81926)
* use in-process grpc client instead of wrapping server interface

* comment out jwt token checks until we're ready to validate the token
2024-02-07 13:17:02 -05:00
Torkel Ödegaard
ba7e0d5c2e DashboardScene: Fix issue with url sync after saving title change (#81851)
DashboardScene: Fix issue with url sycn after saving title change
2024-02-07 18:58:23 +01:00
Matthew Jacobson
dd0ca1263b Alerting: Include rule uid, title, namespace in unique constraint errors (#82011)
* Alerting: Include rule_uid, title, namespace_uid in unique constraint errors
2024-02-07 12:55:48 -05:00
Josh Hunt
645684df15 I18n: Add crowdin PRs to project board (#82100)
* Revert all previous changes to the workflow

Revert "I18n: Add pr to project board (#82096)"
This reverts commit 30730ebdd8.

Revert "I18n: Fix workflow for adding PR to project board (#82078)"
This reverts commit c16cb7ed3c.

Revert "I18n: Use correct project and pull request ID (#82070)"
This reverts commit 10a130191f.

Revert "Fix incorrect quotes in crowdin-download github action (#82063)"
This reverts commit 945e26516b.

Revert "I18n: Add crowdin PRs to project board (#82059)"
This reverts commit 5b9b990220.

* Add crowdin pr to frontend platform project board

* refactor: clean up first trial

---------

Co-authored-by: Laura Benz <laura.benz@grafana.com>
2024-02-07 18:22:39 +01:00
Gilles De Mey
791ead7806 Alerting: Detail view part 3 (#81286) 2024-02-07 18:02:20 +01:00
Ryan McKinley
3464b6e581 Peakq: support multi-value template variables (#82036) 2024-02-07 18:46:43 +02:00
Gilles De Mey
e77ec26897 UI: No interactive table pagination controls for rows < page size (#82109) 2024-02-07 17:13:05 +01:00
Kyle Brandt
3ad860a63c PeakQ: (Chore) Update Render to work with UTF (#82107) 2024-02-07 17:48:53 +02:00
Ashley Harrison
ef6e315322 Chore: use Box in command palette empty state (#82101)
* use Box

* use paddingTop/paddingBottom
2024-02-07 17:39:15 +02:00
Tobias Skarhed
00d69bc8e5 i18n: Phrases for login page (#81478)
* i18n markup for login components

* Add serviceName to translation

* Fix typo

* Reset from main

* Extract

* Fix extract
2024-02-07 15:37:42 +00:00
Alexander Weaver
843c477899 Alerting: Add exported API to scheduler to access currently loaded rules (#82031)
* Add exported API to fetch rule definitions from scheduler

* Add comment
2024-02-07 09:31:22 -06:00
Darren Janeczek
9fb04be7ff enhancement: use SVG icon for cascader expand instead of > (#81844)
* feature: use icon for cascader expand
2024-02-07 10:26:39 -05:00
Jack Baldry
832eda7963 Add missing step (#82066) 2024-02-07 15:01:54 +00:00
Josh Hunt
30730ebdd8 I18n: Add pr to project board (#82096) 2024-02-07 14:57:14 +00:00
Kyle Cunningham
756cd3c28b Transformations: Add Group to Nested Tables Transformation (#79952)
* Stub group to subframe transformation

* Get proper field grouping

* Mostly working but fields not displaying 😭

* Fix display processing in nested tables

* Modularize and start merging groupBy and groupToSubrame

* Get this working

* Prettier

* Typing things

* More types

* Add option for showing subframe table headers

* Prettier

* Get tests going

* Update tests

* Fix naming and add icons

* Betterer fix

* Prettier

* Fix CSS object syntax

* Prettier

* Stub alert for calcs with grouping, start renaming

* Add logic to show warning message for calculations

* Add calc warning

* Renaming and feature flag

* Rename images

* Prettier

* Fix tests

* Update feature toggle

* Fix error showing extra blank row

* minor code cleanup

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-02-07 21:28:26 +07:00
Andres Martinez Gotor
26bc87b60e Chore: Replace core plugins as external warning (#81877) 2024-02-07 16:17:13 +02:00
kay delaney
114e9e90f3 Scenes/PanelEditor: Fix panel options search crash (#82003)
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-02-07 14:09:21 +00:00
Haris Rozajac
00aa876e46 Dashboard Scene: All panel menu items available (#81678)
* WIP: removing panel functionality

* wip

* Deleting works with old model and with unified alerting

* Add shortcut for removing panel

* Add duplicate panel functionality; improve remove panel logic

* Copy and new alert rule

* Hide legend

* WIP: Help wizard

* Fix PanelMenuBehavior tests

* Got help wizard to work in scenes

* Fix HelpWizard and SupportSnapshotService tests

* Use object for writing styles

* betterer

* Fix create lib panel

* PanelRepeaterItem should be duplicated

* Share randomizer from dashboard-scenes

* share randomizer

* Fix import

* Update error message

* Fix test

* When duplicating PanelRepeaterGridItem's child use  PanelRepeaterGridItem.state.source

* Don't use getResultsStream

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-02-07 06:32:08 -07:00
Nathan Vērzemnieks
b5f26560c2 Cloudwatch: Remove core imports from infra/log (#81543)
* Cloudwatch: use logging from plugin-sdk-go instead of infra/log
* Add a link to the TODO issue for moving `instrumentContext`
2024-02-07 13:53:05 +01:00
Josh Hunt
c16cb7ed3c I18n: Fix workflow for adding PR to project board (#82078) 2024-02-07 12:47:21 +00:00
renovate[bot]
79cfd67fde Update dependency react-hook-form to v7.50.1 (#82072)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-07 12:43:57 +00:00
renovate[bot]
fb4de35c0e Update dependency react-zoom-pan-pinch to v3.4.2 (#82073)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-07 12:42:58 +00:00
Josh Hunt
10a130191f I18n: Use correct project and pull request ID (#82070)
* use correct project and pr ids

* add github token

* fix env
2024-02-07 12:21:19 +00:00
Andres Martinez Gotor
9c0501a167 Chore: Fix rootDir path when compiling core ds (#82068) 2024-02-07 13:00:13 +01:00
Oscar Kilhed
1f2f85004d Scenes: Add alerts from panel edit (#81588)
* Display alerts in scenes dashboard

* sort of working adding alerts

* move alert button to own component

* First fixes

* Generate link/url on click

* some cleanup

* making sure all links from scene go back to scene dashboard/panel; add rule button when there are rules; styling

* remove unused import

* add &scenes to url for alert instance annotations

* Add tests from old alert tab

* Revert addition of &scenes to dashboard urls

* Refactor to simplify NewAlertRuleButton interface

* update test

* Use the raw range to calculate the relative range

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-02-07 12:59:18 +01:00
Gábor Farkas
420a23c064 sql: simplify time-conversion code (#81499)
sql: simplify code
2024-02-07 12:42:22 +01:00
renovate[bot]
370e973256 Update dependency html-loader to v5 (#82062)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-07 11:35:25 +00:00
Josh Hunt
945e26516b Fix incorrect quotes in crowdin-download github action (#82063) 2024-02-07 11:19:40 +00:00
renovate[bot]
f5a60568b4 Update dependency fork-ts-checker-webpack-plugin to v9 (#82061)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-07 13:18:52 +02:00
Ashley Harrison
af8ea896d0 GroupBy: add new groupby variable type and optional groupByKeys (#81717)
* add new groupby type

* rename to groupByKeys + introduce GroupByVariableModel

* fix unit test

* update scenes package

* update interface

* update fixture

* update unit test

* bump to scenes 2.6.2

* remove baseFilters for now
2024-02-07 11:14:04 +00:00
Josh Hunt
5b9b990220 I18n: Add crowdin PRs to project board (#82059)
Add i18n prs to frontend platform project board
2024-02-07 11:01:04 +00:00
renovate[bot]
17358bd7c9 Update dependency expose-loader to v5 (#82058)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-07 12:43:33 +02:00
renovate[bot]
c3865771ca Update dependency react-hook-form to v7.50.1 (#82057)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-07 12:40:28 +02:00
Joey
ff21f941df Parca: Fix flaky test (#81968)
Fix flaky test
2024-02-07 10:21:53 +00:00
renovate[bot]
c4cee75551 Update dependency eslint-config-prettier to v9 (#82013)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-07 10:20:19 +00:00
renovate[bot]
7607671791 Update dependency eslint-plugin-jsdoc to v48 (#82014)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-07 10:19:56 +00:00
brendamuir
899e06b439 Alerting docs: changes alerting rules to alert rules (#82049)
* Alerting docs: changes alerting rules to alert rules

* ran prettier
2024-02-07 11:04:13 +01:00
ismail simsek
2679599968 Prometheus: Remove grafana/pkg/setting imports (#81813)
* upgrade grafana-azure-sdk-go v1.12.0

* add AzureAuthEnabled to config

* remove grafana/pkg/setting imports

* remove grafana/pkg/setting imports

* remove comment

* add better error message

* Fix the unit test

* fix lint
2024-02-07 11:01:09 +01:00
ismail simsek
9a045e24e8 Chore: Bump grafana-plugin-sdk-go version to v0.207.0 (#82028)
* bump grafana-plugin-sdk-go version to v0.207.0

* update go.sum
2024-02-07 10:51:30 +01:00
Sonia Aguilar
f59e76d54b Alerting: Use mute_time_intervals as field name in dto ,for simplified routing (#82045)
Use mute_time_intervals as field name in dto ,for simplified routing
2024-02-07 09:54:31 +01:00
Dominik Prokop
a385ae4fa5 DashboardScene: Do not show data pane for panels with skipDataQuery (#81934)
* Bump scenes

* Don't show data pane for panels without data support

* Add tests

* Review
2024-02-07 00:51:25 -08:00
Gábor Farkas
8616f2e80a sql: removed unnecessary error-check (#81808)
* sql: removed unnecessary error-check

* updated tests
2024-02-07 08:41:49 +01:00
Gábor Farkas
7b8c7b623c sql: remove the usage of "errutil" (#81888) 2024-02-07 08:39:24 +01:00
Ryan McKinley
40a08a7720 K8s: use +enum tag in playlist and unstructured dummy (#82022) 2024-02-06 16:10:32 -08:00
Ezequiel Victorero
83ea51f241 Scenes: Add snapshots view support (#81522) 2024-02-06 19:29:57 -03:00
Yuri Tseretyan
47546a4c72 Alerting: Update API to use folders' full paths (#81214)
* update GetUserVisibleNamespaces to use FolderSeriver
* update GetNamespaceByUID to use FolderService.GetFolders
* update GetAlertRulesForScheduling to use FolderService.GetFolders 

* Update API and GetAlertRulesForScheduling to use the folder's full path
* get full path of folder in RouteTestGrafanaRuleConfig

* fix escaping of titles for MySQL
2024-02-06 17:12:13 -05:00
Kevin Yu
6f8852095e CloudWatch: Remove core imports from CloudWatchRequest (#81422)
* CloudWatch: Remove core imports from CloudWatchRequest and use appEvents for notifications

* add error message to variable query editor multi filters

* fix tests

* fix lint

* fix lint

* add test for non multi-variable

* pr comments
2024-02-06 22:22:41 +02:00
Ryan McKinley
a052dab7bc K8s/Playlists: Only dual write when an external storage is configured (#82015) 2024-02-06 12:09:33 -08:00
Adela Almasan
315eb5acc3 VizTooltips: Remove default width/height values (#81832) 2024-02-06 12:00:19 -08:00
Kevin Yu
6373557c78 CloudWatch: remove core imports from CloudWatchMetricsQueryRunner (#80926)
* CloudWatch: remove core imports from CloudWatchMetricsQueryRunner

* use getAppEvents to publish error

* use default wait time

* put test back in original position

* fix throttling error message link
2024-02-06 21:24:14 +02:00
Isabella Siu
3b852bb582 CloudWatch: Remove references to pkg/infra/metrics (#81744)
CloudWatch: remove references to pkg/infra/metrics
2024-02-06 21:21:55 +02:00
Kevin Yu
aafff73899 CloudWatch: Remove core imports from LegacyLogGroupSelector (#80843) 2024-02-06 20:58:49 +02:00
Kevin Yu
0d3cf9a08b CloudWatch: Remove core imports from ConfigEditor (#80837)
* CloudWatch: Remove core imports from ConfigEditor

* test
2024-02-06 10:44:42 -08:00
renovate[bot]
484106eb04 Update typescript-eslint monorepo to v6.21.0 (#82004)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-06 20:28:48 +02:00
renovate[bot]
f733bc46c9 Update swc monorepo (#82002)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-06 20:20:21 +02:00
renovate[bot]
d9b8bae028 Update dependency react-loading-skeleton to v3.4.0 (#81975)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-06 20:04:29 +02:00
renovate[bot]
0b72ee2b77 Update dependency semver to v7.6.0 (#81989)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-06 19:58:42 +02:00
Ashley Harrison
d3ad41d8d9 Chore: Ignore fingerprintjs in renovate (#81973)
ignore fingerprintjs
2024-02-06 19:56:50 +02:00
Eric Leijonmarck
33498d08ef Team LBAC: docs (#77924)
* initial commit for docs

* docs update for team lbac

* replace default rule doc with restrict access

* new docs refactored

* updated based on review

* renaming of the file, to include the changes

* review comments

* fix linting

* formatting

* review comments

* updated docs with better formating

* formatting

* adding a bit of context to lbac

* update based on review from srash

* added note
2024-02-06 16:49:37 +00:00
Ryan McKinley
91754bcda5 K8s: Refactor standalone apiserver initialization (#81932) 2024-02-06 08:40:35 -08:00
Todd Treece
abaed01d7e K8S/Shared Queries: Add Experimental PeakQ API (#80839)
First pass at a backend api built on top off app platform for shared-queries in explore and a query library with templating. Highly Experimental.

Under grafanaAPIServerWithExperimentalAPIs = true

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: Kyle Brandt <kyle@grafana.com>
2024-02-06 11:22:41 -05:00
renovate[bot]
ef9eca3a75 Update dependency @grafana/scenes to v2.6.3 2024-02-06 16:21:56 +00:00
DugeraProve
6697da6176 Cloudwatch: Add AWS/EMRServerless and AWS/KafkaConnect Metrics (#79532) 2024-02-06 17:21:49 +01:00
paulJonesCalian
3942d67f89 chore: Fix typo in GraphTresholdsStyleMode enum (#81960) 2024-02-06 08:20:42 -08:00
Esteban Beltran
ec5623f552 Sandbox: Fix cloneDeep not working inside plugins (#81950) 2024-02-06 16:47:29 +01:00
Gabriel MABILLE
4af5aef417 id forwarding: transfer Grafana id token to app plugins (#81967)
* id forwarding: allow for app plugins as well

* Add test
2024-02-06 16:26:17 +01:00
Ezequiel Victorero
eab7990349 ShareModal: Remove shareView param when creating a sharing URL (#81976) 2024-02-06 12:21:15 -03:00
Gokhan
cf601fab09 Alerting: Enable sending notifications to a specific topic on Telegram (#79546)
Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
2024-02-06 17:19:22 +02:00
Ryan McKinley
ce12eba858 K8s/Folders: Add all features to k8s endpoints (#81858) 2024-02-06 07:09:40 -08:00
William Wernert
2ea82af6e7 Alerting: Pass in receiver service to API struct (#81978) 2024-02-06 16:49:47 +02:00
Brendan O'Handley
0015a31b79 Prometheus: Frontend library update version and readme (#81922)
update version and readme
2024-02-06 08:27:43 -06:00
Brendan O'Handley
ead2de22a9 Prometheus: Frontend library use AGPL license (#81921)
* use AGPL license

* update package.json
2024-02-06 08:27:27 -06:00
Brendan O'Handley
ec0eb8fd79 Prometheus: Frontend library exports (#81909)
* fix components folders for exports

* export files in the components folder

* export metrics modal and fix exports

* export promquail and fix exports

* export querybuilder/components and fix exports

* export querybuilder

* main index file exports

* run prettier
2024-02-06 08:27:09 -06:00
Laura Benz
32a7aa33b8 I18n: Refactor action (#81970)
refactor
2024-02-06 15:25:11 +01:00
renovate[bot]
3d3264668b Update dependency react-hook-form to v7.50.1 2024-02-06 14:19:34 +00:00
Yuri Tseretyan
15223a4b85 Folders: Set FullPath and FullPathUIDs when feature flag is off and query requests (#81896)
* set FullPath and FullPathUIDs if feature flag is off and query requests

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
2024-02-06 09:18:40 -05:00
renovate[bot]
92e05ec8e9 Update dependency postcss to v8.4.34 (#81962)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-06 13:54:04 +00:00
Ashley Harrison
28b336ac80 DockedMegaMenu: Clean up toggle and old code (#81878)
* remove toggle

* remove code not behind toggle

* remove old MegaMenu

* rename DockedMegaMenu -> MegaMenu and clean up go code

* fix backend test

* run yarn i18n:extract

* fix some unit tests

* fix remaining unit tests

* fix remaining e2e/unit tests
2024-02-06 13:43:11 +00:00
Joey
390461f9e1 Tempo: Move query ref to TraceQLEditor (#81686)
Move ref to TraceQLEditor
2024-02-06 13:30:59 +00:00
Wil.P
679d90be04 Patch 3 (#81937)
* Update _index.md

moved to the asked location

* ran prettier

* Update docs/sources/alerting/set-up/provision-alerting-resources/_index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

* Update docs/sources/alerting/set-up/provision-alerting-resources/_index.md

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>

---------

Co-authored-by: brendamuir <100768211+brendamuir@users.noreply.github.com>
2024-02-06 14:26:31 +01:00
Diego Augusto Molina
a6e27d1622 Chore: Fix plugins manager process data race in tests (#81914)
* Chore: synchronize writes to pkg.plugins.log.Logs to prevent data races in test code

* Chore: fix data race in tests in plugins process manager

* Chore: improve Logs method naming

* Chore: fix type change
2024-02-06 10:17:37 -03:00
renovate[bot]
1b63c27bb4 Update dependency @grafana/scenes to v2.6.2 2024-02-06 13:10:28 +00:00
Darren Janeczek
16df04e260 datatrails: improve width responsiveness for breakdown label selector (#81838)
* fix: make datatrails breakdown label selector responsive
2024-02-06 08:08:57 -05:00
Jo
cf616d5074 Remove X-Grafana-Device-Id from outbound requests (#81957) 2024-02-06 14:06:19 +01:00
Laura Benz
7292b84614 I18n: Add Crowdin PRs to project board (#81947)
refactor: add Crowdin PRs to project board
2024-02-06 13:44:54 +01:00
Isabel
fa30293987 Docs: remove disable scaling units entry (#81917)
* Removed disable scaling units entry

* Removed QoL section
2024-02-06 07:24:10 -05:00
renovate[bot]
2a114c1c37 Update dependency marked-mangle to v1.1.7 2024-02-06 12:17:01 +00:00
Ashley Harrison
e2c2704296 Browse Dashboards: Imported dashboards now display immediately in the dashboard list (#81819)
* create importDashboard method in rtk query

* fix unit tests

* Revert "fix unit tests"

This reverts commit 72cd81c803.

* fix unit test
2024-02-06 10:46:24 +00:00
Ashley Harrison
8c38ebfeae Command Palette: Add empty state (#81903)
* add an empty state for the command palette

* cleaner logic
2024-02-06 10:37:56 +00:00
ismail simsek
994aedaac3 Chore: Update InfluxDB response parser test files (#81899)
* add show diagnostics tests

* update test files
2024-02-06 11:31:55 +01:00
Laura Benz
ec1b669ce6 I18n: Export only approved translations (#81943)
refactor: export only approved translations
2024-02-06 11:15:26 +01:00
renovate[bot]
1771010450 Update dependency @types/react to v18.2.55 2024-02-06 10:06:27 +00:00
Josh Hunt
eef491d407 Chore: Force transitive resolution of debug (#81908)
Force resolution of debug
2024-02-06 10:03:26 +00:00
renovate[bot]
4b90936502 Update dependency @grafana/scenes to v2.6.1 (#81906)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-06 09:43:53 +00:00
Laura Benz
90612500e0 I18n: Adjust GH actions workflow (#81887)
* refactor: add github-actions bot to ignoreList

* refactor: change GH user
2024-02-06 10:38:09 +01:00
Sergej-Vlasov
3605d85c4c Dashboards: Remove advancedDataSourcePicker feature toggle (#81790)
* remove advancedDataSourcePicker feature toggle from DataSourcePickerWithPrompt

* remove advancedDataSourcePicker toggle from DataSourcePicker and adjust tests that relied on old picker

* adjust failing tests in QueryVariableEditorForm

* move DataSourceDropdown to DataSourcePicker file

* covert style declaration syntax to object style in DataSourcePicker

* remove advancedDataSourcePicker  feature flag from registry

* remove .only from test

* adjust QueryVariableEditor test to avoid console.error
2024-02-06 09:20:07 +00:00
Joey
96301ce533 Tempo: Trace to metrics docs (#81548)
* Trace to metrics docs and share variables that can be used in query section

* Update text

* Add span start/end

* Update docs/sources/shared/datasources/tempo-traces-to-profiles.md

Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>

* Update docs/sources/datasources/tempo/configure-tempo-data-source.md

Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>

* Update docs/sources/datasources/tempo/configure-tempo-data-source.md

Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>

* Update text

* Update docs/sources/datasources/tempo/configure-tempo-data-source.md

---------

Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>
2024-02-06 08:58:08 +00:00
George Robinson
c8ccc4649c Alerting: Support UTF-8 (#81512)
This pull request updates our fork of Alertmanager to commit 65bdab0, which is based on commit 5658f8c in Prometheus Alertmanager.

It applies the changes from grafana/alerting#155 which removes the overrides for validation of alerts, labels and silences that we had put in place to allow alerts and silences to work for non-Prometheus datasources. However, as this is now supported in Alertmanager with the UTF-8 work, we can use the new upstream functions and remove these overrides.

The compat package is a package in Alertmanager that takes care of backwards compatibility when parsing matchers, validating alerts, labels and silences. It has three modes: classic mode, UTF-8 strict mode, fallback mode. These modes are controlled via compat.InitFromFlags. Grafana initializes the compat package without any feature flags, which is the equivalent of fallback mode. Classic and UTF-8 strict mode are used in Mimir.

While Grafana Managed Alerts have no need for fallback mode, Grafana can still be used as an interface to manage the configurations of Mimir Alertmanagers and view configurations of Prometheus Alertmanager, and those installations might not have migrated or being running on older versions. Such installations behave as if in classic mode, and Grafana must be able to parse their configurations to interact with them for some period of time. As such, Grafana uses fallback mode until we are ready to drop support for outdated installations of Mimir and the Prometheus Alertmanager.
2024-02-06 08:33:47 +00:00
Victor Marin
613da422ca Scenes: Migrate permissions settings page (#81781)
* Migrate permissions settings page

* fix
2024-02-06 10:32:55 +02:00
Gábor Farkas
33f80f7a16 mysql: remove dev-mode log (#81894) 2024-02-06 09:29:50 +01:00
Carl Bergquist
c9de794d7f instrumentation: these features have been enabled for a while (#81617)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
2024-02-06 00:29:41 -08:00
Sven Grossmann
bd48c06f95 Elasticsearch: Set middlewares from Grafana's httpClientProvider (#81814)
Elasticsearch: Set middlewares from httpClientProvider
2024-02-06 07:11:54 +01:00
Clarence
2d25ce8aab chore: update typos found in docs (#81850) 2024-02-05 21:46:35 +02:00
Diego Augusto Molina
a6342fa576 Chore: Fix data race within tests and enable a few parallel tests in ssosettingsimpl (#81837)
* Chore: Fix data race within tests of SSO Setting implementation

* Chore: fix data race within tests to allow parallel testing

* Chore: rollback changes runtime code to test a different approach

* Chore: Fix data race in SSO Setting implementation Upsert method

* Chore: fix typo in comment
2024-02-05 16:41:38 -03:00
Brendan O'Handley
b6373249d3 Prometheus: Update prometheus frontend library codewowners (#81912)
update prometheus frontend library codewowners
2024-02-05 21:06:04 +02:00
Isabella Siu
81da3ff753 CloudWatch: Remove dependencies on grafana/pkg/setting (#81208) 2024-02-05 13:59:32 -05:00
William Wernert
2ab7d3c725 Alerting: Receivers API (read only endpoints) (#81751)
* Add single receiver method

* Add receiver permissions

* Add single/multi GET endpoints for receivers

* Remove stable tag from time intervals

See end of PR description here: https://github.com/grafana/grafana/pull/81672
2024-02-05 20:12:15 +02:00
Jev Forsberg
49b49e28af Baldm0mma/xy tooltip tests (#81746)
* baldm0mma/xyTooltipTests/ add first tests

* passing test!!!

* baldm0mma/xyTooltipTests/ add tests

* baldm0mma/xyTooltipTests/ revert destructure move

* baldm0mma/xyTooltipTests/ clean up test

* baldm0mma/xyTooltipTests/ update test names

* baldm0mma/xyTooltipTests/ ignore ts issue

* baldm0mma/xyTooltipTests/ update any

* baldm0mma/xyTooltipTests/ add follwing types

* baldm0mma/xyTooltipTests/ remove "field"

* baldm0mma/xyTooltipTests/ remove debug
2024-02-05 10:10:53 -07:00
Leon Sorokin
d5ac9340e5 Histogram: Add approx bucket count option (#80990) 2024-02-05 11:09:36 -06:00
renovate[bot]
ce0c6a9787 Update dependency webpack to v5.90.1 (#81901)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-05 18:49:20 +02:00
renovate[bot]
6a1f58df3b Update dependency rudder-sdk-js to v2.48.1 2024-02-05 16:26:59 +00:00
Josh Hunt
57993f65ed Chore: webpack alias react and grafana-runtime to share singletons (#81789)
* Chore: webpack alias react and grafana-runtime to share singletons

* Move alias to dev webpack, add alias for grafana-data as well

* remove whitespace
2024-02-05 16:25:19 +00:00
Jo
7852ea012d Access: Remove split scopes feature toggle (#81874)
* remove split scopes FT

* Revert "remove split scopes FT"

This reverts commit 349fb081d3.

* make toggle deprecated instead

* fix gen
2024-02-05 17:00:19 +01:00
Gabriel MABILLE
596e828150 Fix: Refresh token when id_token is expired (#79569)
* Fix: Refresh token when id_token is expired

* add id_token comparison

* Fix wire

* Use userID as cache key

* Apply suggestions from code review

---------

Co-authored-by: linoman <2051016+linoman@users.noreply.github.com>
Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
2024-02-05 16:44:25 +01:00
renovate[bot]
62806e8f8c Update dependency react-zoom-pan-pinch to v3.4.2 2024-02-05 15:43:48 +00:00
Torkel Ödegaard
1fe32ce36e FieldOptions: Revert scalable unit option as we already support this via custom prefix/suffixes (#81893)
* StandardFieldOptions: Revert scalable unit option

* forgot to save merge fixes
2024-02-05 16:42:22 +01:00
Diego Augusto Molina
b02f0b926a Settings: Fix data race when dynamically overriding settings with environment variables (#81667)
Chore: Fix data race when dynamically overriding settings with environment variables
2024-02-05 12:25:54 -03:00
Matias Chomicki
c87e4eb724 Log rows: add re-renders test cases (#81566)
* Log rows: add re-renders test cases

* Logs panel: add re-render test cases

* Logs panel: update setup and properly trigger rerenders
2024-02-05 17:20:50 +02:00
Torkel Ödegaard
61c7fcc270 DashboardScene: Action toolbar progress (#81664)
* DashboardScene: Action toolbar progress

* Add discard confirmation modal

* minor fix

* Update

* tweaked

* Updating

* Progress

* Update

* Update

* Added some unit tests

* fix test

* Change name to Exit edit

* Tweaks

* fix test

* Minor margin fix

* Move share to left of edit
2024-02-05 16:08:12 +01:00
renovate[bot]
9b18a4d45e Update dependency react-virtualized-auto-sizer to v1.0.22 2024-02-05 14:46:27 +00:00
Darren Janeczek
96772e1a32 datatrails: improve handling of error states and disable states (#81669)
* fix: Cascader: allow disabled state

* fix: datatrails metrics selection scene stability
  - clear panels and filter data when datasource changes
  - detect metric names loading / error state and disable components accordingly
  - put all scene variable dependencies together
  - reset metric names without clearing panels when time range changes
2024-02-05 09:45:47 -05:00
renovate[bot]
fca19a7ba6 Update dependency prettier to v3.2.5 2024-02-05 14:29:20 +00:00
Torkel Ödegaard
d3f7231a27 DashboardScene: Reload when someone else saves changes (#81855)
* DashboardScene: Reload when someone else saves changes

* Update public/app/features/dashboard-scene/pages/DashboardScenePage.tsx

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>

* Fixes

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-02-05 15:25:12 +01:00
Sonia Aguilar
8f65e36b06 Alerting: Show warning when cp does not exist and invalidate the form (#81621)
* Show warning when cp does not exist and invalidate the form

* Set error in contact selectedContactPoint form field manually

* use RHF validate and trigger

* Fix defaultvalue not being set in contact point and update the error message text

* Simplify refetchReceivers prop definition in ContactPointSelectorProps

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-02-05 15:14:08 +01:00
renovate[bot]
d63590112f Update dependency @testing-library/jest-dom to v6.4.2 2024-02-05 14:07:30 +00:00
brendamuir
ba70ee9b50 Docs: adds update to x-provenance (#81863)
* Docs: adds update to x-provenance

* Prettier

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-02-05 15:06:28 +01:00
Jack Westbrook
6009425035 Chore: Bump follow-redirects to latest (#81806)
chore(yarn): bump follow-redirects to please dependabot
2024-02-05 14:21:50 +01:00
renovate[bot]
4d5ec1096f Update dependency moment-timezone to v0.5.45 (#81881)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-05 12:58:17 +00:00
renovate[bot]
d17a77f4a2 Update dependency @types/react to v18.2.53 (#81879)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-05 12:36:43 +00:00
ismail simsek
2002a6c4fb Chore: Bump grafana-azure-sdk-go to v1.12.0 and expose AzureAuthEnabled value in config (#81807)
* upgrade grafana-azure-sdk-go v1.12.0

* add AzureAuthEnabled to config
2024-02-05 13:36:33 +01:00
Laura Benz
80e58f98a7 I18n: Fix path for Crowdin upload (#81733)
* refactor: upload action

* refactor: move parameters from config to download action
2024-02-05 13:33:37 +01:00
ismail simsek
35514d7bc6 Chore: Update grafana-prometheus test types (#81816)
* Update types

* update betterer
2024-02-05 14:15:54 +02:00
renovate[bot]
b6668b47ef Update dependency @types/node to v20.11.16 (#81876)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-05 13:47:15 +02:00
Torkel Ödegaard
a5d890984b Dashbboard: Fixes time picker schema default issues (#81847)
* Dashbboard: Fixes time picker schema default issues

* Fix tests

* fix imports
2024-02-05 12:32:59 +01:00
renovate[bot]
b2730d194b Update dependency @types/jest to v29.5.12 (#81875)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-05 11:31:21 +00:00
Torkel Ödegaard
071b301e39 Dashboard: Dashboard schema fixes and scene to save model fixes (#81867) 2024-02-05 12:27:44 +01:00
renovate[bot]
9fab7bd27d Update dependency @testing-library/react to v14.2.1 (#81872)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-05 10:53:17 +00:00
Joao Silva
ded0554bac TextLink: Do not strip base from external urls (#81799) 2024-02-05 10:48:08 +00:00
renovate[bot]
f9c54abdcf Update dependency @glideapps/glide-data-grid to v6.0.3 2024-02-05 12:17:45 +02:00
Torkel Ödegaard
6e3048c6fa DashboardScene: move overlay out from each edit view (#81852) 2024-02-05 11:17:33 +01:00
Gábor Farkas
ddf124de9d intervalv2: use duration-formatting logic from plugin-sdk-go (#81690) 2024-02-05 11:00:41 +01:00
renovate[bot]
5c9913b65d Update dependency @floating-ui/react to v0.26.9 (#81869)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-05 11:56:12 +02:00
Ashley Harrison
dcf58555e8 Chore: Some test type fixes (#81812)
some test type fixes
2024-02-05 09:47:30 +00:00
renovate[bot]
e50916ae64 Update dependency @testing-library/jest-dom to v6.4.1 (#81820)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-05 09:36:02 +00:00
Sofia Papagiannaki
c1547162e4 Dashboards: Restore deleted index (#81859)
Dashboards: Recreate deleted index
2024-02-05 11:35:13 +02:00
Hugo Kiyodi Oshiro
ed62aefeb0 Plugins: Never disable add new data source for core plugins (#81774) 2024-02-05 09:32:58 +01:00
Gabriel MABILLE
d9f7eda284 AuthN: Switch externalServiceAccounts toggle to public preview (#81583) 2024-02-05 09:31:20 +01:00
Sofia Papagiannaki
ec5bc7c4ab Folders: Fix failure to update folder in SQLite (#81795) 2024-02-05 10:06:11 +02:00
Gábor Farkas
8175b31e16 sql: make sure queries do not have fill-params (#81576) 2024-02-05 08:08:35 +01:00
Ryan McKinley
202eecccbc K8s: Update common openapi generation scripts (#81857) 2024-02-04 22:37:10 +02:00
Tania
14a36b4040 Folders: Forbid performing operations on folders via dashboards HTTP API (#81264)
* Forbid creating folders via dashboard api

* Update delete endpoint

* Update docs
2024-02-04 01:16:19 +01:00
Darren Janeczek
bd0fd21852 fix: datatrails verify different time range before creating new history node (#81839)
fix: datatrails verify different time range
2024-02-03 10:20:04 -05:00
Ryan McKinley
ba3ee60711 K8s: Allow more control over the final openapi results (#81829) 2024-02-02 14:19:45 -08:00
Ryan McKinley
651faff08a Chore: go mod tidy after apiserver refactor (#81824) 2024-02-02 23:03:19 +02:00
Kevin Minehart
68345b9596 CI: Add dagger cloud token to PR steps for caching (#81817)
* Add dagger cloud token to steps for caching

* lint
2024-02-02 12:59:48 -06:00
lean.dev
f23b993014 CloudWatch: Only override contextDialer when using PDC (#80992) 2024-02-02 15:45:57 -03:00
renovate[bot]
d65df0191b Update dependency react-hook-form to v7.50.0 (#81796)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-02 19:30:27 +02:00
fabienne-m
9b4b0eed99 Add translations for new navigation items pdc and collector (#81351)
* Add translations for new navigation items pdc and collector

* run yarn i18n:extract

* run prettier
2024-02-02 16:46:50 +00:00
Ryan McKinley
ed925c81d4 Chore: deprecate/remove folderId from more typescript (#81194) 2024-02-02 18:42:43 +02:00
Isabel
5d7ed2319f Docs: Restructure configure thresholds docs (#81519)
* Removed intro text and About thresholds heading

* Added Threshold options H2 with sub-headings and moved Default thresholds to H2

* Rearranged sections and added lorem ipsum placeholder text

* Updated heading to Add a threshold, moved delete content to after task, and reformatted task

* Replaced lorem ipsum text with TBA

* Fixing UI option names

* Docs: Edit configure thresholds page (#81520)

* Added contractions

* Added Threshold value heading and updated options information

* Rewrote task

* Added Supported visualizations section, updated links, and made general copy edits

* Copy edits

* Added screenshots for some examples

* Edited intro section

* Added table, removed note, and added note about options

* Updated table and removed bullet list

* Added table of threshold examples, other copy edits

* Applied suggestions from review

* Fixed deprecation note

* Updated deprecation note

* Replaced local images with uploaded images

* Fixed deprecation note
2024-02-02 11:06:36 -05:00
Andrej Ocenas
de4171862c Tempo: Add custom headers middleware for grpc client (#81693) 2024-02-02 16:49:51 +01:00
Fabrizio
4f1f5636bb Tempo: Support backtick strings (#81802) 2024-02-02 16:48:30 +01:00
Jack Westbrook
aaada8efcf Chore: Refresh yarn lock file (#81803)
chore(yarn): refresh lock file
2024-02-02 17:07:05 +02:00
Oscar Kilhed
bdb592d9ec Scenes: Refactor panel editor tab counts (#81777)
* refactor editor tab counts

* Capitalize tab component property since it's a component
2024-02-02 16:04:23 +01:00
ismail simsek
75c2d39f79 Prometheus: Create Prometheus library (#81641)
* Move to the library

* copy from library

* move them in src

* have additional files

* add unmigrated/dulicated code and files

* migrate from brendan's pr
module.ts, query_hints.ts, tracking.ts, and remove plugin.json

* migrate from brendan's pr
metric_find_query.test.ts

* migrate from brendan's pr
language_utils.test.ts

* migrate from brendan's pr
index.ts in root and in configuration

* migrate from brendan's pr
datasource.test.ts

* migrate from brendan's pr
typings folder

* migrate from brendan's pr
querycache folder

* migrate from brendan's pr
monaco-query-field folder

* migrate from brendan's pr
components folder without monaco-query-field folder

* migrate from brendan's pr
configuration/overhaul folder

* migrate from brendan's pr
AlertingSettingsOverhaul.tsx

* Remove azure related code

* migrate from brendan's pr
ConfigEditor.tsx, DataSourceHttpSettingsOverhaul.tsx, ExemplarSetting.tsx, configuration/mocks.ts, PromSettings.test.tsx, PromSettings.tsx

* migrate from brendan's pr
useFlag.ts

* migrate from brendan's pr
metrics-modal folder

* migrate from brendan's pr
files inside components folder

* migrate from brendan's pr
LabelFilters* files because they are now under components folder

* migrate from brendan's pr
files under querybuilder/shared folder

* migrate from brendan's pr
aggregations.ts, QueryPattern.tsx, QueryPatternsModal.tsx, state.ts, testUtils.ts under querybuilder folder

* Apply Ivana's PR https://github.com/grafana/grafana/pull/81656

* Apply jack's suggestions in this PR https://github.com/grafana/grafana/pull/77762

* Apply Ivana's PR https://github.com/grafana/grafana/pull/81656

* Fix type import

* add monaco-promql to transformIgnorePatterns to run prometheus frontend library tests

* remove Loki specific tests because we removed Loki code to decouple Loki

* add prometheus specific references

* We are moving these betterer issues from core Prometheus to the Library and we promise to remove all issues in the future, thank you

* include prometheus library in package.json

* add yarn lock with prometheus frontend library

* decouple final core import from metric_find_query.test.ts

* run prettier

* fix core imports in promqail

* fix lint errors

* run prettier

* add grafana-ui to devdeps to fix lint errors

* update yarn.lock

* grafana-ui fix

* trying to fix grafana-ui type errors with lerna drone check

* trying to fix grafana-ui type errors with lerna drone check

* trying to fix grafana-ui type errors with lerna drone check

* trying to fix grafana-ui type errors with lerna drone check

* try to pass typecheck

---------

Co-authored-by: Brendan O'Handley <brendan.ohandley@grafana.com>
2024-02-02 15:30:14 +01:00
Esteban Beltran
89271df647 Chore: Levitate to ignore private packages for compatibility comparison (#81798) 2024-02-02 16:25:32 +02:00
Ashley Harrison
a30f8645d1 Chore: Migrate frontend platform code to use data-testid for selectors (#81787)
* migrate some stuff from aria-label to data-testid

* convert styles to objects

* fix unit tests

* empty commit to kick drone now enterprise branch is there
2024-02-02 13:26:37 +00:00
Sofia Papagiannaki
cf6ebb0548 Swagger: Remove redundant annotation (#81780) 2024-02-02 15:11:23 +02:00
renovate[bot]
ab00276d6f Update dependency mini-css-extract-plugin to v2.8.0 (#81793)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-02 15:00:59 +02:00
Matias Chomicki
e749c2b062 Infinite scroll: implementation clean up (#81725)
* Infinite scroll: clean up for clarity

* Infinite scroll: clean up test

* Formatting

* Infinite scroll: disable by feature flag

* Infinite scroll: improve visibility of the lower loader
2024-02-02 14:45:20 +02:00
renovate[bot]
574078b977 Update dependency webpack to v5.90.1 2024-02-02 12:39:20 +00:00
Gábor Farkas
c92d3b002b sql: use interval-formatting from the sdk (#81764) 2024-02-02 13:18:22 +01:00
renovate[bot]
e9b8406598 Update dependency swc-loader to v0.2.4 (#81785)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-02 12:18:11 +00:00
Laura Fernández
42cd4266b4 ReturnToPrevious: make href optional (#81691) 2024-02-02 13:14:58 +01:00
Gilles De Mey
e1197641f3 Alerting: Fixes for pending period (#81718) 2024-02-02 12:58:04 +01:00
Ivana Huckova
f2936d6695 Elasticsearch: Fix creating of legend so it is backward compatible with frontend produced frames (#81708)
* Elasticsearch: Fix creating of legend so it is backward compatible with frontend produced frames

* Update tests
2024-02-02 12:47:45 +01:00
renovate[bot]
50cd4c0f0f Update dependency react-zoom-pan-pinch to v3.4.1 2024-02-02 11:34:38 +00:00
Oscar Kilhed
ae5e49e5ce Chore: Address flaky test in PanelDataTransformationsTab.test.tsx (#81779)
* address flaky test

* Disable flaky tests
2024-02-02 13:33:32 +02:00
renovate[bot]
35922a45f8 Update dependency nanoid to v5.0.5 2024-02-02 11:06:25 +00:00
renovate[bot]
8d980fef71 Update dependency @types/react to v18.2.51 2024-02-02 10:31:11 +00:00
Misi
5da4021ea0 Auth: Fix routing of SSO setting pages (#81762)
Fix ac.Parameter
2024-02-02 11:14:22 +01:00
Gabriel MABILLE
4a1e8f3d98 RBAC: Reject plugin registrations without a name (#81719)
* RBAC: Reject plugin registrations without a name

* Lint'
2024-02-02 11:12:00 +01:00
Mikel Vuka
65e9990a87 Elasticsearch: Implement CheckHealth method in the backend (#81671)
* Elasticsearch: Implement CheckHealth method

* improve logger output

* remove frontend healthcheck

* Revert "remove frontend healthcheck"

This reverts commit 676265f39e.

* adapt test

---------

Co-authored-by: Sven Grossmann <svennergr@gmail.com>
2024-02-02 11:08:52 +01:00
Sofia Papagiannaki
6f02d193f6 Provisioning: Fix failure to save dashboard (#81694) 2024-02-02 09:55:29 +00:00
renovate[bot]
ab6aa8fe2f Update dependency @types/node to v20.11.16 2024-02-02 09:54:54 +00:00
Torkel Ödegaard
115dfc0fd8 DashboardScene: Detect updated saved dashboard version and load new scene (#81715) 2024-02-02 10:53:41 +01:00
Eugene Klimov
702e22806c Plugins Proxy: Allow using {{ .URL }} inside "routes" section in plugin.json (#80858)
Signed-off-by: Slach <bloodjazman@gmail.com>
Co-authored-by: Andres Martinez Gotor <andres.mgotor@gmail.com>
2024-02-02 09:23:07 +01:00
Esteban Beltran
ea243b536c Levitate: fix markdown diff format (#81477)
* Add some fake breaking changes

* try to generate another breaking chnage

* Keep trying

* Update levitate script

* Add fake breaking changes

* Use latest

* Strip ansi

* Test

* Remove ansi stripping

* ClearAnsi again

* another regex

* Revert some changes used for testing

* Rename function

* Fix indentation in levitate workflow

* Remove test breaking changes

* Remove breaking changes

* Update actions

* Trigger breaking change

* restore file
2024-02-02 09:19:30 +01:00
Leon Sorokin
86b16ea62a Histogram: Start y-axis at 0, set default color mode to classic palette (#81759) 2024-02-02 01:57:08 -06:00
Ryan McKinley
795eb4a8d8 K8s/Snapshots: Add dashboardsnapshot api group (#77667) 2024-02-01 22:40:11 -08:00
Ryan McKinley
810d14d88f K8s: use --runtime-config={group}/{version}=true to enabled APIs (#81614) 2024-02-01 22:06:28 -08:00
Michael Mandrus
7464ea4346 Feature Toggles: Switch feature toggle admin page over to k8s API (#80854)
* add handling for legacy and k8s apis to frontend

* use backend srv directly not redux

* add unit test to make sure the correct apis are being called

* require api server flag

* fix feature toggle name

* ensure both pages work correctly

* make consistent with legacy api

* implement webhook update

* fix unit test

* remove old apis and update

---------

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-02-01 23:52:02 -05:00
Ryan McKinley
9c9e5e68c8 User: Add uid colum to user table (#81615) 2024-02-01 18:14:10 -08:00
Ryan McKinley
9d17f6e6aa Transformers: Do not add transformation info to output frames (#81747) 2024-02-01 17:17:30 -08:00
renovate[bot]
315d3a7a72 Update dependency @types/jest to v29.5.12 2024-02-02 00:27:44 +00:00
Isabel
10bde9ce9c Docs: add missing supported visualizations (#81668)
* Added Supported visualizations sections and missing settings for value mappings

* Updated supported visualizations table and added docs ref links

* Updated supported visualizations table

* Removed placeholder headings and accidentally added section to data links page

* Added missing visualization
2024-02-01 19:25:54 -05:00
renovate[bot]
e6a4992f37 Update dependency @testing-library/react to v14.2.1 2024-02-01 23:37:30 +00:00
renovate[bot]
147db1a667 Update dependency @testing-library/jest-dom to v6.4.1 2024-02-01 23:09:28 +00:00
Galen Kistler
f73d0eb41c Transformations: Expose "keep fields" option in partition by values (#81743)
* expose keep fields to partitionByValues UI
2024-02-01 17:08:02 -06:00
Todd Treece
67b6be5515 K8s: Refactor config/options for aggregation (#81739) 2024-02-01 17:27:30 -05:00
Torkel Ödegaard
7a17963ab9 Scenes: Update to 2.4 (#81723)
* Scenes: Update to 2.4
2024-02-02 00:10:15 +02:00
Yuri Tseretyan
d1073deefd Alerting: Time intervals API (read only endpoints) (#81672)
* declare new API and models GettableTimeIntervals, PostableTimeIntervals
* add new actions alert.notifications.time-intervals:read and alert.notifications.time-intervals:write.
* update existing alerting roles with the read action. Add to all alerting roles.
* add integration tests
2024-02-01 15:17:13 -05:00
William Wernert
7e939401dc Alerting: Introduce initial common receiver service (#81211)
* Create locking config store that mimics existing provisioning store

* Rename existing receivers(_test).go

* Introduce shared receiver group service

* Fix test

* Move query model to models package

* ReceiverGroup -> Receiver

* Remove locking config store

* Move convert methods to compat.go

* Cleanup
2024-02-01 14:42:59 -05:00
renovate[bot]
80ef96e213 Update dependency @glideapps/glide-data-grid to v6.0.2 2024-02-01 19:17:40 +00:00
ismail simsek
372cf797d1 Chore: Update tests and import orders in prometheus backend (#81732)
* use fmt instead of grafana-cli/log

* reorder imports

* reorder imports
2024-02-01 20:16:21 +01:00
ismail simsek
8fea101931 Chore: Use maputil functions from grafana-azure-sdk-go (#81734)
use maputil functions from grafana-azure-sdk-go
2024-02-01 20:16:07 +01:00
renovate[bot]
780c28be2d Update dependency dangerously-set-html-content to v1.1.0 (#80824)
* Update dependency dangerously-set-html-content to v1.1.0

* allow rerender and use ' ' for empty state to prevent throwing

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-02-01 20:50:22 +02:00
Sofia Papagiannaki
19ba211461 Swagger: Update specifications (#81735) 2024-02-01 19:56:47 +02:00
lean.dev
7ab833d28c Licensing: Redact license when overriden by env variable (#81726) 2024-02-01 14:37:36 -03:00
Jack Baldry
2d83feaa5b Add aliases for Grafana Cloud locations so that these pages can be moved (#81731) 2024-02-01 17:16:03 +00:00
ismail simsek
8fc8b03d1d Prometheus: Remove featuremgmt imports (#81586)
* remove featuremgmt imports

* pass down feature flags instead of reading them for every query execution
2024-02-01 18:07:32 +01:00
brendamuir
95f90127ad Alerting docs: rename provisioning files (#81722) 2024-02-01 17:50:29 +01:00
Alexa V
62c8584443 Dashboard: Migration - Edit Variable Settings: Implement "Add new" and Remove "Discard Changes" (#81660)
* enable "add" new variables and implement logic

* Remove discard changes code as we will not follow that pattern for now

* Add unit test of the onAdd function

* add unit test for utils functions
2024-02-01 17:07:59 +01:00
Kyle Brandt
959c80daf6 k8S: (Chore) Add arg to hack codegen to filter openapi generation (#81720) 2024-02-01 11:06:51 -05:00
Alyssa Bull
312fdf9ce0 Cloud Monitoring: Fix naming (#81654) 2024-02-01 09:05:54 -07:00
Sonia Aguilar
cd0f299297 Alerting: Update logic for checking if contact point is being used (#81713)
Don't count autorgenerated policy in receiver level when checking if contact point is used
2024-02-01 17:04:41 +01:00
Ivana Huckova
3251b2e9b7 Decouple: Make eslint rules stricter and don't allow import of anything from public (#81711)
Decouple: Make eslint rules stronger and don't allow import of anything from public
2024-02-01 16:37:29 +01:00
Gilles De Mey
7f1138dfe6 Alerting: Fix selecting empty contact point value for notification policy inheritance (#81482) 2024-02-01 16:11:23 +01:00
George Robinson
0726c7c3fa Alerting: Prevent inhibition rules in Grafana Alertmanager (#81712)
This commit prevents saving configurations containing inhibition
rules in Grafana Alertmanager. It does not reject inhibition
rules when using external Alertmanagers, such as Mimir. This meant
the validation had to be put in the MultiOrgAlertmanager instead of
in the validation of PostableUserConfig. We can remove this when
inhibition rules are supported in Grafana Managed Alerts.
2024-02-01 14:53:15 +00:00
Oscar Kilhed
88feccf632 Dashboards: Add duration to dashboard init tracking (#81637)
* Add duration to dashboard init

* remove optional chaning, performance should be there

* Fix tests
2024-02-01 15:52:27 +01:00
Bruno
89fb56bc11 Add secureSocksDSProxyEnabled label to grafana_datasource_request_duration_seconds (#80910)
* Add secureSocksDSProxyEnabled label to grafana_datasource_request_duration_seconds

* rename label from secureSocksDSProxyEnabled to secure_socks_ds_proxy_enabled

* DataSourceMetricsMiddleware: add secure_socks_ds_proxy_enabled label to every metric
2024-02-01 11:42:43 -03:00
Bruno
2332bfb007 Set DatasourceName and DatasourceType in proxy.Options (#80923)
* Set DatasourceName and DatasourceType in proxy.Options

* upgrade github.com/grafana/grafana-plugin-sdk-go to v0.206.0 and fix merge conflicts
2024-02-01 11:09:58 -03:00
Piotr Jamróz
d7ded807a2 Explore: Disable cursor sync (#81698) 2024-02-01 15:09:48 +01:00
Piotr Jamróz
572c182a81 Unify frontend monitoring (#80075)
* Unify frontend monitoring

* Add missing mock

* Add missing mock

* Keep source:sandbox

* Create separate logger for plugins/sql package

* chore: rename "logAlertingError" to "logError"

* Use internal Faro logging for debugging instead of redundant browser logging

* Post-merge fix

* Add more docs about debug levels

* Unify logger names

* Update packages/grafana-runtime/src/utils/logging.ts

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>

* Update packages/grafana-runtime/src/utils/logging.ts

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
2024-02-01 15:08:40 +01:00
Torkel Ödegaard
7c2622a4f1 ShareModal: Fixes url sync issue that caused issue with save drawer (#81706)
* ShareModal: Fixes url sync issue that caused issue with save drawer

* Updated fix
2024-02-01 15:07:01 +01:00
Gilles De Mey
7f6806e220 Alerting: Refactor useExternalDataSourceAlertmanagers (#81081) 2024-02-01 14:18:43 +01:00
Gilles De Mey
eb889c41ee Alerting: Fix support check for export with modifications (#81602) 2024-02-01 14:17:48 +01:00
Ashley Harrison
3e01ba0f57 QueryEditor: remove slateAutocomplete toggle (#81696)
remove toggle
2024-02-01 13:03:11 +00:00
Andre Pereira
d0ecf863df Datatrails: Metric as breadcrumb and style improvements (#81661)
* Fixed duplicate trails entry for first time users. Show header with description for first time users

* Renamed trail to history in History component

* Use metric name in breadcrumb

* Style tweaks around search field in metric select

* Address PR comments

* prettier
2024-02-01 13:01:24 +00:00
kay delaney
874ce14f0c Scenes/PanelEditor: Add support for overrides tab and searching (#81595) 2024-02-01 12:48:07 +00:00
Ivana Huckova
9de5e9754c Loki: Add to .eslintrc list to restrict imports from core (#81710)
Loki: Add to .eslintrc list to restrict imports from core
2024-02-01 14:46:32 +02:00
Fabrizio
2d60c0123b Chore: Improve how we install Python (#81695) 2024-02-01 13:27:29 +01:00
Ivana Huckova
fe1ed307c0 Loki: Use fixed components from @grafana/experimental 1.7.9 (#81636)
* Loki: Use fixed components from experimental

* Update

* Remove downloads.html
2024-02-01 13:22:18 +01:00
Ivana Huckova
1671b77546 Loki: Fix processing of all lines labels in getParserAndLabelKeys (#81483)
* Loki: Fix processing of all lines labels in getParserAndLabelKeys

* Refactor

* Update comment
2024-02-01 13:22:03 +01:00
Josh Hunt
85a745ca9d I18n: Trigger crowdin upload (#81704) 2024-02-01 12:15:32 +00:00
Laura Benz
967a650d2d I18n: Refactor crowdin workflow (#81571)
* refactor: crowdin config

* feat: add GH actions

* refactor: remove old GH action

* refactor: fix formatting issue

* refactor: adjust docs

* refactor: add changes after code review

* refactor: add changes after code review

* refactor: update CODEOWNERS file
2024-02-01 11:44:18 +00:00
brendamuir
bac4c7fb32 Alerting docs: corrects save text (#81700)
* Alerting docs: corrects save text

* updates numbering
2024-02-01 12:43:11 +01:00
Gabriel MABILLE
3df0611f81 RBAC: Fix authorize in org (#81552)
* RBAC: Fix authorize in org

* Implement option 2

* Fix typo

* Fix alerting test

* Add test to cover the not member case
2024-02-01 12:37:01 +01:00
Joao Silva
0f1ba3a9fe Chore: Change codeowners of annotations folder (#81551) 2024-02-01 10:59:47 +00:00
ismail simsek
536153c336 InfluxDB: Run queries in parallel behind influxdbRunQueriesInParallel feature toggle (#81209)
* create the feature flag

* bring the concurrency in to the play

* Update feature flag

* Use concurrency number from settings

* update influxdb dependency

* use ConcurrentQueryCount from plugin-sdk-go

* use helper method for concurrent query count

* log the error

* add value guard

* add unit tests

* handle concurrency error
2024-02-01 11:58:24 +01:00
Mihai Doarna
c43a170009 SSO Auth: fix typos on field description (#81685)
fix typos on field description
2024-02-01 11:27:39 +01:00
ismail simsek
4561863fca Chore: Remove unused header params in prometheus request (#81684)
Remove unused header params
2024-02-01 11:17:38 +01:00
Joey
fd54d25496 Tempo: Fix issue with button click area being too large (#81500)
Fix issue with button click area being too large
2024-02-01 09:48:18 +00:00
Joey
1606095a5c Tempo: Remove unused code (#81568)
* Remove unused code

* Remove unused code from tests
2024-02-01 09:48:04 +00:00
idafurjes
1a51240dc7 Remove some folderIDs from database test (#81643)
* Remove some folderIDs from database test

* Add folderUID to insertTestDashboardForPlugin
2024-02-01 10:13:15 +01:00
Alex Khomenko
a416bd761d Chore: Remove Form usage from admin components (#81618)
* Chore: Remove Form usage from AdminEditOrgPage

* Chore: Remove Form usage from UserCreatePage.tsx

* Chore: Transform LdapPage to FC

* Chore: Remove Form usage from LdapPage.tsx
2024-02-01 07:58:50 +02:00
ismail simsek
177fa1b947 InfluxDB: Fix template variable interpolation (#80971)
* use regex as templateSrv replace format

* use regex as templateSrv replace format for raw queries

* import path fix

* don't use regex formatter

* tag value escape

* tag value escape with wrappers

* polished interpolation logic

* update unit tests

* comments and more place to update

* unit test update

* fix escaping

* handle the string and array of string type separately

* update variable type
2024-02-01 00:30:21 +01:00
ajwerner
c9bdf69a46 Stat: Fix data links that refer to fields (#80693) 2024-02-01 01:08:40 +02:00
Dai Nguyen
11997a6d35 Docs: Grafana.com skip_org_role_sync update (#80770)
* Update Grafana.com org sync index.md

Included additional information regarding logging in with Grafana.com credentials that it will override what is defined within the Grafana instance.

* Update docs/sources/setup-grafana/configure-security/configure-authentication/grafana-com/index.md

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

---------

Co-authored-by: Eve Meelan <81647476+Eve832@users.noreply.github.com>
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2024-02-01 00:03:08 +01:00
Matthew Jacobson
0ce1ccd6f9 Alerting: Fix inconsistent AM raw config when applied via sync vs API (#81655)
AM config applied via API would use the PostableUserConfig as the AM raw
config and also the hash used to decide when the AM config has changed.
However, when applied via the periodic sync the PostableApiAlertingConfig would
be used instead.

This leads to two issues:
- Inconsistent hash comparisons when modifying the AM causing redundant applies.
- GetStatus assumed the raw config was PostableUserConfig causing the endpoint
to return correctly after a new config is applied via API and then nothing once
 the periodic sync runs.

Note: Technically, the upstream GrafanaAlertamanger GetStatus shouldn't be
returning PostableUserConfig or PostableApiAlertingConfig, but instead
GettableStatus. However, this issue required changes elsewhere and is out of
scope.
2024-01-31 21:05:30 +02:00
Ryan McKinley
e013cd427c K8s: Add basic query service (#80325) 2024-01-31 20:36:51 +02:00
Galen Kistler
d1b938ba15 Logs: Table UI - Allow users to resize field selection section (#81201)
* allow user resize of fields section in table ui

---------

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2024-01-31 19:58:02 +02:00
Alex Khomenko
1749ec9d5e Chore: Remove Form usage from SharedPreferences.tsx (#81468)
* Chore: Remove Form usage from SharedPreferences.tsx

* Update betterer

* Update betterer
2024-01-31 19:33:17 +02:00
Ieva
c310a20966 AuthZ: add headers for IP range AC checks for cloud data sources (#80208)
* add feature toggle

* add a middleware that appens headers for IP range AC

* sort imports

* sign IP range header and only append it if the request is going to allow listed data sources

* sign a random generated string instead of IP, also change the name of the middleware to make it more generic

* remove the DS IP range AC options from the config file; remove unwanted change

* add test

* sanitize the URLs when comparing

* cleanup and fixes

* check if X-Real-Ip is present, and set the internal request header if it is not present

* use split string function from the util package
2024-01-31 18:09:24 +01:00
Ivana Huckova
e00aba0ce5 Prometheus: Fix OperationEditor and mounting of components (#81656)
* Prometheus: Fix OperationEditor

* Remove redundant import
2024-01-31 18:57:16 +02:00
Andrej Ocenas
cb945aa5df NodeGraph: Use layered layout instead of force based layout (#78957) 2024-01-31 17:26:12 +01:00
Mihai Doarna
395a06ab86 Auth: fix swagger responses for the SSO settings API (#81639)
fix swagger responses for the sso settings API
2024-01-31 18:06:22 +02:00
Laura Fernández
91b2909c39 ReturnToPrevious: add shadow to be consistent (#81652) 2024-01-31 17:04:34 +01:00
Alexander Zobnin
1bcd597bc0 Nested folders: Improve performance of shared with me dashboards listing (#81590)
* Nested folders: Improve performance of shared with me dashboards listing

* Fix tests

* Clean up guardian
2024-01-31 16:25:11 +01:00
Alexander Zobnin
b4d363e8fe Chore: Fix broken anonymous devices test (#81649) 2024-01-31 17:09:32 +02:00
Darren Janeczek
7319a75110 feat: datatrails: include metric prefix filter (#81316)
* feat: datatrails: include metric prefix filter

* fix: remove current metric from related metrics list

* fix: Cascader issues

- handle empty items list when generating searchable options
- correct state management to ensure cascade shows cascade
  path of selection from search

* fix: remove custom value creation
2024-01-31 09:33:27 -05:00
Darren Janeczek
c8f47e0c54 datatrails: UI improvements (#81427)
* fix: datatrails: limit width of metric description

* fix: datatrails: use vertical radio list for long label list

* fix: datatrails: reduce spacing between header items

* fix: datatrails: reduce gap in lower toolbar

* fix: change to use Select component for longer lists
2024-01-31 09:27:44 -05:00
renovate[bot]
a7f2249878 Update dependency react-zoom-pan-pinch to v3.4.0 (#81642)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-31 14:25:50 +00:00
Gábor Farkas
607ec6c96a CODEOWNERS: better root-file selection (#81633) 2024-01-31 15:02:29 +01:00
renovate[bot]
0633f5501c Update dependency dompurify to v3 (#81638)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-31 13:32:18 +00:00
renovate[bot]
5c258b7a4b Update dependency @grafana/scenes to v2.2.2 2024-01-31 14:49:08 +02:00
Ivana Huckova
c9bc937919 Loki: Limit running of samples based on query and time range (#81585)
* Loki: Limit running of samples based on query and time range

* Update
2024-01-31 13:39:07 +01:00
Ivan Ortega Alba
a9f17a3f24 QueryVariable: Be able to edit the variable using scenes (#80847) 2024-01-31 13:31:08 +01:00
renovate[bot]
0851c18b55 Update dependency @grafana/experimental to v1.7.9 2024-01-31 12:29:23 +00:00
renovate[bot]
42fe0fdf70 Update dependency date-fns to v3 (#81625)
* Update dependency date-fns to v3

* update imports

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-31 12:05:38 +00:00
Matias Chomicki
e0054c06fe DashNav: add missing key (#81626)
* DashNav: add missing key

* DashNav: use more specific key
2024-01-31 13:51:15 +02:00
Fabrizio
564a1d32b7 Add Python as dependency (#80979) 2024-01-31 12:44:22 +01:00
Dominik Prokop
f20053e4b6 DashboardScene: Allow editing panel links (#81560)
* Panel links supplier for VizPanel

* Update panel links behavior

* Allow editing panel links

* Update so that single link is rendered without a dropdown

* Serialise links in scene -> save model transformation

* Betterer fix

* Fix inspect json tab test
2024-01-31 13:30:27 +02:00
Konrad Lalik
ab891d92fb Alerting: Fix missing pagination param in the oncall request (#81620)
Add skip_pagination param to the oncall request
2024-01-31 12:09:11 +01:00
Torkel Ödegaard
3b2352f066 DashboardScene: Initial work to support "new" dashboard route and creation logic (#81549)
* DashboardScene: Initial work to get new route to work

* Update

* remove caching of new dashboard

* remove old new dashboard func

* Update

* Update public/app/features/dashboard-scene/scene/DashboardScene.tsx

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>

* Fixing test

* dam messy tests

---------

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
2024-01-31 11:33:46 +01:00
Ashley Harrison
39057552dc QueryField: Handle autocomplete better (#81484)
* extract out function + add unit tests

* add feature toggle and default it to on
2024-01-31 10:01:20 +00:00
renovate[bot]
f896072cd7 Update dependency css-minimizer-webpack-plugin to v6 (#81623)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-31 09:47:30 +00:00
renovate[bot]
612bcada41 Update dependency copy-webpack-plugin to v12 (#81613)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-31 09:28:06 +00:00
Joey
3517f0075b Tempo: Add webpack to package.json (#81577)
Add webpack to package.json
2024-01-31 09:08:32 +00:00
Joey
b9f5042044 Tempo: Add query ref in the query editor (#81343)
* Add query ref

* Fix lint

* Add comment

* Update public/app/plugins/datasource/tempo/traceql/QueryEditor.tsx

Co-authored-by: Fabrizio <135109076+fabrizio-grafana@users.noreply.github.com>

---------

Co-authored-by: Fabrizio <135109076+fabrizio-grafana@users.noreply.github.com>
2024-01-31 09:08:06 +00:00
Joey
0d9886a654 Tempo: Add span, trace vars to trace to metrics interpolation (#81046)
* Add scoped vars to query

* Update import

* Remove ternary
2024-01-31 09:07:35 +00:00
Gábor Farkas
8a4f060f75 sql: add linting rule for decoupling postgres & mysql (#81378) 2024-01-31 10:00:59 +01:00
Michael Mandrus
cbd2032aea Feature Toggles: Remove DocsURL from FeatureFlag struct (#79774)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-01-31 08:25:16 +02:00
renovate[bot]
12d08d5e7d Update dependency @testing-library/react to v14.2.0 (#81612)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-31 01:00:51 +00:00
renovate[bot]
ae7d8624e9 Update dependency @types/node to v20.11.13 2024-01-31 00:36:16 +00:00
Nathan Marrs
b0130ecb82 Canvas: Add element snapping and alignment (#80407)
Co-authored-by: drew08t <drew08@gmail.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2024-01-30 15:37:46 -08:00
renovate[bot]
c377644c48 Update dependency @types/google.analytics to ^0.0.46 (#81604)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-30 23:32:33 +00:00
Ryan McKinley
2ffd56c23b K8s: Improve OpenAPI behaviour (#81606) 2024-01-31 01:17:14 +02:00
Drew Slobodnjak
6fc1a6a54f XYChart: Add data filter to manual mode (#81115)
* XYChart: Add data filter to manual mode

* Add onChange to data filter for manual editor

* Update placeholder for auto editor for consistency

* Filter x y fields based on frame

* Update frame calc for truthy

* Use display name instead for frame filter

* Update placeholders

* Apply frame filter to series prep

* Re run make gen cue

* Remove old TODO

* Force data filter to be selected

* minor cleanup

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-01-30 15:09:15 -08:00
Alyssa Bull
be6efd9518 Cloud Monitoring: Add standalone files and modify plugin.json (#81596) 2024-01-30 15:52:44 -07:00
ismail simsek
1966ce609c Chore: Bump grafana-plugin-sdk-go version to v0.204.0 (#81603)
* bump grafana-plugin-sdk-go to v0.204.0

* update go.sum entry for v0.204.0
2024-01-31 00:50:42 +02:00
renovate[bot]
907ac10708 Update dependency css-loader to v6.10.0 (#81592)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-30 22:37:18 +00:00
Yuri Tseretyan
131c72d655 Alerting: Fix scheduler to group folders by the unique key (orgID and UID) (#81303) 2024-01-30 17:14:11 -05:00
ausias-armesto
5c0d7749eb Add timeout parameter to the example (#80921)
Adding the http timeout parameter to the example to know where  is needed in the yaml configuration.
2024-01-30 23:01:25 +02:00
ismail simsek
f330d50b2a Revert "Chore: Bump github.com/grafana/grafana-plugin-sdk-go to v0.203.0" (#81597) 2024-01-30 21:41:29 +01:00
Angelo Manos
df59f01cc3 Update Trace to Logs docs in configure-tempo-data-source.md (#79913)
* Update configure-tempo-data-source.md

Trace to logs documentation is unclear on a couple things. I think the context I've added will help people get things working a little easier.

* remove misunderstanding.

* Adds commas

Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>

---------

Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>
2024-01-30 22:36:29 +02:00
kay delaney
0f6380b76a Scenes: Add support for panel overrides (#81470) 2024-01-30 19:29:46 +00:00
renovate[bot]
80afc8202d Update Yarn to v4.1.0 (#81584)
* Update Yarn to v4.1.0

* commit yarn 4.1.0.cjs

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-30 18:03:46 +00:00
Ashley Harrison
43de30a09b Chore: Extract out dragHandle styles (#81280)
extract out dragHandle styles
2024-01-30 17:11:56 +00:00
Ryan McKinley
e041055012 K8s/Folders: Rename api group to singular (#81443) 2024-01-30 08:50:37 -08:00
Alyssa Bull
d26959aafe Cloud Monitoring: Add to release yml (#81580) 2024-01-30 09:48:20 -07:00
Isabel
fb1368d1ef Docs: restructure manage dashboards page (#81311)
* Added import and troubleshoot dashboards pages

* Moved import dashboards to build dashboards folder

* Updated import dashboards content

* Updated manage dashboards page

* Updated troublshooting dashboards page

* Finalized text for Import dashboards and moved orphaned content to Sharing page

* Made general copy edits to Troubleshooting dashboards

* Moved More examples heading and content from Troubleshooting to Import

* General copy edits to Troubleshooting

* Fixed broken links and made small copy edits

* Fixed broken link

* Removed note and replaced with plain text description of Dashboards page

Added to do for clarifying display of Shared with me section

* Deleted orphaned export content; to be rolled in later

* Copy edits

* Updated Shared with me section

* Copy edits

* Apply suggestions from code review

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-01-30 11:42:20 -05:00
Victor Marin
63c7096d32 Scenes: List annotations in dashboard settings (#80995)
* wip listing/viewing annotations

* list annotations in settings

* fix tests

* PR mods
2024-01-30 18:38:26 +02:00
renovate[bot]
ce39af21a2 Update dependency @grafana/scenes to v2.2.1 2024-01-30 16:27:54 +00:00
Sofia Papagiannaki
89d3b55bec Folders: Reduce DB queries when counting and deleting resources under folders (#81153)
* Add folder store method for fetching all folder descendants

* Modify GetDescendantCounts() to fetch folder descendants at once

* Reduce DB calls when counting library panels under dashboard

* Reduce DB calls when counting dashboards under folder

* Reduce DB calls during folder delete

* Modify folder registry to count/delete entities under multiple folders

* Reduce DB calls when counting

* Reduce DB calls when deleting
2024-01-30 18:26:34 +02:00
ismail simsek
0139ac205d Chore: Remove disablePrometheusExemplarSampling feature toggle (#81579)
remove disablePrometheusExemplarSampling ft
2024-01-30 17:00:04 +01:00
Jack Westbrook
6d582858f7 Webpack: Allow watching workspaces (#81569)
* build(webpack): remove symlinks:false to enable watching packages with yarn start

* build(webpack): add resolve node_modules for enterprise to resolve packages

* add comment

---------

Co-authored-by: joshhunt <josh@trtr.co>
2024-01-30 16:59:18 +01:00
Tania
b84dde7b4a Chore: Change response status for dashboard import with invalid input (#81521)
* Return BadRequest when dashboard import failed due to invalid input
2024-01-30 16:57:01 +01:00
renovate[bot]
27f3cec094 Update Yarn to v4 (#81575)
update yarn version

Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-30 17:46:36 +02:00
Misi
69a1e7b510 Auth: Remove unnecessary field from Generic OAuth UI (#81565)
* Remove unnecessary field

* Update interaction event key
2024-01-30 16:17:38 +01:00
Torkel Ödegaard
b48e1f897e Dashboard: Improve diff styling (#81509)
* Dashboard: Improve diff styling

* Update public/app/features/dashboard-scene/settings/version-history/DiffGroup.tsx

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>

* Fix

* Update

* Update

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-01-30 16:07:24 +01:00
renovate[bot]
4cf5059599 Update typescript-eslint monorepo to v6.20.0 (#81572)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-30 16:38:50 +02:00
renovate[bot]
7af58bab02 Update dependency react-use to v17.5.0 (#81570)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-30 14:15:36 +00:00
Andre Pereira
8440eadec2 Data trails: Homepage redesign (#81496)
* Rename trails and tweak styles in homepage

* Use design system card and update layout. Add createdAt date to trail

* Small style tweaks

* Move queryDef state to metricScene

* Date format update

* More style tweaks

* betterer update

* Use smaller padding on Card and use Badge istead of Tag

* Increase badge max width

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-01-30 13:51:31 +00:00
renovate[bot]
ced0cca27a Update dependency @testing-library/jest-dom to v6.4.0 (#81564)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-30 15:48:19 +02:00
Arati R
77775d548a Chore: Add some tests for the Create method (#81364)
* Add test for create method
    Co-authored-by: Tania B <10127682+undef1nd@users.noreply.github.com>
* Change structure of entity package to break import cycle
* Update wire file

---------

Co-authored-by: Tania B <10127682+undef1nd@users.noreply.github.com>
2024-01-30 14:15:12 +01:00
Giuseppe Guerra
41cd0ab12a Chore: Bump github.com/grafana/grafana-plugin-sdk-go to v0.203.0 (#81557) 2024-01-30 13:49:58 +01:00
renovate[bot]
544740dc5e Update dependency tslib to v2.6.2 (#81561)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-30 12:48:04 +00:00
Laura Fernández
8ee7b1e00c ReturnToPrevious : Add logic to show the new component in AppChrome behind the new toggle (#81035) 2024-01-30 13:34:59 +01:00
renovate[bot]
b7517330ee Update dependency rc-tree to v5.8.5 2024-01-30 12:12:41 +00:00
Nathan Vērzemnieks
ec4fafa08f Cloudwatch: Deprecate cloudwatchNewRegionsHandler feature toggle and remove core imports from featuremgmt (#81310)
* Remove core imports from grafana/pkg/services/featuremgmt in CloudWatch
2024-01-30 13:11:52 +01:00
Sven Grossmann
cc56e0e75c Logs Panel: Fix scrolling with permalinks (#81558) 2024-01-30 13:11:12 +01:00
Matias Chomicki
5c3e211777 combineFrames: add support to merge transformed data frames (#81554)
* combineResponses: account for disordered frames

* tempo: undo change

* Formatting
2024-01-30 14:02:15 +02:00
Josh Hunt
147bee4831 Fix alerting i18n keys (#81555) 2024-01-30 13:41:20 +02:00
Ida Štambuk
6e8495822a Feature Management: Move awsDatasourcesNewFormStyling to Public Preview (#81257) 2024-01-30 12:25:16 +01:00
renovate[bot]
aaa839e120 Update dependency @grafana/faro-web-sdk to v1.3.7 2024-01-30 10:57:28 +00:00
Kim Nylander
da8eb8faa5 [DOC] Fix style issues and add videos to tracing and profiling shared files (#81215)
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Ryan Perry <Rperry2174@gmail.com>
Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
2024-01-30 10:41:33 +00:00
Matias Chomicki
2a734a9e3f Supplementary queries: allow plugin decoupling by allowing providers to return a request instance (#80281)
* Supplementary queries: add support for providers returning a request instance

* Formatting

* DataSourceWithSupplementaryQueriesSupport: update getDataProvider signature

* getLogLevelFromLabels: fix buggy implementation

* getLogLevelFromKey: fix key type

Why number??

* Revert "getLogLevelFromKey: fix key type"

This reverts commit 14a95298a6f803cc3270e0421b2e04dd0d65f131.

* getSupplementaryQueryProvider: remove observable support

* Datasources: remove unnecessary check

The switch is doing the same job

* Supplementary queries: update unit test

* datasource_srv: sync mock with real api

* Formatting

* Supplementary queries: pass targets from getSupplementaryQueryProvider

* LogsVolumeQueryOptions: remove range and make extract level optional

* logsModel: add missing range to test data

* query: sync tests with changes

* Formatting

* DataSourceWithSupplementaryQueriesSupport: update interface with deprecated and new methods

* DataSourceWithSupplementaryQueriesSupport: sync Loki and Elasticsearch

* queryLogsVolume: extractLevel no longer customizable

* Loki: update test

* Supplementary queries: add support for the new method

* hasSupplementaryQuerySupport: update signature

* Formatting

* Betterer

* Query: update test

* Supplementary queries: add test for the legacy API

* Update public/app/features/explore/utils/supplementaryQueries.ts

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

---------

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2024-01-30 12:36:20 +02:00
renovate[bot]
ecf0c2c1c9 Update dependency @grafana/faro-core to v1.3.7 2024-01-30 12:23:48 +02:00
Misi
8ffcf32f83 Auth: Add interaction tracking to SSO settings UI (#81497)
Add interaction tracking
2024-01-30 11:04:55 +01:00
renovate[bot]
89e64b8f68 Update dependency immer to v10.0.3 (#81545)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-30 12:04:20 +02:00
renovate[bot]
253f797146 Update dependency @types/react-test-renderer to v18.0.7 (#81525)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-30 09:43:07 +00:00
Dominik Prokop
9d21bac45e Scenes: Bump to 2.2.0 (#81536) 2024-01-30 09:38:49 +00:00
Gabriel MABILLE
08f305797f RBAC: Add metric to count search user permissions cache hits (#81451) 2024-01-30 10:37:47 +01:00
Oscar Kilhed
d12493d654 Dashboard scenes: Display alerts in scenes dashboard (#81260)
Display alerts in scenes dashboard
2024-01-30 10:30:35 +01:00
Dominik Prokop
9982830bd7 DashboardScene: Do not hide variables on save (#81501) 2024-01-30 10:28:17 +01:00
Dominik Prokop
f77c831e3f Data query: Allow logging panel plugin id when executing queries (#81164)
* Data query: Allo logging panel plugin id when executing queries

* Update tracing header middleware

* Test fix

* Add panelPluginType to query analytics

* Cleanup
2024-01-30 00:06:31 -08:00
Adela Almasan
5ab75410e9 VizTooltip: Scrollable content for long lists (#81524)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-01-29 17:38:25 -06:00
Simon Podlipsky
464a61352c Docs: Add HAProxy rewrite information considering serve_from_sub_path setting (#80062)
* docs: specify HAProxy rewrite considering `serve_from_sub_path` setting

* Update docs/sources/tutorials/run-grafana-behind-a-proxy/index.md

Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>

* Update docs/sources/tutorials/run-grafana-behind-a-proxy/index.md

Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>

* Update docs/sources/tutorials/run-grafana-behind-a-proxy/index.md

Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>

* Update docs/sources/tutorials/run-grafana-behind-a-proxy/index.md

* Update docs/sources/tutorials/run-grafana-behind-a-proxy/index.md

Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>

---------

Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
2024-01-30 01:30:57 +02:00
renovate[bot]
574fae3f01 Update dependency @types/node to v20.11.10 (#81516)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-29 22:24:03 +00:00
Darren Janeczek
24a6e6a1b4 fix: datatrails: show a warning when search yields empty results (#81444)
* fix: datatrails: show a warning when search yields empty results
2024-01-29 16:54:56 -05:00
Leon Sorokin
226c76dc93 TimeSeries: Simplify hover proximity code (#81518) 2024-01-29 23:34:43 +02:00
renovate[bot]
12e691831d Update dependency @types/debounce-promise to v3.1.9 (#81514)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-29 22:31:34 +02:00
Kyle Brandt
43d0664340 Prometheus: (Experimental) Inject label matchers into queries (also change drone to fix ARM rpm build and Update Swagger) (#81396)
- Feature Toggle is `promQLScope`.
 - Query property is:

"scope": {
  "matchers": "{job=~\".*\"}"
 }

Misc:
 - Also updates drone GO version to address ARM bug https://github.com/golang/go/issues/58425
 - Also updates Swagger defs that were causing builds to fail

---------

Co-authored-by: Kevin Minehart <kmineh0151@gmail.com>
2024-01-29 22:22:17 +02:00
renovate[bot]
c2b64c6739 Update dependency @grafana/google-sdk to v0.1.2 (#81507)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-29 20:06:51 +00:00
Torkel Ödegaard
715143d4ed DashboardScene: Saving updates (provisioned dashboard and fixes) (#81471)
* Save provisioned dashboard

* Update

* fixes
2024-01-29 20:03:57 +01:00
ismail simsek
02acbd795d Plugins: Update grafana-plugin-sdk-go to v0.202.0 (#81489)
* update the version

* Fixup (#81503)

fixup

---------

Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
2024-01-29 18:44:53 +01:00
renovate[bot]
02db6d0f3c Update dependency @grafana/experimental to v1.7.8 (#81502)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-29 19:25:38 +02:00
renovate[bot]
630897b941 Update dependency centrifuge to v5 (#81498)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-29 17:02:32 +00:00
Torkel Ödegaard
2ce81c1a52 DashboardScene: Support detecting and ignoring variable value changes (#81448)
* DashboardScene: Saving and ignoring variable value changes

* Update
2024-01-29 17:45:18 +01:00
Kyle Brandt
1b155a02fd Prometheus: (Dataplane) Set FrameTypeVersion on Scalar type responses (#81491)
So expressions (SSE) and recorded queries (RQ) detect the response correctly
2024-01-29 11:39:23 -05:00
Gábor Farkas
ba544e5b33 postgres: tests: improved number->timestamp tests (#81495)
* postgres: tests: nicer values

* postgres: tests: add float-to-timestamp tests
2024-01-29 18:27:15 +02:00
Alyssa Bull
2d432d6ff3 Plugins: Externalize Cloud Monitoring data source (#80181) 2024-01-29 09:24:23 -07:00
William Wernert
de662810cf Alerting: Create instance of alert rule generator in historian annotation tests (#81394)
* Create generator variable to ensure closures have correct context
2024-01-29 11:22:43 -05:00
renovate[bot]
09a78a0ae9 Update dependency ansicolor to v2 (#81493)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-29 16:19:29 +00:00
Matias Chomicki
5486a111e6 parseSupportingQueryType: add missing case for infinite scroll (#81492) 2024-01-29 18:12:03 +02:00
Alexa V
e3a648e107 Dashboard: Migration - EditVariable Settings: Implement Interval Variable (#81259)
* Extract logic from core IntervalEditor and create a new Form to be shared between scenes and core
* Implement IntervalVariableEditor and refactor some utils functions
* Add unit test
2024-01-29 16:53:09 +01:00
Sonia Aguilar
da1538ba82 Alerting: Update docs after moving action buttons im the alert list, and move t… (#81375)
Update docs after moving action buttons im the alert list, and move the loading spinner
2024-01-29 16:52:34 +01:00
renovate[bot]
1ef46440b8 Update dependency @welldone-software/why-did-you-render to v8 (#81479)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-29 15:50:52 +00:00
Haris Rozajac
fc82b0286f Dashboard-Scene: Add and remove Panel Editor queries and expressions (#81027)
* wip

* Functionality for adding and deleting queries and expressions

* Remove console.log

* handle counter updates

* revert unintended change

* Revert tsconfig.json

* revert
2024-01-29 08:13:51 -07:00
Konrad Lalik
26e71953a4 Alerting: Improve integration with dashboards (#80201)
* Add filtering by dashboard UID annotation

* Update the inline doc for search

* Add AlertRulesDrawer to the dashboards toolbar

* Use DashboardPicker as a filter on the alert rules page

* Fix accessibility errors

* Update drawer subtitle

* Display Alerting toolbar button only if there are linked alert rules

* Change toolbar rendering method, prevent displaying when no linked rules

* Improve text

* Use React.lazy to load the Alert rule toolbar button and drawer when needed
2024-01-29 16:09:10 +01:00
Alex Khomenko
75e1f7aa5e Grafana/ui: Add deprecation notices to the legacy layout components (#81328) 2024-01-29 16:54:50 +02:00
Josh Hunt
8f0ae76afe Chore: Use yarn node-modules linker (#79947)
* Chore: Use yarn node-modules linker

* fix react-router types resolution

* temp skip failing tests

* remove yarn-links for internal path aliases to fix some webpack errors

* transpile all .ts files, even those in node_modules (usually our internal workspace packages

* fix transformers mock

* import react router type directly

* remove old resolution

* more cleanup

* remove preserveSymlinks: true from tsconfig to make Go To Definition resolve grafana ui to the original location

* developer guide

* update dev guide

* remove sdks

* reenable tests

* fix tsconfig trailing commas (where did they come from)
2024-01-29 14:27:35 +00:00
Brendan O'Handley
b625d60aa9 Prometheus: Only use the series endpoint in the metrics browser (#81419)
* only use the series endpoint in the metrics browser

* Update public/app/plugins/datasource/prometheus/components/PrometheusMetricsBrowser.test.tsx

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>

---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-01-29 07:56:45 -06:00
Darren Janeczek
329440cb1e fix: datatrails: hide graphs when previews disabled (#81423)
fix: datatrails: hide graph when previews disabled
2024-01-29 08:41:53 -05:00
renovate[bot]
811ce04390 Update dependency esbuild-plugin-browserslist to ^0.11.0 (#81474)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-29 13:09:36 +00:00
renovate[bot]
01d043b6fb Update dependency rc-tree to v5.8.3 2024-01-29 12:30:55 +00:00
Mihai Doarna
6b28669e1f Send empty http response when body is nil (#80196)
* build empty response if body is nil

* fix test
2024-01-29 14:17:56 +02:00
renovate[bot]
67feb0bba1 Update dependency ol-ext to v4.0.14 2024-01-29 12:03:47 +00:00
Konrad Lalik
2ab832e025 Alerting: Use only the alert condition query as the graph threshold (#81228)
Use only the alert condition query as the graph threshold
2024-01-29 13:02:04 +01:00
Torkel Ödegaard
1d5edb2a18 DashboardScene: Saving (#81163)
* DashboardScene: First save works

* Updates

* version mismatch works

* Error handling

* save current time range working

* Progress on save as

* Save as works

* Progress

* First tests

* Add unit tests

* Minor tweak

* Update

* Update isDirty state when saving
2024-01-29 12:04:45 +01:00
Misi
bcc2409564 Auth: Add validation to Generic OAuth API and UI (#81345)
* wip

* Update validation

* Chore: Remove InputControl usage

* Fixes, validation

* Remove empty option

* Validation changes

* Add tests, rename

* lint

---------

Co-authored-by: Clarity-89 <homes89@ukr.net>
2024-01-29 12:04:22 +01:00
Misi
7e96a2be56 Auth: Reload OAuth provider after deletion of the current settings (#81374)
* Reload after deletion of the current settings

* Add grafana_ssosettings_setting_reload_failure_total counter

* Returns successfully if data reload failed
2024-01-29 12:02:04 +01:00
ismail simsek
a3fda08d4e Datasources: Add concurrency number to the settings (#81212)
add concurrency to the settings
2024-01-29 11:47:28 +01:00
Sven Grossmann
ca5c297bfa Loki/Elastic: Assert queryfix value to always be string (#81349)
Fix `value` can be `string` or `number`
2024-01-29 11:46:40 +01:00
renovate[bot]
2b59db7b41 Update dependency browserslist to v4.22.3 2024-01-29 10:40:34 +00:00
Matias Chomicki
df05c79d91 Infinite scrolling: Add X-Query-Tag header (#81089) 2024-01-29 11:24:05 +01:00
Ivana Huckova
a83e01918a Loki: Remove dependecy on core and move to @grafana/o11y-ds-frontend (#81284)
* Loki: Remove dependecy on core and move to o11y-ds-frontend

* Fix ctr -> ctrl

* Remove test helpers
2024-01-29 11:19:34 +01:00
renovate[bot]
34e88077aa Update dependency @types/node to v20.11.10 2024-01-29 10:19:19 +00:00
Fabrizio
20e2f3006b Add test for TemporaryAlert (#81416) 2024-01-29 11:00:11 +01:00
renovate[bot]
26fa921547 Update dependency @swc/core to v1.3.107 2024-01-29 09:52:24 +00:00
Sonia Aguilar
2e1229b908 Alerting: Fix child provisioned polices not being rendered as provisioned (#81449)
Fix child provisioned polices not being rendered as provisioned
2024-01-29 10:51:00 +01:00
Giedrius Statkevičius
6f245121d0 Plugins: Fix colon in CallResource URL returning an error when creating plugin resource request (#79746)
* Plugin: handle colon character in path

url.Parse() does not handle the given input correctly when the input
contains a colon character. The user will see the following error
message when trying to use remote cluster in Elasticsearch:

```
level=warn msg="Failed for create plugin resource request" error="parse \"foo-*,*:foo-*/_mapping\": first path segment in URL cannot contain colon" traceID=
```

As far as I can tell, we only want to set the path here + rawquery so
avoid url.Parse() altogether.

* Add more tests

---------

Co-authored-by: Giuseppe Guerra <giuseppe@guerra.in>
2024-01-29 10:31:49 +01:00
renovate[bot]
34eb50dab3 Update dependency @floating-ui/react to v0.26.8 (#81435)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-29 09:27:35 +00:00
Oscar Kilhed
9a4534a17c Transformations: Use the display name of the original y field for the predicted field of the regression analysis transformation. (#81332)
Fix name of regression transformation field
2024-01-29 10:22:17 +01:00
Joey
d8d9121b6d Tempo: Clean up older styles (#81247)
* Clean up uber styles

* Use theme spacing
2024-01-29 09:12:49 +00:00
Zoltán Bedi
61934588c5 E2E: Skip flaky mysql test (#81388) 2024-01-29 08:22:07 +01:00
Leon Sorokin
6a61c3da2e TooltipPlugin2: Improve containment inside ancestors that hide overflow (#81442) 2024-01-29 06:36:28 +02:00
Leon Sorokin
d34bd1dc90 Chore: uPlot v1.6.29 (#81441) 2024-01-28 21:45:28 -06:00
Leon Sorokin
835ded5eec Histogram: Fix x-axis going past +Inf when rendering heatmap-rows frames (#81438) 2024-01-28 21:33:34 -06:00
Ryan McKinley
1fab107e79 FeatureFlags: Avoid using cfg.IsFeatureToggleEnabled (#81407) 2024-01-28 15:22:45 -08:00
Nathan Marrs
1a1531ca5e Chore: Remove isEqual mock from field state test (#81019) 2024-01-27 01:49:14 +02:00
Fabrizio
80ac0cc9f6 Tempo: Fix durations in TraceQL (#81418) 2024-01-26 23:47:42 +00:00
Andrew Hackmann
b411aa7266 Azure Monitor: use NewLoggerWith func instead of backend.Logger (#81124)
using NewLoggerWith
2024-01-26 22:53:55 +00:00
Leon Sorokin
0530021396 Field: Fix perf regression in getUniqueFieldName() (#81323)
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-01-27 00:32:12 +02:00
Summer
ad1c4b726b Grafana Build: fix release process not publishing latest storybook (#81412)
Bugfix: release process not publishing latest storybook
2024-01-26 15:22:05 -07:00
Isabel
1213b66188 Docs: time range copy paste (#81408)
Added new entry and deleted internal enablement video notes
2024-01-26 16:39:37 -05:00
Isabel
42c9b582e0 Docs: add saved dashboard guidance (#81406)
* Added saved dashboard guidance

* Ran prettier
2024-01-26 16:26:58 -05:00
Fabrizio
77b0369fdb Fix TemporaryAlert (#81384) 2024-01-26 21:46:52 +01:00
Ricky Whitaker
b758b91e84 Update pr-codeql-analysis-go.yml to use token (#81395)
Updating .github/workflows/pr-codeql-analysis-go.yml to use GH token to work in private security m
irror
2024-01-26 20:17:43 +02:00
Ieva
048d1e7c86 RBAC: Annotation permission migration (#78899)
* add annotation permissions to dashboard managed role and add migrations for annotation permissions

* fix a bug with conditional access level definitions

* add tests

* Update pkg/services/sqlstore/migrations/accesscontrol/dashboard_permissions.go

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

* apply feedback

* add batching, fix tests and a typo

* add one more test

* undo unneeded change

* undo unwanted change

* only check the default basic permissions for non-OSS instances

* account for all wildcards and simplify the check a bit

* error handling and extra conditionals to avoid test failures

* fix a bug with admin permissions not appearing for folders

* fix the OSS check

---------

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2024-01-26 17:17:29 +00:00
Nathan Marrs
138079bbd8 Transformations: Fix regression where disabling single transformation would display "No data" (#81320) 2024-01-26 09:14:59 -08:00
Yuri Tseretyan
a081abdd25 Folders: GetFolders to return empty respons if user does not have any permissions (#81304)
add check for list of permissions
2024-01-26 19:12:45 +02:00
Adela Almasan
09fcb3c6cc Candlestick: Add tooltip options (#81307) 2024-01-26 18:02:44 +02:00
renovate[bot]
8ca080d47c Update dependency react-router-dom-v5-compat to v6.21.3 (#81379)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-26 15:48:40 +00:00
Ashley Harrison
cca3bb0917 Chore: Expose icons and add icon documentation (#81371)
* expose icons and initial draft documentation

* expose archive-alt not archive

* doc tweak

* update docs

* remove some width/heights from icons
2024-01-26 15:48:06 +00:00
Fabrizio
2c4e1d4baf Tempo: Fix typo (#81383) 2024-01-26 17:39:21 +02:00
idafurjes
f44592a97a Remove folderID from service tests (#80615)
* Remove folderID from service tests

* Remove folderID from ngalert migration tests

* Remove tests related to folderIDs

* Roll back change

Before removing FolderID from this test, we need to adjust the code

* Remove FolderID from publicdashboard pkg

* Add back annotations test
2024-01-26 17:36:35 +02:00
Ashley Harrison
04396c001a Navigation: Move asserts app to root, add asserts icon (#81362)
* move asserts app to root, add asserts icon

* remove width/height/fill from asserts icon
2024-01-26 15:30:36 +00:00
Matthew Jacobson
ad936b6c83 Alerting: Fix group by and timing override fields in simplfied routing section (#81321)
Fixes the group by custom labels and timings override logic in the simplified routing section of the edit rule page.

Previously:
    - Custom labels would fail on first attempt at adding them to the group by.
    - Timings fields required all timings to be overridden instead of any of them.
2024-01-26 10:17:14 -05:00
renovate[bot]
4f43c4f3a7 Update dependency lru-cache to v10.2.0 (#81373)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-26 15:05:01 +00:00
renovate[bot]
9a8fb5540b Update dependency logfmt to v1.4.0 (#81372)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-26 14:58:12 +00:00
Domas
e9a99a46b0 Tempo: Support multiple filter expressions for service graph queries (#81037)
* support "OR" for service graph queries

* make betterer happy

* continue appeasing betterer

* betterer results
2024-01-26 16:37:49 +02:00
Ivana Huckova
8c212a1952 Logs: Fix toggleable filters to be applied for specified query (#81368) 2024-01-26 15:29:23 +01:00
Gábor Farkas
f943c27786 grafana-sql: update packages (#81344) 2024-01-26 15:27:09 +01:00
Dominik Prokop
bf47eda6a9 Scenes: Bump to 2.1.0 (#81367) 2024-01-26 16:03:50 +02:00
Ashley Harrison
1a6105be8d Datasource: Add optional queries parameter to getTagKeysOptions (#81071)
add optional queries parameter to getTagKeysOptions
2024-01-26 13:59:28 +00:00
renovate[bot]
5a2e9ea2ee Update dependency @grafana/experimental to v1.7.8 2024-01-26 13:56:55 +00:00
Sonia Aguilar
f042ca5b12 Alerting: Move action buttons in the alert list view (#81341)
Move action buttons in the alert list view
2024-01-26 14:56:00 +01:00
renovate[bot]
5c9fe6ac93 Update dependency @grafana/scenes to v2.1.0 (#81365)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-26 13:25:21 +00:00
renovate[bot]
654db41450 Update dependency i18next-browser-languagedetector to v7.2.0 (#81359)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-26 13:24:28 +00:00
Sven Grossmann
9c728def38 Loki: Fix label not being added to all subexpressions (#81360) 2024-01-26 15:03:24 +02:00
renovate[bot]
e90ea8a941 Update dependency @opentelemetry/semantic-conventions to v1.21.0 (#81356)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-26 12:32:26 +00:00
renovate[bot]
9ccf7542f2 Update dependency immutable to v4.3.5 2024-01-26 14:26:17 +02:00
Alex Khomenko
857bce25e6 Chore: Replace Form usage in LoginForm.tsx (#81326) 2024-01-26 14:04:44 +02:00
renovate[bot]
3c4cfb1a70 Update dependency @types/uuid to v9.0.8 2024-01-26 12:04:02 +00:00
Gábor Farkas
852777e5de levitate: skip checking grafana-sql (#81350) 2024-01-26 13:30:35 +02:00
Joey
467f293948 Tempo: Upgrade trace to profiles docs (#81002)
* Update docs to use embedded flame graph image

* Update headings

* Update link type

* Add embedded flame graph content

* Minor text changes

* Add provisioning example

* Move configure table into  section

* Add configure section

* Update provisioning example

* Update docs/sources/shared/datasources/tempo-traces-to-profiles.md

Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>

* Update docs/sources/shared/datasources/tempo-traces-to-profiles.md

Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>

* Update wording

---------

Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>
2024-01-26 10:56:46 +00:00
Jo
f3f36e37fa AuthInfo: No mandatory auth_id in Auth Info service (#81335)
* fix auth info update not having mandatory auth_id

* remove uneeded newline
2024-01-26 11:54:00 +01:00
Gábor Farkas
29e8a355cb sql: extract frontend code into separate package (#81109)
* sql: extract frontend code into separate package

* updated package version
2024-01-26 11:38:29 +01:00
renovate[bot]
2febbec758 Update dependency @types/node to v20.11.7 2024-01-26 10:36:43 +00:00
Gabriel MABILLE
7512b1a519 RBAC: Search fix userID filter (#81337) 2024-01-26 12:23:48 +02:00
renovate[bot]
cd443b24db Update dependency @floating-ui/react to v0.26.7 (#81334)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-26 10:13:55 +00:00
renovate[bot]
c886a5804d Update dependency eslint-plugin-import to v2.29.1 (#81302)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-26 12:02:53 +02:00
renovate[bot]
b4d490883e Update dependency yaml to v2.3.4 (#81292)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-26 09:47:09 +00:00
Aaron Godin
d86eac6ce0 fix: Upgrade ts-node to work with latest typescript (#81322)
fix: plugins-bundled/internal/input-datasource build regression from ts-node version
2024-01-26 09:44:11 +00:00
Fabrizio
8761dfcc97 Add custom alert component (#81012)
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
Co-authored-by: Matias Chomicki <matyax@gmail.com>
2024-01-26 10:32:20 +01:00
Gabriel MABILLE
19194ea122 RBAC: Remove redundant search endpoint (#81331) 2024-01-26 11:11:41 +02:00
Timur Olzhabayev
802012385d Chore: fixing PanelDataTransformationsTab Test (#81329)
* fixing An update to Input inside a test was not wrapped in act(...).

* no need to await twice

* looks like we do need to await twice
2024-01-26 09:51:15 +01:00
Gábor Farkas
7230ec88a1 postgres: test: remove unused code (#81330) 2024-01-26 10:45:17 +02:00
Gabriel MABILLE
722b78f3e0 RBAC: Add userLogin filter to the permission search endpoint (#81137)
* RBAC: Search add user login filter

* Switch to a userService resolving instead

* Remove unused error

* Fallback to use the cache

* account for userID filter

* Account for the error

* snake case

* Add test cases

* Add api tests

* Fix return on error

* Re-order imports
2024-01-26 09:43:16 +01:00
Julien Duchesne
2e352ba4d6 Docs(alerting): Document the disable_provenance attribute (#81290)
We no longer need to pass a http header
2024-01-26 09:16:45 +01:00
Gábor Farkas
b1d1aa667a postgres: refactor code that is called by tests (#81279)
* postgres: refactor code that is called by tests too

* removed debug log
2024-01-26 09:11:25 +01:00
Alex Khomenko
a10c577f52 AddPermission: Prevent page reload (#81324) 2024-01-26 09:38:12 +02:00
Alex Khomenko
0f3606f3f5 Chore: Remove Form usage in ForgottenPassword (#81263)
* Chore: Remove Form usage in ChangePassword.tsx

* Chore: Remove Form usage in ForgottenPassword.tsx
2024-01-26 09:12:54 +02:00
Alexander Weaver
ae2e1aeee4 Alerting: Upgrade feature toggle stages for jitterAlertRules and jitterAlertRulesWithinGroups (#81314)
Upgrade jitter toggle stages
2024-01-25 16:46:22 -06:00
Fabrizio
366dc8db1b Tempo: Rewrite style using object (#81278) 2024-01-25 23:41:23 +01:00
Haris Rozajac
7ab710daa7 Dashboard-Scenes: JSON Model and Version tabs don't hide edit mode on refresh (#81219)
* Add NavToolbarActions to fix the bug

* Update public/app/features/dashboard-scene/settings/VersionsEditView.tsx

Co-authored-by: Victor Marin <36818606+mdvictor@users.noreply.github.com>

* Fix compared view

---------

Co-authored-by: Victor Marin <36818606+mdvictor@users.noreply.github.com>
2024-01-25 21:27:11 +00:00
Sofia Papagiannaki
b1eec36df3 Alerting: Fix authorisation to use namespace UIDs for scope (#81231) 2024-01-25 15:19:51 -05:00
Andre Pereira
2c7e95a680 Data Trails: Cleanup and explore+share buttons (#81062)
* Share button works now. Removed add to dashboard button for now

* WIP explore link

* Remove settings dropdown for now

* Use getExploreUrl to generate explore link

* Fix conflicts

* Update betterer

* Navigate to a new trail when the recent trails list is empty

* Address PR comments
2024-01-25 20:06:22 +00:00
Charandas
9167d67c05 K8s: update hack codegen script (#81216) 2024-01-25 12:01:09 -08:00
Ihor Yeromin
1595551a4a Units: Watt-hour fix (#81299)
fix(units): watt-hour
2024-01-25 20:47:25 +01:00
Isabel
c696b5e1dd Docs: restructure Configure value mappings page (#80103)
* Consolidated four add mappings tasks into one

* Moved images from tasks to types of value mappings section

* Removed edit value mappings section

* Moved sentence about reordering mappings to intro section

* Docs: Add to and update Configure value mappings page (#80104)

* Added to do notes

* Updated intro text and screenshot

* More intro edits

* Updated Types of value mappings section

Replaced bullet list items with headings

Updated text and screenshots of section

* Updated Add a value mapping task

* Recast sentence to remove passive voice

* Replaced local image files with images on admin
2024-01-25 14:36:00 -05:00
William Wernert
2af8158f99 Remove Loki annotation toggle (#81296) 2024-01-25 12:56:09 -05:00
renovate[bot]
f101d9df27 Update babel monorepo to v7.23.9 2024-01-25 17:41:50 +00:00
Jara Suárez de Puga García
b821e1621c Alerting Provisioning API: documentation Update. (#80388)
* Update alerting_provisioning.md

* Introduction and references

* UID variable consistency formatting

* Folder and Group variables consistency formatting

* Delete Note from Contact Point section

* api/v1/provisioning/folder/:folderUid/rule-groups/:group clarifications and extension. Request #8218

* Prettier format document

* {name} to :name and format

* Comma

Co-authored-by: Eve Meelan <81647476+Eve832@users.noreply.github.com>

---------

Co-authored-by: Eve Meelan <81647476+Eve832@users.noreply.github.com>
2024-01-25 09:40:20 -08:00
Isabel
a9731846cc Docs: fix broken link (#81285)
Fixed broken link
2024-01-25 12:03:44 -05:00
renovate[bot]
18b762bdca Update dependency @types/node-forge to v1.3.11 (#81281)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-25 18:42:55 +02:00
renovate[bot]
709a69fd3c Update dependency @types/react-window-infinite-loader to v1.0.9 (#81282)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-25 16:28:20 +00:00
idafurjes
fb2b9f33d2 Fix method to service in metric label for FolderID (#81283) 2024-01-25 18:26:24 +02:00
Ieva
dc9e590b7b RBAC: Return the underlying error instead of internal server or bad request for managed permission endpoints (#80974)
* return not found instead of an internal server error when listing/updating permissions

* openapi gen
2024-01-25 16:24:52 +00:00
Jean-Philippe Quéméner
25dd8d5ceb Docs: add section about periodic state saving for alerting (#81244) 2024-01-25 17:05:58 +01:00
ismail simsek
7d0017f3f2 InfluxDB: Use grafana timeout value for flux queries (#81252)
* use grafana timeout for flux queries

* get timeout from settings

* fix test
2024-01-25 17:05:08 +01:00
Tobias Skarhed
add5a5c01e LDAP: Use InteractiveTable and remove gf-form usage (#80291)
* Use InteractiveTable

* Remove unused return

* Fix icon alignment

* InteractiveTable in LdapUserMappingInfo

* Update no teams text

* InteractiveTable in LdapUserGroups

* Remove unused code

* Cleanup

* LdapSyncInfo to InteractiveTable

* Update more tables

* Memoize

* Fix connection status

* Update lockfile

* Refactor LdapSyncInfo

* Fix lockfile

* Remove showAttributeMapping as it is always true
2024-01-25 17:01:22 +01:00
Fabrizio
5195e5347e Prettify tsconfig.json files for T&P data sources (#81262) 2024-01-25 16:44:16 +01:00
renovate[bot]
828c2cebf0 Update dependency @types/lucene to v2.1.7 (#81273)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-25 15:22:19 +00:00
renovate[bot]
343556c3c5 Update dependency @types/js-yaml to v4.0.9 (#81272)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-25 17:21:27 +02:00
lean.dev
021aca256c Fix typos (#81270) 2024-01-25 15:20:20 +00:00
Alex Khomenko
ab467a41c2 Chore: Remove Form usage from AddPermission (#81261) 2024-01-25 17:04:30 +02:00
renovate[bot]
27839fec11 Update dependency @types/diff to v5.0.9 (#81266)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-25 15:02:06 +00:00
renovate[bot]
138b314a07 Update dependency @types/d3-force to v3.0.9 2024-01-25 14:51:23 +00:00
Isabella Siu
5772662cee CloudWatch: decouple from ngalert/models and query packages (#81210) 2024-01-25 09:40:55 -05:00
renovate[bot]
da6614bf56 Update dependency @types/common-tags to v1.8.4 (#81250)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-25 14:28:29 +00:00
renovate[bot]
4dfc18e628 Update dependency @types/chance to v1.1.6 (#81243)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-25 14:28:07 +00:00
Adela Almasan
22561e8690 Annotations: Prevent creating a new range in unsaved dashboards (#81256) 2024-01-25 14:14:46 +00:00
Sergej-Vlasov
9ba13dd309 Dashboards: Remove emptyDashboardPage feature flag (#81188)
* remove emptyDashboardPage feature toggle from DashNav

* remove emptyDashboardPage feature toggle from NewDashboardWithDS

* remove emptyDashboardPage feature toggle from DashboardGrid

* remove emptyDashboardPage feature toggle from DashboardModel

* remove emptyDashboardPage feature toggle from initDashboard

* remove unused AddPanelWidged component

* remove add-panel type from test

* remove emptyDashboardPage feature flag from registry.go
2024-01-25 14:04:29 +00:00
Hugo Kiyodi Oshiro
d66d7a9642 Plugins: Change managedPluginsInstall to public preview (#81053) 2024-01-25 14:32:31 +01:00
Ida Štambuk
9b4c78dbc9 Cloudwatch: Import httpClient from grafana-plugin-sdk-go instead of grafana/infra (#81187) 2024-01-25 13:33:31 +01:00
Alexander Zobnin
3094531b63 Folders: Optimize shared folders listing (#81245)
* Folders: Expose function for getting all org folders with specific UIDs

* lint

* Fix test

* fixup

* Apply suggestion from code review

* Remove changes in alerting scheduler

* fixup

* fixup after merge with main

* Add batching

* Use strings.Builder

* Return all org folders if UIDs is empty

* Filter out not accessible folders by the user

* Remove comment

* Fix batching when count is zero

* Do not include dashboard permissions

* Add some tests

* fix test

* Use batch request for folders

* Use batch request to deduplicate folders

* Refactor

* Fix after merging main

* Refactor

---------

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
2024-01-25 13:02:32 +01:00
Alexa V
2774e0d023 Dashboard: Migration - EditVariable Settings: Implement DataSource Variable (#80885)
* Extract DatasourceVariableForm logic and use it in core grafana

* Implement DataSourceVariable editor in scenes

* Refactor VariableSelect and add unit test for DataSourceVariableEditor

* Refactor old unit test to use userEvent and mock getDataSourceSrv
2024-01-25 12:56:37 +01:00
idafurjes
0880a239f8 Add leftover metrics for FolderID (#81246) 2024-01-25 12:14:18 +01:00
brendamuir
85429f7bd0 Alerting docs: swap alert steps (#81249)
* Alerting docs: swap annotation and notification steps

* Updates data source managed rule steps
2024-01-25 12:02:35 +01:00
renovate[bot]
c58dc09e84 Update dependency @glideapps/glide-data-grid to v6 (#81189)
* Update dependency @glideapps/glide-data-grid to v6

* mark glide-data-grid as esmodule

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-25 10:52:49 +00:00
ismail simsek
14e55fefbb InfluxDB: Check the value type before casting it to the string (#80986)
* Check the value type before casting it to the string

* set visualization as table by default

* append all values for show diagnostics

* golangci-lint

* append metadata only to first frame
2024-01-25 11:28:25 +01:00
Ivana Huckova
c6793d4f12 Loki: Implement visual query builder from @grafana/experimental (#81140)
* Loki: Use visual query builder from grafana/experimental

* Update to 1.7.7

* Update

* In renderOperation console.error instead of throwing error

* Remove redundant comment
2024-01-25 11:19:22 +01:00
Misi
4577e61ee7 Auth: Improve /admin/authentication permission checks and include new SSO pages (#81183)
* Move evalAuthSettings to ssoutils

* Improve permission check for auth page
2024-01-25 11:13:24 +01:00
idafurjes
7e5544ab21 Add MFolderIDsServiceCount to count folderIDs in services pkg (#81237) 2024-01-25 11:10:35 +01:00
renovate[bot]
0d66ad68f8 Update dependency @swc/core to v1.3.106 2024-01-25 09:59:30 +00:00
Sofia Papagiannaki
478d7d58fa Nested folders: Allow creating folders with duplicate names in different locations (#77076)
* Add API test

* Add move tests

* Fix create folder

* Fix move

* Fix test

* Drop and re-create index so that allows a folder to contain a dashboard and a subfolder with same name

* Get folder by title defaults to root folder and optionally fetches folder by provided parent folder

* Apply suggestions from code review
2024-01-25 11:29:56 +02:00
brendamuir
030a68bbf7 Alerting docs: recovery threshold (#81069)
* Alerting docs: recovery threshold

* ran prettier

* Adds note that only available in oss

* ran prettier
2024-01-25 10:28:32 +01:00
renovate[bot]
12e19d5364 Update dependency @braintree/sanitize-url to v7 (#81186)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-25 09:22:31 +00:00
Ashley Harrison
3e073c4dc1 Nested Folders: Update documentation (#81054)
* docs updates!

* Apply suggestions from code review

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* Apply suggestions from code review

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* simplify

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2024-01-25 09:20:37 +00:00
Ashley Harrison
c741697333 Chore: Don't import from outside of grafana-ui (#81160)
don't import from outside of grafana-ui
2024-01-25 09:20:09 +00:00
Sonia Aguilar
0bcc60f437 Alerting: Swap order between Annotations and Labels step in the alert rule form. (#81060)
* Swap order between Annotations and Labels and notifications step, and update some texts

* Update routing preview label size

* Fix dashboard and panel label when are selected

* Swap order in modify export form
2024-01-25 09:57:10 +01:00
Sofia Papagiannaki
6e827889b4 Chore: Fix folders flaky test (#81234)
It used to wrongly assume slice ordering
2024-01-25 10:55:44 +02:00
Sonia Aguilar
6218e28ee9 Alerting: Add refresh button to contact points selector in simplified routing section. (#80748)
* Add refresh button for contact points selector in simplified routing section

* Clear timeout when unmounting component

* Fix timeout not being correclty removed when component unmounts

* Update css field name

* Kepp loading spinner if refetching receivers takes more than one second

* Fix test snapshot in useContactPointsWithStatus hook

* refactor how we wait for the request response and the timeout to finish
2024-01-25 09:53:54 +02:00
Piotr Jamróz
ebe8c005ce Explore: Set default time range to now-1h (#81135)
Update default time range in Explore back to now-1h
2024-01-25 08:51:16 +01:00
Sofia Papagiannaki
5e88d29814 Folders: Introduce folder service function for fetching folders by org and UIDs that contain optionally the folder full path (#80716)
* Folders: Expose function for getting all org folders with specific UIDs

* Return all org folders if UIDs is empty

* Filter out not accessible folders by the user

* Modify query to optionally returning a string that contains the UIDs of all parent folders separated by slash.
2024-01-25 09:27:13 +02:00
Alex Khomenko
f154b2b855 Grafana/ui: Add Space component (#81145)
* Grafana/ui: Add Space component

* Add responsive styles and prop docs

* Use the Box component

* Docs

* Replace the component from grafana/experimental

* Update story

* Tweak docs

* Adjust docs
2024-01-25 08:59:24 +02:00
Torkel Ödegaard
05eb4fcd7f Drawer: Resizable via draggable edge (#80796)
* Drawer: POC of draggable resizable drawer side

* Cleaner solution

* refinements

* refinements

* Add touch support
2024-01-25 07:54:32 +01:00
Torkel Ödegaard
e08700c1b5 Dashboard: New EmbeddedDashboard runtime component (#78916)
* Embedding dashboards exploratino

* Update

* Update

* Added e2e test

* Update

* initial state, and onStateChange, only explore panel menu action and other fixes and tests

* fix e2e spec

* Fix url

* fixing test
2024-01-25 07:32:07 +01:00
Adela Almasan
9da3db1ddf Annotations: Prevent creating on unsaved dashboard (#81200) 2024-01-24 19:24:52 -06:00
Kim Nylander
1d25039674 [DOC] Fix broken link tempo data source (#81126)
* Fix broken link tempo data source

* Use docs/reference shortcode

* Update docs/sources/datasources/tempo/_index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-01-24 16:47:35 -06:00
William Wernert
2203bc2a3d Alerting: Refactor provisioning tests/fakes (#81205)
* Fix up test Alertmanager config JSON

* Move fake AM config and provisioning stores to fakes package
2024-01-24 17:15:55 -05:00
Matthew Jacobson
e45f664ca4 Alerting: Replace index role_id, action, scope with action, scope, role_id on permission table (#80336)
* Alerting: Add action, scope, role_id to permission table

The existing role_id, action, scope index has the wrong ordering to be most
effectively used in dashboard/folder permission requests.

On a large tests set, the slow database calls were on the order of ~30-40ms, so
when performed individually they don't have that large of a latency impact.
However, when done in bulk in the migration this adds up to some very slow
requests.

After the index is added these same database calls are reduced to ~4-5ms

* Change index to action, scope, role_id

* Make new index unique and drop [role_id, action, scope] index
2024-01-24 16:18:14 -05:00
Matthew Jacobson
71e70c424f Alerting: During legacy migration reduce the number of created silences (#78505)
* Alerting: During legacy migration reduce the number of created silences

During legacy migration every migrated rule was given a label rule_uid=<uid>.
This was used to silence DatasourceError/DatasourceNoData alerts for
migrated rules that had either ExecutionErrorState/NoDataState set to
keep_state, respectively.

This could potentially create a large amount of silences and a high cardinality
label. Both of these scenarios have poor outcomes for CPU load and latency in
unified alerting.

Instead, this change creates one label per ExecutionErrorState/NoDataState when
they are set to keep_state as well as two silence rules, if rules with said
labels were created during migration. These silence rules are:

- __legacy_silence_error_keep_state__ = true
- __legacy_silence_nodata_keep_state__ = true

This will drastically reduce the number of created silence rules in most cases
as well as not create the potentially high cardinality label `rule_uid`.
2024-01-24 15:56:19 -05:00
Santiago
fbbda6c05e Alerting: Retry readiness check to the remote Alertmanager on 5xx status code responses (#81174) 2024-01-24 21:39:06 +01:00
Ryan McKinley
c9ff6a9ab9 Chore: Generate shorter UIDs (#79843) 2024-01-24 11:27:46 -08:00
Galen Kistler
a81d3b1d22 Table: Cell inspector auto-detecting JSON (#81152)
* set inspect mode to json if no errors parsing json
2024-01-24 12:08:18 -06:00
Josh Hunt
a138ce668d I18n: Remove unneeded i18n:compile script (#81184) 2024-01-24 17:24:24 +00:00
renovate[bot]
b4ae711825 Update Yarn to v4 (#81176)
* Update Yarn to v4

* add back bundled yarn

* properly

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-24 18:48:34 +02:00
renovate[bot]
1090d55b54 Update visx to v3.5.0 (#81175)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-24 16:18:02 +00:00
Adela Almasan
dd9a503dd0 VizTooltip: No width limit on anchored tooltip (#81017) 2024-01-24 18:16:15 +02:00
Matías González
bbe74e4b03 Currency: Added Paraguayan Guaraní (PYG) currency (#81007) 2024-01-24 16:08:03 +00:00
github-actions[bot]
6fd8898cde Update make docs procedure (#81170)
Co-authored-by: grafanabot <bot@grafana.com>
2024-01-24 16:03:38 +00:00
Marcus Efraimsson
20fe0eb173 Chore: Extract DatabaseConfig parsing from SQLStore (#81157)
Extract the parsing/creating of database config/connectiong from SQLStore string 
to a separate DatabaseConfig struct.
2024-01-24 16:49:49 +01:00
Andres Martinez Gotor
3b96eb854a Chore: Replace config with datasource in names (#81098) 2024-01-24 16:44:40 +01:00
renovate[bot]
3ea84e1b7f Update typescript-eslint monorepo to v6.19.1 (#81162)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-24 15:40:06 +00:00
renovate[bot]
7dd89134dc Update dependency typescript to v5.3.3 (#81096)
* Update dependency typescript to v5.3.3

* update ApiKeysPage

* fix remaining conflict in lockfile

* update sdk

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-24 15:33:54 +00:00
Jack Baldry
57c550778e Stop README being built into website (#81171) 2024-01-24 15:30:42 +00:00
Fabrizio
0434f191fe Tempo: Fix NaN value using fallback (#81150) 2024-01-24 16:21:36 +01:00
Kevin J Gao
f726ea1e52 Added Descope as an OAuth2 provider (#80050)
* added Descope as an OAuth2 provider

Added docs for customers of ours that have asked us how to use Descope with Grafana. We wanted to make sure they can easily find these docs on both our website and Grafana's.

* Update docs/sources/setup-grafana/configure-security/configure-authentication/generic-oauth/index.md

Co-authored-by: Ieva <vasiljeva.ieva@gmail.com>

* Update docs/sources/setup-grafana/configure-security/configure-authentication/generic-oauth/index.md

Co-authored-by: Ieva <vasiljeva.ieva@gmail.com>

* Update docs/sources/setup-grafana/configure-security/configure-authentication/generic-oauth/index.md

Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>

* Changed note to use admonition

* Prettier

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>

---------

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Ieva <vasiljeva.ieva@gmail.com>
Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-01-24 08:56:44 -06:00
Alex Khomenko
c8f450c851 Revert "Grafana/ui: Enable removing values in multiselect opened state" (#81161) 2024-01-24 16:52:50 +02:00
Misi
c47b55ae10 Auth: Add SSO settings usage stats (#81143)
* Add usage stats

* UsageStats test + svc rename

* Fix test
2024-01-24 15:39:50 +01:00
renovate[bot]
c44594d6b3 Update dependency webpack to v5.90.0 (#81158)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-24 16:31:19 +02:00
Alex Khomenko
41de0b4311 Grafana/ui: Add deprecation notice to the Form component (#81068)
* Grafana/ui: Add deprecation notice to the Form component

* Fix notice

* Deprecate types
2024-01-24 16:13:24 +02:00
renovate[bot]
d528d93b02 Update dependency @testing-library/jest-dom to v6.3.0 (#81154)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-24 16:10:39 +02:00
Jack Baldry
9e01156b28 Update last three versions for backporting make docs workflow (#81141) 2024-01-24 14:02:32 +00:00
kay delaney
b2f2864628 Scenes: Add panel frame options and visualization options to panel editor (#80884) 2024-01-24 14:01:00 +00:00
Ida Štambuk
7218e11e23 Cloudwatch: Move getNextRefIdChar util from app/core/utils to @grafana/data (#80471)
---------

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2024-01-24 14:51:51 +01:00
renovate[bot]
1e85d65ce0 Update dependency @grafana/experimental to v1.7.7 2024-01-24 15:45:58 +02:00
renovate[bot]
3656657afc Update dependency @types/node to v20.11.6 (#81133)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-24 13:27:02 +00:00
Ashley Harrison
3f1e97cb07 NestedFolderPicker: Add clearable prop (#81114)
* add clearable prop to NestedFolderPicker

* update types
2024-01-24 13:18:01 +00:00
Alexander Zobnin
7872a128a2 Folders: Add metric for listing subfolders duration (#81144) 2024-01-24 14:15:32 +01:00
Oscar Kilhed
57ba8dc75d Scenes: Add transformation flow for panel edit (#80738)
* Adding transformations works

* Use source data as data input for transformation settings, add search box suffix

* remove useCallback that are probably not needed, fix tests

* remove unused import

* add tests for adding and removing transformations

* use view all constant

* Add reordering functionality

* Fix removing one transformation removes all consecutive transformations

* use closeDrawer function

* Add tests for changing transformations

* Remove any

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-01-24 14:14:48 +01:00
Andres Martinez Gotor
a06197188f Chore: Fix plugins magefile (#81146) 2024-01-24 14:01:15 +01:00
Karl Persson
28bb6979f5 IDForwading: cache based on expires in (#81136)
* IDFowarding: Cache based on expires in

* IDFowarding: Change default expires in

---------

Co-authored-by: Victor Cinaglia <victor@grafana.com>
2024-01-24 13:56:44 +01:00
Andres Martinez Gotor
1c02220916 Chore: Fix plugins magefile for Azure (#81138) 2024-01-24 14:18:18 +02:00
Ashley Harrison
e84ee33c8b NestedFolderPicker: Debounce search correctly (#80956)
* debounce nested folder picker search

* readd logic when no search string
2024-01-24 11:41:25 +00:00
Joey
5b4a984b78 Tempo: Add warning message when scope missing in TraceQL (#80472)
* Add warning message when scope missing in TraceQL

* Check for warnings in nodes

* Update formattiing

* Tidy up logic

* Tests

* Rename files and move tests for highlighting queries with errors
2024-01-24 11:41:13 +00:00
idafurjes
6b4eaa0d18 Add MFolderIDsAPICount metric to count FolderIDs in api package (#80866)
* Add MFolderIDsAPICount metric to cound FolderIDs in api package

* Change counter to counter vector with method names as string values
2024-01-24 12:39:11 +01:00
Damian Szczepanik
5576731332 Docs: Update variables-label-annotation.md (#81134)
Update variables-label-annotation.md

Additional closing bracket was removed
2024-01-24 12:36:50 +02:00
renovate[bot]
ad755421f8 Update react-router monorepo (#81118)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-24 09:22:40 +00:00
Gabriel MABILLE
63679813b0 RBAC: prevent seeding oncall access (#80862)
* RBAC: prevent seeding oncall access

* Add comments and an early exit

* Test SeedAssignmentOnCallAccessMigrator

* imports

* Comment rework

* Check error

* Nit.
2024-01-24 09:23:40 +01:00
Gábor Farkas
fd73b75ef7 SQL datasources: Consistent interval handling (#78517)
sql: apply the received interval-value
2024-01-24 08:47:07 +01:00
Kyle Cunningham
6484f4a2ac Transformations: Focus search input on drawer open (#80859)
* Focus search input on drawer open

* Prettier
2024-01-23 22:19:33 -06:00
Nathan Marrs
cd2abce914 Table: Fix case where undefined data crashes the visualization (#80498) 2024-01-23 13:59:22 -08:00
Yuri Kotov
a7b58a7cdb Prometheus plugin: Use new labels endpoint, for LabelEditor (#80774)
Prometheus plugin: use new labels endpoint, if supported, for LabelEditor

Before this change LabelEditor always use old '/series' endpoint to get labels.
Now new '/labels' endpoint would be used in case datasource supports it.
2024-01-23 15:00:43 -06:00
Sven Grossmann
0173755446 Loki: Remove parsed_query from tracking in favor of obfuscated_query (#81042)
* Loki: Remove `parsed_query` from tracking in favor of `obfuscated_query`

* newline
2024-01-23 22:47:29 +02:00
Dai Nguyen
0aaebbb9a2 Docs: Updating Service Account API to include a note for Grafana Cloud instances (#80685)
* Update Bearer Token serviceaccount.md

To update the Service Account API to include a note stating that a Bearer token for Grafana Cloud instances is needed.

* Update docs/sources/developers/http_api/serviceaccount.md

---------

Co-authored-by: Eve Meelan <81647476+Eve832@users.noreply.github.com>
2024-01-23 22:44:20 +02:00
Kim Nylander
d8c96b4406 [DOC] Adds best practices for tracing doc (#80924)
* Adds best practices for tracing doc

* Update docs/sources/datasources/tempo/tracing-best-practices.md
2024-01-23 12:36:45 -08:00
Galen Kistler
510dba72fc Logs Panel: Permalink (copy shortlink) (#80764)
Compute permalink url for log lines within logs panels in dashboards.

---------

Co-authored-by: Matias Chomicki <matyax@gmail.com>
2024-01-23 14:20:38 -06:00
George Robinson
05d858635c Alerting: Add metric for inhibition rules (#81119)
This commit adds a metric for the number of inhibition rules.
It matches the metric added upstream in #3681.
2024-01-23 19:43:17 +00:00
Matthew Jacobson
2607528b52 Alerting: Update legacy migration docs to include Upgrade Preview (#80628)
* Alerting: Update legacy migration docs to include Upgrade Preview
2024-01-23 14:09:52 -05:00
Sofia Papagiannaki
57effed70a Chore: Fix flaky test (#81116)
* Chore: Fix flaky test
2024-01-23 20:33:32 +02:00
renovate[bot]
633c03d40d Update opentelemetry-js monorepo (#81117)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-23 19:56:04 +02:00
renovate[bot]
aeda4ade9f Update dependency webpack-bundle-analyzer to v4.10.1 (#81110)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-23 19:35:14 +02:00
Matias Chomicki
e07417dca3 Infinite scroll: share loader with log context + small fixes (#81067)
* Loading indicator: refactor

* Infinite scroll: use ref to keep the last scroll

* Infinite scroll: share loading indicator with log context

* Infinite scrolling: override state

* Infinite scroll: clean up imports and dependency array

* Logs: disable order while loading

* Infinite scroll: update ref before calling shouldLoadMore

* Loading indicator: remove unused export

* Logs order: move disabled prop to inline field

* Formatting

* Update betterer file
2024-01-23 18:52:38 +02:00
Matias Chomicki
aa07c4a6b3 Logs permalink: adjust for infinite scrolling (#80808)
* Logs permalink: adjust for infinite scrolling

* Refactor exception

* Formatting
2024-01-23 17:48:50 +01:00
Andreas Christou
ed2647b742 Chore: Fix typo in docs workflow (#81111)
Fix typo
2024-01-23 16:42:59 +00:00
Ryan McKinley
2b355ff280 K8s: Remove grafanaAPIServer feature toggle (#81030) 2024-01-23 08:27:28 -08:00
Jean-Philippe Quéméner
aa25776f81 Alerting: Add a feature flag to periodically save states (#80987) 2024-01-23 17:03:30 +01:00
Denis
f7fd8e6cd1 DashboardSchema: Add options to VariableModel (#79236)
* Add includeAll and regex fields to VariableModel  #67639

* Add allValue option to VariableModel
2024-01-23 10:56:20 -05:00
grafana-delivery-bot[bot]
cbdbdf72e5 Changelog: Updated changelog for 10.3.1 (#81105)
* Changelog: Updated changelog for 10.3.1

* Update 10.3.1 CHANGELOG

---------

Co-authored-by: grafanabot <bot@grafana.com>
Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
2024-01-23 15:54:06 +00:00
grafana-delivery-bot[bot]
f2e1e78b37 Changelog: Updated changelog for 10.3.0 (#81100)
* Changelog: Updated changelog for 10.3.0

* Add release note

---------

Co-authored-by: grafanabot <bot@grafana.com>
Co-authored-by: Andreas Christou <andreas.christou@grafana.com>
2024-01-23 15:48:05 +00:00
Torkel Ödegaard
e03ce77ef0 DashboardDataSource: Improve handling of source provider activation, and add tests (#81034)
* DashboardDataSource: Improve handling of source provider activation, and add tests

* Add setContainerWidth call
2024-01-23 16:47:01 +01:00
Fabrizio
51c19afcb2 Tempo: Rewrite styles using objects (#81038) 2024-01-23 16:33:08 +01:00
George Robinson
85b9edcd28 Alerting: Fix incorrect initialization of logger (#81099) 2024-01-23 17:29:38 +02:00
renovate[bot]
a60e60183e Update dependency string_decoder to v1.3.0 (#81094)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-23 17:23:09 +02:00
Misi
ea1ab0d84f Auth: Remove DevModeRequired from the SsoSettingsApi feature toggle (#81091)
Remove DevModeRequired from ft
2024-01-23 16:11:26 +01:00
Jara Suárez de Puga García
c14ef43691 Tempo TraceQl Editor update request #8382 (#80112)
* Tempo TraceQl Editor update request #8382

* Docs: Typo

* Docs: Typo 2 codespell lint

* Update docs/sources/shared/datasources/tempo-editor-traceql.md

* Update docs/sources/shared/datasources/tempo-editor-traceql.md

* Update docs/sources/shared/datasources/tempo-editor-traceql.md

---------

Co-authored-by: Eve Meelan <81647476+Eve832@users.noreply.github.com>
2024-01-23 07:04:04 -08:00
Darren Janeczek
52550966af datatrails: allow multiple search terms to help select metric names (#81032)
* datatrails: allow multiple search terms help select metric names
2024-01-23 09:54:19 -05:00
renovate[bot]
d8630bf9e4 Update dependency sass to v1.70.0 (#81088)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-23 14:50:58 +00:00
Misi
8246d97587 Auth: Introduce configurable_providers config option for SSO settings (#80911)
* Add SSOSettingsConfigurableProviders config option

* Add check to Delete and ListWithRedactedSecrets

* Add check to GET, small improvements
2024-01-23 15:48:06 +01:00
Andres Martinez Gotor
4148362d63 Chore: Fix path resolution for the release os Azure Monitor (#81065) 2024-01-23 15:47:40 +01:00
Jo
9f5a8bf926 AuthInfo: Revert #81013. Fix cache invalidation (#81050)
* Revert "Auth: Revert "Auth: Cache Auth Info" (#81013)"

This reverts commit ce84f7c540.

* fix cache invalidation during user takeover

* fix incomplete test
2024-01-23 15:26:38 +01:00
renovate[bot]
8ff4e488d9 Update dependency rudder-sdk-js to v2.48.0 (#81082)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-23 16:25:04 +02:00
Ivana Huckova
2407bc83ee Loki: Fix throwing error when no labels received (#81077)
* Loki: Fix throwing error when no labels received

* Remove es code
2024-01-23 15:20:29 +01:00
Haris Rozajac
e4a0a6a4ee PanelContext: Remove deprecated onSplitOpen (#80087)
Remove deprecated onSplitOpen
2024-01-23 07:13:17 -07:00
Jara Suárez de Puga García
8435e16215 Docs: configure grafana database configuration MYSQL (#80939)
* Docs database max_open_conn MYSQL

* Docs: suggestion max_connections

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>

---------

Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com>
2024-01-23 08:09:54 -06:00
renovate[bot]
01d0d56198 Update dependency uuid to v9.0.1 (#81076)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-23 16:04:37 +02:00
Gilles De Mey
d84d0c8889 Alerting: Detail v2 part 2 (#80577) 2024-01-23 15:04:12 +01:00
renovate[bot]
1a794e8822 Update dependency react-select to v5.8.0 (#81064)
* Update dependency react-select to v5.8.0

* update snapshot

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-23 15:48:07 +02:00
Timur Olzhabayev
4083d23f01 Chore: Bumping go to 1.21.6 (#80709)
* Bumping go to 1.25.6

* bumping sqlite to 1.14.19

* Bumping sqlite version
2024-01-23 14:32:26 +01:00
Fabrizio
57609e1388 Remove unused file (#81036) 2024-01-23 14:27:13 +01:00
brendamuir
f9486ad2ee Alerting docs: updates eval group and provisioning topics for support (#81066) 2024-01-23 14:24:12 +01:00
renovate[bot]
f6ff24fce1 Update dependency react-use to v17.5.0 (#81070)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-23 13:23:30 +00:00
Andrej Ocenas
59595c7318 Table: Keep expanded rows persistent when data changes if it has unique ID (#80031) 2024-01-23 14:14:57 +01:00
renovate[bot]
3203f1cf39 Update dependency react-calendar to v4.8.0 (#81061)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-23 12:55:54 +00:00
Eric Leijonmarck
b43b2608b5 Chore: Enable and Fix flaky test in anonimpl service (#80896)
* fix: flaky test

* set fixed time instead

* flaky
2024-01-23 12:27:26 +00:00
renovate[bot]
5887f421b3 Update dependency rc-slider to v10.5.0 (#81058)
* Update dependency rc-slider to v10.5.0

* onAfterChange -> onChangeComplete

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-23 14:20:22 +02:00
Josh Hunt
c6de657155 Chore: Update yarn to 4.0.2 (#81056)
update yarn to 4.0.2
2024-01-23 13:50:38 +02:00
renovate[bot]
86cb412b1d Update dependency prettier to v3.2.4 (#81047)
* Update dependency prettier to v3.2.4

* update sdk + run prettier

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-23 11:41:24 +00:00
Sven Grossmann
3d033839d7 Elasticsearch: Fix URL creation and allowlist for /_mapping requests (#80970)
* Elasticsearch: Fix URL creation for mapping requests

* remove leading slash by default

* add comment for es route

* hardcode `_mapping`

* update doc
2024-01-23 12:41:13 +01:00
renovate[bot]
f9b8f219e4 Update dependency rc-cascader to v3.21.2 (#81052)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-23 11:40:18 +00:00
Marcus Efraimsson
6768c6c059 Chore: Remove public vars in setting package (#81018)
Removes the public variable setting.SecretKey plus some other ones. 
Introduces some new functions for creating setting.Cfg.
2024-01-23 12:36:22 +01:00
Karl Persson
147bf01745 IDForwarding: Always forward id tokens to plugins (#81041)
* Always forward id tokens to plugins
2024-01-23 12:12:32 +01:00
Laura Benz
5b6a4e880b Nav: Fix main a11y issues (#80309)
* refactor: add nav announcement for screenreader

* refactor: add aria label

* refactor: add more aria labels

* refactor: aria labels

* refactor: remove aria-labels

* refactor: add aria-live

* refactor: add translations

* refactor: repair empty message

* refactor: repair empty message

* refactor: remove translation of empty message

* refactor: clean up

* refactor: change translation
2024-01-23 13:02:48 +02:00
renovate[bot]
96c4b7bf1e Update dependency postcss-reporter to v7.1.0 (#81045)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-23 10:58:09 +00:00
renovate[bot]
864e52946a Update dependency lru-cache to v10.1.0 (#81003)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-23 10:20:29 +00:00
renovate[bot]
d4d257db67 Update dependency @testing-library/jest-dom to v6.2.1 2024-01-23 10:17:25 +00:00
Sven Grossmann
b315c5e54d Loki: Also log statusSource in error case (#81040) 2024-01-23 11:16:29 +01:00
renovate[bot]
84e6dc6368 Update dependency moment to v2.30.1 (#81004)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-23 09:53:50 +00:00
Juan Cabanas
ef3aa55e3c Reporting: Add usedInRepeat property in BaseVariableModel (#79855)
property added in interface
2024-01-23 10:02:49 +01:00
Clemens Korner
6a387aa1c5 Provisioning: sync datasources/sample.yaml with docs (#80894)
Provisioning: datasources/sample.yaml with docs
2024-01-23 09:51:12 +01:00
Sonia Aguilar
51f5e1af39 Alerting: Fix preview getting the correct queries from the form (#80458)
* fix preview getting the correct queries from the form

* Remove setting queries in onChangeQueries handler as it only contains data queries and not expressions

* Keep setValue('queries') but also adding expressions
2024-01-23 09:23:59 +01:00
Fabrizio
b9d2f8c73b Extract duplicated code (#80991) 2024-01-23 08:35:34 +01:00
Leon Sorokin
391f3ca615 VizTooltips: Don't use y scales for sync, since they rarely match (#81031) 2024-01-23 00:08:03 -06:00
Isabel
2a53ae637e docs: What’s new & Upgrade guide 10.3 (#80399)
* initial commit for v10.3 whats new

* Added breaking changes guide and updated What's new doc

* Added 10.2.3 in frontmatter of files

* Added content from What's new in Cloud

* Added note about 10.203 and breaking changes section

* Made formatting edits

* Added 10.2.3 test note

* Replaced 10.2.3 notes with asterisks

* Added tag note

* Move reporting item out of D&V section

* Added breaking changes

* Fixed availability notes

* Moved feature from Traces to Profiles and removed Traces section

* Reordered sections

* Replaced Cloud links with OSS links and relrefs with full URLs

* Updated template

* Copy edit

* Clarified outstanding questions

* Updated data source admin permissions note

* Removed duplicate alerting items

* add InfluxDB SQL support

* Ran prettier

* Added availability, video and contributor info

* Ran prettier

* Added youtube video links

* Removed old video link

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-01-22 18:16:26 -05:00
Haris Rozajac
af72caded9 Docs: Update section about time range with copy/paste functionalities (#80945)
* Update time range screenshots and add copy/paste docs

* Update docs/sources/dashboards/use-dashboards/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Update docs/sources/dashboards/use-dashboards/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2024-01-22 15:03:22 -07:00
lwandz13
7375e64275 Docs: update per Support request (#80845)
* update per support request, additional enhancements

* ran prettier
2024-01-22 13:34:20 -06:00
Ryan McKinley
c7c594dba0 K8s/DataSource: Introduce PluginConfigProvider (#80928) 2024-01-22 11:32:25 -08:00
Misi
ce84f7c540 Auth: Revert "Auth: Cache Auth Info" (#81013)
Revert "Auth: Cache Auth Info"
2024-01-22 21:25:24 +02:00
renovate[bot]
dc3a5851de Update dependency @testing-library/jest-dom to v6.2.1 2024-01-22 18:23:50 +00:00
Torkel Ödegaard
5770828871 Scenes: Updates to scene v2.0 (#80953)
* Scenes: Updates to scene v2.0

* Update
2024-01-22 19:22:04 +01:00
colin-stuart
6e8e4a8b77 Auth: Add docs for the SSO Settings List endpoint (#80927)
* add docs for SSO Settings List endpoint

* Update docs/sources/developers/http_api/sso-settings.md

Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>

* Update docs/sources/developers/http_api/sso-settings.md

Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>

---------

Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
2024-01-22 12:20:16 -05:00
Joey Orlando
afc3380a38 update RBAC for OnCall documentation (#80828)
* update RBAC for OnCall documentation

* Update docs/sources/administration/roles-and-permissions/access-control/rbac-fixed-basic-role-definitions/index.md

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>

* fix typo

---------

Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
2024-01-22 16:18:39 +00:00
Michael Mandrus
cf13cb9f70 Cloud Migrations: Create new service for cloud migrations (#80949)
* introduce feature toggle

* create base service structure

* fix sample metric

* register metrics

* add to codeowners

* separate api dtos from service models

* remove leading newline
2024-01-22 11:09:08 -05:00
Tania
07aa173939 Nested Folders: Add back syncing of folders between folder and dashboard tbls (#80972)
Add back syncing of folders between folder and dashboard tbls

This partially reverts commit 06d2ae3ada.
2024-01-22 17:04:18 +01:00
Sofia Papagiannaki
4243079cb5 Folders: Fix creating/updating a folder whose title has leading and trailing spaces (#80909)
* Add tests

* Folders: Fix creating folder whose title has leading and trailing spaces

* Fix folder update

* Remove redundant argument

* Fix test
2024-01-22 18:03:30 +02:00
Dave Henderson
e0402115ea Notifications: Optional trace propagation through SMTP (#80481)
* Notifications: Optional trace propagation through SMTP

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

* fix failing test

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

* Add documentation

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>

---------

Signed-off-by: Dave Henderson <dave.henderson@grafana.com>
2024-01-22 10:50:05 -05:00
renovate[bot]
6b8b741b3b Update dependency logfmt to v1.4.0 (#80998)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-22 15:43:33 +00:00
renovate[bot]
625ac98ee0 Update dependency tslib to v2.6.2 (#80997)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-22 15:42:32 +00:00
Darren Janeczek
fcc11c9290 fix: datatrails: setRecentTrail: remove equivalent entries to new recent trail (#80932)
* fix: datatrails: setRecentTrail: remove equivalent entries

* fix: use lodash to simplify code
2024-01-22 10:07:47 -05:00
Joey
6d15e16d2e Pyroscope: Fix stale value for query in query editor (#80753)
* Fix stale value for query in query editor

* Separate out onLabelSelectorChange into its own hook

* Move queryRef inside hook
2024-01-22 15:02:55 +00:00
Brendan O'Handley
3409e0ea5a Prometheus: Invest in tests and docs for min interval or min step explanation (#80165)
* add clearer comment for function def

* update test to reflect change in range for 1w step

* clarify docs

* add more clarity

* add explanation to query options min interval and link to min step

* Update docs/sources/panels-visualizations/query-transform-data/_index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2024-01-22 08:44:46 -06:00
Brendan O'Handley
639bf3036d Prometheus: Add e2e tests for decoupling (#80333)
* update selectors for prom

* add selector to switch component, needs id instead of testid

* add testid and ids to Prom settings

* add e2e tests for prom config

* add config to editor test

* export select function

* start query editor spec

* clean up describe

* add selectors for general query editor

* add selectors to components in options in best locations

* wrap header switch in id because component doesn't accept testid nor id

* add id to wrap legend components in one selector

* update selector in shared folder component, note to change in shared library

* update selector in shared folder component, note to change in shared library

* add notes for selectors in shared folder

* add tests and file for query editor

* add selectors for metrics browser in code editor

* add selector to component to open metrics browser

* add selectors to components within the metrics browser

* add tests for metrics browser and stub resource calls

* add selectors to query builder components

* add e2e tests for query builder

* generic query builder test with hints

* add selectors for more code editor parts

* add test for code and update selector

* fix tests with selector

* remove shared folder changes and use data-testid where possible

* remove unused import

* share getResources

* create variable query editor selectors

* add selectors to the variable query editor

* add e2e tests for the Prometheus variable query editor

* fix test function

* refactor add data source method

* add annotation selectors

* add selectors to annotation components

* add annotation e2e tests

* commit for yarn i18n:extract error in drone
2024-01-22 08:42:24 -06:00
Darren Janeczek
2210ed50b4 fix: data-trails get data source name for display (#80922) 2024-01-22 09:42:07 -05:00
Gábor Farkas
279aa4863b Postgres: Handle single quotes in table names in the query editor (#80951)
postgres: handle single quotes in table names
2024-01-22 15:36:45 +01:00
renovate[bot]
2be8211555 Update dependency ts-node to v10.9.2 (#80989)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-22 16:30:21 +02:00
Laura Fernández
a0e7aef840 ReturnToPrevious: create DismissableButton and ReturnToPrevious components (#80878) 2024-01-22 15:28:11 +01:00
Santiago
d4e831b051 Alerting: Use mimir:r274-1780c50 in CI (#80985)
* Alerting: Use new mimir image in CI

* add image to blocks, enable experimental routes
2024-01-22 16:25:50 +02:00
Will Browne
2a0f1900d5 Datasources: Add wireset for datasource.DataSourceAPIBuilder (#80914)
tidy up
2024-01-22 15:21:27 +01:00
Joey
f3c64a7337 Tempo: Remove profiling toggles (#80792)
* Remove traceToProfiles toggle

* Remove tracesEmbeddedFlameGraph toggle

* Remove superfluous import

* Update ConfigDescriptionLink

* Update getting of profiles from standalone build PR
2024-01-22 14:21:14 +00:00
renovate[bot]
0df63e7375 Update dependency ts-jest to v29.1.2 (#80988)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-22 16:16:11 +02:00
Pier
a8dec1916b Security: Fix vulnerability GHSA-9763-4f94-gfch (#80952)
chore: upgrade cloudfare circl dependency

Signed-off-by: Pier <53210578+pie-r@users.noreply.github.com>
2024-01-22 15:13:31 +01:00
Tobias Skarhed
dad5c9af8f LDAP: Fix routing error (#80984)
* Reorder auth routes

* Fix lockfile
2024-01-22 15:59:16 +02:00
Misi
20bb0a3ab1 AuthN: Support reloading SSO config after the sso settings have changed (#80734)
* Add AuthNSvc reload handling

* Working, need to add test

* Remove commented out code

* Add Reload implementation to connectors

* Align and add tests, refactor

* Add more tests, linting

* Add extra checks + tests to oauth client

* Clean up based on reviews

* Move config instantiation into newSocialBase

* Use specific error
2024-01-22 14:54:48 +01:00
renovate[bot]
1f4a520b9d Update dependency @grafana/experimental to v1.7.6 (#80981)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-22 15:52:43 +02:00
tonypowa
3a7b745278 fixed py code indentation pt.2 (#80975)
* fixed py code indentation

* pretty

* 2nd code snippet update

* pretty

* pretty
2024-01-22 14:22:33 +01:00
renovate[bot]
ef50fe9ebb Update dependency @types/react to v18.2.48 2024-01-22 13:20:41 +00:00
Gábor Farkas
e6f8176674 postgres: test: switch to numbers that are represented well in floating point (#80722) 2024-01-22 14:14:40 +01:00
Ashley Harrison
1cb3cc4ad1 Navigation: handle cloud id when modifying connections url (#80965)
cloud id is different than onprem... who knew?
2024-01-22 13:02:47 +00:00
renovate[bot]
113746ee0f Update dependency i18next-browser-languagedetector to v7.2.0 (#80976)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-22 13:02:14 +00:00
renovate[bot]
085054095f Update dependency html-webpack-plugin to v5.6.0 (#80973)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-22 13:01:45 +00:00
Fabrizio
6cbc3df11e Add grafana-o11y-ds-frontend workspace package (#80362) 2024-01-22 13:47:50 +01:00
renovate[bot]
3a10e480ba Update dependency eslint-plugin-jsx-a11y to v6.8.0 (#80968)
* Update dependency eslint-plugin-jsx-a11y to v6.8.0

* this shouldn't be a label methinks

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-22 14:18:21 +02:00
Jean-Philippe Quéméner
eb7e1216a1 feat(alerting): add async state persister (#80763) 2024-01-22 13:07:11 +01:00
tonypowa
a7e9408433 fixed py code indentation (#80966)
* fixed py code indentation

* pretty
2024-01-22 12:55:28 +01:00
Matias Chomicki
0c9265f59b Infinite scroll: update deduplication method and only run log queries when scrolling (#80821)
* Logs deduplication: replace array lookup with map

* runLoadMoreLogs: only execute log queries

* Formatting

* Rename variable
2024-01-22 13:42:18 +02:00
renovate[bot]
60ece3b21b Update dependency ts-jest to v29.1.2 2024-01-22 11:41:38 +00:00
Sven Grossmann
61ed0ef73f Tests: Update geomap golden json (#80964)
update geomap golden json
2024-01-22 13:25:51 +02:00
Sonia Aguilar
a07d2120f8 Alerting: Update text, link and aria-label in contact points link for simplified routing. (#80950)
Update link to contact points using TextLink component, and fix its alignment
2024-01-22 12:17:54 +01:00
renovate[bot]
401dee7d75 Update dependency core-js to v3.35.1 2024-01-22 10:44:28 +00:00
renovate[bot]
0fc6cfb433 Update dependency @swc/core to v1.3.105 2024-01-22 10:43:57 +00:00
Ashley Harrison
b29748ac59 Chore: remove autoFocus from time range filter input (#80961)
remove autoFocus from time range filter input
2024-01-22 10:42:59 +00:00
renovate[bot]
5c7d97cbe0 Update react monorepo (#80736)
* Update react monorepo

* type fixes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-22 10:02:57 +00:00
renovate[bot]
0930156d15 Update dependency @grafana/experimental to v1.7.6 (#80601)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-22 11:49:20 +02:00
Piotr Jamróz
98e3a01aff Correlations: Enable correlations feature toggle by default (#80881)
* Enable correlations by default

* Update docs
2024-01-22 09:27:11 +01:00
fowindee
1f840600b6 Grafana/ui: Enable removing values in multiselect opened state (#78662)
GrafabaUI: enabling remove values in opened state
2024-01-22 09:22:49 +01:00
fowindee
d7af7d01c8 Stat: Support no value in spark line (#78986) 2024-01-19 17:40:43 -08:00
Drew Slobodnjak
378c863616 Geomap: Support geojson styling properties (#80272)
* Geomap: Support geojson styling properties

* Add enum for geojson styles

* Move styleStrings outside of style function

* Add styling note to geoJSON docs

* Clean up geomap docs

* Add support for points

* Add simple example

* Add support for all geojson types and update example

* Update colors

* Update docs

* Remove old TODO

* Update geojson name

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-01-20 02:55:17 +02:00
andrea denisse
9b9d91e7ae Packaging: Use the GRAFANA_HOME variable in postinst script on Debian (#80853)
This commit addresses the issue where the postinst script was not using
the GRAFANA_HOME variable from the /etc/default/grafana-server
configuration file on Debian systems. Instead, it was relying on a
hardcoded home directory.

Fixes #80852
2024-01-19 18:10:40 -05:00
ismail simsek
777b9bdc49 Prometheus: minStep value is affecting $__interval value (#80904)
* minStep value is affecting $__interval value

* rename
2024-01-19 21:55:27 +01:00
Isabel
9fc789d901 Docs: restructure Configure data links page (#80100)
* Moved content under Data links heading to intro of page and deleted heading

* Made headings for data link variable types H3s nesting under Data link variables

* Removed unecessary update and delete data links sections

* Made old intro sentence part of new intro

* Made Add a data link section an H2

* Removed unecessary typeahead suggestions section

* Moved variables into tables and capitalized first word of descriptions

* Docs: Edit Configure data links page (#80101)

* Added content update notes

* Rewrote Add a data link section per style guidelines

* Copy edits

* Copy edits

* Copy edits

* Copy edited intro text, removed instances of e.g., and replaced OSS links with Cloud links

* Standardized the format of variables in tables

* Added images (locally) and clarified context menu behaviour

* Removed working notes

* Fixed typo

* Removed images from local and updated image pathways
2024-01-19 15:49:03 -05:00
colin-stuart
e241188f00 Auth: Implement the SSO Settings List endpoint (#80769)
* add list endpoint & initial tests

* add tests and ETag

* format service_test.go

* add list swagger param, generate openAPI, remove ETag, use RedactedPassword

* correct swagger param name

* Align tests to latest changes

* use setting.RedactedValue()

* add string assertion

* lint & require no error on res.Body.Close()

* add custom response type

---------

Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com>
2024-01-19 14:39:09 -05:00
Julien Duchesne
40312c527b ngalert openapi: Fix ObjectMatchers definition (#79477)
These don't get marshalled and unmarshalled in the same way as they are represented in Go
This PR changes the OpenAPI spec to reflect what the API accepts and sends back
2024-01-19 14:37:11 -05:00
Drew Slobodnjak
91e747d8ab XYChart: Fix data filter change bug (#80849)
* XYChart: Fix data filter change bug

* If no xAxis set, populate from dims
2024-01-19 09:43:05 -08:00
Dimitris Sotirakis
65104a7efa ImagePullSecrets: Add GAR secret to image_pull_secret in .drone.yml (#80912)
* Add GAR secret to image_pull_secret

* Fix starlark fmt
2024-01-19 19:29:49 +02:00
Dominik Prokop
361c49233d DashboardScenePageStateManager: Do not initialise dashboard meta after fetch (#80875) 2024-01-19 16:46:10 +00:00
Haris Rozajac
85d633f1b9 Dashboards-Scenes: ability to edit and save JSON model (#80757)
* View JSON Model tab

* Use correct translation field

* saving functionality

* Remove TODO

* Update button tittle
2024-01-19 09:25:56 -07:00
Will Browne
d5bec225ed Plugins: Fix Plugin Context method docs (#80906)
* fix method docs

* add docs for new method
2024-01-19 16:22:17 +01:00
Nicki de Wet
084a3c6b7f Update notifications.md (#80868)
Added clarity about the order policies are evaluated
2024-01-19 16:15:15 +01:00
Will Browne
3f30cbf91c DataSources: Add datasource fetching + querying interface (#80749)
* first pass

* separate oss + enterprise

* tidy things up

* add ctx

* fix tests

* use standalone svcs

* mv plugin context provide

* fix wire

* fix import
2024-01-19 15:56:52 +01:00
Andre Pereira
bb0fa4f99a Data trails: Add datasource picker to Logs tab and disable it (#80892)
* wip

* Logs are now working

* Remove logs tab, for now?
2024-01-19 14:18:49 +00:00
Isabel
35ade8974f Docs: move best practices page (#80844)
Moved best practices page
2024-01-19 08:35:13 -05:00
Jack Westbrook
dff0e33c30 Webpack: Update bundled plugins SWC baseUrl (#80882)
build(webpack): update config for swc.baseUrl
2024-01-19 14:18:14 +01:00
Adela Almasan
e0d0420990 VizTooltips: Copy to clipboard functionality (#80761) 2024-01-19 07:16:14 -06:00
Eric Leijonmarck
29112f8822 Make: Add make gen-go to initcmds in .bra (#80880)
* add: make gen-go to initcmds

* change order of init cmds
2024-01-19 12:49:58 +00:00
Alexander Zobnin
08082104e1 Access control: Add permissions cache hit/miss metrics (#80883)
* Access control: Add permissions cache hit/miss metrics

* Add metrics to OSS

* Fix imports
2024-01-19 13:47:58 +01:00
renovate[bot]
a8a9e6d0ee Update dependency @grafana/scenes to v1.30.0 (#80874)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-19 12:47:33 +00:00
Javier Ruiz
ea37cee435 Use specified time range, default to class value (#80557) 2024-01-19 13:44:56 +01:00
Alex Khomenko
8c77dd8bb8 Switch: Add line height (#80879) 2024-01-19 14:21:22 +02:00
Misi
6752a512f3 Auth: Change UI route, add frontend endpoints to api.go (#80671)
Delete advanced from UI route, fix 404
2024-01-19 11:53:37 +01:00
Kyle Cunningham
4d6069583e Transformations: Move transformation help to drawer component (#79247)
* Move help to drawer component

* Update component name

* Flip hierarchy of transformation name and help description
2024-01-19 12:47:05 +02:00
renovate[bot]
03ebf0aa4c Update dependency css-loader to v6.9.1 2024-01-19 10:34:24 +00:00
renovate[bot]
b60c9e0506 Update dependency eslint-plugin-import to v2.29.1 (#80832)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-19 10:15:22 +00:00
Laura Benz
0e4c6742c8 GettingStarted: Improve styling and add tracking (#80410)
* refactor: remove icons and related styling

* refactor: remove cut off on the left side

* fix: aria-labels

* feat: add tracking

* refactor: adjust button position

* refactor: move previous button back

* refactor: use emotion object syntax

* feat: add tracking

* refactor: remove console.log()
2024-01-19 10:50:56 +01:00
github-actions[bot]
ed196e67a8 Update make docs procedure (#80855)
Co-authored-by: grafanabot <bot@grafana.com>
2024-01-19 09:33:48 +00:00
Ivana Huckova
759c088ac5 Elasticsearch: Fix showing of logs when __source is log message field (#80804)
Elasticsearch: Fix showing of logs whe __source is log message field
2024-01-19 10:28:08 +01:00
Ashley Harrison
5f2ef36e63 Chore: make baseDir absolute in grafana-plugin-config (#80826)
make baseDir absolute
2024-01-19 09:18:48 +00:00
Sonia Aguilar
171ba185d3 Alerting: Allow selecting only ... in groupBy (#80857)
Allow selecting only ... in groupBy
2024-01-19 11:17:21 +02:00
Victor Marin
b93567a839 Scenes: Restore dashboard from version settings (#80600)
* Add versions tab in dashboard settings

* Fetch and render dashboard versions

* Be able to compare two versions

* PR discussion changes

* remove unnecessary async in test

* PR discussion mods

* linter fix

* styles and tests

* Fix show more versions bug

* migrate files + style fix

* fix test

* refactor styles - css object keys to camelCase

* refactor file migrations

* more files migrations

* wip restore

* remove unused type, cleanup

* wip

* restore functionality

* revert defaults

* wip

* restore functional

* refactor + tests

* CR modifications

* fix tests - CR mods
2024-01-19 10:58:20 +02:00
Nathan Marrs
8784052ccf Canvas: Pan zoom minor refactor (#80337)
* enable context menu for canvas while in panel edit mode

* Disable context menu when editing is not enabled in canvas

* follow up minor refactor
2024-01-18 19:05:15 -08:00
Alexander Weaver
18b9c8fd5f Alerting: Nilcheck JitterStrategyFrom so it can be used in contexts without feature toggles (#80841)
Nilcheck so tests can have a nil feature toggles
2024-01-18 15:43:41 -06:00
Haris Rozajac
f285eb6717 Time Range: Copy-paste Time Range (#80107)
* Working copy-paste functionality with validation

* WIP; uses 't c' shortcut to copy time range

* shortcuts working for explore and dashboards

* cleanup

* Don't update url when pasting in explore

* Error handling, sync pane functionality, add to help modal

* cleanup

* add tests

* fix i18n

* Diferrentiate between explore and dashboard paste events; make on error prop generic

* Fix

* extract getting the copied time range logic into a function

* Remove comments

* Make error handling generic; markup for translations

* Additional translation markup

* markup for aria-label

* Fix test

* Replace fireEvent with userEvent

* fix translations to match the standard pattern

* Refactor keybindingSrv and TimeSrv to remove PasteTimeContext

* Fix test

* Remove unneccessary aria labels; update icons; buttons inline
2024-01-18 14:06:27 -07:00
Sarah Zinger
e8e8017d51 Cloudwatch: remove direct import on getDatasourceSrv (#80660)
Cloudwatch: remove direct import on getDatasourceSrv
2024-01-18 15:04:37 -05:00
Alexander Weaver
00a260effa Alerting: Add setting to distribute rule group evaluations over time (#80766)
* Simple, per-base-interval jitter

* Add log just for test purposes

* Add strategy approach, allow choosing between group or rule

* Add flag to jitter rules

* Add second toggle for jittering within a group

* Wire up toggles to strategy

* Slightly improve comment ordering

* Add tests for offset generation

* Rename JitterStrategyFrom

* Improve debug log message

* Use grafana SDK labels rather than prometheus labels
2024-01-18 12:48:11 -06:00
Matthew Jacobson
94c3be3b49 Alerting: Fix incorrect render during long legacy upgrade cancel (#80339)
When using the legacy migration dry-run, if a cancel takes a long time (long
enough for the page to poll) the page will incorrectly render the previous
data.

This change stops the polling while the upgrading or cancelling.
2024-01-18 13:30:50 -05:00
Kyle Brandt
02e2e1c64e Prometheus: Set Status(Code) on backend response (#80806)
Sets that status code on backend data responses in prometheus to match the status code returned by prometheus. If the failure is below HTTP/Application Layer, Bad Gateway is returned (502).

---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-01-18 13:23:31 -05:00
Juan Cabanas
fb4125dfbb PublicDashboards: Add middleware function (#80582) 2024-01-18 15:12:29 -03:00
Isabella Siu
0ba7866e2c Update feature toggle registry description for sseGroupByDatasource (#80830) 2024-01-18 13:07:57 -05:00
Ryan McKinley
96fe605d95 FeatureFlags: fix setting flags to false in startup (#80836) 2024-01-18 20:03:45 +02:00
Sarah Zinger
9e08c88a1c Cloudwatch: remove dependency on app/core/config (#80668) 2024-01-18 13:02:55 -05:00
Andrej Ocenas
5b122a25b3 DataFrame: Add optional unique row id definition as frame.meta.uniqueRowIdFields (#80428)
* Define an unique id for a row in dataframe

* Update comment

* Rename attribute

* Add comment about plugin sdk

* Fix comment
2024-01-18 18:51:25 +01:00
Laura Fernández
5800e40fba ReturnToPrevious: create feature toggle (#80831) 2024-01-18 18:12:14 +01:00
Torkel Ödegaard
2cdf73f584 Visualizations: Hue gradient mode now applies to the line color (#80805) 2024-01-18 18:02:56 +01:00
renovate[bot]
f97cea5522 Update dependency eslint to v8.56.0 (#80825)
* Update dependency eslint to v8.56.0

* update sdk

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-18 18:52:04 +02:00
William Wernert
e74313e171 Alerting/Annotations: Return nothing from Loki historian store if query type is annotation (#80742)
* Return empty slice if query type is `annotation`

* Add test + fix related test
2024-01-18 11:39:33 -05:00
Sven Grossmann
ded941eb84 Loki: Fix missing timerange in query builder values request (#80829)
Loki: Fix missing timerange in query builder values
2024-01-18 18:39:09 +02:00
Mihai Doarna
b8cf8ec8d7 Auth: fix swagger response for get SSO settings endpoint (#80817)
fix swagger response for get SSO settings endpoint
2024-01-18 18:27:44 +02:00
Ashley Harrison
d72c035ea6 CommandPalette: Pass matched tag as a search query to 'Add new connection' page (#80556)
* add some special logic to pass the matched tag to the add new connection page

* extend action type to accept callback for url
2024-01-18 16:16:41 +00:00
renovate[bot]
10b1b5da52 Update dependency css-loader to v6.9.0 (#80819)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 17:45:05 +02:00
renovate[bot]
596725ac56 Update dependency core-js to v3.35.0 (#80818)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 17:31:17 +02:00
Ashley Harrison
0a651a90e9 Chore: use GITHUB_TOKEN in metrics-collector action (#80795)
use GITHUB_TOKEN
2024-01-18 15:29:40 +00:00
Alexander Zobnin
484ced521f Auth: Fix identifying rendering request (#80807)
* Auth: Fix identifying rendering request

* Add comments
2024-01-18 15:56:01 +01:00
renovate[bot]
dafd7c7920 Update dependency classnames to v2.5.1 (#80814)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 14:35:08 +00:00
Leon Sorokin
2c5289028d AnnotationsPlugin2: Skip zero-length, field-less, and time-less frames (#80810) 2024-01-18 08:34:28 -06:00
renovate[bot]
3903d3eb94 Update dependency @types/node to v20.11.5 (#80813)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 14:33:36 +00:00
Jo
c767481dee Auth: Cache Auth Info (#80620)
* leverage cache for auth info

* fix tests and integration

* fix panic

* fix panic
2024-01-18 15:22:19 +01:00
Jo
e77dbb63e3 AccessControl: Add group to role picker and standardize display (#79570)
* add group to role picker and standardize display

* change stuttery roles
2024-01-18 15:20:28 +01:00
Gilles De Mey
8a4bd85efd Alerting: Fix Graphite subqueries (#80744) 2024-01-18 15:15:21 +01:00
Sofia Papagiannaki
bb2e0dad22 Chore: Rename folder service query variables for consistency (#80735)
Chore: Rename service query variables for consistency
2024-01-18 16:12:49 +02:00
aalapk
9f2775e771 Update _index.md (#79606)
Just suggesting a typo fix - change "an telemetry" to "a telemetry"
2024-01-18 08:10:01 -06:00
Andre Pereira
ec18c51dfd Data trails: Avoid setting state in MetricScene component (#80746)
* Move setting default action view to activate handler

* Update breakdown when adding label to filters
2024-01-18 13:51:56 +00:00
Fabrizio
4632823af9 Fix output of breaking change check (#80800) 2024-01-18 14:42:45 +01:00
renovate[bot]
6eb51f6367 Update dependency @testing-library/react to v14.1.2 (#80802)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 13:40:41 +00:00
Ezequiel Victorero
9bd214516e Chore: Folder id deprecation in public dashboards (#80579) 2024-01-18 10:27:09 -03:00
renovate[bot]
83c4caebda Update dependency @testing-library/jest-dom to v6.2.0 (#80799)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 13:05:24 +00:00
renovate[bot]
d888358a95 Update dependency @rollup/plugin-json to v6.1.0 (#80798)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 13:04:19 +00:00
Domas
63ac32a4ae Field color: Filter out editor options that have excludeFromPicker=true (#79907)
* filter color palette options to to remove excluded items

* add test

* make betterer happy

* remove unused
2024-01-18 14:28:05 +02:00
Ivana Huckova
120e9044c7 Loki: Remove getQueryOptions as not needed in tests (#80747)
* Loki: Remove getQueryOptions as not needed in tests

* Update to not assert
2024-01-18 12:53:33 +01:00
Ashley Harrison
a1a9813d05 Chore: Adjust stale config to start from oldest first and increase operations limit (#80791)
adjust to do oldest first and increase operations limit
2024-01-18 11:48:59 +00:00
kay delaney
950d57c0f5 Scenes: Set min-height of left panel editor panes to 0 (#80641) 2024-01-18 11:31:51 +00:00
renovate[bot]
a2e9a40caf Update dependency @react-types/shared to v3.22.0 (#80794)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 11:30:18 +00:00
renovate[bot]
0c5f3756ab Update dependency @lezer/highlight to v1.2.0 (#80793)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 11:29:04 +00:00
renovate[bot]
91b862adf9 Update dependency react-hook-form to v7.49.3 (#80789)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 10:53:30 +00:00
renovate[bot]
ec15b2933e Update dependency autoprefixer to v10.4.17 2024-01-18 10:39:29 +00:00
Marco Schaefer
fe70a3cf60 Upgrade Faro to v1.3.6 (#80552) 2024-01-18 11:38:30 +01:00
renovate[bot]
8e43af2fc9 Update dependency @types/react-window-infinite-loader to v1.0.9 (#80786)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 10:11:20 +00:00
renovate[bot]
507503905b Update dependency @types/node-forge to v1.3.11 (#80784)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 10:10:12 +00:00
Will Browne
3885497553 Plugins: Update renderer plugin source (#80643)
* rework renderer plugin source

* add tests
2024-01-18 11:06:33 +01:00
Alexa V
4b113f87f9 Dashboard: Migration - EditVariable Settings: Implement Constant Variable (#80743)
Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com>
2024-01-18 11:04:29 +01:00
renovate[bot]
80395e43d8 Update dependency @grafana/scenes to v1.29.0 (#80745)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 09:51:47 +00:00
renovate[bot]
b620672c67 Update dependency @grafana/faro-web-sdk to v1.3.6 (#80762)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 09:45:20 +00:00
Eric Leijonmarck
ef0dfff756 Users: OSS not using Orgs for users table showing (#80719)
* fix: for removing column

* linting
2024-01-18 09:09:36 +00:00
Gabriel MABILLE
59d997e5a5 RBAC: Update plugin.json roles, includes and routes (#80592)
* RBAC: Update plugin.json roles, includes and routes

* action -> reqAction
2024-01-18 09:47:11 +01:00
Sonia Aguilar
3d353a1b5f Alerting: Fix using required groupBy options validation in simplified routing settings (#80780)
Fix using required groupBy options validation in simplified routing settings
2024-01-18 09:00:48 +01:00
Ryan McKinley
41e523bde7 K8s/FeatureFlags: Add an apiserver to manage feature flags (dev only) (#80501)
* add deployment registry API cloud only

* update versions

* add feature flag endpoints

* use helpers

* merge main

* update AllowSelfServie and re-run code gen

* fix package name

* add allowselfserve flag to payload

* remove config

* update list api to return the full registry including states

* change enabled check

* fix compile error

* add feature toggle and split path in frontend

* changes

* with status

* add more status/state

* add back config thing

* add back config thing

* merge main

* merge main

* now on the /current api endpoint

* now on the /current api endpoint

* drop frontend changes

* change group name to featuretoggle (singular)

* use the same settings

* now with patch

* more common refs

* more common refs

* WIP actually do the webhook

* fix comment

* fewer imports

* registe standalone

* one less file

* fix singular name

---------

Co-authored-by: Michael Mandrus <michael.mandrus@grafana.com>
2024-01-17 21:32:44 -08:00
Ihor Yeromin
cbc84a802d VizTooltip: Add sizing options (#80306)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-01-17 16:49:09 -06:00
Michael Mandrus
db83eb30a2 Caching: Remove useCachingService feature toggle (#80695)
remove useCachingService feature toggle
2024-01-17 16:53:25 -05:00
Ryan McKinley
f434467ef8 Table: Support showing data links inline. (#80691) 2024-01-17 23:05:25 +02:00
Charandas
87c3d3b029 K8s: add the CRD server to the grafana-aggregator component (pkg/cmd) (#80759) 2024-01-17 12:21:24 -08:00
Matias Chomicki
88ee7a1c62 Infinite scroll: exclude visible range from new requests (#80638)
* Infinite scroll: exclude visible range from new requests

* Infinite scroll: revert skipping 1 millisecond on new requests

* Formatting

* Logs models: filter exact duplicates in the response

* mergeDataSeries: do not mutate currentData

* runMoreLogsQueries: return queryResponse while loading

* Infinite scrolling: use special refId for infinite scrolling queries

* Remove log

* Update public/app/features/logs/logsModel.ts

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

* combinePanelData: refactor and add unit test

* logsModel: export infinite scroll refid

* Formatting

* logsModel: add deduplication unit test

* Formatting

* findMatchingRow: add unit test

* Fix test title

* Fix imports order

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2024-01-17 21:12:09 +01:00
Leon Sorokin
2aa533c6c5 AnnotationsPlugin2: Skip exemplar frames (#80760) 2024-01-17 14:08:30 -06:00
renovate[bot]
a4b2b86194 Update Moveable (#73726)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-01-17 12:00:41 -08:00
Joey
9d8f4228bb UX: Remove spacing in duration row in the Tempo query editor (search tab) (#80373)
Remove spacing in duration group
2024-01-17 17:33:59 +00:00
Ivan Ortega Alba
3b401d0d4d CustomVariable: Be able to edit them using scenes (#80193)
---------
Co-authored-by: Alexandra Vargas <alexa1866@gmail.com>
2024-01-17 19:14:01 +02:00
Julien Duchesne
c9211fbd69 ngalert openapi: Use same basePath as rest of Grafana (#79025)
* ngalert openapi: Use same `basePath` as rest of Grafana
Currently, there are two issues that prevent easily merging `ngalert` and grafana openapi specs:
- The basePath is different. `grafana` has `/api` and `ngalert` has `/api/v1`. I changed `ngalert` to use `/api`
- The `ngalert` endpoints have their basePath in the each operation path. The basePath should actually be omitted
---------

Co-authored-by: Yuriy Tseretyan <yuriy.tseretyan@grafana.com>
2024-01-17 11:53:16 -05:00
Gabriel MABILLE
dce9d1e87c RBAC: Search endpoint support wildcards (#80383)
* RBAC: Search endpoint support wildcards

* Allow wildcard filter with RAM permissions as well
2024-01-17 17:07:47 +01:00
Torkel Ödegaard
c27bee567f DataTrails: Fixes heatmap (#80706)
* DataTrails: Heatmap y axis fix

* Fix format
2024-01-17 17:05:24 +01:00
Galen Kistler
c7859c2fa9 Logs Panel: Add total count to logs volume panel in explore (#80730)
add vizLegend override so logs volume can display sum
2024-01-17 09:52:52 -06:00
renovate[bot]
f347de967c Update React Aria (#80737)
* Update React Aria

* remove unused react-aria packages

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-17 17:35:13 +02:00
Gabriel MABILLE
6b954165c5 RBAC: Cover plugin routes (#80578)
* RBAC: Cover plugin routes

* Action instead of ReqAction

* Fix test initializations

* Fix NewPluginProxy call

* Duplicate test to add RBAC checks

* Cover legacy access control as well

* Fix typo

* action -> reqAction

* Add example

Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com>

---------

Co-authored-by: Andres Martinez Gotor <andres.martinez@grafana.com>
2024-01-17 16:32:23 +01:00
Eric Leijonmarck
81a49e8016 Anon: Fix comment out flaky test in anonimpl (#80728)
* fix: flaky test

* add one line
2024-01-17 15:19:29 +00:00
Victor Marin
5a509ef1f1 Scenes: Compare versions in dashboard settings (#80286)
* Add versions tab in dashboard settings

* Fetch and render dashboard versions

* Be able to compare two versions

* PR discussion changes

* remove unnecessary async in test

* PR discussion mods

* linter fix

* styles and tests

* Fix show more versions bug

* migrate files + style fix

* fix test

* refactor styles - css object keys to camelCase

* refactor file migrations

* more files migrations

* remove unused type, cleanup
2024-01-17 17:14:29 +02:00
renovate[bot]
9969218231 Update dependency yaml to v2.3.4 2024-01-17 14:59:11 +00:00
Dominik Prokop
3356fb7726 DashboardScene: Add dashboard slug support (#80726) 2024-01-17 06:58:57 -08:00
renovate[bot]
df2b4efcfb Update dependency whatwg-fetch to v3.6.20 2024-01-17 14:58:41 +00:00
renovate[bot]
b1e6852da0 Update swc monorepo (#80732)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-17 16:58:02 +02:00
renovate[bot]
beb0b82bbd Update dependency uuid to v9.0.1 2024-01-17 14:01:57 +00:00
Misi
da6926f6f7 Auth: SSOSettings handle secret update (#80591)
* first touches

* Merge missing SSO settings to support Advanced Auth pages

* fix

* Update secrets correctly

* Add test for upsert with redactedsecret

* Verify decryption in the List tests
2024-01-17 15:55:55 +02:00
Dominik Prokop
1de876c354 DashboardScene: Get rid of panel edit route (#80605)
* Wip: get rod of panel edit route

* Cleanup unused code

* Test update

* Simplify url sync for inspect and vie/edit panel

* Update navigating back to dashboard from edit panel

* DashboardScene:  Panel inspect improvements (#80655)

Improve inspect, andle view pane end edit mode inspection

* Url sync fixes

* Test update
2024-01-17 05:53:53 -08:00
renovate[bot]
dd7259b77e Update dependency tslib to v2.6.2 2024-01-17 13:41:12 +00:00
renovate[bot]
a103be2285 Update dependency react-virtualized-auto-sizer to v1.0.21 2024-01-17 12:46:57 +00:00
Gábor Farkas
2cb2845ec4 sql: use plugin-sdk code for value-to-float64 conversion (#80621)
sql: use plugin-sdk code
2024-01-17 13:42:32 +01:00
Andres Martinez Gotor
67fe33aa62 Datasources: Ensure the 'Host' custom header functions as expected (#80715)
Supports "Host" custom header.

Co-authored-by: Pei-Tang Huang <tangtheone@gmail.com>
2024-01-17 13:38:45 +01:00
Jean-Philippe Quéméner
82638d059f feat(alerting): add state persister interface (#80384) 2024-01-17 13:33:13 +01:00
renovate[bot]
2d49fb6a7a Update dependency ts-node to v10.9.2 2024-01-17 12:16:33 +00:00
renovate[bot]
f8056a3e56 Update dependency react-virtualized-auto-sizer to v1.0.20 (#80596)
* Update dependency react-virtualized-auto-sizer to v1.0.20

* Update dependency react-virtualized-auto-sizer to v1.0.20

* update types

* mock in a few more tests

* fix InspectDataTab test

* fix test

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-17 12:13:14 +00:00
renovate[bot]
5add09a9ed Update dependency terser-webpack-plugin to v5.3.10 2024-01-17 11:59:32 +00:00
Fabrizio
e1ead0f537 Tempo: Minor refactoring (#80701) 2024-01-17 12:45:17 +01:00
renovate[bot]
472f450333 Update dependency systemjs to v6.14.3 2024-01-17 11:39:29 +00:00
Piotr Jamróz
322cd74b9c Explore: Re-enable basic e2e test for Explore (#80617)
Re-enable basic test for Explore
2024-01-17 12:26:47 +01:00
kay delaney
8872a004e2 Chore: Improve typing for onPanelConfigChange (#80710) 2024-01-17 11:13:14 +00:00
Timur Olzhabayev
7c74ab7059 Revert "bumping go to 1.25.6"
This reverts commit 73439f2cd3.
2024-01-17 11:40:25 +01:00
renovate[bot]
7a9f907882 Update dependency style-loader to v3.3.4 2024-01-17 10:39:36 +00:00
Timur Olzhabayev
73439f2cd3 bumping go to 1.25.6 2024-01-17 11:38:25 +01:00
Gábor Farkas
58b13fed5a postgres: tests: adjusted the timestamps to be in UTC (#80704) 2024-01-17 11:27:43 +01:00
renovate[bot]
76812240a8 Update dependency selecto to v1.26.3 2024-01-17 10:20:21 +00:00
Santiago
3217a0dc05 Alerting: Fix state sync errors counter increment (#80702) 2024-01-17 11:04:27 +01:00
Karl Persson
7b58f71b33 AuthN: Add auth hook that can sync grafana cloud role to rbac cloud role (#80416)
* AuthnSync: Rename files and structures

* AuthnSync: register rbac cloud role sync if feature toggle is enabled

* RBAC: Add new sync function to service interface

* RBAC: add common prefix and role names for cloud fixed roles

* AuthnSync+RBAC: implement rbac cloud role sync

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2024-01-17 10:55:47 +01:00
renovate[bot]
24c32219bb Update dependency sass to v1.69.7 2024-01-17 09:50:37 +00:00
Ieva
def1b05a93 RBAC: Clean up data source permissions after data source deletion (#80654)
* clean up data source permissions after data source deletion

* remove a comment
2024-01-17 09:49:33 +00:00
Gábor Farkas
4291bf4d69 postgres: tests: improve float64-conversion tests (#80627)
postgres: more tests
2024-01-17 10:31:15 +01:00
renovate[bot]
89089efc98 Update dependency rimraf to v5.0.5 2024-01-17 09:21:35 +00:00
Sofia Papagiannaki
d1dab5828d Alerting: Update rule API to address folders by UID (#74600)
* Change ruler API to expect the folder UID as namespace

* Update example requests

* Fix tests

* Update swagger

* Modify FIle field in /api/prometheus/grafana/api/v1/rules

* Fix ruler export

* Modify folder in responses to be formatted as <parent UID>/<title>

* Add alerting test with nested folders

* Apply suggestion from code review

* Alerting: use folder UID instead of title in rule API (#77166)

Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>

* Drop a few more latent uses of namespace_id

* move getNamespaceKey to models package

* switch GetAlertRulesForScheduling to use folder table

* update GetAlertRulesForScheduling to return folder titles in format `parent_uid/title`.

* fi tests

* add tests for GetAlertRulesForScheduling when parent uid

* fix integration tests after merge

* fix test after merge

* change format of the namespace to JSON array

this is needed for forward compatibility, when we migrate to full paths

* update EF code to decode nested folder

---------

Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
Co-authored-by: Virginia Cepeda <virginia.cepeda@grafana.com>
Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>
Co-authored-by: Alex Weaver <weaver.alex.d@gmail.com>
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2024-01-17 11:07:39 +02:00
renovate[bot]
ec1d4274ed Update dependency regenerator-runtime to v0.14.1 (#80696)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-17 09:03:21 +00:00
Fabrizio
5d49602e41 Automatically assign Pyroscope label (#80639) 2024-01-17 09:59:43 +01:00
Karl Persson
43b6b6b2a4 IDForwarding: add "authenticatedBy" to id token (#80622)
* IDForwading: Set authenticated by for users
2024-01-17 09:52:05 +01:00
Andres Martinez Gotor
0d1462cbbb Add real instances to testdata standalone API server (#80473)
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
2024-01-17 09:22:51 +01:00
Gábor Farkas
2bf56b12cf postgres: simplify proxy code (#80121) 2024-01-17 09:20:27 +01:00
Gabriel MABILLE
e062fa1d7e RBAC: Change search permissions buckets to cover long searches (#80624)
* RBAC: Change search permissions histogram start and factor

* Add one bucket and lower start
2024-01-17 09:13:56 +01:00
renovate[bot]
878ba96a70 Update dependency react-use to v17.4.3 (#80690)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-17 00:29:09 +00:00
renovate[bot]
c4cea52aa0 Update dependency react-hook-form to v7.49.3 (#80689)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-17 02:13:33 +02:00
renovate[bot]
bfee861867 Update dependency glob to v10.3.10 (#80684)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 23:58:58 +00:00
lwandz13
00b954203d Docs: Updated anon user and dashboard access (#80400)
* Clarified anon user and viewer role, style updates.

* fixed spelling error
2024-01-16 17:14:35 -06:00
renovate[bot]
59608080c7 Update dependency @types/testing-library__jest-dom to v5.14.9 (#80672)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 23:11:45 +00:00
Alexander Weaver
3c796ecc8f Alerting: Add metric counting rule groups per org (#80669)
* Refactor, fix bad map hint

* Count groups per org
2024-01-16 16:35:56 -06:00
Andre Pereira
6b37a887d5 Data trails: Move and rename to explore metrics (#80649)
* Move data trails to /explore/metrics

* Fix breadcrumbs

* Fix label option link
2024-01-17 00:05:44 +02:00
Ryan McKinley
48a5c1e850 FeatureFlags: Remove the unsupported/undocumented option to read flags from a file (#79959) 2024-01-16 23:18:25 +02:00
Alexander Weaver
68d4e8a930 Annotations: Remove extraneous, debug log messages (#80670)
* drop log messages

* Revert timer

* fix returns, no need to capture vars for log lines anymore
2024-01-16 14:48:11 -06:00
Galen Kistler
7b8db643a3 Logs Panel: Table UI - Reordering table columns via drag-and-drop (#79536)
* Implement react-beautiful-dnd to facilitate column reordering
* Refactoring field display components
* Refactoring internal types to better align with Grafana style guide

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2024-01-16 14:27:29 -06:00
renovate[bot]
581936a442 Update dependency @types/semver to v7.5.6 (#80667)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 20:08:09 +00:00
Giordano Ricci
9770768efc Chore: refactor some styles in explore to use the object syntax (#80080)
* Chore: refactor some styles in explore to use the object syntax

* refactor LiveLogs styles to use object syntax

* Revert "refactor LiveLogs styles to use object syntax"

This reverts commit 293aa2589f.
2024-01-16 19:49:12 +00:00
renovate[bot]
894353241a Update dependency @types/prismjs to v1.26.3 (#80658)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 18:27:36 +00:00
colin-stuart
097f3c7e06 Auth: Add docs for the SSO Settings get endpoint (#80240)
* add docs for sso-settings get endpoint

* Update docs/sources/developers/http_api/sso-settings.md

Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>

* Update docs/sources/developers/http_api/sso-settings.md

Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>

---------

Co-authored-by: Misi <mgyongyosi@users.noreply.github.com>
2024-01-16 13:27:28 -05:00
Andre Pereira
d27e2fec88 Data Trails: Actions redesign and overview tab (#80216)
* Use last used datasource or default datasource when starting a trail

* Use tabs and move actions bar to same line when possible

* Added overview tab with description, type and labels

* Clickable labels in overview tab

* Show label value counts next to the label name

* Fix action bar zIndex

* Address PR comments

* Refactor

* Refactor getLabelOptions to utils

* Reuse language provider from state

* betterer

* testing some refactors

* Remove unreachable code

* Refactor GROUP_BY var to MetricScene

* Fix url by excluding var-groupby

* Fix conflicts

* Use <Text/> instead of custom styles

* Simplify setting overview as default tab

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2024-01-16 20:22:53 +02:00
Oscar Kilhed
14c82c2725 Scenes: Show transformations when editing scene dashboard (#80372)
* Make dashboard data source query actually use DashboardDataSource

* remove commented out bit

* Always wrap SceneQueryRunner with SceneDataTransformer

* Update Dashboard model compat wrapper tests

* DashboardQueryEditor test

* VizPanelManager tests update

* transform save model to scene tests update

* Betterer

* PanelMenuBehavior test update

* Few more bits

* Prettier

* Show transformations when editing scene dashboard

* remove and edit transformations works

* add add and remove buttons

* Change styles to object to fix betterer issue

* Revert "Change styles to object to fix betterer issue"

This reverts commit 8627b9162c.

* Fix the correct file...

* Some refactoring

* remove unneessary if statement

* panel data not present on first render

* move transformation tabs out of folder

* fix tests

* add lint exception

* refactor tab component

* Fix merge issue

* reorder components

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-01-16 18:59:32 +01:00
Darren Janeczek
dbae7ccd3f refactor: data trails auto query for buckets (#80170)
* refactor: data trails auto query for buckets

* refactor: vizBuilder function signature (#80178)

* fix: use closures for setting unit and title in vizBuilders
2024-01-16 12:46:12 -05:00
Usman Ahmad
739cba6eb9 updated grafana docker video timestamp (#80659)
Update the documentation page:

https://grafana.com/docs/grafana/latest/setup-grafana/installation/docker/

Added the time when the actual demo starts.
2024-01-16 11:22:32 -06:00
Levent Tutar
3aa228f50c Update _index.md with the correct number of bullets. (#80382)
There are 4 bullets but the text mentions 3.
2024-01-16 11:10:16 -06:00
renovate[bot]
4ea1e80a39 Update dependency @types/lodash to v4.14.202 (#80644)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 18:33:48 +02:00
Usman Ahmad
0f093c1463 Update Grafana Kubernetes installation page (#80569)
Removed the Vimeo and added the YouTube link after an internal discussion with the team.
2024-01-16 10:32:57 -06:00
Ryan McKinley
e1d387d826 K8s/Storage: Register field-selector on all kinds (#79822)
Co-authored-by: Dan Cech <dcech@grafana.com>
2024-01-16 08:30:01 -08:00
Ivana Huckova
73715a1de9 Loki: Use DataSourcePicker from runtime in DerivedField (#80629) 2024-01-16 17:29:30 +01:00
renovate[bot]
17efc72cae Update dependency @types/jest to v29.5.11 (#80642)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 16:19:26 +00:00
Santiago
3afd94185c Alerting: Add metric to check for default AM configurations (#80225)
* Alerting: Add metric to check for default AM configurations

* Use a gauge for the config hash

* don't go out of bounds when converting uint64 to float64

* expose metric for config hash

* update metrics after applying config
2024-01-16 17:12:24 +01:00
renovate[bot]
06800e2d31 Update dependency @testing-library/user-event to v14.5.2 (#80633)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 16:03:52 +00:00
Fabrizio
c0da4d2a2a Remove legacy dependency (#80619) 2024-01-16 17:00:27 +01:00
Lauri Tirkkonen
a9c376db1d grafana metrics dashboard: use correct grafana http request metrics (#80338)
grafana's metrics exporter does not provide a metric called
"http_request_total"; fix the dashboard to use the actually existing
"grafana_http_request_duration_seconds_count"
2024-01-16 10:00:00 -06:00
Isabel
f9dcc9ff90 Docs: add more time zone guidance (#79595)
* Created report time zone section with added guidance

* Added more information

* Updated from review suggestions

* Update docs/sources/dashboards/create-reports/index.md

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

* Ran prettier

---------

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
2024-01-16 10:52:32 -05:00
renovate[bot]
054feec107 Update dependency @lezer/common to v1.2.1 2024-01-16 15:42:28 +00:00
Eric Leijonmarck
28009228e5 Anonymous: Fix flaky tests (#80631)
fix: flaky tests
2024-01-16 15:41:28 +00:00
Gilles De Mey
ea4bfc23ca Alerting: Improve notification policies view performance (#80209) 2024-01-16 16:30:25 +02:00
renovate[bot]
ddbe4d2bba Update dependency @grafana/lezer-logql to v0.2.2 (#80614)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 14:25:05 +00:00
Horst Gutmann
01e430e821 chore: Bump Alpine base image to 3.18.5 (#80540) 2024-01-16 15:24:40 +01:00
Haris Rozajac
bdbc3f351c Explore: Format data in Data tab in Query Inspector (#80004)
* Fix betterer

* Improve formatting logic
2024-01-16 07:04:31 -07:00
renovate[bot]
e7099eabb3 Update dependency @grafana/faro-web-sdk to v1.3.6 (#80613)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 15:27:57 +02:00
Jack Westbrook
de01e1db18 Chore: Remove unused babel dependencies and references (#76791)
* build(babel): remove unused babel dependenices and references from project

* chore: put back ts-loader

* chore(yarn): refresh lock file

* revert: remove ts-loader
2024-01-16 14:26:43 +01:00
renovate[bot]
8f7315f7d9 Update dependency @grafana/faro-core to v1.3.6 (#80612)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 13:12:14 +00:00
kay delaney
5640f25213 Scenes/PanelEdit: Fix some styles and flesh out the skeleton (#80366) 2024-01-16 12:58:07 +00:00
Joey
6796e66fb8 Pyroscope: Add standalone build (#80222)
* Pyroscope standalone build

* Fix for tests

* Add missing packages

* Remove import

* Update trace to profiles

* Update test
2024-01-16 12:46:15 +00:00
renovate[bot]
96010eb21e Update dependency @floating-ui/react to v0.26.6 (#80611)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-16 14:19:47 +02:00
Alexa V
6c609051a0 Dashboard: Migration - EditVariable Settings: Implement TextBox Variable (#80293)
Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com>
2024-01-16 12:38:34 +01:00
Tania
c0918d41dd Chore: Remove extra loop over folders in GetFolders handler (#79933)
Chore: Remove extra loop in GetFolders handler
2024-01-16 12:35:10 +01:00
Ivana Huckova
712c505251 Divider: Remove core component and replace with grafana/ui components (#80574)
* Divider: Remove core component and replace with grafana/ui components

* Update gap

* Bump experimental in tempo

---------

Co-authored-by: Fabrizio <fabrizio.casati@grafana.com>
2024-01-16 13:27:51 +02:00
Ivan Ortega Alba
07778cb221 DashboardLinksSettings: Move them to Scenes (#79998) 2024-01-16 13:24:54 +02:00
Uladzimir Dzmitračkoŭ
313c43749c Explore: Fix incorrect interpolation of table title (#80227) 2024-01-16 12:22:32 +01:00
Ashley Harrison
127decee1e Release: Deprecate latest.json and replace with api call to grafana.com (#80537)
* remove latest.json and replace with api call to grafana.com

* remove latest.json

* Revert "remove latest.json"

This reverts commit bcff43d898.

* Revert "remove latest.json and replace with api call to grafana.com"

This reverts commit 02b867d84e.

* add deprecation message to latest.json
2024-01-16 11:19:32 +00:00
renovate[bot]
31256bcc85 Update dependency @babel/core to v7.23.7 2024-01-16 11:16:27 +00:00
Ivana Huckova
b97170b01e Loki: Remove dependency in test files on selectOptionInTest (#80546)
* Loki: Remove dependecy in test files on selectOptionInTest

* Remove await waitFor(() => where not needed
2024-01-16 12:07:53 +01:00
Ivana Huckova
67d77e76be Loki: Refactor debug section to remove dependency on deprecated getFieldLinksForExplore (#80594)
* Refactor debug section

* Show href only if matched regex
2024-01-16 12:00:31 +01:00
Tolya Korniltsev
b5a1a3e106 Profiling: Import godeltaprof/http/pprof (#80509)
chore: import godeltaprof/http/pprof

This adds /debug/pprof/delta_{heap,mutex,block} endpoints to DefaultServeMux
and the profiling port.
2024-01-16 17:58:35 +07:00
renovate[bot]
f4629f7014 Update dependency react-window to v1.8.10 2024-01-16 10:40:18 +00:00
Fabrizio
522519f671 Tempo: Decouple Tempo from Grafana core (#79888) 2024-01-16 11:36:40 +01:00
Ashley Harrison
767029a43d use exposed interface from rc-tooltip 2024-01-16 12:25:31 +02:00
renovate[bot]
f5cabd4db0 Update dependency rc-tooltip to v6.1.3 2024-01-16 12:25:31 +02:00
Fabrizio
3c9a93c86d Update tests to protect against regression in #79938 (#80595) 2024-01-16 11:22:04 +01:00
renovate[bot]
cd8bf4c8cb Update dependency react-use to v17.4.3 2024-01-16 10:09:39 +00:00
Timur Olzhabayev
c02d57c6a9 Chore: removing folderId from plugindashboard service (#80570)
* removing folderId from plugindashboard service

* fixing linting
2024-01-16 11:08:39 +01:00
Andres Martinez Gotor
55106c6ba8 Update grafana-plugin-sdk v0.199.0 (#80590) 2024-01-16 10:26:42 +01:00
renovate[bot]
60711c0e63 Update dependency react-hook-form to v7.49.3 2024-01-16 01:49:52 +00:00
renovate[bot]
081779a347 Update dependency react-grid-layout to v1.4.4 2024-01-16 00:47:50 +00:00
renovate[bot]
54cfaf7ff0 Update dependency react-draggable to v4.4.6 2024-01-15 21:48:30 +00:00
renovate[bot]
8184b36047 Update dependency re-resizable to v6.9.11 2024-01-15 21:15:04 +00:00
renovate[bot]
773b65cdcb Update dependency rc-tree to v5.8.2 2024-01-15 19:27:18 +00:00
Kevin Yu
82c85de0e8 CloudWatch: remove DataSourcePicker core import (#79491) 2024-01-15 10:09:34 -08:00
renovate[bot]
7f5420b18b Update dependency postcss-scss to v4.0.9 2024-01-15 17:39:01 +00:00
renovate[bot]
190b748d34 Update dependency postcss-loader to v7.3.4 2024-01-15 17:38:29 +00:00
Gabriel MABILLE
48ff532ca8 RBAC: Add histogram metric on search endpoint (#80553)
RBAC: Add histogram on search endpoint
2024-01-15 17:56:01 +01:00
renovate[bot]
d59a9ac3a7 Update dependency postcss to v8.4.33 2024-01-15 16:46:31 +00:00
renovate[bot]
905b19c0dd Update dependency ol-ext to v4.0.13 2024-01-15 16:46:00 +00:00
Sonia Aguilar
ae23cd7cf7 Alerting: Fix validation of selected contact point being required in the alert form when simplified routing (#80565)
Fix validation of selected contact point being required in the alert rule form
2024-01-15 17:45:01 +01:00
Ida Štambuk
d3a89a28fa Cloudwatch Metrics: Adjust error handling (#79911) 2024-01-15 17:19:26 +01:00
Ashley Harrison
406ace27c0 Chore: remove merge conflict from .betterer.results (#80563)
remove merge conflict
2024-01-15 16:19:16 +00:00
Torkel Ödegaard
084b9f060c SharePanelQuery: Improve query editor UI (#80535)
* SharePanelQuery: Improve query editor UI

* tweak

* Update
2024-01-15 17:13:22 +01:00
renovate[bot]
693b07c0f7 Update dependency moment-timezone to v0.5.44 (#80561)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-15 15:51:10 +00:00
renovate[bot]
d77922c3c3 Update dependency mini-css-extract-plugin to v2.7.7 2024-01-15 15:44:42 +00:00
Torkel Ödegaard
8157711893 DashboardDataSource: Implement sharing logic inside the data source (#80526)
* Make dashboard data source query actually use DashboardDataSource

* remove commented out bit

* Always wrap SceneQueryRunner with SceneDataTransformer

* Update Dashboard model compat wrapper tests

* DashboardQueryEditor test

* VizPanelManager tests update

* transform save model to scene tests update

* Betterer

* PanelMenuBehavior test update

* Few more bits

* Prettier

---------

Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2024-01-15 16:43:30 +01:00
arukiidou
bffb28c177 refactor: use golang.org/x/oauth2 pkce option (#80511)
Signed-off-by: junya koyama <arukiidou@yahoo.co.jp>
2024-01-15 16:24:02 +01:00
Victor Marin
1cf53a34d1 Scenes: Render versions in dashboard settings (#80229)
* Add versions tab in dashboard settings

* Fetch and render dashboard versions

* PR discussion changes

* remove unnecessary async in test

* PR discussion mods

* linter fix
2024-01-15 16:57:45 +02:00
Ashley Harrison
d5db67a073 Chore: type improvements (#80464)
* type improvements

* some more fixes

* add TODOs to remove type assertions
2024-01-15 14:29:39 +00:00
renovate[bot]
b23ecaa3d1 Update dependency marked-mangle to v1.1.6 2024-01-15 14:25:42 +00:00
renovate[bot]
87b613411c Update dependency kbar to v0.1.0-beta.45 (#80554)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-15 14:24:50 +00:00
renovate[bot]
7a3a722132 Update dependency jquery to v3.7.1 2024-01-15 13:39:06 +00:00
renovate[bot]
986ddc1ad6 Update dependency jest-fail-on-console to v3.1.2 2024-01-15 13:38:14 +00:00
renovate[bot]
8adfad4055 Update dependency @grafana/faro-web-sdk to v1.3.6 2024-01-15 13:14:17 +00:00
Sonia Aguilar
10f0d094ad Alerting: Visualize autogenerated policy tree for simplified routing. (#79509)
* WIP

* WIP: disable some actions when is autogenerated policy

* WIP

* Wip: add checks for group by in auto-generated policy

* Make autogenerated policy readOnly and enable Readonly modal for it

* Use real check for autogenerated root

* Fix test

* Refactor: rename consts

* Add test for policy form being read only

* Add tests

* Update some code comments

* Fix Switch component not being styled as disabled

* Rename isAutogeneratedChunkOpen property to isBranchOpen and fix test

* Revert fix for Switch as it has moved to another separate PR

* Split Policy component in smaller sub components

* use useAlertmanagerAbility form for checking autogenerated tree visibility and fix container for autogenerated policy being rendered when it's not supported

* Update useAbilities test and dont use toAbility for ViewAutogeneratedPolicyTree

* Fix Policy being unmounted every 10 secs and move the collapsed/expanded state to each Policy component

* remove permissions from createDropdownMenuActions method parameters and convert the method to a hook

* Revert using PolicyItem

* Add test for createDropdownMenuActions

* Revert having a read only view form for the policy

* Remove readonly from default policy form

* Only show collapsible when node has children

* Split DefaultPolicyIndicator

* use hidehideCurrentPolicy instead of showCurrentPolicy

* Address some review suggestions
2024-01-15 13:36:26 +01:00
renovate[bot]
9f0bb9cb07 Update dependency @grafana/faro-core to v1.3.6 2024-01-15 12:27:38 +00:00
Giordano Ricci
2a4f6ba5b0 Explore: skip flaky e2e test (#80543) 2024-01-15 12:26:34 +00:00
Eric Leijonmarck
3979ea0c47 Anonymous Access: Pagination for devices (#80028)
* first commit

* add: pagination to anondevices

* fmt

* swagger and tests

* swagger

* testing out test

* fixing tests

* made it possible to query for from and to time

* refactor: change to query for ip adress instead

* fix: tests
2024-01-15 12:13:38 +00:00
Máté Szabó
e2b706fdd3 Jaeger: Add service dependency graph support (#72200)
* Jaeger: Add service dependency graph support

Add support for visualizing Jaeger's service dependency graph via the
Jaeger data source. Per the discussion[1], this is done by proxying the
internal Jaeger HTTP API endpoint used by Jaeger's own UI for fetching
graph data, and transforming it into a format suitable for the node
graph panel in Grafana.

---
[1] https://github.com/grafana/grafana/discussions/52035

* Small lint fixes

* Type fix

---------

Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
2024-01-15 13:02:00 +01:00
Gábor Farkas
6a36525d61 postgres: better error handling (#80375) 2024-01-15 12:50:01 +01:00
renovate[bot]
a3b9ec21db Update dependency immutable to v4.3.4 2024-01-15 11:45:28 +00:00
Ashley Harrison
ec53487c99 NestedFolderPicker: separate toggle to force enable picker without nestedFolders (#80461)
* separate nestedFolderPickerOverride toggle to force enable it without nestedFolders

* let's call it newFolderPicker

* update unit tests and keyboard handling

* reduce spacing when no folder open chevron

---------

Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
2024-01-15 11:43:19 +00:00
renovate[bot]
d91d4e87b9 Update dependency immer to v10.0.3 2024-01-15 11:31:54 +00:00
Ashley Harrison
15af2e5053 Connections: Pass keywords from the backend to CommandPalette (#80276)
* pass keywords from the backend to CommandPalette

* add csv and json to keywords
2024-01-15 11:30:55 +00:00
Andres Martinez Gotor
343422537e Chore: Fix Azure Monitor plugin build (#80528) 2024-01-15 12:11:09 +01:00
Josh Hunt
94ec6474d3 NestedFolders: Support Shared with me folder for showing items you've been granted access to (#80141)
* start shared with me frontend tweaks

* prevent linking to sharedwithme folder

* tests

* make divider take up 0 height

* Prevent sharedwithme from being selected

* test
git push

* pr feedback

* prevent setting url for sharedwithme

* split iconForItem/kind functions

* Hide sharedwithme in nested folder picker

* fix test fixture
2024-01-15 10:56:31 +00:00
renovate[bot]
b7d6fa4423 Update dependency glob to v10.3.10 2024-01-15 10:39:28 +00:00
renovate[bot]
97f71c2240 Update dependency eslint-plugin-jest to v27.6.3 2024-01-15 10:38:53 +00:00
dependabot[bot]
20db9ebcc2 Bump go.opentelemetry.io/collector/pdata from 1.0.0-rc8 to 1.0.1 (#80520)
Bumps [go.opentelemetry.io/collector/pdata](https://github.com/open-telemetry/opentelemetry-collector) from 1.0.0-rc8 to 1.0.1.
- [Release notes](https://github.com/open-telemetry/opentelemetry-collector/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-collector/blob/main/CHANGELOG-API.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-collector/compare/pdata/v1.0.0-rc8...pdata/v1.0.1)

---
updated-dependencies:
- dependency-name: go.opentelemetry.io/collector/pdata
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-15 11:37:57 +01:00
Ashley Harrison
083605c17f DockedMenu: only set the menu state to be docked if the window size is big enough (#80379)
* only set the menu docked in state if the window size is big enough

* adjust sizes

* remove top border on dockedMegaMenu

* another css tweak

* use xxl consistently

* CONSISTENTLY

* ok maybe not
2024-01-15 10:12:41 +00:00
renovate[bot]
f862bcb509 Update dependency csstype to v3.1.3 2024-01-15 10:08:02 +00:00
renovate[bot]
9b5b76aedd Update dependency @types/slate-plain-serializer to v0.7.5 (#80495)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-15 10:02:01 +00:00
Andreas Christou
702e7cb3ac Azure: Fix type exports (#80469)
Fix type exports
2024-01-15 10:54:52 +01:00
Kyle Cunningham
1596339796 Chore: Update CODEOWNERS for end of BI (#80522)
Update CODEOWNERS
2024-01-15 11:53:22 +02:00
Ashley Harrison
21200fd5f8 Chore: Mock out faro so this test doesn't throw an error (#80477)
mock out faro for all tests
2024-01-15 09:43:53 +00:00
renovate[bot]
d231e271f2 Update dependency autoprefixer to v10.4.16 2024-01-15 09:42:25 +00:00
Gábor Farkas
cfddc67a25 sql: support the no-tls option in the socks proxy (#80376)
postgres: support the no-tls option in the socks proxy
2024-01-15 09:57:43 +01:00
renovate[bot]
7452fe92de Update dependency @types/yargs to v17.0.32 2024-01-15 08:28:28 +00:00
renovate[bot]
2080d49fae Update dependency @types/webpack-env to v1.18.4 2024-01-15 07:56:23 +00:00
Gábor Farkas
6b5805dd1b postgres: vendor in the file-exists helper (#80446) 2024-01-15 08:53:43 +01:00
renovate[bot]
b4d7c484c7 Update dependency @types/trusted-types to v2.0.7 2024-01-15 05:21:57 +00:00
renovate[bot]
cb4b9e083c Update dependency @types/tinycolor2 to v1.4.6 2024-01-15 01:41:12 +00:00
renovate[bot]
0e04c934b7 Update dependency @types/testing-library__jest-dom to v5.14.9 2024-01-15 00:13:21 +00:00
renovate[bot]
4482062bf3 Update dependency @types/string-hash to v1.1.3 2024-01-14 21:55:12 +00:00
renovate[bot]
02300c3ae6 Update dependency @types/react-resizable to v3.0.7 2024-01-14 20:29:14 +02:00
Yuri Tseretyan
4b071f5452 Alerting: Fix MuteTiming Get API to return provenance status (#80494) 2024-01-13 00:16:54 +02:00
Julien Duchesne
2fb03dfa56 fix(swagger): Mute Timing PUT OK status is 202 (#80459) 2024-01-12 16:58:20 -05:00
renovate[bot]
003f7b1581 Update dependency @types/semver to v7.5.6 2024-01-12 21:35:36 +00:00
Dan Cech
d76defe517 K8s: Move GrafanaMetaAccessor into grafana-apiserver and remove usage of kinds metadata (#79602)
* move GrafanaMetaAccessor into pkg/apis, add support for Spec.Title & Spec.Name

* K8s: Move GrafanaMetaAccessor (PR into another) (#79728)

* access titles

* remove title

* remove title

* remove kinds metadata accessor

* remove kinds metadata accessor

* fixes

* error handling

* fix tests

---------

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-01-12 16:18:14 -05:00
renovate[bot]
da894994d4 Update dependency @types/redux-mock-store to v1.0.6 2024-01-12 20:49:50 +00:00
renovate[bot]
3790454bcf Update dependency @types/react-window-infinite-loader to v1.0.9 2024-01-12 20:23:40 +00:00
Ryan McKinley
bb05a6f58f K8s: Move shared apis to a common folder with shared openapi spec (#80484) 2024-01-12 12:05:30 -08:00
Alexander Weaver
81c45bfe44 Annotations: Split cleanup into separate queries and deletes to avoid deadlocks on MySQL (#80329)
* Split subquery when cleaning annotations

* update comment

* Raise batch size, now that we pay attention to it

* Iterate in batches

* Separate cancellable batch implementation to allow for multi-statement callbacks, add overload for single-statement use

* Use split-out utility in outer batching loop so it respects context cancellation

* guard against empty queries

* Use SQL parameters

* Use same approach for tags

* drop unused function

* Work around parameter limit on sqlite for large batches

* Bulk insert test data in DB

* Refactor test to customise test data creation

* Add test for catching SQLITE_MAX_VARIABLE_NUMBER limit

* Turn annotation cleanup test to integration tests

* lint

---------

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
2024-01-12 14:05:04 -06:00
renovate[bot]
f84c8f6853 Update dependency @types/react-transition-group to v4.4.10 2024-01-12 19:46:07 +00:00
renovate[bot]
05d8fd9d85 Update dependency @types/react-test-renderer to v18.0.7 2024-01-12 19:24:50 +00:00
Yuri Tseretyan
4479e7218d Alerting: MuteTiming service return errutil + GetTiming by name (#79772)
* add get mute timing by name to MuteTimingService
* update get mute timing request handler to use the service method

* replace validation, uniqueness and used errors with errutils
* update mute timing methods return errutil responses
* use the term "time interval" in errors bevause mute timings are deprecated in Alertmanager and will be replaced by time intervals in the future.

* update create and update methods to return struct instead of pointer
2024-01-12 21:23:44 +02:00
Tamás Nyíri
11662e18b3 TimelineChart: Fix rendering of small boxes (#72775) (#80420) 2024-01-12 12:59:46 -06:00
renovate[bot]
235c747472 Update dependency @types/react-table to v7.7.19 2024-01-12 18:45:27 +00:00
Armand Grillet
77ae1a5f6f Alerting: Rename min interval field to interval in alert query editor (#80453) 2024-01-12 18:35:31 +01:00
renovate[bot]
7f3b748b29 Update dependency @types/react-highlight-words to v0.16.7 (#80475)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-12 17:31:53 +00:00
renovate[bot]
d96cd145d7 Update dependency @types/react-color to v3.0.11 2024-01-12 17:30:28 +00:00
Sven Grossmann
4e474161a1 Logs: Add show context to dashboard panel (#80403)
* Logs: Add show context to dashboard panel

* add prop to enable show context toggle

* update test

* adjust tests

* add query targets as a dependency

* extract `useDatasourcesFromTargets` hook

* add tests

* remove comment
2024-01-12 19:19:00 +02:00
renovate[bot]
e3745b5fb8 Update dependency @types/react-beautiful-dnd to v13.1.8 2024-01-12 17:07:43 +00:00
Pascal Zimmermann
1129f80746 docs: Adjust the update command documentation of the public dashboard endpoint (#77925) 2024-01-12 19:07:16 +02:00
Galen Kistler
289bfc070e Loki: Derived fields unit test flake (#79949)
use async find when interacting with elements to avoid flakey 'not wrapped in act(...)' error
2024-01-12 19:05:58 +02:00
Fabrizio
c6db73f0bf Tempo: Fix regression caused by #79938 (#80465) 2024-01-12 17:35:24 +01:00
renovate[bot]
9ba56d9349 Update dependency @types/prismjs to v1.26.3 2024-01-12 16:31:08 +00:00
Jamin
66c85d9826 Frontend: Migrate LoadingIndicator.tsx from aria-label e2e selectors to data-testid (#79664)
* refactor: update component to use data-testid

* refactor: update loading indicator e2e selector

* oops - forgot to update betterer results

* update loading indicator in variable picker

---------

Co-authored-by: joshhunt <josh@trtr.co>
Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
2024-01-12 18:30:11 +02:00
renovate[bot]
a886bd3c79 Update dependency @types/pluralize to ^0.0.33 (#80457)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-12 15:56:43 +00:00
Sonia Aguilar
4ea997b595 Alerting: Fix firing alerts title when showing active in Insights panel (#80414)
* Fix firing alerts title when showing active alerts in Insights panel

* Update red to green and change the component name to Active.tsx instead of Firing.tsx
2024-01-12 16:47:27 +01:00
idafurjes
cb419e799b Remove folderid service test (#80433)
* Remove FolderID from service tests

* Add models

* Add folderID pack to publicdashboard tests

* Remove folderID from dashboard tests

* Remove folderID from folders

* Remove folderID from ngalert tests

* Remove nolint comment

* Add back some tests after rebase
2024-01-12 16:43:39 +01:00
renovate[bot]
e553d4b796 Update dependency @types/papaparse to v5.3.14 2024-01-12 15:34:01 +00:00
renovate[bot]
2b43977a39 Update dependency @types/node-forge to v1.3.11 2024-01-12 14:46:43 +00:00
Joao Silva
9f351d1041 Timeline: Fix codeowners to point at dataviz squad (#80452) 2024-01-12 14:45:47 +00:00
renovate[bot]
941d5431f7 Update dependency @types/ol-ext to v3.2.4 2024-01-12 14:21:51 +00:00
Misi
c196bde2e0 Auth: Include missing SSO settings from system settings on read paths (#80421)
* first touches

* Merge missing SSO settings to support Advanced Auth pages

* fix
2024-01-12 15:20:50 +01:00
brendamuir
d50abe2ea2 Alerting docs: changes wrong label on configure alert state history doc (#80438) 2024-01-12 15:16:59 +01:00
Giordano Ricci
e471064cda Explore: use numeric ids for panel ids when building query transactions (#80135) 2024-01-12 14:05:46 +00:00
renovate[bot]
cc050ca317 Update dependency @types/mousetrap to v1.6.15 2024-01-12 13:32:29 +00:00
renovate[bot]
b9c616ce1d Update dependency @types/mock-raf to v1.0.6 2024-01-12 13:31:34 +00:00
kay delaney
4a5f271142 Scenes/PanelEdit: Replace panel when commiting editor changes (#80282)
* Scenes/PanelEdit: Replace panel when commiting editor changes

* Clone panel rather than setting it as body directly
2024-01-12 15:22:53 +02:00
renovate[bot]
a491938dfe Update dependency @types/marked to v5.0.2 2024-01-12 13:07:08 +00:00
renovate[bot]
95c7034a58 Update dependency @types/lucene to v2.1.7 2024-01-12 13:06:25 +00:00
renovate[bot]
3594a068a6 Update dependency @types/lodash to v4.14.202 2024-01-12 11:42:12 +00:00
renovate[bot]
dae5430095 Update dependency @types/js-yaml to v4.0.9 2024-01-12 11:41:16 +00:00
Matias Chomicki
aa670280fc Logs: add infinite scrolling to Explore (#76348)
* Explore: propose action, thunk, and decorators for load more

* LogsContainer: add loadMore method

* Query: remove unused var

* Loading more: use navigation to simulate scrolling

* Explore: figure out data combination

* Fix imports

* Explore: deduplicate results when using query splitting

* LogsNavigation: add scroll behavior

* Remove old code

* Scroll: adjust delta value

* Load more: remove refIds from signature

We can resolve them inside Explore state

* Load more: rename to loadMoreLogs

* Infinite scrolling: use scrollElement to listen to scrolling events

* Explore logs: add fixed height to scrollable logs container

* Logs: make logs container the scrolling element

* Logs: remove dynamic logs container size

It works very well with 1 query, but breaks with more than 1 query or when Logs is not the last rendered panel

* Logs navigation: revert changes

* Infinite scroll: create component

* Infinite scroll: refactor and clean up effect

* Infinite scroll: support oldest first scrolling direction

* Infinite scroll: support loading oldest logs in ascending and descending order

* Infinite scroll: use scroll to top from logs navigation

* Logs: make logs container smaller

* Logs: make container smaller

* State: integrate explore's loading states

* Infinite scroll: add loading to effect dependency array

* Infinite scroll: display message when scroll limit is reached

* Infinite scroll: add support to scroll in both directions

* Infinite scroll: capture wheel events for top scroll

* scrollableLogsContainer: deprecate in favor of logsInfiniteScrolling

* Infinite scroll: implement timerange limits

* Infinite scroll: pass timezone

* Fix unused variables and imports

* Infinite scroll: implement timerange limits for absolute time

* Infinite scroll: fix timerange limits for absolute and relative times

* Infinite scroll: reset out-of-bounds message

* Logs: make container taller

* Line limit: use "displayed" instead of "returned" for infinite scrolling

* Infinite scrolling: disable behavior when there is no scroll

* Remove console log

* Infinite scroll: hide limit reached message when using relative time

* Logs: migrate styles to object notation

* Prettier formatting

* LogsModel: fix import order

* Update betterer.results

* Logs: remove exploreScrollableLogsContainer test

* Infinite scroll: display loader

* Infinite scroll: improve wheel handling

* Explore: unify correlations code

* Explore: move new function to helpers

* Remove comment

* Fix imports

* Formatting

* Query: add missing awaits in unit test

* Logs model: add unit test

* Combine frames: move code to feature/logs

* Explore: move getCorrelations call back to query

It was causing a weird test failure

* Fix imports

* Infinite scroll: parametrize scrolling threshold

* Logs: fix overflow css

* Infinite scroll: add basic unit test

* Infinite scroll: add unit test for absolute time ranges

* Formatting

* Explore query: add custom interaction for scrolling

* Query: move correlations before update time

* Fix import in test

* Update comment

* Remove comment

* Remove comment

* Infinite scroll: report interactions from component

* Fix import order

* Rename action

* Infinite scroll: update limit reached message

* Explore logs: remove type assertion

* Update betterer
2024-01-12 13:22:03 +02:00
renovate[bot]
df513c870f Update dependency @types/jest to v29.5.11 2024-01-12 11:08:22 +00:00
Ida Štambuk
dfc251d5b9 Cloudwatch Variable Editor: Adjust width in new form styling (#80387) 2024-01-12 12:07:22 +01:00
SeamusGrafana
7dc6a047f7 Auth: Update Authentik DB in DevEnv to fix expired SSL Certs (#80427)
Update Authentik DB
2024-01-12 11:36:17 +01:00
Dominik Prokop
900fa04c9b VariableEditorForm: Fix multi-value variable runtime error (#80425) 2024-01-12 12:24:53 +02:00
renovate[bot]
d2293e0848 Update dependency @types/is-hotkey to v0.1.10 (#80422)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-12 10:21:00 +00:00
Joey
dd9b3d65d4 Tempo: Update trace to profiles link (#80364)
Update trace to profiles link
2024-01-12 10:20:01 +00:00
Ivan Ortega Alba
e9f1b41d23 EditVariable: Add base form to edit variables (#80172) 2024-01-12 12:01:11 +02:00
Giuseppe Guerra
e69feef314 Devenv: Tempo: Fix metrics_generator override in config (#80270)
* Devenv: Tempo: Fix metrics_generator override in config

* trigger
2024-01-12 10:57:44 +01:00
renovate[bot]
d3abab2896 Update dependency @types/hoist-non-react-statics to v3.3.5 2024-01-12 09:56:28 +00:00
renovate[bot]
5d4ca21afa Update dependency @types/gtag.js to ^0.0.18 (#80418)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-12 11:56:21 +02:00
renovate[bot]
ecf5c46e95 Update dependency @rollup/plugin-commonjs to v25.0.7 2024-01-12 09:41:23 +00:00
renovate[bot]
2576f9103c Update dependency @types/google.analytics to ^0.0.45 (#80392)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-12 09:41:07 +00:00
Hugo Kiyodi Oshiro
243eba228e Plugins: Parse defaultValues correctly for nested options (#80302)
* Plugins: Parse defaultValues correctly for nested options

---------

Co-authored-by: Esteban Beltran <esteban@academo.me>
2024-01-12 10:36:10 +01:00
grafana-delivery-bot[bot]
caee68b5a8 Release: Bump version to 10.4.0-pre (#80412)
"Release: Updated versions in package to 10.4.0-pre"

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2024-01-12 10:21:50 +01:00
Dominik Prokop
cd66149c65 DashboardScene: Handle Dashboard data source when editing panel (#79991)
* Dashboard model compat wrapper update

* Handle changing data source type to and from Dashboard data source

* VizPanelManager tests

* Betterer

* DashboardModelCompatibilityWrapper tests

* Review: test updates

* Test updates

* Test fix

* Move the complexity of the dashboard data source edit directly to the ShareQueryDataProvider

* Make sure deactivation handler ain't called multiple times

* Make sure compat panel compat wrapper return queries for shared runner with transformations

* Betterer

* VizPanelManager: Remove data object subscription

* Remove unnecesary code
2024-01-12 01:21:32 -08:00
Ivana Huckova
74da229cd6 Loki: Remove prom utils in import/export from abstract query (#80312) 2024-01-12 10:13:30 +01:00
Mihai Doarna
1807435d9e Auth: Implement the reload functionality from OAuth social connectors (#79795)
* implement Reload() func for azuread provider

* add unit test for failure

* use mutex when updating the info field

* implement the Reload() func for the other providers

* use mutex when reading info

* retrieve info using GetOAuthInfo() in common file

* move Reload() to SocialBase
2024-01-12 10:25:51 +02:00
Mihai Doarna
39e4f8ec1b Auth: configure SSO settings reload interval from the ini file (#80290)
* configure sso reload interval from ini file

* change section name to sso_settings
2024-01-12 10:24:16 +02:00
Leon Sorokin
b53e0521d2 Panels: AnnotationsPlugin2 (#79531)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-01-12 09:02:40 +02:00
Haris Rozajac
d4f76c3391 Dashboard-Scene Migration: User can view JSON Mode tab (#80332)
* View JSON Model tab

* Use correct translation field

* Extract json grabbing and formatting into a model method
2024-01-11 15:18:35 -07:00
Dan Cech
771fc6c78d Fix issue registering dashboard summary resource (#80402) 2024-01-11 16:59:12 -05:00
Matthew Jacobson
5ecc7dd2fa Alerting: Increase size of kvstore value type for MySQL to LONGTEXT (#80331)
* Alerting: Increase size of kvstore value type for MySQL to LONGTEXT

alertmanager uses the kvstore to persist its notification log and the current
column limit for MySQL (16.7mb) puts the maximum entries at a level that is
potentially achievable for heavy alerting users (~40-80k entries).

In comparison, the current type for PSQL (TEXT) is effectively unlimited and
I believe SQLIte defaults to 2gb which is also plenty of leeway.
2024-01-11 22:51:36 +02:00
Arati R
ca9d147a44 Give dialects control over how insert and update queries are performed (#79946)
* Refactor insert, update
* Add separate insert, update methods
* Refactor Insert, Update signatures
2024-01-11 19:55:45 +01:00
Usman Ahmad
4e6b0fd9ce updated Grafana Open Source documentation (#80357)
Added missing installation section to run Grafana on Kubernetes
2024-01-11 10:08:00 -08:00
renovate[bot]
1f334d6ca7 Update dependency @types/file-saver to v2.0.7 2024-01-11 18:06:10 +00:00
Gabriel MABILLE
c9ac069076 RBAC: Add origin column to seed_assignment (#80326)
* RBAC: Add origin column to seed_assignment

* Add OnCall permission migration
2024-01-11 18:43:43 +01:00
Nathan Marrs
c40b2f90ba Canvas: Support context menu in panel edit mode (#80335) 2024-01-11 19:41:19 +02:00
Ivan Ortega Alba
eb64209301 GeneralSettings: Enable support for nowDelay (#79703) 2024-01-11 17:53:06 +01:00
renovate[bot]
d3ff4715a0 Update dependency @types/diff to v5.0.9 2024-01-11 16:45:57 +00:00
Clayton Cornell
d68bf3d715 Update rasp pi install tutorial, correct APT install steps (#80236)
* Update the Linux install steps

* Minor updates to text
2024-01-11 08:30:35 -08:00
renovate[bot]
51efdb1f43 Update dependency @types/debounce-promise to v3.1.9 2024-01-11 16:29:31 +00:00
Joey
e054ef7c98 Tempo: Add template vars to embedded flamegraph (#80363)
* Add template vars to embedded flamegraph

* Update location of templateSrv.replace in spanFlameGraph
2024-01-11 16:28:59 +00:00
Isabel
81b465111a Docs: replace share icon with share button (#80173)
* replaced share icon with share button

* Replaced share icon with share button

* Made fix in reporting

* trigger CI
2024-01-11 11:28:23 -05:00
renovate[bot]
75fdfafba5 Update dependency @types/common-tags to v1.8.4 2024-01-11 16:11:11 +00:00
Andre Pereira
aa73dfa735 Data Trails: Sync cursor of all breakdown graphs with main metric graph (#80226)
* Sync cursor of all breakdown graphs with main metric graph

* Remove syncs from breakdown scene since they're not needed
2024-01-11 16:10:16 +00:00
Andreas Christou
a70d48a724 Runtime: Add property for disabling caching (#80245)
* Add property for disabling caching

* Lint
2024-01-11 15:57:18 +00:00
Kevin Minehart
95a9074ad4 CI: Make --grafana-repo configurable via GRAFANA_REPO (#80378)
Make --grafana-repo configurable via GRAFANA_REPO
2024-01-11 17:53:02 +02:00
renovate[bot]
741a5a1a26 Update dependency @types/chance to v1.1.6 2024-01-11 15:52:12 +00:00
Isabel
7c7a0b9296 Docs: fix broken Cloud docs link (#80321)
* Replaced relref with docs reference

* Removed admonition formatting so docs ref links will work
2024-01-11 10:46:06 -05:00
Sonia Aguilar
e1af9bcecc Alerting: Fix group filter (#80358)
* Fix group filter

* Fix Warning: Receivedfor a non-boolean attribute

* remove defaultQueryString.length > 3 from the logic to check if input is invalid
2024-01-11 17:28:12 +02:00
Kevin Minehart
9501000856 CI: add rgm promotion pipeline (#80296)
* add package upload promotion pipeline
2024-01-11 09:22:14 -06:00
Gábor Farkas
ced5b29951 Postgres: Fix enabling the socks proxy (#80361)
postgres: fix enabling the socks proxy
2024-01-11 17:05:38 +02:00
Hariom Maurya
5c8e88d6ab Tempo: Add } when { is inserted automatically (#80113) 2024-01-11 15:52:19 +01:00
Josh Hunt
c9dd12851f Chore: Temp allow verify-i18n step to fail (#80371)
allow verify-i18n to fail
2024-01-11 16:50:01 +02:00
Yuri Tseretyan
77db6a9ca4 Alerting: Fix GetAlertRulesForScheduling to use folder table and join by org_id (#80330) 2024-01-11 09:21:03 -05:00
Sven Grossmann
e1aa8a95d9 Loki: Fix bug duplicating parsed labels across multiple log lines (#80292) 2024-01-11 15:09:13 +01:00
Tania
1947919516 Chore: Add dashboard retrieval by FolderUID (#80288)
* Add dashboard retrieval by uid

Co-authored-by: Serge Zaitsev <serge.zaitsev@grafana.com>
2024-01-11 15:02:13 +01:00
Ashley Harrison
12135998e6 Profile: Use Stack so the profile tabs span the full width of the page (#80353)
use Stack so the profile tabs span the full width of the page
2024-01-11 12:54:19 +00:00
Mihai Doarna
4bf5c63657 Auth: tidy up the database layer from the SSO Settings Service (#80341)
tidy up the database layer
2024-01-11 14:45:01 +02:00
Eric Leijonmarck
dad50fbba9 Service Accounts: Add deprecation message for apikeys (#80354)
* add: deprecation message for apikeys

* refactor: more strong language for service accounts
2024-01-11 12:34:53 +00:00
renovate[bot]
41144209de Update dependency @types/angular-route to v1.7.6 2024-01-11 11:57:51 +00:00
Alexander Zobnin
bb2156967d Team LBAC: Show permissions warning (#80215)
* Permissions: Add team LBAC warnings

* Replace info with warning if present

* Keep info message

* Update warning message

* Translate permission warning

* Use box component

* Generate translation placeholder

* Use multiple messages

* Move LBAC warnings to enterprise
2024-01-11 12:48:55 +01:00
renovate[bot]
cc5a573ce0 Update dependency @types/angular to v1.8.9 2024-01-11 11:38:24 +00:00
Agnès Toulet
31b02a8c9a Rendering: Fix streaming panels always reaching timeout (#80022) 2024-01-11 12:37:21 +01:00
Santiago
6c87d9a1e7 Alerting: Stop retries on 4xx status code responses (remote Alertmanager readiness check) (#80350) 2024-01-11 12:12:35 +01:00
renovate[bot]
8dba53b541 Update dependency @testing-library/user-event to v14.5.2 2024-01-11 11:01:21 +00:00
Ieva
0f4e123de0 RBAC: prioritise directly applied permissions over inherited permissions (#80212)
show directly applied permissions over inherited permissions
2024-01-11 11:01:19 +00:00
Ashley Harrison
310ad0474c Chore: Update stale config to run on issues as well (#80024)
* update stale config to run on issues as well

* add issue write permissions
2024-01-11 10:57:54 +00:00
Ezequiel Victorero
6d81e08e72 Analytics: Restore property in export json event (#80099) 2024-01-11 07:38:14 -03:00
Karl Persson
5bfb799c0d index: Fetch auth module and provide it to front-end (#80345) 2024-01-11 11:37:52 +01:00
Alex Khomenko
370fd5a5af SSO Config: Add generic OAuth (#79972)
* Setup route

* Set up the page

* Add orgs

* Load settings

* Make API call

* Remove log

* Add FormPrompt

* Update types

* Add tests

* Fix tests

* Cleanup

* Load settings

* Fix naming

* Switch to PUT endpoint

* Switch to CSS object

* Setup fields

* Render fields

* Extend types

* Dynamic provider page

* Rename page

* Filter out non-implemented providers

* Fix types

* Add teamIDs validation

* Update tests

* Fix URL

* Update name

* Send full data

* Add password input

* Update test

* Expand default values

* Fix test

* Use SecretInput

* Remove dev mode for the feature toggle

* Convert fields

* Remove fieldFormat utils

* Update fields logic

* Update tests

* Update betterer

* SSO: Add Generic OAuth page

* SSO: Add Generic OAuth page

* SSO: Make client secret not required

* Update field name

* Revert feature toggle to dev mode

* Use provider endpoint

* Fix form state check

* Update tests

* Fix URL redirect after form submit

* Mock locationService

* Separate Form component

* Update fields

* Add more fields

* Add more fields

* Fix spacing

* Add UserMapping fields

* Add rest of the fields

* Add FieldRenderer

* Update types

* Update comment

* Update feature toggle

* Add checkbox

* Do not submit form if there are errors

* Fix revalidation

* Redirect on success only

* Fix redirect behavior

* Add missing descriptions

* Use inline checkbox

* Add enabled field

* Restore feature toggle

* Remove source field from PUT request

* Add URL to the fields

* Add hidden prop to fields and sections

* Add Delete button

* Prettier

* Add authStyle, still not working, description updates

* Fix saving select values

* Run prettier

* Use defaultValue in Select field

---------

Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com>
2024-01-11 11:23:38 +01:00
renovate[bot]
ec3207a943 Update dependency @testing-library/dom to v9.3.4 2024-01-11 10:10:51 +00:00
Torkel Ödegaard
2fd26e2773 AppChrome: Fixes topnav height (#80342)
* AppChrome: Fixes top padding

* better fix
2024-01-11 10:33:38 +01:00
Ryan McKinley
85d68b88cf FeatureFlags: Remove enabled from FeatureFlag model (#79960) 2024-01-10 21:34:18 -08:00
William Wernert
48b5ac779b Alerting/Annotations: Add annotation backend for Loki alert state history (#78156)
* Move scope type vars to testutil package

* Expose parts of state historian for use in annotation backend

* Implement Loki ASH Annotation store

This store will only implement the `Get` method of a RepositoryImpl since alert state history
writes to Loki elsewhere.

* Use interface for Loki HTTP Client

* Add tests for Loki ASH Annotation store

* Add missing test

* Fix lint

* Organize tests

* Add filter tests

* Improve tests

* Move filter logic into outer function

* Fix lint

* Add comment

* Fix tests

* Fix lint

* Rename historian store + refactor

* Cleanup historian store

* Fix tests

* Minor cleanup

* Use new `ShouldRecordAnnotation` filter

* Fix logic and add tests for this check

* Fix typos, remove unused variables, `< 1` -> `== 0`

* More closely mimic RBAC filter from xorm to ensure correct logic

* Move off weaveworks client

* Address PR comments
2024-01-10 18:42:35 -05:00
Ryan McKinley
2c09f969f1 K8s: Add dashboard service (requires dev mode) (#78565) 2024-01-11 01:20:30 +02:00
Matias Chomicki
be12d3919f Logs navigation: fix multiple incorrect calls to addResultsFromCache (#80307)
* Logs container: prevent unnecessary rerenders from arrow functions

* Logs navigation: refactor effects and calls to addResultsToCache

* Logs navigation pages: disable buttons while loading

* Logs navigation: add regression test

* Formatting
2024-01-11 00:52:43 +02:00
Kevin Yu
752d788bd6 Chore: rename CloudWatch mock file (#80260) 2024-01-10 13:59:30 -08:00
Alyssa Bull
284afbcd4b Azure Monitor: Add select all subscription option for ARG queries (#79582) 2024-01-10 13:58:03 -07:00
Matthew Jacobson
afa33f12b2 Alerting: Create alertingQueryOptimization feature flag for alert query optimization (#78932)
* Alerting: Create feature flag for alert query optimization

Adds a feature flag alertingQueryOptimization for an already existing 
functionality: alert query optimization. This feature flag will now be disabled 
by default.
2024-01-10 15:52:58 -05:00
renovate[bot]
bba691777a Update dependency @react-types/overlays to v3.8.4 2024-01-10 20:49:37 +00:00
renovate[bot]
35fe96b26d Update dependency @react-types/menu to v3.9.6 2024-01-10 19:41:04 +00:00
Matthew Jacobson
f365d35cf8 Alerting: Show warning when query optimized (#78751)
* Alerting: Show warning when query optimized

* Use frame.AppendNotices

* Improve warning to include why and a prompt for action
2024-01-10 14:40:00 -05:00
Leon Sorokin
31921bbb01 DashboardGrid: Add LayoutItemContext to affect zIndex from panels (#80116) 2024-01-10 12:09:54 -06:00
Darren Janeczek
796ef05e97 fix: data trails auto query use general generator for unconventional metrics (#80301) 2024-01-10 18:23:41 +01:00
renovate[bot]
7400c8c844 Update dependency @react-types/button to v3.9.1 2024-01-10 17:18:21 +00:00
renovate[bot]
119df0c5ce Update dependency @react-awesome-query-builder/ui to v6.4.2 2024-01-10 17:17:20 +00:00
renovate[bot]
d0ccfc0a7b Update dependency @react-awesome-query-builder/core to v6.4.2 2024-01-10 17:00:21 +00:00
renovate[bot]
0e8c81d3b9 Update dependency @lezer/common to v1.2.0 (#75434)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-10 16:43:03 +00:00
renovate[bot]
86fae6018e Update dependency @pmmmwh/react-refresh-webpack-plugin to v0.5.11 (#80300)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-10 18:36:12 +02:00
renovate[bot]
c959b5549c Update typescript-eslint monorepo to v6 (#71634)
* Update typescript-eslint monorepo to v6

* move to latest eslint-config-grafana

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-10 18:17:54 +02:00
Tania
744c1032ee Provisioning: Fix dual write of folders (#80140)
* Provisioning: Store folders in folders table

* Solve linting issues

* Remove a comment
2024-01-10 16:48:28 +01:00
Ryan McKinley
6be6724433 K8s/Testdata: Expose testdata in standalone apiserver (#80248) 2024-01-10 17:45:23 +02:00
Andres Martinez Gotor
42f1059bc9 Chore: Avoid copying package.json into dist folder (#80278) 2024-01-10 16:38:36 +01:00
Ryan McKinley
ee7daeb2a7 APIServer: Move shared code to a utility/helper function (#80261) 2024-01-10 07:30:16 -08:00
Fabrizio
4f832c4c69 Build: Update plugin IDs list in build and release process (#80160) 2024-01-10 15:42:04 +01:00
renovate[bot]
153767a787 Update dependency @leeoniya/ufuzzy to v1.0.14 2024-01-10 14:27:54 +00:00
Mihai Doarna
930efc3824 Auth: Add docs for the SSO Settings update endpoint (#79980)
add docs for sso settings update endpoint
2024-01-10 16:03:03 +02:00
Mihai Doarna
772e5993b6 Auth: reload SSO settings for HA setups (#80231)
* reload SSO settings for HA setups

* remove check for grafana HA

* add unit tests

* fetch all sso settings with one sql query

* register background service
2024-01-10 16:01:37 +02:00
Jo
02136e5a2f Auth: Fix authentik devenv update (#80285)
fix authentik update
2024-01-10 15:50:08 +02:00
Karl Persson
5b3cd9f55b features: Add feature flag for grafana cloud rbac roles (#80283) 2024-01-10 14:19:01 +01:00
Jamin
71b98163e5 Frontend: Migrate DataSourceHttpSettings.tsx from aria-label e2e selectors to data-testid (#79615) 2024-01-10 11:51:16 +00:00
Johannes Ehm
642391c9f9 Alerting: adds execErrState to the alerting file provisioning example as it is missing (#79002) 2024-01-10 12:49:38 +01:00
renovate[bot]
5c3723e809 Update dependency @grafana/scenes to v1.28.6 2024-01-10 11:26:57 +00:00
Giuseppe Guerra
b40d3e7487 Plugins: Add enablePluginsTracingByDefault feature flag (#80195)
* Add enablePluginsTracingByDefault feature flag

* Enable tracing for all plugins if enablePluginsTracingByDefault is set

* fix docstrings for IsEnabled and IsEnabledGlobally

* fix tests

* do not use separate feature manager

* add test case

* Revert "fix tests"

This reverts commit 46a2420ed1.

* cleanup

* fix plugin tracing disabled if wrong plugin setting is present

* add test case for enabled on plugin with wrong plugin setting but with enablePluginsTracingByDefault feature flag

* Add RequiresRestart = true to enablePluginsTracingByDefault

* re-generate feature flags

* pr review feedback
2024-01-10 13:25:54 +02:00
Jamin
108c196d08 Frontend: Migrate Drawer.tsx from aria-label e2e selectors to data-testid (#79616)
* refactor: update aria-label to data-testid

* refactor: update aria-label to data-testid

* refactor: replace title

* refactor: update selector text

* feat: update translation file

* fix old phrases

---------

Co-authored-by: joshhunt <josh@trtr.co>
2024-01-10 11:20:51 +00:00
renovate[bot]
d768362a5d Update dependency @grafana/google-sdk to v0.1.2 (#80277)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-10 11:12:01 +00:00
renovate[bot]
90e4a53288 Update dependency @floating-ui/react to v0.26.5 (#80273)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-10 10:52:41 +00:00
Denis
898f837662 Docs: add description for timepicker fields (#79527)
* Docs: add description for timepicker fields

* Update docs/sources/dashboards/build-dashboards/view-dashboard-json-model/index.md

Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com>

* prettify

---------

Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com>
2024-01-10 11:24:55 +01:00
renovate[bot]
e1746df794 Update d3 2024-01-10 10:19:20 +00:00
Santiago
9e78faa7ba Alerting: Add metrics to the remote Alertmanager struct (#79835)
* Alerting: Add metrics to the remote Alertmanager struct

* rephrase http_requests_failed description

* make linter happy

* remove unnecessary metrics

* extract timed client to separate package

* use histogram collector from dskit

* remove weaveworks dependency

* capture metrics for all requests to the remote Alertmanager (both clients)

* use the timed client in the MimirAuthRoundTripper

* HTTPRequestsDuration -> HTTPRequestDuration, clean up mimir client factory function

* refactor

* less git diff

* gauge for last readiness check in seconds

* initialize LastReadinesCheck to 0, tweak metric names and descriptions

* add counters for sync attempts/errors

* last config sync and last state sync timestamps (gauges)

* change latency metric name

* metric for remote Alertmanager mode

* code review comments

* move label constants to metrics package
2024-01-10 11:18:24 +01:00
Ashley Harrison
1162c28a55 Connections: hook up search to url params to match cloud behaviour (#80166)
hook up connections search to url params to match cloud behaviour
2024-01-10 09:57:17 +00:00
Kristian Bremberg
2d6ad9f7c5 Login: convert scheme relative URL to path (#80220)
* Login: convert scheme relative URL to path

* linting
2024-01-10 11:31:35 +02:00
Konrad Lalik
282a3f9a66 Alerting: Allow copying error messages from query badges (#80078)
* Add interactive mode to the Badge component

* Add expression errors as Alert components instead of badges

* Revert "Add interactive mode to the Badge component"

This reverts commit 9558743fc7.
2024-01-10 10:17:57 +01:00
Esteban Beltran
d738b96742 Chore: Fix levitate workflow to not post a comment when there's no breaking change (#80266) 2024-01-10 10:27:22 +02:00
Isabella Siu
4fa6bad7c0 CloudWatch: Remove dependency on local TemplateSrv (#79283) 2024-01-09 16:52:37 -05:00
Marie Cruz
f3bb16c598 docs: add grafana video to install grafana page (#80237) 2024-01-09 21:33:12 +00:00
Ryan McKinley
53411eeaa0 K8s: Expose testdata connection as an api-server (dev mode only) (#79726) 2024-01-09 12:26:24 -08:00
Pangidoan Butar
5589c0a8f2 Updating swagger endpoint (#80008)
The user should navigate to /swagger-ui instead of /swagger
2024-01-09 12:07:40 -08:00
Matthew Jacobson
1d4419fbe4 Alerting: Fix NoData & Error alerts not resolving when rule is reset (#80184)
* Alerting: Fix NoData & Error alerts not resolving when rule is reset

On rule reset, when creating the PostableAlerts StateToPostableAlert did not
attach the correct NoData/Error alertname and rulename labels to expire/resolve
the active alerts when the previous cached state was NoData/Error.
2024-01-09 14:47:19 -05:00
Alexander Weaver
542741f748 Alerting: Log scheduler maxAttempts, guard against invalid retry counts, log retry errors (#80234)
* Log maxAttempts, add guard, log retry errors

* fix whitespace

* Initialize evaluator in TestProcessTicks
2024-01-09 13:19:37 -06:00
Ryan McKinley
1caaa56de0 FeatureFlags: Use interface rather than manager (#80000) 2024-01-09 10:38:06 -08:00
Nathan Marrs
e550829dae Docs: Update canvas pan and zoom docs with enablement video (#80108) 2024-01-09 10:09:03 -08:00
lwandz13
458bfb8d01 Docs: Clarify cloud auth method (#80176)
added some clarification around auth method for cloud
2024-01-09 10:35:22 -06:00
Ryan McKinley
114845a99a Transformations: Use an explicit join seperator when converting from an array to string field (#80169) 2024-01-09 18:24:16 +02:00
renovate[bot]
3c045d1dfb Update dependency @emotion/react to v11.11.3 (#80230)
* Update dependency @emotion/react to v11.11.3

* fix types

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-09 18:20:08 +02:00
renovate[bot]
1cefa419c0 Update babel monorepo (#80214)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-09 15:54:57 +00:00
renovate[bot]
a449df3455 Update dependency @cypress/webpack-preprocessor to v6.0.1 (#80217)
* Update dependency @cypress/webpack-preprocessor to v6.0.1

* fix type errors

* restore old checksum for scenes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-09 15:32:24 +00:00
Victor Marin
35e3988d4a Add versions tab in dashboard settings (#80190) 2024-01-09 17:26:46 +02:00
Sven Grossmann
df204a9563 Loki: Add documentation for label derived field (#80218) 2024-01-09 16:07:04 +01:00
Gábor Farkas
ecc667c9a5 postgres: add snapshot tests (#79794)
* postgres: add snapshot tests

* fixed wrong comment

Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>

---------

Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2024-01-09 16:54:21 +02:00
Mihai Doarna
3332562900 Auth: use Empty() for sending empty http responses in SSO Settings API (#80200)
use Empty() for sending empty http response
2024-01-09 15:27:55 +02:00
Giuseppe Guerra
c045a9f395 Plugins: Fix symlinks inside plugins path not being followed (#80205)
* Plugins: Loader: Fix symlinks not followed when loading external plugins

* Add test case
2024-01-09 14:23:03 +01:00
Joey
314cdaf618 Pyroscope: Decouple frontend (#80066)
* Decouple query options

* Decouple Variable support

* Fix after merge
2024-01-09 11:40:39 +00:00
Ashley Harrison
58f4533382 Chore: Better renovate config (#80202)
* better config

* allow react-hook-form updates
2024-01-09 13:00:46 +02:00
Sven Grossmann
0f8d4db934 Log Context: Add highlighted words to log rows (#80119)
* Log Context: Add highlighted words to log rows

* Update public/app/features/logs/components/log-context/LogRowContextModal.tsx

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

---------

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2024-01-09 12:56:48 +02:00
Ezequiel Victorero
40e4d3deb5 UI: Hide additional separator when time picker is hidden (#80168)
UI: Hide additional separator when time range is hidden
2024-01-09 07:43:31 -03:00
Ashley Harrison
76ca1c6379 Chore: Update lockfile resolution to newer version of follow-redirects (#80199)
update lockfile resolution to newer version of follow-redirects
2024-01-09 12:35:16 +02:00
Mihai Doarna
adb7295bab Auth: Send an empty http response without the json header in SSO Settings API (#80197)
send an empty http response without the json header
2024-01-09 12:14:39 +02:00
Konrad Lalik
229c1f417f Alerting: Disable export all rules button when no GMA rules (#80126)
Disable export button when no GMA rules
2024-01-09 11:08:28 +01:00
Ashley Harrison
cb43246fcb Chore: update renovate config to automerge >v1 patch updates (#80092)
update renovate config to automerge >v1 patch updates
2024-01-09 10:06:57 +00:00
Ashley Harrison
68ba6cc67b Chore: some type fixes (#80094)
* some type fixes

* few more fixes

* more

* fix unit test
2024-01-09 10:00:00 +00:00
Matias Chomicki
fb34916d1e Logs navigation: derive current page index (#80167)
* Logs navigation: derive current page index

* Formatting
2024-01-09 11:49:27 +02:00
Sonia Aguilar
6f8ddac4eb Alerting: Simplified routing part3 (#79941)
* Update alert rule model in FE following BE design doc

* Remove unnecessary conditional rendering

* Update styles for optional route settings: add indentation

* Update test

* Add validation for  grouBy to include grafana_folder and alertname

* Split conversions between FEdataModel/ DTO, in separate functions

* Update texts following Brenda's suggestions

* Update text
2024-01-09 08:39:43 +01:00
Charandas
48612063dd Grafana app platform: an aggregator cmd and package (#79948) 2024-01-08 22:33:42 +02:00
Adela Almasan
26f54a2fc7 VizTooltips: Add wrapper shadow (#80164) 2024-01-08 13:36:48 -06:00
Lucy Chen
49af992661 Task: Add i18n support for public dashboards (#79659)
* feat(public-dashboards): add i18n support

* fix(public-dashboard): correct name convention for i18n

* fix(public-dashboard): correct i18n key convention + extraction

* feat(public-dashboard): mark up i18n for remaining cfg modal

* fix(public-dashboard): de-dynamicize ack comps for i18n + markup i18n for missing parts

* feat(public-dashboard): mark up i18n for DeletePubDashModal

* feat(public-dashboard): mark up i18n for ShareModal public dashboard

* chore(i18n): run yarn i18n:extract

* update naming cconvention

* add mark up phrases

* update json file

* fix import

* fix title

* fix url

* Copy button translation

* Update user admin page

* escape char

* interpolation

* fix escape

* prettier space

* update naming

* update setting keys

* standardize key naming convention

* fix radiobutton

* Fix naming convention as recommended by frontend team

* Prettier and fix naming

* fix variables that cannot be translated

* prettier check

---------

Co-authored-by: hainenber <dotronghai96@gmail.com>
2024-01-08 13:30:01 -05:00
Ivana Huckova
df8624c8cd Loki: Remove imports from core in various files (#79990)
* Remove imports from core in tracking.ts

* Remove imports from core in tracking.test.ts

* Remove imports from core in querySplitting.test.ts
2024-01-08 18:43:59 +01:00
Ivana Huckova
6fbd6e3d31 ConfigDescriptionLink: Replace with component from @grafana/experimental (#80144)
ConfigDescriptionLink: Replace with component from grafana/experimental
2024-01-08 18:34:49 +01:00
Ivana Huckova
3dc7cfdc18 Loki: Implement error source (#80143) 2024-01-08 18:32:16 +01:00
Matias Chomicki
4950935401 Loki Query Builder: Add parsing support for aggregations with grouping (#80145)
Loki Query Builder: Add parsing support for aggregations with grouping arguments
2024-01-08 17:17:19 +01:00
Jo
c60a1dddc2 Analytics: Fix metanalytics sending 'undefined' to backend (#80127)
* fix metanalytics sending 'undefined'

* revert panelId defined

* Update public/app/features/query/state/queryAnalytics.ts

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>

* finish fix

---------

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
2024-01-08 17:06:06 +01:00
Matias Chomicki
cff1ad4922 Logs popover: enabled by default (#80146) 2024-01-08 17:03:39 +01:00
Jo
c3d8c6e0ea JWT: Fallthrough to fetch keyset in case of cache error (#80081)
fallthrough to fetch keyset in case of cache error. Fixes #67582
2024-01-08 16:02:31 +01:00
Gilles De Mey
d2b023076b Alerting: Add support for TTL for pushover for Mimir Alertmanager (#78687) 2024-01-08 15:48:36 +01:00
Darren Janeczek
890d6a960f refactor: data-trails auto query logic (#79435)
* refactor: data-trails auto query logic for most currently identified metric suffixes (excluding `_bucket`)
2024-01-08 09:48:08 -05:00
colin-stuart
062e772bb2 Auth: Implement the SSO Settings GET endpoint (#79144)
* Return data in camelCase from the OAuth fb strategy

* changes

* wip

* Add defaults for oauth fb strategy

* revert other changes

* basic includeDefaults query param implementation

* basic secret removal and etag implementation

* correct imports

* rebase

* move default settings filter to models

* only replace ClientSecret value if set

* first GetForProvider test & use FNV for ETag to avoid Blocklisted import error

* add tests

* add annotation for the openapi spec & generate spec

* remove TODO

* use IsSecret, improve tests, remove DefaultOAuthSettings

* add comment explaining generateFNVETag

* add error handling for generateFNVETag

* run go generate

* Update pkg/services/ssosettings/api/api.go

Co-authored-by: Mihai Doarna <mihai.doarna@grafana.com>

* move isSecret to service, create GetForProviderWithRedactedSecrets func

* add unit test for GetForProviderWithRedactedSecrets & remove duplicated code

* regen openapi/swagger

* revert dependency bumps

---------

Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com>
Co-authored-by: Mihai Doarna <mihai.doarna@grafana.com>
2024-01-08 09:35:14 -05:00
Adam Bannach
505196bcd5 Chore: Remove costManagementUi toggle (#80098)
* chore: remove cost management ff; fallback to adding AM and LVE to apps drawer

* chore: revert fallback app drawer placement
2024-01-08 14:25:11 +00:00
Giordano Ricci
21e9c01fc1 Chore: Fix some Explore deprecations (#80076) 2024-01-08 14:11:05 +00:00
Ezequiel Victorero
25ff4baa76 UI: New share button and toolbar reorganize (#77563) 2024-01-08 10:42:24 -03:00
Misi
eae6adf002 Auth: Use cfg.Raw in OAuthStrategy for loading settings (#80136)
Use cfg.Raw in OAuthStrategy, remove unnecessary tests
2024-01-08 15:36:15 +02:00
Timur Olzhabayev
6438523b41 Chore: Switching some go dependencie to the correct owner - partner-datasources squad (#77776)
* Switching dependencie to the correct owner

* switching storrage-blog-go back to backend platform

* reverting some of the mod assignements

* reverting some of the changes

* not sure how it got changed, but switching this one back
2024-01-08 14:32:46 +01:00
Joey
81f8c022a0 Pyroscope: Decouple backend from infra imports (#80018)
Decouple backend from infra imports
2024-01-08 13:11:46 +00:00
Kévin Gomez
6c8e30c96a Kinds: publish grafana-schema/common to the kind-registry (#78728) 2024-01-08 14:05:26 +01:00
Kévin Gomez
9d31720db5 Chore: set @grafana/platform-cat as owner of kind-registry related scripts (#79304)
Chore: set ownership of kind-registry release actions to @grafana/platform-cat
2024-01-08 14:00:30 +01:00
Sven Grossmann
d1b0e9082d Loki: Fix metric time splitting to split starting with the start time (#80085)
* Loki: Fix metric time splitting to split starting with the start time

* add test case to gdev-dashboard

* fix splitting test
2024-01-08 13:26:16 +01:00
Joey
f0cb88e3b5 Pyroscope: Add Span ID to options collapsed info (#79981)
* Pyroscope: Add Span ID to options collapsed info

* Update for multiple

* Update public/app/plugins/datasource/grafana-pyroscope-datasource/QueryEditor/QueryOptions.tsx

Co-authored-by: Fabrizio <135109076+fabrizio-grafana@users.noreply.github.com>

---------

Co-authored-by: Fabrizio <135109076+fabrizio-grafana@users.noreply.github.com>
2024-01-08 12:07:19 +00:00
Will Browne
78ae795e06 Plugins: Fix loading of dist folders (#80015)
* end to end

* tidy

* fix whitespace

* remove unused code

* fix linter

* fix gosec + add sort

* fix test

* apply cr feedback
2024-01-08 11:45:03 +01:00
Ivana Huckova
0440b29ebf Chore: Bump @grafana/experimental from 1.7.4 to 1.7.5 (#80074)
* For LLM, replace enabled() with health()

* For LLM, replace enabled() with health()

* Update experimental in azueremonitor and testdata plugins
2024-01-08 10:29:08 +01:00
Konrad Lalik
6fd0ae0474 Alerting: Fix alertmanager query param when returning to silences list (#80021)
* Add alertmanager query param when returning to silences list. Sync query and storage alertmanager param

* Remove unused imports
2024-01-08 10:16:37 +01:00
Ivana Huckova
9cdd519e53 Loki: Use localStorage to set and get showExplain (#80069)
* Loki: Use localStorage to set and get showExplain

* Move hooks outside of shared folder
2024-01-07 12:51:21 +01:00
Nathan Marrs
2ff1e40a7f chore: Update DataViz feature toggles related to 10.3 release to be public preview (#80109)
Update feature toggles for tooltips / canvas to be public preview
2024-01-05 17:40:11 -08:00
7812 changed files with 415058 additions and 249202 deletions

File diff suppressed because it is too large Load Diff

7423
.betterer.results.json Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -5,11 +5,11 @@ import path from 'path';
import { glob } from 'glob';
// Why are we ignoring these?
// They're all deprecated/being removed soon so doesn't make sense to fix types
// They're all deprecated/being removed so doesn't make sense to fix types
const eslintPathsToIgnore = [
'packages/grafana-e2e', // deprecated.
'public/app/angular', // will be removed in Grafana 11
'public/app/plugins/panel/graph', // will be removed alongside angular
'public/app/plugins/panel/table-old', // will be removed alongside angular
];
// Avoid using functions that report the position of the issues, as this causes a lot of merge conflicts
@@ -31,9 +31,16 @@ function countUndocumentedStories() {
await Promise.all(
filePaths.map(async (filePath) => {
// look for .mdx import in the story file
const regex = new RegExp("^import.*.mdx';$", 'gm');
const mdxImportRegex = new RegExp("^import.*\\.mdx';$", 'gm');
// Looks for the "autodocs" string in the file
const autodocsStringRegex = /autodocs/;
const fileText = await fs.readFile(filePath, 'utf8');
if (!regex.test(fileText)) {
const hasMdxImport = mdxImportRegex.test(fileText);
const hasAutodocsString = autodocsStringRegex.test(fileText);
// If both .mdx import and autodocs string are missing, add an issue
if (!hasMdxImport && !hasAutodocsString) {
// In this case the file contents don't matter:
const file = fileTestResult.addFile(filePath, '');
// Add the issue to the first character of the file:
@@ -68,68 +75,87 @@ function regexp(pattern: RegExp, issueMessage: string) {
function countEslintErrors() {
return new BettererFileTest(async (filePaths, fileTestResult, resolver) => {
// Just bail early if there's no files to test. Prevents trying to get the base config from failing
if (filePaths.length === 0) {
return;
}
const { baseDirectory } = resolver;
const cli = new ESLint({ cwd: baseDirectory });
const eslintConfigFiles = await glob('**/.eslintrc');
const eslintConfigMainPaths = eslintConfigFiles.map((file) => path.resolve(path.dirname(file)));
// Get the base config to set up parsing etc correctly
// this is by far the slowest part of this code. It takes eslint about 2 seconds just to find the config
const baseConfig = await cli.calculateConfigForFile(filePaths[0]);
const baseRules: Partial<Linter.RulesRecord> = {
'@emotion/syntax-preference': [2, 'object'],
'@typescript-eslint/no-explicit-any': 'error',
'@grafana/no-aria-label-selectors': 'error',
};
const nonTestFilesRules: Partial<Linter.RulesRecord> = {
...baseRules,
'@typescript-eslint/consistent-type-assertions': ['error', { assertionStyle: 'never' }],
};
// group files by eslint config file
// this will create two file groups for each eslint config file
// one for test files and one for non-test files
const fileGroups: Record<string, string[]> = {};
for (const filePath of filePaths) {
let configPath = eslintConfigMainPaths.find((configPath) => filePath.startsWith(configPath)) ?? '';
const isTestFile =
filePath.endsWith('.test.tsx') ||
filePath.endsWith('.test.ts') ||
filePath.includes('__mocks__') ||
filePath.includes('public/test/');
if (isTestFile) {
configPath += '-test';
}
if (!fileGroups[configPath]) {
fileGroups[configPath] = [];
}
fileGroups[configPath].push(filePath);
}
for (const configPath of Object.keys(fileGroups)) {
const rules = configPath.endsWith('-test') ? baseRules : nonTestFilesRules;
// this is by far the slowest part of this code. It takes eslint about 2 seconds just to find the config
const linterOptions = (await cli.calculateConfigForFile(fileGroups[configPath][0])) as Linter.Config;
const runner = new ESLint({
baseConfig: {
...linterOptions,
rules: rules,
'no-restricted-imports': [
'error',
{
patterns: [
{
group: ['@grafana/ui*', '*/Layout/*'],
importNames: ['Layout', 'HorizontalGroup', 'VerticalGroup'],
message: 'Use Stack component instead.',
},
],
},
useEslintrc: false,
cwd: baseDirectory,
});
const lintResults = await runner.lintFiles(fileGroups[configPath]);
lintResults
.filter((lintResult) => lintResult.source)
.forEach((lintResult) => {
const { messages } = lintResult;
const filePath = lintResult.filePath;
const file = fileTestResult.addFile(filePath, '');
messages.forEach((message, index) => {
file.addIssue(0, 0, message.message, `${index}`);
});
],
};
const config: Linter.Config = {
...baseConfig,
rules: baseRules,
// Be careful when specifying overrides for the same rules as in baseRules - it will... override
// the same rule, not merge them with different configurations
overrides: [
{
files: ['**/*.{ts,tsx}'],
excludedFiles: ['*.{test,spec}.{ts,tsx}', '**/__mocks__/**', '**/public/test/**'],
rules: {
'@typescript-eslint/consistent-type-assertions': ['error', { assertionStyle: 'never' }],
},
},
{
files: ['public/app/**/*.{ts,tsx}'],
rules: {
'no-barrel-files/no-barrel-files': 'error',
},
},
{
files: ['public/**/*.tsx', 'packages/grafana-ui/**/*.tsx'],
excludedFiles: [
'public/app/plugins/**',
'*.story.tsx',
'*.{test,spec}.{ts,tsx}',
'**/__mocks__/**',
'public/test/**',
],
rules: {
'@grafana/no-untranslated-strings': 'error',
},
},
],
};
const runner = new ESLint({
baseConfig: config,
useEslintrc: false,
cwd: baseDirectory,
});
const lintResults = await runner.lintFiles(Array.from(filePaths));
lintResults
.filter((lintResult) => lintResult.source)
.forEach(({ messages, filePath }) => {
const file = fileTestResult.addFile(filePath, '');
messages.forEach((message, index) => {
file.addIssue(0, 0, message.message, `${index}`);
});
}
});
});
}

View File

@@ -1,13 +1,8 @@
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.8. DO NOT EDIT.
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.9. DO NOT EDIT.
# All tools are designed to be build inside $GOBIN.
BINGO_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
GOPATH ?= $(shell go env GOPATH)
ifeq ($(OS),Windows_NT)
PATHSEP := $(if $(COMSPEC),;,:)
GOBIN ?= $(firstword $(subst $(PATHSEP), ,$(subst \,/,${GOPATH})))/bin
else
GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin
endif
GOBIN ?= $(firstword $(subst :, ,${GOPATH}))/bin
GO ?= $(shell which go)
# Below generated variables ensure that every time a tool under each variable is invoked, the correct version
@@ -40,11 +35,11 @@ $(DRONE): $(BINGO_DIR)/drone.mod
@echo "(re)installing $(GOBIN)/drone-v1.5.0"
@cd $(BINGO_DIR) && GOWORK=off CGO_ENABLED=0 $(GO) build -mod=mod -modfile=drone.mod -o=$(GOBIN)/drone-v1.5.0 "github.com/drone/drone-cli/drone"
GOLANGCI_LINT := $(GOBIN)/golangci-lint-v1.53.3
GOLANGCI_LINT := $(GOBIN)/golangci-lint-v1.59.0
$(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/golangci-lint-v1.53.3"
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.53.3 "github.com/golangci/golangci-lint/cmd/golangci-lint"
@echo "(re)installing $(GOBIN)/golangci-lint-v1.59.0"
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v1.59.0 "github.com/golangci/golangci-lint/cmd/golangci-lint"
JB := $(GOBIN)/jb-v0.5.1
$(JB): $(BINGO_DIR)/jb.mod
@@ -58,15 +53,11 @@ $(LEFTHOOK): $(BINGO_DIR)/lefthook.mod
@echo "(re)installing $(GOBIN)/lefthook-v1.4.8"
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=lefthook.mod -o=$(GOBIN)/lefthook-v1.4.8 "github.com/evilmartians/lefthook"
SWAGGER := $(GOBIN)/swagger-v0.30.2
# swagger 0.30.5 isn't compatibile with go 1.22 yet so pinning to a specific commit until there's a new release
# https://github.com/go-swagger/go-swagger/issues/3070
SWAGGER := $(GOBIN)/swagger-db51e79a0e37c572d8b59ae0c58bf2bbbbe53285
$(SWAGGER): $(BINGO_DIR)/swagger.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/swagger-v0.30.2"
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=swagger.mod -o=$(GOBIN)/swagger-v0.30.2 "github.com/go-swagger/go-swagger/cmd/swagger"
WIRE := $(GOBIN)/wire-v0.5.0
$(WIRE): $(BINGO_DIR)/wire.mod
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
@echo "(re)installing $(GOBIN)/wire-v0.5.0"
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=wire.mod -o=$(GOBIN)/wire-v0.5.0 "github.com/google/wire/cmd/wire"
@echo "(re)installing $(GOBIN)/swagger-db51e79a0e37c572d8b59ae0c58bf2bbbbe53285"
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=swagger.mod -o=$(GOBIN)/swagger-db51e79a0e37c572d8b59ae0c58bf2bbbbe53285 "github.com/go-swagger/go-swagger/cmd/swagger"

View File

@@ -46,7 +46,6 @@ github.com/Microsoft/go-winio v0.4.16-0.20201130162521-d1ffc52c7331/go.mod h1:XB
github.com/Microsoft/go-winio v0.4.16/go.mod h1:XB6nPKklQyQ7GC9LdcBEcBl8PF76WugXOPRXwdLnMv0=
github.com/Microsoft/go-winio v0.4.17-0.20210211115548-6eac466e5fa3/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84=
github.com/Microsoft/go-winio v0.4.17-0.20210324224401-5516f17a5958/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84=
github.com/Microsoft/go-winio v0.4.17 h1:iT12IBVClFevaf8PuVyi3UmZOVh4OqnaLxDTW2O6j3w=
github.com/Microsoft/go-winio v0.4.17/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84=
github.com/Microsoft/hcsshim v0.8.6/go.mod h1:Op3hHsoHPAvb6lceZHDtd9OkTew38wNoXnJs8iY7rUg=
github.com/Microsoft/hcsshim v0.8.7-0.20190325164909-8abdbb8205e4/go.mod h1:Op3hHsoHPAvb6lceZHDtd9OkTew38wNoXnJs8iY7rUg=
@@ -879,7 +878,6 @@ google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7
google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0=
google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
google.golang.org/appengine v1.6.6 h1:lMO5rYAqUxkmaj76jAkRUvt5JZgFymx/+Q5Mzfivuhc=
google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
google.golang.org/cloud v0.0.0-20151119220103-975617b05ea8/go.mod h1:0H1ncTHf11KCFhTc/+EFRbzSCOZx+VUbRMk55Yv5MYk=
google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=

View File

@@ -1,5 +1,7 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.20
go 1.22
require github.com/golangci/golangci-lint v1.53.3 // cmd/golangci-lint
toolchain go1.22.4
require github.com/golangci/golangci-lint v1.59.0 // cmd/golangci-lint

File diff suppressed because it is too large Load Diff

View File

@@ -2,4 +2,4 @@ module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.18
require github.com/go-swagger/go-swagger v0.30.2 // cmd/swagger
require github.com/go-swagger/go-swagger v0.30.6-0.20240310114303-db51e79a0e37 // cmd/swagger

View File

@@ -42,8 +42,13 @@ github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJ
github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU=
github.com/Masterminds/semver/v3 v3.1.1 h1:hLg3sBzpNErnxhQtUy/mmLR2I9foDujNK030IGemrRc=
github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs=
github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ=
github.com/Masterminds/semver/v3 v3.2.1 h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0rYXWg0=
github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ=
github.com/Masterminds/sprig/v3 v3.2.2 h1:17jRggJu518dr3QaafizSXOjKYp94wKfABxUmyxvxX8=
github.com/Masterminds/sprig/v3 v3.2.2/go.mod h1:UoaO7Yp8KlPnJIYWTFkMaqPUYKTfGFPhxNuwnnxkKlk=
github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA=
github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM=
github.com/PuerkitoBio/purell v1.1.1 h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tNFfI=
github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0=
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M=
@@ -51,6 +56,8 @@ github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdko
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d h1:Byv0BzEl3/e6D5CLfI0j/7hiIEtvGVFPCZ7Ei2oq8iQ=
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so=
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
@@ -73,9 +80,13 @@ github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSw
github.com/felixge/httpsnoop v1.0.2 h1:+nS9g82KMXccJ/wp0zyRW9ZBHFETmMGtkk+2CTTrW4o=
github.com/felixge/httpsnoop v1.0.3 h1:s/nj+GCswXYzN5v2DpNMuMQYe+0DDwt5WVCU6CWBdXk=
github.com/felixge/httpsnoop v1.0.3/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg=
github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U=
github.com/fsnotify/fsnotify v1.5.1 h1:mZcQUHVQUQWoPXXtuf9yuEXKudkV2sx1E06UadKWpgI=
github.com/fsnotify/fsnotify v1.5.4 h1:jRbGcIw6P2Meqdwuo0H1p6JVLbL5DHKAKlYndzMwVZI=
github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU=
github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=
github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM=
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
@@ -83,49 +94,71 @@ github.com/go-openapi/analysis v0.21.2 h1:hXFrOYFHUAMQdu6zwAiKKJHJQ8kqZs1ux/ru1P
github.com/go-openapi/analysis v0.21.2/go.mod h1:HZwRk4RRisyG8vx2Oe6aqeSQcoxRp47Xkp3+K6q+LdY=
github.com/go-openapi/analysis v0.21.4 h1:ZDFLvSNxpDaomuCueM0BlSXxpANBlFYiBvr+GXrvIHc=
github.com/go-openapi/analysis v0.21.4/go.mod h1:4zQ35W4neeZTqh3ol0rv/O8JBbka9QyAgQRPp9y3pfo=
github.com/go-openapi/analysis v0.23.0 h1:aGday7OWupfMs+LbmLZG4k0MYXIANxcuBTYUC03zFCU=
github.com/go-openapi/analysis v0.23.0/go.mod h1:9mz9ZWaSlV8TvjQHLl2mUW2PbZtemkE8yA5v22ohupo=
github.com/go-openapi/errors v0.19.8/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M=
github.com/go-openapi/errors v0.19.9/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M=
github.com/go-openapi/errors v0.20.2 h1:dxy7PGTqEh94zj2E3h1cUmQQWiM1+aeCROfAr02EmK8=
github.com/go-openapi/errors v0.20.2/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M=
github.com/go-openapi/errors v0.20.3 h1:rz6kiC84sqNQoqrtulzaL/VERgkoCyB6WdEkc2ujzUc=
github.com/go-openapi/errors v0.20.3/go.mod h1:Z3FlZ4I8jEGxjUK+bugx3on2mIAk4txuAOhlsB1FSgk=
github.com/go-openapi/errors v0.22.0 h1:c4xY/OLxUBSTiepAg3j/MHuAv5mJhnf53LLMWFB+u/w=
github.com/go-openapi/errors v0.22.0/go.mod h1:J3DmZScxCDufmIMsdOuDHxJbdOGC0xtUynjIx092vXE=
github.com/go-openapi/inflect v0.19.0 h1:9jCH9scKIbHeV9m12SmPilScz6krDxKRasNNSNPXu/4=
github.com/go-openapi/inflect v0.19.0/go.mod h1:lHpZVlpIQqLyKwJ4N+YSc9hchQy/i12fJykb83CRBH4=
github.com/go-openapi/inflect v0.21.0 h1:FoBjBTQEcbg2cJUWX6uwL9OyIW8eqc9k4KhN4lfbeYk=
github.com/go-openapi/inflect v0.21.0/go.mod h1:INezMuUu7SJQc2AyR3WO0DqqYUJSj8Kb4hBd7WtjlAw=
github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg=
github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY=
github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg=
github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ=
github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY=
github.com/go-openapi/jsonreference v0.19.6 h1:UBIxjkht+AWIgYzCDSv2GN+E/togfwXUJFRTWhl2Jjs=
github.com/go-openapi/jsonreference v0.19.6/go.mod h1:diGHMEHg2IqXZGKxqyvWdfWU/aim5Dprw5bqpKkTvns=
github.com/go-openapi/jsonreference v0.20.0 h1:MYlu0sBgChmCfJxxUKZ8g1cPWFOB37YSZqewK7OKeyA=
github.com/go-openapi/jsonreference v0.20.0/go.mod h1:Ag74Ico3lPc+zR+qjn4XBUmXymS4zJbYVCZmcgkasdo=
github.com/go-openapi/jsonreference v0.21.0 h1:Rs+Y7hSXT83Jacb7kFyjn4ijOuVGSvOdF2+tg1TRrwQ=
github.com/go-openapi/jsonreference v0.21.0/go.mod h1:LmZmgsrTkVg9LG4EaHeY8cBDslNPMo06cago5JNLkm4=
github.com/go-openapi/loads v0.21.0 h1:jYtUO4wwP7psAweisP/MDoOpdzsYEESdoPcsWjHDR68=
github.com/go-openapi/loads v0.21.1/go.mod h1:/DtAMXXneXFjbQMGEtbamCZb+4x7eGwkvZCvBmwUG+g=
github.com/go-openapi/loads v0.21.2 h1:r2a/xFIYeZ4Qd2TnGpWDIQNcP80dIaZgf704za8enro=
github.com/go-openapi/loads v0.21.2/go.mod h1:Jq58Os6SSGz0rzh62ptiu8Z31I+OTHqmULx5e/gJbNw=
github.com/go-openapi/loads v0.22.0 h1:ECPGd4jX1U6NApCGG1We+uEozOAvXvJSF4nnwHZ8Aco=
github.com/go-openapi/loads v0.22.0/go.mod h1:yLsaTCS92mnSAZX5WWoxszLj0u+Ojl+Zs5Stn1oF+rs=
github.com/go-openapi/runtime v0.21.1 h1:/KIG00BzA2x2HRStX2tnhbqbQdPcFlkgsYCiNY20FZs=
github.com/go-openapi/runtime v0.24.1 h1:Sml5cgQKGYQHF+M7yYSHaH1eOjvTykrddTE/KtQVjqo=
github.com/go-openapi/runtime v0.24.1/go.mod h1:AKurw9fNre+h3ELZfk6ILsfvPN+bvvlaU/M9q/r9hpk=
github.com/go-openapi/runtime v0.28.0 h1:gpPPmWSNGo214l6n8hzdXYhPuJcGtziTOgUpvsFWGIQ=
github.com/go-openapi/runtime v0.28.0/go.mod h1:QN7OzcS+XuYmkQLw05akXk0jRH/eZ3kb18+1KwW9gyc=
github.com/go-openapi/spec v0.20.4 h1:O8hJrt0UMnhHcluhIdUgCLRWyM2x7QkBXRvOs7m+O1M=
github.com/go-openapi/spec v0.20.4/go.mod h1:faYFR1CvsJZ0mNsmsphTMSoRrNV3TEDoAM7FOEWeq8I=
github.com/go-openapi/spec v0.20.6/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA=
github.com/go-openapi/spec v0.20.7 h1:1Rlu/ZrOCCob0n+JKKJAWhNWMPW8bOZRg8FJaY+0SKI=
github.com/go-openapi/spec v0.20.7/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA=
github.com/go-openapi/spec v0.21.0 h1:LTVzPc3p/RzRnkQqLRndbAzjY0d0BCL72A6j3CdL9ZY=
github.com/go-openapi/spec v0.21.0/go.mod h1:78u6VdPw81XU44qEWGhtr982gJ5BWg2c0I5XwVMotYk=
github.com/go-openapi/strfmt v0.21.0/go.mod h1:ZRQ409bWMj+SOgXofQAGTIo2Ebu72Gs+WaRADcS5iNg=
github.com/go-openapi/strfmt v0.21.1 h1:G6s2t5V5kGCHLVbSdZ/6lI8Wm4OzoPFkc3/cjAsKQrM=
github.com/go-openapi/strfmt v0.21.1/go.mod h1:I/XVKeLc5+MM5oPNN7P6urMOpuLXEcNrCX/rPGuWb0k=
github.com/go-openapi/strfmt v0.21.2/go.mod h1:I/XVKeLc5+MM5oPNN7P6urMOpuLXEcNrCX/rPGuWb0k=
github.com/go-openapi/strfmt v0.21.3 h1:xwhj5X6CjXEZZHMWy1zKJxvW9AfHC9pkyUjLvHtKG7o=
github.com/go-openapi/strfmt v0.21.3/go.mod h1:k+RzNO0Da+k3FrrynSNN8F7n/peCmQQqbbXjtDfvmGg=
github.com/go-openapi/strfmt v0.23.0 h1:nlUS6BCqcnAk0pyhi9Y+kdDVZdZMHfEKQiS4HaMgO/c=
github.com/go-openapi/strfmt v0.23.0/go.mod h1:NrtIpfKtWIygRkKVsxh7XQMDQW5HKQl6S5ik2elW+K4=
github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk=
github.com/go-openapi/swag v0.19.15 h1:D2NRCBzS9/pEY3gP9Nl8aDqGUcPFrwG2p+CNFrLyrCM=
github.com/go-openapi/swag v0.19.15/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ=
github.com/go-openapi/swag v0.21.1/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ=
github.com/go-openapi/swag v0.22.3 h1:yMBqmnQ0gyZvEb/+KzuWZOXgllrXT4SADYbvDaXHv/g=
github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14=
github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE=
github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ=
github.com/go-openapi/validate v0.20.3 h1:GZPPhhKSZrE8HjB4eEkoYAZmoWA4+tCemSgINH1/vKw=
github.com/go-openapi/validate v0.21.0/go.mod h1:rjnrwK57VJ7A8xqfpAOEKRH8yQSGUriMu5/zuPSQ1hg=
github.com/go-openapi/validate v0.22.0 h1:b0QecH6VslW/TxtpKgzpO1SNG7GU2FsaqKdP1E2T50Y=
github.com/go-openapi/validate v0.22.0/go.mod h1:rjnrwK57VJ7A8xqfpAOEKRH8yQSGUriMu5/zuPSQ1hg=
github.com/go-openapi/validate v0.24.0 h1:LdfDKwNbpB6Vn40xhTdNZAnfLECL81w+VX3BumrGD58=
github.com/go-openapi/validate v0.24.0/go.mod h1:iyeX1sEufmv3nPbBdX3ieNviWnOZaJ1+zquzJEf2BAQ=
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
github.com/go-stack/stack v1.8.1 h1:ntEHSVwIt7PNXNpgPmVfMrNhLtgjlmnZha2kOpuRiDw=
github.com/go-stack/stack v1.8.1/go.mod h1:dcoOX6HbPZSZptuspn9bctJ+N/CnF5gGygcUP3XYfe4=
@@ -133,6 +166,10 @@ github.com/go-swagger/go-swagger v0.29.0 h1:z3YoZtLvS1Y8TE/PCat1VypcZxM0IgKLt0Nv
github.com/go-swagger/go-swagger v0.29.0/go.mod h1:Z4GJzI+bHKKkGB2Ji1rawpi3/ldXX8CkzGIa9HAC5EE=
github.com/go-swagger/go-swagger v0.30.2 h1:23odPUyQZdkNFZZSBJ3mqYYcdh+LnuReEbdWN18OMRo=
github.com/go-swagger/go-swagger v0.30.2/go.mod h1:neDPes8r8PCz2JPvHRDj8BTULLh4VJUt7n6MpQqxhHM=
github.com/go-swagger/go-swagger v0.30.6-0.20240310114303-db51e79a0e37 h1:KFcZmKdZmapAog2+eL1buervAYrYolBZk7fMecPPDmo=
github.com/go-swagger/go-swagger v0.30.6-0.20240310114303-db51e79a0e37/go.mod h1:i1/E+d8iPNReSE7y04FaVu5OPKB3il5cn+T1Egogg3I=
github.com/go-swagger/go-swagger v0.30.6-0.20240418033037-c46c303aaa02 h1:J6YiT/eg3gAfKMdVCkWXe6khsO+nxa8W4URZ4AUqzbA=
github.com/go-swagger/go-swagger v0.30.6-0.20240418033037-c46c303aaa02/go.mod h1:i1/E+d8iPNReSE7y04FaVu5OPKB3il5cn+T1Egogg3I=
github.com/gobuffalo/attrs v0.0.0-20190224210810-a9411de4debd/go.mod h1:4duuawTqi2wkkpB4ePgWMaai6/Kc6WEz83bhFwpHzj0=
github.com/gobuffalo/depgen v0.0.0-20190329151759-d478694a28d3/go.mod h1:3STtPUQYuzV0gBVOY3vy6CfMm/ljR4pABfrTeHNLHUY=
github.com/gobuffalo/depgen v0.1.0/go.mod h1:+ifsuy7fhi15RWncXQQKjWS9JPkdah5sZvtHc2RXGlg=
@@ -211,11 +248,15 @@ github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm4
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.1.2 h1:EVhdT+1Kseyi1/pUmXKaFxYsDNy9RQYkMWRH68J/W7Y=
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8/go.mod h1:dvDLG8qkwmyD9a/MJJN3XJcT3xFxOKAvTZGvuZmac9g=
github.com/gorilla/handlers v1.5.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4=
github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q=
github.com/gorilla/handlers v1.5.2 h1:cLTUSsNkgcwhgRqvCNmdbRWG0A3N4F+M2nWKdScwyEE=
github.com/gorilla/handlers v1.5.2/go.mod h1:dX+xVpaxdSw+q0Qek8SSsl3dfMk3jNddUkMzo0GtH0w=
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
@@ -223,11 +264,16 @@ github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T
github.com/huandu/xstrings v1.3.1/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
github.com/huandu/xstrings v1.3.2 h1:L18LIDzqlW6xN2rEkpdV8+oL/IXWJ1APd+vsdYy4Wdw=
github.com/huandu/xstrings v1.3.2/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
github.com/huandu/xstrings v1.4.0 h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU=
github.com/huandu/xstrings v1.4.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE=
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
github.com/imdario/mergo v0.3.12 h1:b6R2BslTbIEToALKP7LxUvijTsNI9TAe80pLWN2g/HU=
github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA=
github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4=
github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/jessevdk/go-flags v1.5.0 h1:1jKYvbxEjfUl0fmqTCOfonvskHHXMjBySTLW4y9LFvc=
github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4=
@@ -246,6 +292,8 @@ github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0=
github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
@@ -253,6 +301,8 @@ github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/magiconair/properties v1.8.5 h1:b6kJs+EmPFMYGkow9GiUyCyOvIwYetYJ3fSaWak/Gls=
github.com/magiconair/properties v1.8.6 h1:5ibWZ6iY0NctNGWo87LalDlEZ6R41TqbbDamhfG/Qzo=
github.com/magiconair/properties v1.8.6/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60=
github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY=
github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0=
github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc=
github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=
@@ -283,6 +333,9 @@ github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3v
github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
github.com/pelletier/go-toml/v2 v2.0.1 h1:8e3L2cCQzLFi2CR4g7vGFuFxX7Jl1kKX8gW+iV0GUKU=
github.com/pelletier/go-toml/v2 v2.0.1/go.mod h1:r9LEWfGN8R5k0VXJ+0BkIe7MYkRdwZOjgMj2KwnJFUo=
github.com/pelletier/go-toml/v2 v2.1.1 h1:LWAJwfNvjQZCFIDKWYQaM62NcYeYViCmWIwmOStowAI=
github.com/pelletier/go-toml/v2 v2.1.1/go.mod h1:tJU2Z3ZkXwnxa4DPO899bsyIoywizdUvyaeZurnPPDc=
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
@@ -297,18 +350,32 @@ github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTE
github.com/rogpeppe/go-internal v1.8.1 h1:geMPLpDpQOgVyCg5z5GoRwLHepNdb71NXb67XFkP+Eg=
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8=
github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4=
github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6keLGt6kNQ=
github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4=
github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE=
github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ=
github.com/shopspring/decimal v1.2.0 h1:abSATXmQEYyShuxI4/vyW3tV1MrKAJzCZ/0zLUXYbsQ=
github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8=
github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
github.com/sirupsen/logrus v1.4.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo=
github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0=
github.com/spf13/afero v1.8.0 h1:5MmtuhAgYeU6qpa7w7bP0dv6MBYuup0vekhSpSkoq60=
github.com/spf13/afero v1.8.2 h1:xehSyVa0YnHWsJ49JFljMpg1HX19V6NDZ1fkm1Xznbo=
github.com/spf13/afero v1.8.2/go.mod h1:CtAatgMJh6bJEIs48Ay/FOnkljP3WeGUG0MC1RfAqwo=
github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8=
github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY=
github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
github.com/spf13/cast v1.4.1 h1:s0hze+J0196ZfEMTs80N7UlFt0BDuQ7Q+JDnHiMWKdA=
github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w=
github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU=
github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0=
github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo=
github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk=
github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo=
@@ -318,9 +385,12 @@ github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An
github.com/spf13/viper v1.10.1 h1:nuJZuYpG7gTj/XqiUwg8bA0cp1+M2mC3J4g5luUYBKk=
github.com/spf13/viper v1.12.0 h1:CZ7eSOd3kZoaYDLbXnmzgQI5RlciuXBMA+18HwHRfZQ=
github.com/spf13/viper v1.12.0/go.mod h1:b6COn30jlNxbm/V2IqWiNWkJ+vZNiMNksliPCiuKtSI=
github.com/spf13/viper v1.18.2 h1:LUXCnvUvSM6FXAsj6nnfc8Q2tp1dIgUfY9Kc8GsSOiQ=
github.com/spf13/viper v1.18.2/go.mod h1:EKmWIqdnk5lOcmR72yw6hS+8OPYcwD0jteitLMVB+yk=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
@@ -329,9 +399,12 @@ github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s=
github.com/subosito/gotenv v1.3.0 h1:mjC+YW8QpAdXibNi+vNWgzmgBH4+5l5dCXv8cNysBLI=
github.com/subosito/gotenv v1.3.0/go.mod h1:YzJjq/33h7nrwdY+iHMhEOEEbW0ovIz0tB6t6PwAXzs=
github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8=
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=
github.com/toqueteos/webbrowser v1.2.0 h1:tVP/gpK69Fx+qMJKsLE7TD8LuGWPnEV71wBN9rrstGQ=
github.com/toqueteos/webbrowser v1.2.0/go.mod h1:XWoZq4cyp9WeUeak7w7LXRUQf1F1ATJMir8RTqb4ayM=
@@ -345,6 +418,7 @@ github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
go.mongodb.org/mongo-driver v1.7.3/go.mod h1:NqaYOwnXWr5Pm7AOpO5QFxKJ503nbMse/R79oO62zWg=
go.mongodb.org/mongo-driver v1.7.5/go.mod h1:VXEWRZ6URJIkUq2SCAyapmhH0ZLRBP+FT4xhp5Zvxng=
go.mongodb.org/mongo-driver v1.8.2 h1:8ssUXufb90ujcIvR6MyE1SchaNj0SFxsakiZgxIyrMk=
@@ -352,12 +426,16 @@ go.mongodb.org/mongo-driver v1.8.3/go.mod h1:0sQWfOeY63QTntERDJJ/0SuKK0T1uVSgKCu
go.mongodb.org/mongo-driver v1.10.0/go.mod h1:wsihk0Kdgv8Kqu1Anit4sfK+22vSFbUrAVEYRhCXrA8=
go.mongodb.org/mongo-driver v1.10.1 h1:NujsPveKwHaWuKUer/ceo9DzEe7HIj1SlJ6uvXZG0S4=
go.mongodb.org/mongo-driver v1.10.1/go.mod h1:z4XpeoU6w+9Vht+jAFyLgVrD+jGSQQe0+CBWFHNiHt8=
go.mongodb.org/mongo-driver v1.14.0 h1:P98w8egYRjYe3XDjxhYJagTokP/H6HzlsnojRgZRd80=
go.mongodb.org/mongo-driver v1.14.0/go.mod h1:Vzb0Mk/pa7e6cWw85R4F/endUC3u0U9jGcNU603k65c=
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk=
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20190422162423-af44ce270edf/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE=
@@ -369,10 +447,14 @@ golang.org/x/crypto v0.0.0-20200414173820-0848c9571904/go.mod h1:LzIPMQfyMNhhGPh
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
golang.org/x/crypto v0.0.0-20201216223049-8b5274cf687f/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.0.0-20220829220503-c86fa9a7ed90 h1:Y/gsMcFOcR+6S6f3YeMKl5g+dZMEWqcz5Czj/GWYbkM=
golang.org/x/crypto v0.0.0-20220829220503-c86fa9a7ed90/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA=
golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
@@ -383,6 +465,8 @@ golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u0
golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4=
golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
golang.org/x/exp v0.0.0-20240222234643-814bf88cf225 h1:LfspQV/FYTatPTr/3HzIcmiUFH7PGP+OQ6mgDYo3yuQ=
golang.org/x/exp v0.0.0-20240222234643-814bf88cf225/go.mod h1:CxmFvTBINI24O/j8iY7H1xHzx2i4OsyguNBmN/uPtqc=
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
@@ -409,6 +493,8 @@ golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.5.1 h1:OJxoQ/rynoF0dcCdI7cLPktw/hR2cueqYfjm43oqK38=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 h1:6zppjxzCulZykYSLyVDYbneBfbaBIQPYMevg0bEwv2s=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/mod v0.16.0 h1:QX4fJ0Rr5cPQCF7O9lh9Se4pmwfwskqZfq5moyldzic=
golang.org/x/mod v0.16.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@@ -444,6 +530,8 @@ golang.org/x/net v0.0.0-20210421230115-4e50805a0758/go.mod h1:72T/g9IO56b78aLF+1
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20220121210141-e204ce36a2ba h1:6u6sik+bn/y7vILcYkK3iwTBWN7WtBvB0+SZswQnbf8=
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
@@ -465,6 +553,9 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ=
golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
@@ -511,11 +602,17 @@ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 h1:XfKQ4OlFl8okEOr5UvAqFRVj8pY/4yfcXrddB8qAbU0=
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220829200755-d48e67d00261 h1:v6hYoSR9T5oet+pMXwUWkbiVqx/63mlHjefrHmxwfeY=
golang.org/x/sys v0.0.0-20220829200755-d48e67d00261/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4=
golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
@@ -526,6 +623,9 @@ golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
@@ -583,6 +683,8 @@ golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
golang.org/x/tools v0.1.8 h1:P1HhGGuLW4aAclzjtmJdf0mJOjVUZUzOTqkAkWL+l6w=
golang.org/x/tools v0.1.12 h1:VveCTK38A2rkS8ZqFY25HIDFscX5X9OoEhJd3quQmXU=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/tools v0.19.0 h1:tfGCXNR1OsFG+sVdLAitlpjAvD/I6dHDKnYrpEZUHkw=
golang.org/x/tools v0.19.0/go.mod h1:qoJWxmGSIBmAeriMx19ogtrEPrGtDbPK634QFIcLAhc=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
@@ -683,6 +785,8 @@ gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
gopkg.in/ini.v1 v1.66.3 h1:jRskFVxYaMGAMUbN0UZ7niA9gzL9B49DOqE78vg0k3w=
gopkg.in/ini.v1 v1.66.4 h1:SsAcf+mM7mRZo2nJNGt8mZCjG8ZRaNGMURJw7BsIST4=
gopkg.in/ini.v1 v1.66.4/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA=
gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

View File

@@ -1,4 +1,4 @@
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.8. DO NOT EDIT.
# Auto generated binary variables helper managed by https://github.com/bwplotka/bingo v0.9. DO NOT EDIT.
# All tools are designed to be build inside $GOBIN.
# Those variables will work only until 'bingo get' was invoked, or if tools were installed via Makefile's Variables.mk.
GOBIN=${GOBIN:=$(go env GOBIN)}
@@ -14,13 +14,11 @@ CUE="${GOBIN}/cue-v0.5.0"
DRONE="${GOBIN}/drone-v1.5.0"
GOLANGCI_LINT="${GOBIN}/golangci-lint-v1.53.3"
GOLANGCI_LINT="${GOBIN}/golangci-lint-v1.59.0"
JB="${GOBIN}/jb-v0.5.1"
LEFTHOOK="${GOBIN}/lefthook-v1.4.8"
SWAGGER="${GOBIN}/swagger-v0.30.2"
WIRE="${GOBIN}/wire-v0.5.0"
SWAGGER="${GOBIN}/swagger-v0.30.6-0.20240310114303-db51e79a0e37"

View File

@@ -1,5 +0,0 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
go 1.16
require github.com/google/wire v0.5.0 // cmd/wire

View File

@@ -1,13 +0,0 @@
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
github.com/google/subcommands v1.0.1 h1:/eqq+otEXm5vhfBrbREPCSVQbvofip6kIz+mX5TUH7k=
github.com/google/subcommands v1.0.1/go.mod h1:ZjhPrFU+Olkh9WazFPsl27BQ4UPiG37m3yTrtFlrHVk=
github.com/google/wire v0.5.0 h1:I7ELFeVBr3yfPIcc8+MWvrjk+3VjbcSzoXm3JVa+jD8=
github.com/google/wire v0.5.0/go.mod h1:ngWDr9Qvq3yZA10YrxfyGELY/AFWGVpy9c1LTRi1EoU=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/tools v0.0.0-20190422233926-fe54fb35175b h1:NVD8gBK33xpdqCaZVVtd6OFJp+3dxkXuz7+U7KaVN6s=
golang.org/x/tools v0.0.0-20190422233926-fe54fb35175b/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=

View File

@@ -105,7 +105,7 @@
- Notice to makers/users of custom data sources, there is a minor breaking change in 2.2 that
require an update to custom data sources for them to work in 2.2. [Read this doc](https://github.com/grafana/grafana/tree/master/docs/sources/datasources/plugin_api.md) for more on the
data source api change.
- Data source api changes, [PLUGIN_CHANGES.md](https://github.com/grafana/grafana/blob/master/public/app/plugins/PLUGIN_CHANGES.md)
- Data source api changes, [PLUGIN_CHANGES.md](https://github.com/grafana/grafana/blob/main/public/app/plugins/PLUGIN_CHANGES.md)
- The duplicate query function used in data source editors is changed, and moveMetricQuery function was renamed
**Tech (Note for devs)**

View File

@@ -198,7 +198,7 @@ slack channel (link to slack channel in readme).
### Breaking changes
- **Plugin API**: Both data source and panel plugin api (and plugin.json schema) have been updated, requiring an update to plugins. See [plugin api](https://github.com/grafana/grafana/blob/master/public/app/plugins/plugin_api.md) for more info.
- **Plugin API**: Both data source and panel plugin api (and plugin.json schema) have been updated, requiring an update to plugins. See [plugin api](https://github.com/grafana/grafana/blob/main/public/app/plugins/plugin_api.md) for more info.
- **InfluxDB 0.8.x** The data source for the old version of influxdb (0.8.x) is no longer included in default builds, but can easily be installed via improved plugin system, closes [#3523](https://github.com/grafana/grafana/issues/3523)
- **KairosDB** The data source is no longer included in default builds, but can easily be installed via improved plugin system, closes [#3524](https://github.com/grafana/grafana/issues/3524)
- **Templating**: Templating value formats (glob/regex/pipe etc) are now handled automatically and not specified by the user, this makes variable values possible to reuse in many contexts. It can in some edge cases break existing dashboards that have template variables that do not reload on dashboard load. To fix any issue just go into template variable options and update the variable (so it's values are reloaded.).

View File

@@ -100,7 +100,7 @@ See [security announcement](https://community.grafana.com/t/grafana-5-2-3-and-4-
## Tech
- **Go**: Grafana is now built using golang 1.9
- **Webpack**: Changed from systemjs to webpack (see readme or building from source guide for new build instructions). Systemjs is still used to load plugins but now plugins can only import a limited set of dependencies. See [PLUGIN_DEV.md](https://github.com/grafana/grafana/blob/master/PLUGIN_DEV.md) for more details on how this can effect some plugins.
- **Webpack**: Changed from systemjs to webpack (see readme or building from source guide for new build instructions). Systemjs is still used to load plugins but now plugins can only import a limited set of dependencies. See [PLUGIN_DEV.md](https://github.com/grafana/grafana/blob/main/PLUGIN_DEV.md) for more details on how this can effect some plugins.
# 4.5.2 (2017-09-22)

View File

@@ -1291,4 +1291,4 @@ repo on July 1st. Make sure you have switched to the new repo by then. The new r
- **Text Panel**: The text panel does no longer by default allow unsanitized HTML. [#4117](https://github.com/grafana/grafana/issues/4117). This means that if you have text panels with scripts tags they will no longer work as before. To enable unsafe javascript execution in text panels enable the settings `disable_sanitize_html` under the section `[panels]` in your Grafana ini file, or set env variable `GF_PANELS_DISABLE_SANITIZE_HTML=true`.
- **Dashboard**: Panel property `minSpan` replaced by `maxPerRow`. Dashboard migration will automatically migrate all dashboard panels using the `minSpan` property to the new `maxPerRow` property [#12991](https://github.com/grafana/grafana/pull/12991)
For older release notes, refer to the [CHANGELOG_ARCHIVE.md](https://github.com/grafana/grafana/blob/master/CHANGELOG_ARCHIVE.md)
For older release notes, refer to the [CHANGELOG_ARCHIVE.md](https://github.com/grafana/grafana/blob/main/CHANGELOG_ARCHIVE.md)

View File

@@ -544,7 +544,7 @@ Issue [#29407](https://github.com/grafana/grafana/issues/29407)
We have upgraded AngularJS from version 1.6.6 to 1.8.2. Due to this upgrade some old angular plugins might stop working and will require a small update. This is due to the deprecation and removal of pre-assigned bindings. So if your custom angular controllers expect component bindings in the controller constructor you need to move this code to an `$onInit` function. For more details on how to migrate AngularJS code open the [migration guide](https://docs.angularjs.org/guide/migration) and search for **pre-assigning bindings**.
In order not to break all angular panel plugins and data sources we have some custom [angular inject behavior](https://github.com/grafana/grafana/blob/master/public/app/core/injectorMonkeyPatch.ts) that makes sure that bindings for these controllers are still set before constructor is called so many old angular panels and data source plugins will still work. Issue [#28736](https://github.com/grafana/grafana/issues/28736)
In order not to break all angular panel plugins and data sources we have some custom [angular inject behavior](https://github.com/grafana/grafana/blob/main/public/app/core/injectorMonkeyPatch.ts) that makes sure that bindings for these controllers are still set before constructor is called so many old angular panels and data source plugins will still work. Issue [#28736](https://github.com/grafana/grafana/issues/28736)
### Deprecations
@@ -1288,8 +1288,8 @@ This option to group query variable values into groups by tags has been an exper
- **Datasource/Loki**: Support for [deprecated Loki endpoints](https://github.com/grafana/loki/blob/master/docs/api.md#lokis-http-api) has been removed.
- **Backend plugins**: Grafana now requires backend plugins to be signed, otherwise Grafana will not load/start them. This is an additional security measure to make sure backend plugin binaries and files haven't been tampered with. Refer to [Upgrade Grafana](https://grafana.com/docs/grafana/latest/installation/upgrading/#upgrading-to-v7-0) for more information.
- **Docker**: Our Ubuntu based images have been upgraded to Ubuntu [20.04 LTS](https://releases.ubuntu.com/20.04/).
- **@grafana/ui**: Forms migration notice, see [@grafana/ui changelog](https://github.com/grafana/grafana/blob/master/packages/grafana-ui/CHANGELOG.md)
- **@grafana/ui**: Select API change for creating custom values, see [@grafana/ui changelog](https://github.com/grafana/grafana/blob/master/packages/grafana-ui/CHANGELOG.md)
- **@grafana/ui**: Forms migration notice, see [@grafana/ui changelog](https://github.com/grafana/grafana/blob/main/packages/grafana-ui/CHANGELOG.md)
- **@grafana/ui**: Select API change for creating custom values, see [@grafana/ui changelog](https://github.com/grafana/grafana/blob/main/packages/grafana-ui/CHANGELOG.md)
**Deprecation warnings**
@@ -1304,7 +1304,7 @@ Not just visualizing data from anywhere, in Grafana 7 you can transform it too.
Data transformations will provide a common set of data operations that were previously duplicated as custom features in many panels or data sources but are now an integral part of the Grafana data processing pipeline and something all data sources and panels can take advantage of.
In Grafana 7.0 we have a shared data model for both time series and table data that we call [DataFrame](https://github.com/grafana/grafana/blob/master/docs/sources/plugins/developing/dataframe.md). A DataFrame is like a table with columns but we refer to columns as fields. A time series is simply a DataFrame with two fields (time & value).
In Grafana 7.0 we have a shared data model for both time series and table data that we call [DataFrame](https://github.com/grafana/grafana/blob/main/docs/sources/plugins/developing/dataframe.md). A DataFrame is like a table with columns but we refer to columns as fields. A time series is simply a DataFrame with two fields (time & value).
**Transformations shipping in 7.0**
@@ -1414,7 +1414,7 @@ We have also extended the time zone options so you can select any of the standar
### Features / Enhancements
- **Docker**: Upgrade to Alpine 3.11. [#24056](https://github.com/grafana/grafana/pull/24056), [@aknuds1](https://github.com/aknuds1)
- **Forms**: Remove Forms namespace [BREAKING]. Will cause all `Forms` imports to stop working. See migration guide in [@grafana/ui changelog](https://github.com/grafana/grafana/blob/master/packages/grafana-ui/CHANGELOG.md)[#24378](https://github.com/grafana/grafana/pull/24378), [@tskarhed](https://github.com/tskarhed)
- **Forms**: Remove Forms namespace [BREAKING]. Will cause all `Forms` imports to stop working. See migration guide in [@grafana/ui changelog](https://github.com/grafana/grafana/blob/main/packages/grafana-ui/CHANGELOG.md)[#24378](https://github.com/grafana/grafana/pull/24378), [@tskarhed](https://github.com/tskarhed)
### Bug Fixes
@@ -1429,7 +1429,7 @@ We have also extended the time zone options so you can select any of the standar
- **Removed PhantomJS**: PhantomJS was deprecated in [Grafana v6.4](https://grafana.com/docs/grafana/latest/guides/whats-new-in-v6-4/#phantomjs-deprecation) and starting from Grafana v7.0.0, all PhantomJS support has been removed. This means that Grafana no longer ships with a built-in image renderer, and we advise you to install the [Grafana Image Renderer plugin](https://grafana.com/grafana/plugins/grafana-image-renderer).
- **Docker**: Our Ubuntu based images have been upgraded to Ubuntu [20.04 LTS](https://releases.ubuntu.com/20.04/).
- **Dashboard**: A global minimum dashboard refresh interval is now enforced and defaults to 5 seconds.
- **@grafana/ui**: Forms migration notice, see [@grafana/ui changelog](https://github.com/grafana/grafana/blob/master/packages/grafana-ui/CHANGELOG.md)
- **@grafana/ui**: Forms migration notice, see [@grafana/ui changelog](https://github.com/grafana/grafana/blob/main/packages/grafana-ui/CHANGELOG.md)
- **Interval calculation**: There is now a new option `Max data points` that controls the auto interval `$__interval` calculation. Interval was previously calculated by dividing the panel width by the time range. With the new max data points option it is now easy to set `$__interval` to a dynamic value that is time range agnostic. For example if you set `Max data points` to 10 Grafana will dynamically set `$__interval` by dividing the current time range by 10.
- **Datasource/Loki**: Support for [deprecated Loki endpoints](https://github.com/grafana/loki/blob/master/docs/api.md#lokis-http-api) has been removed.
@@ -1484,8 +1484,8 @@ We have also extended the time zone options so you can select any of the standar
- **Removed PhantomJS**: PhantomJS was deprecated in [Grafana v6.4](https://grafana.com/docs/grafana/latest/guides/whats-new-in-v6-4/#phantomjs-deprecation) and starting from Grafana v7.0.0, all PhantomJS support has been removed. This means that Grafana no longer ships with a built-in image renderer, and we advise you to install the [Grafana Image Renderer plugin](https://grafana.com/grafana/plugins/grafana-image-renderer).
- **Docker**: Our Ubuntu based images have been upgraded to Ubuntu [20.04 LTS](https://releases.ubuntu.com/20.04/).
- **Dashboard**: A global minimum dashboard refresh interval is now enforced and defaults to 5 seconds.
- **@grafana/ui**: Forms migration notice, see [@grafana/ui changelog](https://github.com/grafana/grafana/blob/master/packages/grafana-ui/CHANGELOG.md)
- **@grafana/ui**: Select API change for creating custom values, see [@grafana/ui changelog](https://github.com/grafana/grafana/blob/master/packages/grafana-ui/CHANGELOG.md)
- **@grafana/ui**: Forms migration notice, see [@grafana/ui changelog](https://github.com/grafana/grafana/blob/main/packages/grafana-ui/CHANGELOG.md)
- **@grafana/ui**: Select API change for creating custom values, see [@grafana/ui changelog](https://github.com/grafana/grafana/blob/main/packages/grafana-ui/CHANGELOG.md)
- **Interval calculation**: There is now a new option `Max data points` that controls the auto interval `$__interval` calculation. Interval was previously calculated by dividing the panel width by the time range. With the new max data points option it is now easy to set `$__interval` to a dynamic value that is time range agnostic. For example if you set `Max data points` to 10 Grafana will dynamically set `$__interval` by dividing the current time range by 10.
- **Datasource/Loki**: Support for [deprecated Loki endpoints](https://github.com/grafana/loki/blob/master/docs/api.md#lokis-http-api) has been removed.

1270
.drone.yml

File diff suppressed because it is too large Load Diff

103
.eslintrc
View File

@@ -1,13 +1,14 @@
{
"extends": ["@grafana/eslint-config"],
"root": true,
"plugins": ["@emotion", "lodash", "jest", "import", "jsx-a11y", "@grafana"],
"plugins": ["@emotion", "lodash", "jest", "import", "jsx-a11y", "@grafana", "no-barrel-files"],
"settings": {
"import/internal-regex": "^(app/)|(@grafana)",
"import/external-module-folders": ["node_modules", ".yarn"]
"import/external-module-folders": ["node_modules", ".yarn"],
},
"rules": {
"@grafana/no-border-radius-literal": "error",
"@grafana/no-unreduced-motion": "error",
"react/prop-types": "off",
// need to ignore emotion's `css` prop, see https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unknown-property.md#rule-options
"react/no-unknown-property": ["error", { "ignore": ["css"] }],
@@ -19,8 +20,8 @@
{
"groups": [["builtin", "external"], "internal", "parent", "sibling", "index"],
"newlines-between": "always",
"alphabetize": { "order": "asc" }
}
"alphabetize": { "order": "asc" },
},
],
"no-restricted-imports": [
"error",
@@ -29,47 +30,43 @@
{
"name": "react-redux",
"importNames": ["useDispatch", "useSelector"],
"message": "Please import from app/types instead."
"message": "Please import from app/types instead.",
},
{
"name": "react-i18next",
"importNames": ["Trans", "t"],
"message": "Please import from app/core/internationalization instead"
"message": "Please import from app/core/internationalization instead",
},
{
"name": "@grafana/e2e",
"message": "@grafana/e2e is deprecated. Please import from ./e2e/utils instead"
}
]
}
],
},
],
// Use typescript's no-redeclare for compatibility with overrides
"no-redeclare": "off",
"@typescript-eslint/no-redeclare": ["error"]
"@typescript-eslint/no-redeclare": ["error"],
},
"overrides": [
{
"files": ["packages/grafana-ui/src/components/uPlot/**/*.{ts,tsx}"],
"rules": {
"react-hooks/rules-of-hooks": "off",
"react-hooks/exhaustive-deps": "off"
}
"react-hooks/exhaustive-deps": "off",
},
},
{
"files": ["packages/grafana-ui/src/components/ThemeDemos/**/*.{ts,tsx}"],
"rules": {
"@emotion/jsx-import": "off",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off"
}
"react/react-in-jsx-scope": "off",
},
},
{
"files": ["public/dashboards/scripted*.js"],
"rules": {
"no-redeclare": "error",
"@typescript-eslint/no-redeclare": "off"
}
"@typescript-eslint/no-redeclare": "off",
},
},
{
"extends": ["plugin:jsx-a11y/recommended"],
@@ -82,33 +79,57 @@
"jsx-a11y/no-autofocus": [
"error",
{
"ignoreNonDOM": true
}
"ignoreNonDOM": true,
},
],
"jsx-a11y/label-has-associated-control": [
"error",
{
"controlComponents": ["NumberInput"],
"depth": 2
}
]
}
"depth": 2,
},
],
},
},
{
"files": [
"public/app/plugins/datasource/grafana-testdata-datasource/*.{ts,tsx}",
"public/app/plugins/datasource/grafana-testdata-datasource/**/*.{ts,tsx}",
"public/app/plugins/datasource/azuremonitor/*.{ts,tsx}",
"public/app/plugins/datasource/azuremonitor/**/*.{ts,tsx}",
"public/app/plugins/datasource/cloud-monitoring/*.{ts,tsx}",
"public/app/plugins/datasource/cloud-monitoring/**/*.{ts,tsx}",
"public/app/plugins/datasource/elasticsearch/*.{ts,tsx}",
"public/app/plugins/datasource/elasticsearch/**/*.{ts,tsx}",
"public/app/plugins/datasource/grafana-postgresql-datasource/*.{ts,tsx}",
"public/app/plugins/datasource/grafana-postgresql-datasource/**/*.{ts,tsx}",
"public/app/plugins/datasource/grafana-pyroscope-datasource/*.{ts,tsx}",
"public/app/plugins/datasource/grafana-pyroscope-datasource/**/*.{ts,tsx}",
"public/app/plugins/datasource/grafana-testdata-datasource/*.{ts,tsx}",
"public/app/plugins/datasource/grafana-testdata-datasource/**/*.{ts,tsx}",
"public/app/plugins/datasource/jaeger/*.{ts,tsx}",
"public/app/plugins/datasource/jaeger/**/*.{ts,tsx}",
"public/app/plugins/datasource/loki/*.{ts,tsx}",
"public/app/plugins/datasource/loki/**/*.{ts,tsx}",
"public/app/plugins/datasource/mysql/*.{ts,tsx}",
"public/app/plugins/datasource/mysql/**/*.{ts,tsx}",
"public/app/plugins/datasource/parca/*.{ts,tsx}",
"public/app/plugins/datasource/parca/**/*.{ts,tsx}"
"public/app/plugins/datasource/parca/**/*.{ts,tsx}",
"public/app/plugins/datasource/tempo/*.{ts,tsx}",
"public/app/plugins/datasource/tempo/**/*.{ts,tsx}",
"public/app/plugins/datasource/loki/*.{ts,tsx}",
"public/app/plugins/datasource/loki/**/*.{ts,tsx}",
"public/app/plugins/datasource/elasticsearch/*.{ts,tsx}",
"public/app/plugins/datasource/elasticsearch/**/*.{ts,tsx}",
"public/app/plugins/datasource/cloudwatch/*.{ts,tsx}",
"public/app/plugins/datasource/cloudwatch/**/*.{ts,tsx}",
"public/app/plugins/datasource/zipkin/*.{ts,tsx}",
"public/app/plugins/datasource/zipkin/**/*.{ts,tsx}",
],
"settings": {
"import/resolver": {
"node": {
"extensions": [".ts", ".tsx"]
}
}
"extensions": [".ts", ".tsx"],
},
},
},
"rules": {
"import/no-restricted-paths": [
@@ -117,14 +138,14 @@
"zones": [
{
"target": "./public/app/plugins",
"from": "./public/app",
"except": ["./plugins"],
"message": "Core plugins are not allowed to depend on Grafana core packages"
}
]
}
]
}
}
]
"from": "./public",
"except": ["./app/plugins"],
"message": "Core plugins are not allowed to depend on Grafana core packages",
},
],
},
],
},
},
],
}

400
.github/CODEOWNERS vendored
View File

@@ -13,13 +13,11 @@
# Documentation
/.changelog-archive @grafana/grafana-release-guild
/.codespellignore @grafana/docs-tooling
/CHANGELOG.md @grafana/grafana-release-guild
/CODE_OF_CONDUCT.md @grafana/grafana-community-support
/CONTRIBUTING.md @grafana/grafana-community-support
/GOVERNANCE.md @RichiH
/HALL_OF_FAME.md @grafana/grafana-community-support
/ISSUE_TRIAGE.md @grafana/grafana-community-support
/LICENSE @torkelo
/LICENSING.md @torkelo
/MAINTAINERS.md @RichiH
@@ -28,131 +26,135 @@
/ROADMAP.md @torkelo
/SECURITY.md @grafana/security-team
/SUPPORT.md @torkelo
/UPGRADING_DEPENDENCIES.md @grafana/docs-grafana
/WORKFLOW.md @torkelo
/contribute/ @grafana/grafana-community-support
/contribute/UPGRADING_DEPENDENCIES.md @grafana/docs-grafana
/devenv/README.md @grafana/docs-grafana
# Technical documentation
# START Technical documentation
# `make docs` procedure and related workflows are owned @grafana/docs-tooling. Slack #docs.
# Documentation sources might have different owners.
/docs/ @grafana/docs-tooling
/docs/sources/ @Eve832
/docs/sources/administration/ @jdbaldry
/docs/sources/alerting/ @brendamuir
/docs/sources/dashboards/ @imatwawana
/docs/sources/datasources/ @lwandz13
/docs/sources/explore/ @grafana/explore-squad
/docs/sources/fundamentals @chri2547
/docs/sources/getting-started/ @chri2547
/docs/sources/introduction/ @chri2547
/docs/sources/old-alerting/ @brendamuir
/docs/sources/panels-visualizations/ @imatwawana
/docs/ @grafana/docs-tooling
/docs/.codespellignore @grafana/docs-tooling
/docs/sources/ @Eve832
/docs/sources/administration/ @jdbaldry
/docs/sources/alerting/ @brendamuir
/docs/sources/dashboards/ @imatwawana
/docs/sources/datasources/ @jdbaldry
/docs/sources/explore/ @grafana/explore-squad @lwandz13
/docs/sources/fundamentals @chri2547
/docs/sources/getting-started/ @chri2547
/docs/sources/introduction/ @chri2547
/docs/sources/panels-visualizations/ @imatwawana
/docs/sources/release-notes/ @Eve832 @GrafanaWriter
/docs/sources/setup-grafana/ @chri2547
/docs/sources/upgrade-guide/ @imatwawana
/docs/sources/whatsnew/ @imatwawana
/docs/sources/developers/plugins/ @Eve832 @josmperez @grafana/plugins-platform-frontend @grafana/plugins-platform-backend
/docs/sources/panels-visualizations/query-transform-data/transform-data/index.md @imatwawana @baldm0mma
/docs/sources/release-notes/ @Eve832 @GrafanaWriter
/docs/sources/setup-grafana/ @chri2547
/docs/sources/upgrade-guide/ @imatwawana
/docs/sources/whatsnew/ @imatwawana
/docs/sources/developers/plugins/ @Eve832 @josmperez @grafana/plugins-platform-frontend @grafana/plugins-platform-backend
# END Technical documentation
# Backend code
/go.mod @grafana/backend-platform
/go.sum @grafana/backend-platform
/.bingo/ @grafana/backend-platform
/pkg/README.md @grafana/backend-platform
/pkg/ruleguard.rules.go @grafana/backend-platform
/.bra.toml @grafana/backend-platform
/.golangci.toml @grafana/backend-platform
/build.go @grafana/backend-platform
/scripts/modowners/ @grafana/backend-platform
/go.mod @grafana/grafana-backend-group
/go.sum @grafana/grafana-backend-group
/go.work @grafana/grafana-app-platform-squad
/go.work.sum @grafana/grafana-app-platform-squad
/.bingo/ @grafana/grafana-backend-group
/pkg/README.md @grafana/grafana-backend-group
/pkg/ruleguard.rules.go @grafana/grafana-backend-group
/.bra.toml @grafana/grafana-backend-group
/.golangci.toml @grafana/grafana-backend-group
/build.go @grafana/grafana-backend-services-squad
/scripts/modowners/ @grafana/grafana-backend-services-squad
/hack/ @grafana/grafana-app-platform-squad
/pkg/api/ @grafana/backend-platform
/pkg/api/ @grafana/grafana-backend-group
/pkg/apis/ @grafana/grafana-app-platform-squad
/pkg/bus/ @grafana/backend-platform
/pkg/cmd/ @grafana/backend-platform
/pkg/bus/ @grafana/grafana-search-and-storage
/pkg/cmd/ @grafana/grafana-backend-group
/pkg/cmd/grafana/apiserver @grafana/grafana-app-platform-squad
/pkg/components/apikeygen/ @grafana/identity-access-team
/pkg/components/satokengen/ @grafana/identity-access-team
/pkg/components/dashdiffs/ @grafana/backend-platform
/pkg/components/imguploader/ @grafana/backend-platform
/pkg/components/loki/ @grafana/backend-platform
/pkg/components/null/ @grafana/backend-platform
/pkg/components/simplejson/ @grafana/backend-platform
/pkg/events/ @grafana/backend-platform
/pkg/extensions/ @grafana/backend-platform
/pkg/ifaces/ @grafana/backend-platform
/pkg/infra/appcontext/ @grafana/backend-platform
/pkg/infra/db/ @grafana/backend-platform
/pkg/infra/localcache/ @grafana/backend-platform
/pkg/infra/log/ @grafana/backend-platform
/pkg/infra/metrics/ @grafana/backend-platform
/pkg/infra/network/ @grafana/backend-platform
/pkg/infra/process/ @grafana/backend-platform
/pkg/infra/remotecache/ @grafana/backend-platform
/pkg/infra/serverlock/ @grafana/backend-platform
/pkg/infra/slugify/ @grafana/backend-platform
/pkg/infra/tracing/ @grafana/backend-platform
/pkg/infra/usagestats/ @grafana/backend-platform
/pkg/middleware/ @grafana/backend-platform
/pkg/mocks/ @grafana/backend-platform
/pkg/models/ @grafana/backend-platform
/pkg/server/ @grafana/backend-platform
/pkg/services/annotations/ @grafana/backend-platform
/pkg/components/dashdiffs/ @grafana/grafana-app-platform-squad
/pkg/components/imguploader/ @grafana/grafana-backend-group
/pkg/components/loki/ @grafana/grafana-backend-group
/pkg/components/null/ @grafana/grafana-backend-group
/pkg/components/simplejson/ @grafana/grafana-backend-group
/pkg/events/ @grafana/grafana-backend-group
/pkg/extensions/ @grafana/grafana-backend-group
/pkg/ifaces/ @grafana/grafana-backend-group
/pkg/infra/appcontext/ @grafana/grafana-backend-group
/pkg/infra/db/ @grafana/grafana-backend-group
/pkg/infra/localcache/ @grafana/grafana-backend-group
/pkg/infra/log/ @grafana/grafana-backend-group
/pkg/infra/metrics/ @grafana/grafana-backend-group
/pkg/infra/network/ @grafana/grafana-backend-group
/pkg/infra/process/ @grafana/grafana-backend-group
/pkg/infra/remotecache/ @grafana/grafana-backend-group
/pkg/infra/serverlock/ @grafana/grafana-backend-group
/pkg/infra/slugify/ @grafana/grafana-backend-group
/pkg/infra/tracing/ @grafana/grafana-backend-group
/pkg/infra/usagestats/ @grafana/grafana-backend-group
/pkg/middleware/ @grafana/grafana-backend-group
/pkg/mocks/ @grafana/grafana-backend-group
/pkg/models/ @grafana/grafana-backend-group
/pkg/server/ @grafana/grafana-backend-group
/pkg/apiserver @grafana/grafana-app-platform-squad
/pkg/apimachinery @grafana/grafana-app-platform-squad
/pkg/promlib @grafana/observability-metrics
/pkg/services/annotations/ @grafana/grafana-search-and-storage
/pkg/services/apikey/ @grafana/identity-access-team
/pkg/services/cleanup/ @grafana/backend-platform
/pkg/services/contexthandler/ @grafana/backend-platform
/pkg/services/cleanup/ @grafana/grafana-backend-group
/pkg/services/contexthandler/ @grafana/grafana-backend-group
/pkg/services/correlations/ @grafana/explore-squad
/pkg/services/dashboardimport/ @grafana/backend-platform
/pkg/services/dashboards/ @grafana/backend-platform
/pkg/services/dashboardversion/ @grafana/backend-platform
/pkg/services/encryption/ @grafana/backend-platform
/pkg/services/folder/ @grafana/backend-platform
/pkg/services/grafana-apiserver @grafana/grafana-app-platform-squad
/pkg/services/hooks/ @grafana/backend-platform
/pkg/services/kmsproviders/ @grafana/backend-platform
/pkg/services/licensing/ @grafana/backend-platform
/pkg/services/navtree/ @grafana/backend-platform
/pkg/services/notifications/ @grafana/backend-platform
/pkg/services/org/ @grafana/backend-platform
/pkg/services/dashboardimport/ @grafana/grafana-backend-group
/pkg/services/dashboards/ @grafana/grafana-app-platform-squad
/pkg/services/dashboardversion/ @grafana/grafana-backend-group
/pkg/services/encryption/ @grafana/grafana-operator-experience-squad
/pkg/services/folder/ @grafana/grafana-search-and-storage
/pkg/services/apiserver @grafana/grafana-app-platform-squad
/pkg/services/hooks/ @grafana/grafana-backend-group
/pkg/services/kmsproviders/ @grafana/grafana-operator-experience-squad
/pkg/services/licensing/ @grafana/grafana-operator-experience-squad
/pkg/services/navtree/ @grafana/grafana-backend-group
/pkg/services/notifications/ @grafana/grafana-backend-group
/pkg/services/org/ @grafana/grafana-backend-group
/pkg/services/playlist/ @grafana/grafana-app-platform-squad
/pkg/services/preference/ @grafana/backend-platform
/pkg/services/provisioning/ @grafana/backend-platform
/pkg/services/query/ @grafana/backend-platform
/pkg/services/queryhistory/ @grafana/backend-platform
/pkg/services/quota/ @grafana/backend-platform
/pkg/services/rendering/ @grafana/backend-platform
/pkg/services/screenshot/ @grafana/backend-platform
/pkg/services/search/ @grafana/backend-platform
/pkg/services/searchusers/ @grafana/backend-platform
/pkg/services/secrets/ @grafana/backend-platform
/pkg/services/shorturls/ @grafana/backend-platform
/pkg/services/sqlstore/ @grafana/backend-platform
/pkg/services/preference/ @grafana/grafana-backend-group
/pkg/services/provisioning/ @grafana/grafana-search-and-storage
/pkg/services/query/ @grafana/grafana-app-platform-squad
/pkg/services/queryhistory/ @grafana/grafana-app-platform-squad
/pkg/services/quota/ @grafana/grafana-search-and-storage
/pkg/services/screenshot/ @grafana/grafana-backend-group
/pkg/services/search/ @grafana/grafana-search-and-storage
/pkg/services/searchusers/ @grafana/grafana-search-and-storage
/pkg/services/secrets/ @grafana/grafana-operator-experience-squad
/pkg/services/shorturls/ @grafana/grafana-backend-group
/pkg/services/sqlstore/ @grafana/grafana-search-and-storage
/pkg/services/ssosettings/ @grafana/identity-access-team
/pkg/services/star/ @grafana/backend-platform
/pkg/services/stats/ @grafana/backend-platform
/pkg/services/tag/ @grafana/backend-platform
/pkg/services/star/ @grafana/grafana-search-and-storage
/pkg/services/stats/ @grafana/grafana-backend-group
/pkg/services/tag/ @grafana/grafana-search-and-storage
/pkg/services/team/ @grafana/identity-access-team
/pkg/services/temp_user/ @grafana/backend-platform
/pkg/services/updatechecker/ @grafana/backend-platform
/pkg/services/temp_user/ @grafana/grafana-backend-group
/pkg/services/updatechecker/ @grafana/grafana-backend-group
/pkg/services/user/ @grafana/identity-access-team
/pkg/services/validations/ @grafana/backend-platform
/pkg/setting/ @grafana/backend-platform
/pkg/tests/ @grafana/backend-platform
/pkg/services/validations/ @grafana/grafana-backend-group
/pkg/setting/ @grafana/grafana-backend-services-squad
/pkg/tests/ @grafana/grafana-backend-services-squad
/pkg/tests/apis/ @grafana/grafana-app-platform-squad
/pkg/tests/api/correlations/ @grafana/explore-squad
/pkg/tsdb/grafanads/ @grafana/backend-platform
/pkg/tsdb/intervalv2/ @grafana/backend-platform
/pkg/tsdb/legacydata/ @grafana/backend-platform
/pkg/tsdb/opentsdb/ @grafana/backend-platform
/pkg/tsdb/sqleng/ @grafana/partner-datasources @grafana/oss-big-tent
/pkg/tsdb/sqleng/proxyutil @grafana/hosted-grafana-team
/pkg/util/ @grafana/backend-platform
/pkg/web/ @grafana/backend-platform
/pkg/tsdb/grafanads/ @grafana/grafana-backend-group
/pkg/tsdb/opentsdb/ @grafana/grafana-backend-group
/pkg/util/ @grafana/grafana-backend-group
/pkg/web/ @grafana/grafana-backend-group
/pkg/infra/kvstore/ @grafana/backend-platform
/pkg/infra/fs/ @grafana/backend-platform
/pkg/infra/x/ @grafana/backend-platform
/pkg/infra/kvstore/ @grafana/grafana-backend-group
/pkg/infra/fs/ @grafana/grafana-backend-group
/pkg/infra/x/ @grafana/grafana-backend-group
# devenv
@@ -166,14 +168,14 @@
/devenv/bulk-dashboards/ @grafana/dashboards-squad
/devenv/bulk-folders/ @grafana/grafana-frontend-platform
/devenv/bulk_alerting_dashboards/ @grafana/alerting-backend-product
/devenv/create_docker_compose.sh @grafana/backend-platform
/devenv/create_docker_compose.sh @grafana/grafana-backend-services-squad
/devenv/alert_rules.yaml @grafana/alerting-backend
/devenv/dashboards.yaml @grafana/dashboards-squad
/devenv/datasources.yaml @grafana/backend-platform
/devenv/datasources_docker.yaml @grafana/backend-platform
/devenv/datasources.yaml @grafana/grafana-backend-group
/devenv/datasources_docker.yaml @grafana/grafana-backend-group
/devenv/dev-dashboards-without-uid/ @grafana/dashboards-squad
/devenv/dev-dashboards/ @grafana/dashboards-squad
/devenv/docker/blocks/alert_webhook_listener/ @grafana/alerting-backend-product
/devenv/docker/blocks/alert_webhook_listener/ @grafana/alerting-backend
/devenv/docker/blocks/clickhouse/ @grafana/partner-datasources
/devenv/docker/blocks/collectd/ @grafana/observability-metrics
/devenv/docker/blocks/etcd @grafana/grafana-app-platform-squad
@@ -185,13 +187,13 @@
/devenv/docker/blocks/influxdb1/ @grafana/observability-metrics
/devenv/docker/blocks/jaeger/ @grafana/observability-traces-and-profiling
/devenv/docker/blocks/maildev/ @grafana/alerting-frontend
/devenv/docker/blocks/mariadb/ @grafana/grafana-bi-squad
/devenv/docker/blocks/memcached/ @grafana/backend-platform
/devenv/docker/blocks/mimir_backend/ @grafana/alerting-backend-product
/devenv/docker/blocks/mssql/ @grafana/grafana-bi-squad
/devenv/docker/blocks/mssql_arm64/ @grafana/grafana-bi-squad
/devenv/docker/blocks/mssql_tests/ @grafana/grafana-bi-squad
/devenv/docker/blocks/mssql_tls/ @grafana/grafana-bi-squad
/devenv/docker/blocks/mariadb/ @grafana/oss-big-tent
/devenv/docker/blocks/memcached/ @grafana/grafana-backend-group
/devenv/docker/blocks/mimir_backend/ @grafana/alerting-backend
/devenv/docker/blocks/mssql/ @grafana/partner-datasources
/devenv/docker/blocks/mssql_arm64/ @grafana/partner-datasources
/devenv/docker/blocks/mssql_tests/ @grafana/partner-datasources
/devenv/docker/blocks/mssql_tls/ @grafana/partner-datasources
/devenv/docker/blocks/mysql/ @grafana/oss-big-tent
/devenv/docker/blocks/mysql_exporter/ @grafana/oss-big-tent
/devenv/docker/blocks/mysql_opendata/ @grafana/oss-big-tent
@@ -203,24 +205,24 @@
/devenv/docker/blocks/prometheus_random_data/ @grafana/observability-metrics
/devenv/docker/blocks/pyroscope/ @grafana/observability-traces-and-profiling
/devenv/docker/blocks/redis/ @bergquist
/devenv/docker/blocks/sensugo/ @grafana/backend-platform
/devenv/docker/blocks/sensugo/ @grafana/grafana-backend-group
/devenv/docker/blocks/slow_proxy/ @bergquist
/devenv/docker/blocks/smtp/ @bergquist
/devenv/docker/blocks/tempo/ @grafana/observability-traces-and-profiling
/devenv/docker/blocks/traefik/ @mckn
/devenv/docker/blocks/zipkin/ @grafana/observability-traces-and-profiling
/devenv/docker/blocks/webdav/ @grafana/alerting-backend-product
/devenv/docker/blocks/webdav/ @grafana/alerting-backend
/devenv/docker/buildcontainer/ @bergquist
/devenv/docker/compose_header.yml @grafana/backend-platform
/devenv/docker/compose_header.yml @grafana/grafana-backend-services-squad
/devenv/docker/debtest/ @bergquist
/devenv/docker/ha-test-unified-alerting/ @grafana/alerting-backend-product
/devenv/docker/ha_test/ @grafana/backend-platform
/devenv/docker/loadtest/ @grafana/backend-platform
/devenv/docker/rpmtest/ @grafana/backend-platform
/devenv/docker/ha-test-unified-alerting/ @grafana/alerting-backend
/devenv/docker/ha_test/ @grafana/grafana-backend-services-squad
/devenv/docker/loadtest/ @grafana/grafana-backend-services-squad
/devenv/docker/rpmtest/ @grafana/grafana-backend-services-squad
/devenv/jsonnet/ @grafana/dataviz-squad
/devenv/local-npm/ @grafana/frontend-ops
/devenv/vscode/ @grafana/frontend-ops
/devenv/setup.sh @grafana/backend-platform
/devenv/setup.sh @grafana/grafana-backend-services-squad
# Emails
/emails/ @grafana/alerting-frontend
@@ -263,29 +265,28 @@
/pkg/tsdb/mssql/ @grafana/partner-datasources
# Database migrations
/pkg/services/sqlstore/migrations/ @grafana/backend-platform @grafana/hosted-grafana-team
*_mig.go @grafana/backend-platform @grafana/hosted-grafana-team
/pkg/services/sqlstore/migrations/ @grafana/grafana-search-and-storage
*_mig.go @grafana/grafana-search-and-storage
# Grafana app platform
/pkg/services/live/ @grafana/grafana-app-platform-squad
/pkg/services/searchV2/ @grafana/grafana-app-platform-squad
/pkg/services/store/ @grafana/grafana-app-platform-squad
/pkg/infra/filestorage/ @grafana/grafana-app-platform-squad
/pkg/util/converter/ @grafana/grafana-app-platform-squad
/pkg/modules/ @grafana/grafana-app-platform-squad
/pkg/kindsysreport/ @grafana/grafana-app-platform-squad
/pkg/services/grpcserver/ @grafana/grafana-app-platform-squad
/pkg/services/grpcserver/ @grafana/grafana-search-and-storage
/pkg/generated @grafana/grafana-app-platform-squad
# Alerting
/pkg/services/ngalert/ @grafana/alerting-backend-product
/pkg/services/sqlstore/migrations/ualert/ @grafana/alerting-backend-product
/pkg/services/alerting/ @grafana/alerting-backend-product
/pkg/tests/api/alerting/ @grafana/alerting-backend-product
/pkg/services/ngalert/ @grafana/alerting-backend
/pkg/services/sqlstore/migrations/ualert/ @grafana/alerting-backend
/pkg/tests/api/alerting/ @grafana/alerting-backend
/public/app/features/alerting/ @grafana/alerting-frontend
/public/app/features/gops/ @grafana/alerting-frontend
# Library Services
/pkg/services/libraryelements/ @grafana/grafana-frontend-platform
/pkg/services/librarypanels/ @grafana/grafana-frontend-platform
/pkg/services/libraryelements/ @grafana/dashboards-squad
/pkg/services/librarypanels/ @grafana/dashboards-squad
# Plugins
/pkg/api/pluginproxy/ @grafana/plugins-platform-backend
@@ -301,7 +302,7 @@
/pkg/services/plugindashboards/ @grafana/plugins-platform-backend
# Backend code docs
/contribute/backend/ @grafana/backend-platform
/contribute/backend/ @grafana/grafana-backend-group
/crowdin.yml @grafana/grafana-frontend-platform
@@ -309,14 +310,14 @@
/public/app/core/internationalization/ @grafana/grafana-frontend-platform
/e2e/ @grafana/grafana-frontend-platform
/e2e/cloud-plugins-suite/ @grafana/partner-datasources
/e2e/plugin-e2e/plugin-e2e-api-tests/ @grafana/plugins-platform-frontend
/packages/ @grafana/grafana-frontend-platform @grafana/plugins-platform-frontend
/packages/grafana-e2e-selectors/ @grafana/grafana-frontend-platform
/packages/grafana-e2e/ @grafana/grafana-frontend-platform
/packages/grafana-ui/.storybook/ @grafana/plugins-platform-frontend
/packages/grafana-ui/src/components/ @grafana/grafana-frontend-platform
/packages/grafana-ui/src/components/DateTimePickers/ @grafana/grafana-frontend-platform
/packages/grafana-ui/src/components/Table/ @grafana/grafana-bi-squad
/packages/grafana-ui/src/components/Table/SparklineCell.tsx @grafana/grafana-bi-squad @grafana/app-o11y-visualizations
/packages/grafana-ui/src/components/Table/ @grafana/dataviz-squad
/packages/grafana-ui/src/components/Table/SparklineCell.tsx @grafana/dataviz-squad @grafana/app-o11y-visualizations
/packages/grafana-ui/src/components/Gauge/ @grafana/dataviz-squad
/packages/grafana-ui/src/components/BarGauge/ @grafana/dataviz-squad
/packages/grafana-ui/src/components/uPlot/ @grafana/dataviz-squad
@@ -331,19 +332,23 @@
/packages/grafana-ui/src/graveyard/GraphNG/ @grafana/dataviz-squad
/packages/grafana-ui/src/graveyard/TimeSeries/ @grafana/dataviz-squad
/packages/grafana-ui/src/utils/storybook/ @grafana/plugins-platform-frontend
/packages/grafana-data/src/transformations/ @grafana/grafana-bi-squad
/packages/grafana-data/src/transformations/ @grafana/dataviz-squad
/packages/grafana-data/src/**/*logs* @grafana/observability-logs
/packages/grafana-schema/src/**/*tempo* @grafana/observability-traces-and-profiling
/packages/grafana-schema/src/**/*canvas* @grafana/dataviz-squad
/packages/grafana-flamegraph/ @grafana/observability-traces-and-profiling
/plugins-bundled/ @grafana/plugins-platform-frontend
/packages/grafana-plugin-configs/ @grafana/plugins-platform-frontend
/packages/grafana-prometheus/ @grafana/observability-metrics
/packages/grafana-o11y-ds-frontend/ @grafana/observability-logs @grafana/observability-traces-and-profiling
/packages/grafana-sql/ @grafana/partner-datasources @grafana/oss-big-tent
# root files, mostly frontend
.browserslistrc @grafana/frontend-ops
package.json @grafana/frontend-ops
tsconfig.json @grafana/frontend-ops
/.browserslistrc @grafana/frontend-ops
/package.json @grafana/frontend-ops
/nx.json @grafana/frontend-ops
/project.json @grafana/frontend-ops
/tsconfig.json @grafana/frontend-ops
/.editorconfig @grafana/frontend-ops
/.eslintignore @grafana/frontend-ops
/.gitattributes @grafana/frontend-ops
@@ -353,34 +358,38 @@ tsconfig.json @grafana/frontend-ops
/.yarn @grafana/frontend-ops
/.yarnrc.yml @grafana/frontend-ops
/yarn.lock @grafana/frontend-ops
/babel.config.json @grafana/frontend-ops
lerna.json @grafana/frontend-ops
/lerna.json @grafana/frontend-ops
/.prettierrc.js @grafana/frontend-ops
/.eslintrc @grafana/frontend-ops
/.vim @zoltanbedi
/jest.config.js @grafana/frontend-ops
/latest.json @grafana/frontend-ops
/metadata.md @grafana/plugins-platform
/stylelint.config.js @grafana/frontend-ops
/tools/ @grafana/frontend-ops
/lefthook.yml @grafana/frontend-ops
/lefthook.rc @grafana/frontend-ops
.husky/pre-commit @grafana/frontend-ops
cypress.config.js @grafana/grafana-frontend-platform
.levignore.js @grafana/plugins-platform-frontend
/.husky/pre-commit @grafana/frontend-ops
/cypress.config.js @grafana/grafana-frontend-platform
/.levignore.js @grafana/plugins-platform-frontend
playwright.config.ts @grafana/plugins-platform-frontend
# public folder
/public/app/core/ @grafana/grafana-frontend-platform
/public/app/core/components/TimePicker/ @grafana/grafana-frontend-platform
/public/app/core/components/Layers/ @grafana/dataviz-squad
/public/app/core/components/TraceToLogs @grafana/observability-traces-and-profiling
/public/app/core/components/GraphNG/ @grafana/dataviz-squad
/public/app/core/components/TimeSeries/ @grafana/dataviz-squad
/public/app/core/components/TimelineChart/ @grafana/dataviz-squad
/public/app/core/components/Form/ @grafana/grafana-frontend-platform
/public/app/core/history/ @grafana/explore-squad
/public/app/features/all.ts @grafana/grafana-frontend-platform
/public/app/features/admin/ @grafana/identity-access-team
# Temp owners until Enterprise team takes over
/public/app/features/migrate-to-cloud @grafana/grafana-frontend-platform
/public/app/features/auth-config/ @grafana/identity-access-team
/public/app/features/annotations/ @grafana/grafana-frontend-platform
/public/app/features/annotations/ @grafana/dashboards-squad
/public/app/features/api-keys/ @grafana/identity-access-team
/public/app/features/canvas/ @grafana/dataviz-squad
/public/app/features/geo/ @grafana/dataviz-squad
@@ -389,27 +398,29 @@ cypress.config.js @grafana/grafana-frontend-platform
/public/app/features/connections/ @grafana/plugins-platform-frontend @mikkancso
/public/app/features/correlations/ @grafana/explore-squad
/public/app/features/dashboard/ @grafana/dashboards-squad
/public/app/features/dashboard/components/TransformationsEditor/ @grafana/grafana-bi-squad
/public/app/features/dashboard/components/TransformationsEditor/ @grafana/dataviz-squad
/public/app/features/dashboard-scene/ @grafana/dashboards-squad
/public/app/features/datasources/ @grafana/plugins-platform-frontend @mikkancso
/public/app/features/dimensions/ @grafana/dataviz-squad
/public/app/features/dataframe-import/ @grafana/grafana-bi-squad
/public/app/features/dataframe-import/ @grafana/dataviz-squad
/public/app/features/explore/ @grafana/explore-squad
/public/app/features/expressions/ @grafana/observability-metrics
/public/app/features/folders/ @grafana/grafana-frontend-platform
/public/app/features/inspector/ @grafana/dashboards-squad
/public/app/features/invites/ @grafana/grafana-frontend-platform
/public/app/features/library-panels/ @grafana/grafana-frontend-platform
/public/app/features/library-panels/ @grafana/dashboards-squad
/public/app/features/logs/ @grafana/observability-logs
/public/app/features/live/ @grafana/grafana-app-platform-squad
/public/app/features/apiserver/ @grafana/grafana-app-platform-squad
/public/app/features/manage-dashboards/ @grafana/dashboards-squad
/public/app/features/manage-dashboards/RecentlyDeletedPage.tsx @grafana/grafana-frontend-platform
/public/app/features/notifications/ @grafana/grafana-frontend-platform
/public/app/features/org/ @grafana/grafana-frontend-platform
/public/app/features/panel/ @grafana/dashboards-squad
/public/app/features/playlist/ @grafana/dashboards-squad
/public/app/features/plugins/ @grafana/plugins-platform-frontend
/public/app/features/plugins/sql/ @grafana/partner-datasources @grafana/oss-big-tent
/public/app/features/profile/ @grafana/grafana-frontend-platform
/public/app/features/query-library/ @grafana/explore-squad
/public/app/features/runtime/ @ryantxu
/public/app/features/query/ @grafana/dashboards-squad
/public/app/features/sandbox/ @grafana/grafana-frontend-platform
@@ -420,18 +431,17 @@ cypress.config.js @grafana/grafana-frontend-platform
/public/app/features/teams/ @grafana/identity-access-team
/public/app/features/templating/ @grafana/dashboards-squad
/public/app/features/trails/ @torkelo
/public/app/features/transformers/ @grafana/grafana-bi-squad
/public/app/features/transformers/timeSeriesTable/ @grafana/grafana-bi-squad @grafana/app-o11y-visualizations
/public/app/features/transformers/ @grafana/dataviz-squad
/public/app/features/transformers/timeSeriesTable/ @grafana/dataviz-squad @grafana/app-o11y-visualizations
/public/app/features/users/ @grafana/identity-access-team
/public/app/features/variables/ @grafana/dashboards-squad
/public/app/plugins/panel/alertGroups/ @grafana/alerting-frontend
/public/app/plugins/panel/alertlist/ @grafana/alerting-frontend
/public/app/plugins/panel/annolist/ @grafana/grafana-frontend-platform
/public/app/plugins/panel/barchart/ @grafana/dataviz-squad
/public/app/plugins/panel/bargauge/ @grafana/dataviz-squad
/public/app/plugins/panel/dashlist/ @grafana/grafana-frontend-platform
/public/app/plugins/panel/debug/ @ryantxu
/public/app/plugins/panel/datagrid/ @grafana/grafana-bi-squad
/public/app/plugins/panel/datagrid/ @grafana/dataviz-squad
/public/app/plugins/panel/gauge/ @grafana/dataviz-squad
/public/app/plugins/panel/gettingstarted/ @grafana/grafana-frontend-platform
/public/app/plugins/panel/graph/ @grafana/dataviz-squad
@@ -444,9 +454,9 @@ cypress.config.js @grafana/grafana-frontend-platform
/public/app/plugins/panel/piechart/ @grafana/dataviz-squad
/public/app/plugins/panel/state-timeline/ @grafana/dataviz-squad
/public/app/plugins/panel/status-history/ @grafana/dataviz-squad
/public/app/plugins/panel/table/ @grafana/grafana-bi-squad
/public/app/plugins/panel/table/cells/SparklineCellOptionsEditor.tsx @grafana/grafana-bi-squad @grafana/app-o11y-visualizations
/public/app/plugins/panel/table-old/ @grafana/grafana-bi-squad
/public/app/plugins/panel/table/ @grafana/dataviz-squad
/public/app/plugins/panel/table/cells/SparklineCellOptionsEditor.tsx @grafana/dataviz-squad @grafana/app-o11y-visualizations
/public/app/plugins/panel/table-old/ @grafana/dataviz-squad
/public/app/plugins/panel/timeseries/ @grafana/dataviz-squad
/public/app/plugins/panel/trend/ @grafana/dataviz-squad
/public/app/plugins/panel/geomap/ @grafana/dataviz-squad
@@ -462,19 +472,21 @@ cypress.config.js @grafana/grafana-frontend-platform
/public/app/routes/ @grafana/grafana-frontend-platform
/public/app/store/ @grafana/grafana-frontend-platform
/public/app/types/ @grafana/grafana-frontend-platform
/public/app/types/alerting.ts @grafana/alerting-frontend
/public/app/types/unified-alerting-dto.ts @grafana/alerting-frontend
/public/dashboards/ @grafana/dashboards-squad
/public/fonts/ @grafana/alerting-frontend
/public/gazetteer/ @ryantxu
/public/img/ @grafana/grafana-frontend-platform
/public/lib/ @grafana/grafana-frontend-platform
/public/lib/monaco-languages/kusto.ts @grafana/partner-datasources
/public/maps/ @ryantxu
/public/robots.txt @grafana/frontend-ops
/public/fonts/ @grafana/grafana-frontend-platform
/public/sass/ @grafana/grafana-frontend-platform
/public/test/ @grafana/grafana-frontend-platform
/public/test/helpers/alertingRuleEditor.tsx @grafana/alerting-frontend
/public/views/ @grafana/grafana-frontend-platform
/public/views/swagger.html @grafana/backend-platform
/public/views/swagger.html @grafana/grafana-backend-group
/public/app/features/explore/Logs/ @grafana/observability-logs
@@ -484,9 +496,9 @@ cypress.config.js @grafana/grafana-frontend-platform
/public/app/features/explore/FlameGraph/ @grafana/observability-traces-and-profiling
/public/app/features/explore/TraceView/ @grafana/observability-traces-and-profiling
/public/api-merged.json @grafana/backend-platform
/public/api-enterprise-spec.json @grafana/backend-platform
/public/openapi3.json @grafana/backend-platform
/public/api-merged.json @grafana/grafana-backend-group
/public/api-enterprise-spec.json @grafana/grafana-backend-group
/public/openapi3.json @grafana/grafana-backend-group
/public/app/angular/ @torkelo
/public/app/app.ts @grafana/frontend-ops
/public/app/dev.ts @grafana/frontend-ops
@@ -504,7 +516,7 @@ cypress.config.js @grafana/grafana-frontend-platform
/scripts/circle-* @grafana/grafana-release-guild
/scripts/publish-npm-packages.sh @grafana/grafana-release-guild @grafana/plugins-platform-frontend
/scripts/validate-npm-packages.sh @grafana/grafana-release-guild @grafana/plugins-platform-frontend
/scripts/ci-frontend-metrics.sh @grafana/grafana-frontend-platform @grafana/plugins-platform-frontend @grafana/grafana-bi-squad
/scripts/ci-frontend-metrics.sh @grafana/grafana-frontend-platform @grafana/plugins-platform-frontend @grafana/dataviz-squad
/scripts/cli/ @grafana/grafana-frontend-platform
/scripts/clean-git-or-error.sh @grafana/grafana-as-code
/scripts/grafana-server/ @grafana/grafana-frontend-platform
@@ -522,14 +534,17 @@ cypress.config.js @grafana/grafana-frontend-platform
/scripts/cleanup-husky.sh @grafana/frontend-ops
/scripts/verify-repo-update/ @grafana/grafana-release-guild
/scripts/generate-icon-bundle.js @grafana/plugins-platform-frontend @grafana/grafana-frontend-platform
/scripts/generate-rtk-apis.ts @grafana/grafana-frontend-platform
/scripts/levitate-parse-json-report.js @grafana/plugins-platform-frontend
/scripts/codemods/explicit-barrel-imports.cjs @grafana/frontend-ops
/scripts/docs/generate-transformations.ts @grafana/grafana-bi-squad
/scripts/**/generate-transformations* @grafana/dataviz-squad
/scripts/webpack/ @grafana/frontend-ops
/scripts/generate-a11y-report.sh @grafana/grafana-frontend-platform
.pa11yci.conf.js @grafana/grafana-frontend-platform
.pa11yci-pr.conf.js @grafana/grafana-frontend-platform
.betterer.results @grafanabot
.betterer.results.json @grafanabot
.betterer.ts @grafana/grafana-frontend-platform
# @grafana/ui component documentation
@@ -550,7 +565,7 @@ cypress.config.js @grafana/grafana-frontend-platform
/public/app/plugins/datasource/jaeger/ @grafana/observability-traces-and-profiling
/public/app/plugins/datasource/loki/ @grafana/observability-logs
/public/app/plugins/datasource/mixed/ @grafana/dashboards-squad
/public/app/plugins/datasource/mssql/ @grafana/grafana-bi-squad
/public/app/plugins/datasource/mssql/ @grafana/partner-datasources
/public/app/plugins/datasource/mysql/ @grafana/oss-big-tent
/public/app/plugins/datasource/opentsdb/ @grafana/observability-metrics
/public/app/plugins/datasource/grafana-postgresql-datasource/ @grafana/oss-big-tent
@@ -567,14 +582,16 @@ cypress.config.js @grafana/grafana-frontend-platform
/public/app/features/manage-dashboards/components/PublicDashboardListTable/ @grafana/sharing-squad
/public/app/features/dashboard/containers/PublicDashboardPage.tsx @grafana/sharing-squad
/public/app/features/manage-dashboards/components/SnapshotListTable.tsx @grafana/sharing-squad
/pkg/api/render.go @grafana/sharing-squad
/pkg/services/dashboardsnapshots/ @grafana/sharing-squad
/pkg/services/publicdashboards/ @grafana/sharing-squad
/pkg/services/rendering/ @grafana/sharing-squad
# SSE - Server Side Expressions
/pkg/expr/ @grafana/observability-metrics
# Cloud middleware
/grafana-mixin/ @grafana/hosted-grafana-team
/grafana-mixin/ @grafana/grafana-backend-services-squad
# Grafana authentication and authorization
/pkg/login/ @grafana/identity-access-team
@@ -592,16 +609,20 @@ cypress.config.js @grafana/grafana-frontend-platform
/pkg/services/extsvcauth/ @grafana/identity-access-team
/pkg/services/oauthtoken/ @grafana/identity-access-team
/pkg/services/serviceaccounts/ @grafana/identity-access-team
/public/app/core/components/RolePicker/ @grafana/identity-access-team
# Support bundles
/public/app/features/support-bundles/ @grafana/identity-access-team
/pkg/services/supportbundles/ @grafana/identity-access-team
# Grafana Operator Experience Team
/pkg/infra/httpclient/httpclientprovider/sigv4_middleware.go @grafana/grafana-operator-experience-squad
/pkg/infra/httpclient/httpclientprovider/sigv4_middleware_test.go @grafana/grafana-operator-experience-squad
/pkg/services/caching/ @grafana/grafana-operator-experience-squad
/pkg/services/featuremgmt/ @grafana/grafana-operator-experience-squad
/pkg/services/cloudmigration/ @grafana/grafana-operator-experience-squad
/pkg/services/gcom/ @grafana/grafana-operator-experience-squad
# Feature toggles
/pkg/services/featuremgmt/ @grafana/grafana-backend-services-squad
# Kind definitions
/kinds/dashboard @grafana/dashboards-squad
@@ -610,12 +631,12 @@ cypress.config.js @grafana/grafana-frontend-platform
# Kind system and code generation
embed.go @grafana/grafana-as-code
/pkg/kinds/ @grafana/grafana-as-code
/pkg/cuectx/ @grafana/grafana-as-code
/pkg/registry/ @grafana/grafana-as-code
/pkg/registry/apis/ @grafana/grafana-app-platform-squad
/pkg/codegen/ @grafana/grafana-as-code
/pkg/codegen/generators @grafana/grafana-as-code
/pkg/kinds/*/*_gen.go @grafana/grafana-as-code
/pkg/registry/corekind/ @grafana/grafana-as-code
/pkg/registry/schemas/ @grafana/grafana-as-code
/public/app/plugins/*gen.go @grafana/grafana-as-code
/cue.mod/ @grafana/grafana-as-code
@@ -632,11 +653,13 @@ embed.go @grafana/grafana-as-code
/.github/pr-commands.json @marefr
/.github/renovate.json5 @grafana/frontend-ops
/.github/teams.yml @armandgrillet
/.github/workflows/alerting-swagger-gen.yml @grafana/alerting-backend-product
/.github/workflows/alerting-swagger-gen.yml @grafana/alerting-backend
/.github/workflows/auto-milestone.yml @grafana/grafana-release-guild
/.github/workflows/backport.yml @grafana/grafana-release-guild
/.github/workflows/bump-version.yml @grafana/grafana-release-guild
/.github/workflows/close-milestone.yml @grafana/grafana-release-guild
/.github/workflows/release-pr.yml @grafana/grafana-release-guild
/.github/workflows/release-comms.yml @grafana/grafana-release-guild
/.github/workflows/codeowners-validator.yml @tolzhabayev
/.github/workflows/codeql-analysis.yml @DanCech
/.github/workflows/commands.yml @torkelo
@@ -666,18 +689,20 @@ embed.go @grafana/grafana-as-code
/.github/workflows/update-changelog.yml @grafana/grafana-release-guild
/.github/workflows/update-make-docs.yml @grafana/docs-tooling
/.github/workflows/snyk.yml @grafana/security-team
/.github/workflows/scripts/kinds/verify-kinds.go @grafana/grafana-as-code
/.github/workflows/publish-kinds-next.yml @grafana/grafana-as-code
/.github/workflows/publish-kinds-release.yml @grafana/grafana-as-code
/.github/workflows/verify-kinds.yml @grafana/grafana-as-code
/.github/workflows/scripts/kinds/verify-kinds.go @grafana/platform-cat
/.github/workflows/publish-kinds-next.yml @grafana/platform-cat
/.github/workflows/publish-kinds-release.yml @grafana/platform-cat
/.github/workflows/verify-kinds.yml @grafana/platform-cat
/.github/workflows/dashboards-issue-add-label.yml @grafana/dashboards-squad
/.github/workflows/ephemeral-instances-pr-comment.yml @grafana/grafana-operator-experience-squad
/.github/workflows/ephemeral-instances-pr-opened-closed.yml @grafana/grafana-operator-experience-squad
/.github/workflows/create-security-patch-from-security-mirror.yml @grafana/grafana-release-guild
/.github/workflows/core-plugins-build-and-release.yml @grafana/plugins-platform-frontend @grafana/plugins-platform-backend
/.github/workflows/i18n-crowdin-fix-files.yml @grafana/grafana-frontend-platform
/.github/workflows/feature-toggle-cleanup.yml @tolzhabayev
/.github/workflows/scripts/feature-toggle-cleanup/feature-toggle-cleanup.js @tolzhabayev
/.github/workflows/i18n-crowdin-upload.yml @grafana/grafana-frontend-platform
/.github/workflows/i18n-crowdin-download.yml @grafana/grafana-frontend-platform
/.github/workflows/pr-go-workspace-check.yml @grafana/grafana-app-platform-squad
/.github/workflows/run-scenes-e2e.yml @grafana/dashboards-squad
/.github/workflows/go_lint.yml @grafana/grafana-backend-services-squad
# Generated files not requiring owner approval
/packages/grafana-data/src/types/featureToggles.gen.ts @grafanabot
@@ -692,8 +717,7 @@ embed.go @grafana/grafana-as-code
/conf/ldap.toml @grafana/identity-access-team
/conf/ldap_multiple.toml @grafana/identity-access-team
/conf/provisioning/access-control/ @grafana/identity-access-team
/conf/provisioning/alerting/ @grafana/alerting-backend-product
/conf/provisioning/alerting/ @grafana/alerting-backend
/conf/provisioning/dashboards/ @grafana/dashboards-squad
/conf/provisioning/datasources/ @grafana/plugins-platform-backend
/conf/provisioning/notifiers/ @bergquist
/conf/provisioning/plugins/ @grafana/plugins-platform-backend

8
.github/bot.md vendored
View File

@@ -4,13 +4,13 @@ The bot is configured via [commands.json](https://github.com/grafana/grafana/blo
Comment commands:
* Write the word `/duplicate #<number>` anywhere in a comment and the bot will add the correct label and standard message.
* Write the word `/needsMoreInfo` anywhere in a comment and the bot will add the correct label and standard message.
* Write the word `/duplicate #<number>` anywhere in a comment and the bot will add the correct label and standard message.
* Write the word `/needsMoreInfo` anywhere in a comment and the bot will add the correct label and standard message.
Label commands:
* Add label `bot/question` the the bot will close with standard question message and add label `type/question`
* Add label `bot/duplicate` the the bot will close with standard duplicate message and add label `type/duplicate`
* Add label `bot/question` the bot will close with standard question message and add label `type/question`
* Add label `bot/duplicate` the bot will close with standard duplicate message and add label `type/duplicate`
* Add label `bot/needs more info` for bot to request more info (or use comment command mentioned above)
* Add label `bot/close feature request` for bot to close a feature request with standard message and adds label `not implemented`
* Add label `bot/no new info` for bot to close an issue where we asked for more info but has not received any updates in at least 14 days.

View File

@@ -23,7 +23,6 @@
"package.json",
"tsconfig.json",
"lerna.json",
".babelrc",
".prettierrc.js",
".eslintrc",
"**/*.mdx"
@@ -119,7 +118,7 @@
},
{
"type": "changedfiles",
"matches": [ "public/app/plugins/datasource/jaeger"],
"matches": [ "public/app/plugins/datasource/jaeger/**/*"],
"action": "updateLabel",
"addLabel": "datasource/Jaeger"
},
@@ -147,6 +146,18 @@
"action": "updateLabel",
"addLabel": "datasource/OpenTSDB"
},
{
"type": "changedfiles",
"matches": [ "public/app/plugins/datasource/parca/**/*"],
"action": "updateLabel",
"addLabel": "datasource/Parca"
},
{
"type": "changedfiles",
"matches": [ "public/app/plugins/datasource/grafana-pyroscope-datasource/**/*", "pkg/tsdb/grafana-pyroscope-datasource/**/*"],
"action": "updateLabel",
"addLabel": "datasource/grafana-pyroscope"
},
{
"type": "changedfiles",
"matches": [ "public/app/plugins/datasource/grafana-postgresql-datasource/**/*", "pkg/tsdb/grafana-postgresql-datasource/**/*"],

View File

@@ -4,21 +4,28 @@
],
"enabledManagers": ["npm"],
"ignoreDeps": [
"@types/history", // this can be removed entirely when we upgrade history since v5 exposes types directly
"history", // we should bump this together with react-router-dom (see https://github.com/grafana/grafana/issues/76744)
"react-router-dom", // we should bump this together with history (see https://github.com/grafana/grafana/issues/76744)
"loader-utils", // v3 requires upstream changes in ngtemplate-loader. ignore, and remove when we remove angular.
"monaco-editor", // due to us exposing this via @grafana/ui/CodeEditor's props bumping can break plugins
"react-hook-form", // due to us exposing these hooks via @grafana/ui form components bumping can break plugins
"@fingerprintjs/fingerprintjs", // we don't want to bump to v4 due to licensing changes
"@swc/core", // versions ~1.4.5 contain multiple bugs related to baseUrl resolution breaking builds.
"slate", // we don't want to continue using this on the long run, use Monaco editor instead of Slate
"slate-react", // we don't want to continue using this on the long run, use Monaco editor instead of Slate
"@types/slate-react", // we don't want to continue using this on the long run, use Monaco editor instead of Slate
"@types/slate" // we don't want to continue using this on the long run, use Monaco editor instead of Slate
],
"includePaths": ["package.json", "packages/**", "public/app/plugins/**"],
"ignorePaths": ["emails/**", "plugins-bundled/**", "**/mocks/**", "packages/grafana-e2e/**"],
"ignorePaths": ["emails/**", "plugins-bundled/**", "**/mocks/**"],
"labels": ["area/frontend", "dependencies", "no-changelog"],
"postUpdateOptions": ["yarnDedupeHighest"],
"packageRules": [
{
"automerge": true,
"matchCurrentVersion": "!/^0/",
"matchUpdateTypes": ["patch"],
"excludePackagePatterns": ["^@?storybook", "^@locker"],
"extends": ["schedule:monthly"],
"groupName": "Monthly patch updates"
"excludePackagePatterns": ["^@?storybook", "^@locker"]
},
{
"matchPackagePatterns": ["^@?storybook"],

View File

@@ -0,0 +1,22 @@
name: Changelog generator
description: Generates and publishes a changelog for the given release version
inputs:
target:
description: Target tag, branch or commit hash for the changelog
required: true
previous:
description: Previous tag, branch or commit hash to start changelog from
required: false
github_token:
description: GitHub token with read/write access to all necessary repositories
required: true
output_file:
description: A file to store resulting changelog markdown
required: false
outputs:
changelog:
description: Changelog contents between the two given versions in Markdown format
runs:
using: 'node20'
main: 'index.js'

View File

@@ -0,0 +1,319 @@
import { appendFileSync, writeFileSync } from 'fs';
import { exec as execCallback } from 'node:child_process';
import { promisify } from 'node:util';
//
// Github Action core utils: logging (notice + debug log levels), must escape
// newlines and percent signs
//
const escapeData = (s) => s.replace(/%/g, '%25').replace(/\r/g, '%0D').replace(/\n/g, '%0A');
const LOG = (msg) => console.log(`::notice::${escapeData(msg)}`);
//
// Semver utils: parse, compare, sort etc (using official regexp)
// https://regex101.com/r/Ly7O1x/3/
//
const semverRegExp =
/^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;
const semverParse = (tag) => {
const m = tag.match(semverRegExp);
if (!m) {
return;
}
const [_, major, minor, patch, prerelease] = m;
return [+major, +minor, +patch, prerelease, tag];
};
// semverCompare takes two parsed semver tags and comparest them more or less
// according to the semver specs
const semverCompare = (a, b) => {
for (let i = 0; i < 3; i++) {
if (a[i] !== b[i]) {
return a[i] < b[i] ? 1 : -1;
}
}
if (a[3] !== b[3]) {
return a[3] < b[3] ? 1 : -1;
}
return 0;
};
// Using `git tag -l` output find the tag (version) that goes semantically
// right before the given version. This might not work correctly with some
// pre-release versions, which is why it's possible to pass previous version
// into this action explicitly to avoid this step.
const getPreviousVersion = async (version) => {
const exec = promisify(execCallback);
const { stdout } = await exec('git tag -l');
const prev = stdout
.split('\n')
.map(semverParse)
.filter((tag) => tag)
.sort(semverCompare)
.find((tag) => semverCompare(tag, semverParse(version)) > 0);
if (!prev) {
throw `Could not find previous git tag for ${version}`;
}
return prev[4];
};
// A helper for Github GraphQL API endpoint
const graphql = async (ghtoken, query, variables) => {
const { env } = process;
const results = await fetch('https://api.github.com/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${ghtoken}`,
},
body: JSON.stringify({ query, variables }),
});
const { data } = await results.json();
return data;
};
// Using Github GraphQL API find the timestamp for the given tag/commit hash.
// This is required for PR listing, because Github API only takes date/time as
// a "since" parameter while listing. Currently there is no way to provide two
// "commitish" items and get a list of PRs in between them.
const getCommitishDate = async (name, owner, target) => {
const result = await graphql(
ghtoken,
`
query getCommitDate($owner: String!, $name: String!, $target: String!) {
repository(owner: $owner, name: $name) {
object(expression: $target) {
... on Commit {
committedDate
}
}
}
}
`,
{ name, owner, target }
);
return result.repository.object.committedDate;
};
// Using Github GraphQL API get a list of PRs between the two "commitish" items.
// This resoves the "since" item's timestamp first and iterates over all PRs
// till "target" using naïve pagination.
const getHistory = async (name, owner, target, sinceDate) => {
LOG(`Fetching ${owner}/${name} PRs since ${sinceDate} till ${target}`);
const query = `
query findCommitsWithAssociatedPullRequests(
$name: String!
$owner: String!
$target: String!
$sinceDate: GitTimestamp
$cursor: String
) {
repository(name: $name, owner: $owner) {
object(expression: $target) {
... on Commit {
history(first: 50, since: $sinceDate, after: $cursor) {
totalCount
pageInfo {
hasNextPage
endCursor
}
nodes {
id
associatedPullRequests(first: 1) {
nodes {
title
number
labels(first: 10) {
nodes {
name
}
}
commits(first: 1) {
nodes {
commit {
author {
user {
login
}
}
}
}
}
}
}
}
}
}
}
}
}`;
let cursor;
let nodes = [];
for (;;) {
const result = await graphql(ghtoken, query, {
name,
owner,
target,
sinceDate,
cursor,
});
LOG(`GraphQL: ${JSON.stringify(result)}`);
nodes = [...nodes, ...result.repository.object.history.nodes];
const { hasNextPage, endCursor } = result.repository.object.history.pageInfo;
if (!hasNextPage) {
break;
}
cursor = endCursor;
}
return nodes;
};
// The main function for this action: given two "commitish" items it gets a
// list of PRs between them and filters/groups the PRs by category (bugfix,
// feature, deprecation, breaking change and plugin fixes/enhancements).
//
// PR grouping relies on Github labels only, not on the PR contents.
const getChangeLogItems = async (name, owner, sinceDate, to) => {
// check if a node contains a certain label
const hasLabel = ({ labels }, label) => labels.nodes.some(({ name }) => name === label);
// get all the PRs between the two "commitish" items
const history = await getHistory(name, owner, to, sinceDate);
const items = history.flatMap((node) => {
// discard PRs without a "changelog" label
const changes = node.associatedPullRequests.nodes.filter((PR) => hasLabel(PR, 'add to changelog'));
if (changes.length === 0) {
return [];
}
const item = changes[0];
const { number, url, labels } = item;
const title = item.title.replace(/^\[[^\]]+\]:?\s*/, '');
// for changelog PRs try to find a suitable category.
// Note that we can not detect "deprecation notices" like that
// as there is no suitable label yet.
const isBug = /fix/i.test(title) || hasLabel({ labels }, 'type/bug');
const isBreaking = hasLabel({ labels }, 'breaking change');
const isPlugin =
hasLabel({ labels }, 'area/grafana/ui') ||
hasLabel({ labels }, 'area/grafana/toolkit') ||
hasLabel({ labels }, 'area/grafana/runtime');
const author = item.commits.nodes[0].commit.author.user.login;
return {
repo: name,
number,
title,
author,
isBug,
isPlugin,
isBreaking,
};
});
return items;
};
// ======================================================
// GENERATE CHANGELOG
// ======================================================
LOG(`Changelog action started`);
const ghtoken = process.env.GITHUB_TOKEN || process.env.INPUT_GITHUB_TOKEN;
if (!ghtoken) {
throw 'GITHUB_TOKEN is not set and "github_token" input is empty';
}
const target = process.argv[2] || process.env.INPUT_TARGET;
LOG(`Target tag/branch/commit: ${target}`);
const previous = process.argv[3] || process.env.INPUT_PREVIOUS || (await getPreviousVersion(target));
LOG(`Previous tag/commit: ${previous}`);
const sinceDate = await getCommitishDate('grafana', 'grafana', previous);
LOG(`Previous tag/commit timestamp: ${sinceDate}`);
// Get all changelog items from Grafana OSS
const oss = await getChangeLogItems('grafana', 'grafana', sinceDate, target);
// Get all changelog items from Grafana Enterprise
const entr = await getChangeLogItems('grafana-enterprise', 'grafana', sinceDate, target);
LOG(`Found OSS PRs: ${oss.length}`);
LOG(`Found Enterprise PRs: ${entr.length}`);
// Sort PRs and categorise them into sections
const changelog = [...oss, ...entr]
.sort((a, b) => (a.title < b.title ? -1 : 1))
.reduce(
(changelog, item) => {
if (item.isPlugin) {
changelog.plugins.push(item);
} else if (item.isBug) {
changelog.bugfixes.push(item);
} else if (item.isBreaking) {
changelog.breaking.push(item);
} else {
changelog.features.push(item);
}
return changelog;
},
{
breaking: [],
plugins: [],
bugfixes: [],
features: [],
}
);
// Convert PR numbers to Github links
const pullRequestLink = (n) => `[#${n}](https://github.com/grafana/grafana/pull/${n})`;
// Convert Github user IDs to Github links
const userLink = (u) => `[@${u}](https://github.com/${u})`;
// Now that we have a changelog - we can render some markdown as an output
const markdown = (changelog) => {
// This convers a list of changelog items into a markdown section with a list of titles/links
const section = (title, items) =>
items.length === 0
? ''
: `### ${title}
${items
.map(
(item) =>
`- ${item.title.replace(/^([^:]*:)/gm, '**$1**')} ${
item.repo === 'grafana-enterprise'
? '(Enterprise)'
: `${pullRequestLink(item.number)}, ${userLink(item.author)}`
}`
)
.join('\n')}
`;
// Render all present sections for the given changelog
return `${section('Features and enhancements', changelog.features)}
${section('Bug fixes', changelog.bugfixes)}
${section('Breaking changes', changelog.breaking)}
${section('Plugin development fixes & changes', changelog.plugins)}
`;
};
const md = markdown(changelog);
// Print changelog, mostly for debugging
LOG(`Resulting markdown: ${md}`);
// Save changelog as an output for this action
if (process.env.GITHUB_OUTPUT) {
LOG(`Output to ${process.env.GITHUB_OUTPUT}`);
appendFileSync(process.env.GITHUB_OUTPUT, `changelog<<EOF\n${escapeData(md)}\nEOF`);
} else {
LOG('GITHUB_OUTPUT is not set');
}
// Save changelog as an output file (if requested)
if (process.env.INPUT_OUTPUT_FILE) {
LOG(`Output to ${process.env.INPUT_OUTPUT_FILE}`);
writeFileSync(process.env.INPUT_OUTPUT_FILE, md);
}

View File

@@ -16,7 +16,7 @@ jobs:
- name: Set go version
uses: actions/setup-go@v4
with:
go-version: '1.21.5'
go-version-file: go.mod
- name: Build swagger
run: |
make -C pkg/services/ngalert/api/tooling post.json api.json
@@ -32,6 +32,6 @@ jobs:
branch: update-alerting-swagger-spec
delete-branch: true
labels: 'area/alerting,type/docs,no-changelog'
team-reviewers: 'grafana/alerting-backend-product'
team-reviewers: 'grafana/alerting-backend'
draft: false

View File

@@ -5,74 +5,39 @@ on:
version:
description: 'Needs to match, exactly, the name of a milestone. The version to be released please respect: major.minor.patch, major.minor.patch-preview or major.minor.patch-preview<number> format. example: 7.4.3, 7.4.3-preview or 7.4.3-preview1'
required: true
env:
YARN_ENABLE_IMMUTABLE_INSTALLS: false
push:
default: true
required: false
dry_run:
default: false
required: false
jobs:
main:
runs-on: ubuntu-latest
steps:
# This is a basic workflow to help you get started with Actions
- uses: actions-ecosystem/action-regex-match@v2.0.2
if: ${{ github.event.inputs.version != '' }}
id: regex-match
with:
text: ${{ github.event.inputs.version }}
regex: '^(\d+.\d+).\d+(?:-(?:(preview\d?)|(pre)))?$'
- uses: actions-ecosystem/action-regex-match@v2.0.2
if: ${{ inputs.version_call != '' }}
id: regex-match-version-call
with:
text: ${{ inputs.version_call }}
regex: '^(\d+.\d+).\d+(?:-(?:(preview\d?)|(pre)))?$'
- name: Validate input version
if: ${{ steps.regex-match.outputs.match == '' && github.event.inputs.version != '' }}
run: |
echo "The input version format is not correct, please respect:\
major.minor.patch, major.minor.patch-preview or major.minor.patch-preview<number> format. \
example: 7.4.3, 7.4.3-preview or 7.4.3-preview1"
exit 1
- name: Validate input version call
if: ${{ inputs.version_call != '' && steps.regex-match-version-call.outputs.match == '' }}
run: |
echo "The input version format is not correct, please respect:\
major.minor.patch, major.minor.patch-preview or major.minor.patch-preview<number> format. \
example: 7.4.3, 7.4.3-preview or 7.4.3-preview1"
exit 1
- uses: actions/checkout@v4
- name: Set intermedia variables
id: intermedia
run: |
echo "short_ref=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
echo "check_passed=false" >> $GITHUB_OUTPUT
echo "branch_name=v${{steps.regex-match.outputs.group1}}" >> $GITHUB_OUTPUT
echo "branch_exist=$(git ls-remote --heads https://github.com/grafana/grafana.git v${{ steps.regex-match.outputs.group1 }}.x | wc -l)" >> $GITHUB_OUTPUT
- name: Checkout Actions
- name: Checkout Grafana
uses: actions/checkout@v4
- name: Update package.json versions
uses: ./pkg/build/actions/bump-version
with:
repository: "grafana/grafana-github-actions"
path: ./actions
ref: main
# Go is required for also updating the schema versions as part of the precommit hook:
- uses: actions/setup-go@v4
with:
go-version: '1.20'
- uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install Actions
run: npm install --production --prefix ./actions
- name: "Generate token"
version: ${{ inputs.version }}
- if: ${{ inputs.push }}
name: Generate token
id: generate_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_ID }}
private_key: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_PEM }}
- name: Run bump version (manually invoked)
uses: ./actions/bump-version
with:
token: ${{ steps.generate_token.outputs.token }}
metricsWriteAPIKey: ${{ secrets.GRAFANA_MISC_STATS_API_KEY }}
precommit_make_target: gen-cue
- if: ${{ inputs.push }}
name: Push & Create PR
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local --add --bool push.autoSetupRemote true
git checkout -b "bump-version/${{ github.run_id }}/${{ inputs.version }}"
git add .
git commit -m "bump version ${{ inputs.version }}"
git push
gh pr create --dry-run=${{ inputs.dry_run }} -l "type/ci" -l "no-changelog" -B "${{ github.ref_name }}" --title "Release: Bump version to ${{ inputs.version }}" --body "Updated version to ${{ inputs.version }}"
env:
GH_TOKEN: ${{ steps.generate_token.outputs.token }}

120
.github/workflows/changelog.yml vendored Normal file
View File

@@ -0,0 +1,120 @@
name: Generate changelog
on:
workflow_call:
inputs:
version:
required: true
description: 'Target release version (semver, git tag, branch or commit)'
target:
required: true
type: string
description: 'The base branch that these changes are being merged into'
dry_run:
required: false
default: false
type: bool
latest:
required: false
default: false
type: bool
workflow_dispatch:
inputs:
version:
required: true
description: 'Target release version (semver, git tag, branch or commit)'
target:
required: true
type: string
description: 'The base branch that these changes are being merged into'
dry_run:
required: false
default: false
type: bool
latest:
required: false
default: false
type: bool
permissions:
pull-requests: write
jobs:
main:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: "Generate token"
id: generate_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_ID }}
private_key: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_PEM }}
- name: "Checkout Grafana repo"
uses: "actions/checkout@v4"
with:
sparse-checkout: |
.github/workflows
CHANGELOG.md
fetch-depth: 0
fetch-tags: true
- name: "Configure git user"
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local --add --bool push.autoSetupRemote true
- name: "Create branch"
run: git checkout -b "release/${{ github.run_id }}/${{ inputs.version }}"
- name: "Generate changelog"
id: changelog
uses: ./.github/workflows/actions/changelog
with:
github_token: ${{ steps.generate_token.outputs.token }}
target: v${{ inputs.version }}
output_file: changelog_items.md
- name: "Patch CHANGELOG.md"
run: |
# Prepare CHANGELOG.md content with version delimiters
(
echo
echo "# ${{ inputs.version}} ($(date '+%F'))"
echo
cat changelog_items.md
) > CHANGELOG.part
# Check if a version exists in the changelog
if grep -q "<!-- ${{ inputs.version}} START" CHANGELOG.md ; then
# Replace the content between START and END delimiters
echo "Version ${{ inputs.version }} is found in the CHANGELOG.md, patching contents..."
sed -i -e '/${{ inputs.version }} START/,/${{ inputs.version }} END/{//!d;}' \
-e '/${{ inputs.version }} START/r CHANGELOG.part' CHANGELOG.md
else
# Prepend changelog part to the main changelog file
echo "Version ${{ inputs.version }} not found in the CHANGELOG.md"
(
echo "<!-- ${{ inputs.version }} START -->"
cat CHANGELOG.part
echo "<!-- ${{ inputs.version }} END -->"
cat CHANGELOG.md
) > CHANGELOG.tmp
mv CHANGELOG.tmp CHANGELOG.md
fi
git diff CHANGELOG.md
git add CHANGELOG.md
- name: "Commit changelog changes"
run: git commit --allow-empty -m "Update changelog" CHANGELOG.md
- name: "git push"
if: ${{ inputs.dry_run }} != true
run: git push
- name: "Create changelog PR"
if: "${{ inputs.backport == '' }}"
run: >
gh pr create \
$( [ "x${{ inputs.latest }}" == "xtrue" ] && printf %s '-l "release/latest"') \
--dry-run=${{ inputs.dry_run }} \
-B "${{ inputs.target }}" \
--title "Release: ${{ inputs.version }}" \
--body "Changelog changes for release ${{ inputs.version }}"
env:
GH_TOKEN: ${{ steps.generate_token.outputs.token }}

View File

@@ -25,6 +25,7 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
if: github.repository == 'grafana/grafana'
strategy:
fail-fast: false
@@ -47,7 +48,7 @@ jobs:
name: Set go version
uses: actions/setup-go@v4
with:
go-version: '1.21.5'
go-version-file: go.mod
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL

View File

@@ -1,25 +1,46 @@
name: Create community release post
on:
workflow_call:
inputs:
version:
type: string
required: true
description: 'Needs to match, exactly, the name of a milestone. The version to be released please respect: major.minor.patch, major.minor.patch-preview or major.minor.patch-preview<number> format. example: 7.4.3, 7.4.3-preview or 7.4.3-preview1'
dry_run:
type: boolean
required: false
default: false
description: When enabled, this workflow will print a preview instead of creating an actual post.
secrets:
GRAFANA_MISC_STATS_API_KEY:
required: true
GRAFANABOT_FORUM_KEY:
required: true
workflow_dispatch:
inputs:
version:
type: string
required: true
description: 'Needs to match, exactly, the name of a milestone. The version to be released please respect: major.minor.patch, major.minor.patch-preview or major.minor.patch-preview<number> format. example: 7.4.3, 7.4.3-preview or 7.4.3-preview1'
dry_run:
type: boolean
required: false
default: false
description: When enabled, this workflow will print a preview instead of creating an actual post.
permissions:
contents: read
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: "Generate token"
id: generate_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_ID }}
private_key: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_PEM }}
- name: Run community-release (manually invoked)
uses: grafana/grafana-github-actions-go/community-release@main
with:
token: ${{ steps.generate_token.outputs.token }}
token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ inputs.version }}
metrics_api_key: ${{ secrets.GRAFANA_MISC_STATS_API_KEY }}
community_api_key: ${{ secrets.GRAFANABOT_FORUM_KEY }}
community_api_username: grafanabot
dry_run: ${{ inputs.dry_run }}

View File

@@ -1,3 +1,5 @@
name: Build and release core plugins
on:
workflow_dispatch:
inputs:
@@ -6,7 +8,14 @@ on:
required: true
type: choice
options:
- grafana-azure-monitor-datasource
- grafana-pyroscope-datasource
- grafana-testdata-datasource
- jaeger
- parca
- stackdriver
- tempo
- zipkin
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-${{ inputs.plugin_id }}
@@ -59,7 +68,12 @@ jobs:
shell: bash
id: get_dir
run: |
dir=$(find public/app/plugins -name ${{ inputs.plugin_id }} -print -quit)
dir=$(dirname \
$(egrep -lir --include=plugin.json --exclude-dir=dist \
'"id": "${{ inputs.plugin_id }}"' \
public/app/plugins \
) \
)
echo "dir=${dir}" >> $GITHUB_OUTPUT
- name: Install frontend dependencies
shell: bash
@@ -77,7 +91,7 @@ jobs:
id: check_backend
shell: bash
run: |
if [ -d ./pkg/tsdb/${{ inputs.plugin_id }} ]; then
if egrep -qr --include=main.go 'datasource.Manage\("${{ inputs.plugin_id }}"' pkg/tsdb; then
echo "has_backend=true" >> $GITHUB_OUTPUT
else
echo "has_backend=false" >> $GITHUB_OUTPUT
@@ -172,7 +186,7 @@ jobs:
exit 1
fi
- name: store build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: ${{ steps.get_dir.outputs.dir }}/ci/packages/*.zip
@@ -188,6 +202,7 @@ jobs:
gsutil -m cp -r ci/packages/*darwin* gs://${{ env.GCP_BUCKET }}/${{ inputs.plugin_id }}/release/${VERSION}/darwin
gsutil -m cp -r ci/packages/*any* gs://${{ env.GCP_BUCKET }}/${{ inputs.plugin_id }}/release/${VERSION}/any
- name: Publish new plugin version on grafana.com
if: steps.check_backend.outputs.has_backend == 'true'
working-directory: ${{ steps.get_dir.outputs.dir }}
env:
GCOM_TOKEN: ${{ env.PLUGINS_GCOM_TOKEN }}
@@ -228,4 +243,27 @@ jobs:
echo "Failed to publish plugin version. Got:"
echo $result
exit 1
fi
fi
- name: Publish new plugin version on grafana.com (frontend only)
if: steps.check_backend.outputs.has_backend == 'false'
working-directory: ${{ steps.get_dir.outputs.dir }}
env:
GCOM_TOKEN: ${{ env.PLUGINS_GCOM_TOKEN }}
VERSION: ${{ steps.build_frontend.outputs.version }}
run: |
echo "Publish new plugin version on grafana.com:"
echo "Plugin version: ${VERSION}"
result=`curl -H "Authorization: Bearer $GCOM_TOKEN" -H "Content-Type: application/json" ${{ env.GCOM_API}}/api/plugins -d "{
\"url\": \"https://github.com/grafana/grafana/tree/main/${{ steps.get_dir.outputs.dir }}\",
\"download\": {
\"any\": {
\"url\": \"https://storage.googleapis.com/${{ env.GCP_BUCKET }}/${{ inputs.plugin_id }}/release/${VERSION}/any/${{ inputs.plugin_id }}-${VERSION}.any.zip\",
\"md5\": \"$(cat ci/packages/info-any.json | jq -r .plugin.md5)\"
}
}
}"`
if [[ "$(echo $result | jq -r .version)" == "null" ]]; then
echo "Failed to publish plugin version. Got:"
echo $result
exit 1
fi

View File

@@ -1,5 +1,5 @@
# Owned by grafana-delivery-squad
# Intended to be dropped into the base repo (Ex: grafana/grafana) for use in the security mirror.
# Owned by grafana-release-guild
# Intended to be dropped into the base repo (Ex: grafana/grafana) for use in the security mirror.
name: Create security patch
run-name: create-security-patch
on:
@@ -17,7 +17,7 @@ jobs:
trigger_downstream_create_security_patch:
concurrency: create-patch-${{ github.ref_name }}
uses: grafana/security-patch-actions/.github/workflows/create-patch.yml@main
if: github.repository == 'grafana/grafana-security-mirror'
if: github.repository == 'grafana/grafana-security-mirror'
with:
repo: "${{ github.repository }}"
src_ref: "${{ github.head_ref }}" # this is the source branch name, Ex: "feature/newthing"

View File

@@ -1,5 +1,5 @@
# Only runs if anything under the packages/ directory changes.
---
name: Levitate / Detect breaking changes in PR
on:
@@ -18,44 +18,43 @@ jobs:
working-directory: './pr'
steps:
- uses: actions/checkout@v4
with:
path: './pr'
- uses: actions/setup-node@v4
with:
node-version: 20.9.0
- uses: actions/checkout@v4
with:
path: './pr'
- uses: actions/setup-node@v4
with:
node-version: 20.9.0
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- name: Restore yarn cache
uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-cache-folder-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }}
restore-keys: |
yarn-cache-folder-
- name: Restore yarn cache
uses: actions/cache@v3.3.1
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-cache-folder-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }}
restore-keys: |
yarn-cache-folder-
- name: Install dependencies
run: yarn install --immutable
- name: Install dependencies
run: yarn install --immutable
- name: Build packages
run: yarn packages:build
- name: Build packages
run: yarn packages:build
- name: Pack packages
run: yarn packages:pack --out ./%s.tgz
- name: Pack packages
run: yarn packages:pack --out ./%s.tgz
- name: Zip built tarballed packages
run: zip -r ./pr_built_packages.zip ./packages/**/*.tgz
- name: Zip built tarballed packages
run: zip -r ./pr_built_packages.zip ./packages/**/*.tgz
- name: Upload build output as artifact
uses: actions/upload-artifact@v3
with:
name: buildPr
path: './pr/pr_built_packages.zip'
- name: Upload build output as artifact
uses: actions/upload-artifact@v4
with:
name: buildPr
path: './pr/pr_built_packages.zip'
buildBase:
name: Build Base
@@ -65,45 +64,45 @@ jobs:
working-directory: './base'
steps:
- uses: actions/checkout@v4
with:
path: './base'
ref: ${{ github.event.pull_request.base.ref }}
- uses: actions/checkout@v4
with:
path: './base'
ref: ${{ github.event.pull_request.base.ref }}
- uses: actions/setup-node@v4
with:
node-version: 20.9.0
- uses: actions/setup-node@v4
with:
node-version: 20.9.0
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- name: Restore yarn cache
uses: actions/cache@v3.3.1
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-cache-folder-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }}
restore-keys: |
yarn-cache-folder-
- name: Restore yarn cache
uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: yarn-cache-folder-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }}
restore-keys: |
yarn-cache-folder-
- name: Install dependencies
run: yarn install --immutable
- name: Install dependencies
run: yarn install --immutable
- name: Build packages
run: yarn packages:build
- name: Build packages
run: yarn packages:build
- name: Pack packages
run: yarn packages:pack --out ./%s.tgz
- name: Pack packages
run: yarn packages:pack --out ./%s.tgz
- name: Zip built tarballed packages
run: zip -r ./base_built_packages.zip ./packages/**/*.tgz
- name: Zip built tarballed packages
run: zip -r ./base_built_packages.zip ./packages/**/*.tgz
- name: Upload build output as artifact
uses: actions/upload-artifact@v3
with:
name: buildBase
path: './base/base_built_packages.zip'
- name: Upload build output as artifact
uses: actions/upload-artifact@v4
with:
name: buildBase
path: './base/base_built_packages.zip'
Detect:
name: Detect breaking changes
@@ -114,14 +113,17 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.9.0
- name: Get built packages from pr
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: buildPr
- name: Get built packages from base
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: buildBase
@@ -153,7 +155,7 @@ jobs:
echo "{ \"exit_code\": ${{ steps.breaking-changes.outputs.is_breaking }}, \"message\": \"${{ steps.breaking-changes.outputs.message }}\", \"job_link\": \"${{ steps.job.outputs.link }}#step:${GITHUB_STEP_NUMBER}:1\", \"pr_number\": \"${{ github.event.pull_request.number }}\" }" > ./levitate/result.json
- name: Upload check output as artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: levitate
path: levitate/
@@ -165,173 +167,174 @@ jobs:
needs: ['Detect']
steps:
- name: "Generate token"
id: generate_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.GRAFANA_PR_AUTOMATION_APP_ID }}
private_key: ${{ secrets.GRAFANA_PR_AUTOMATION_APP_PEM }}
- name: "Generate token"
id: generate_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.GRAFANA_PR_AUTOMATION_APP_ID }}
private_key: ${{ secrets.GRAFANA_PR_AUTOMATION_APP_PEM }}
- uses: actions/checkout@v4
- uses: actions/checkout@v4
- name: 'Download artifact'
uses: actions/download-artifact@v3
with:
name: levitate
- name: 'Download artifact'
uses: actions/download-artifact@v4
with:
name: levitate
- name: Parsing levitate result
uses: actions/github-script@v6
id: levitate-run
with:
script: |
const filePath = 'result.json';
const script = require('./.github/workflows/scripts/json-file-to-job-output.js');
await script({ core, filePath });
- name: Parsing levitate result
uses: actions/github-script@v6
id: levitate-run
with:
script: |
const filePath = 'result.json';
const script = require('./.github/workflows/scripts/json-file-to-job-output.js');
await script({ core, filePath });
# Check if label exists
- name: Check if "levitate breaking change" label exists
id: does-label-exist
uses: actions/github-script@v6
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
with:
script: |
const { data } = await github.rest.issues.listLabelsOnIssue({
issue_number: process.env.PR_NUMBER,
owner: context.repo.owner,
repo: context.repo.repo,
});
const labels = data.map(({ name }) => name);
const doesExist = labels.includes('levitate breaking change');
# Check if label exists
- name: Check if "levitate breaking change" label exists
id: does-label-exist
uses: actions/github-script@v6
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
with:
script: |
const { data } = await github.rest.issues.listLabelsOnIssue({
issue_number: process.env.PR_NUMBER,
owner: context.repo.owner,
repo: context.repo.repo,
});
const labels = data.map(({ name }) => name);
const doesExist = labels.includes('levitate breaking change');
return doesExist ? 1 : 0;
return doesExist ? 1 : 0;
# put the markdown into a variable
- name: Levitate Markdown
id: levitate-markdown
run: |
if [ -f "levitate.md" ]; then
{
echo 'levitate_markdown<<EOF'
cat levitate.md
echo EOF
} >> $GITHUB_OUTPUT
else
echo "levitate_markdown=No breaking changes detected" >> $GITHUB_OUTPUT
fi
# put the markdown into a variable
- name: Levitate Markdown
id: levitate-markdown
run: |
if [ -f "levitate.md" ]; then
{
echo 'levitate_markdown<<EOF'
cat levitate.md
echo EOF
} >> $GITHUB_OUTPUT
else
echo "levitate_markdown=No breaking changes detected" >> $GITHUB_OUTPUT
fi
# Comment on the PR
- name: Comment on PR
uses: marocchino/sticky-pull-request-comment@v2
with:
header: levitate-breaking-change-comment
number: ${{ github.event.pull_request.number }}
message: |
⚠️ &nbsp;&nbsp;**Possible breaking changes (md version)*** &nbsp;&nbsp ⚠️
# Comment on the PR
- name: Comment on PR
if: steps.levitate-run.outputs.exit_code == 1
uses: marocchino/sticky-pull-request-comment@v2
with:
header: levitate-breaking-change-comment
number: ${{ github.event.pull_request.number }}
message: |
⚠️ &nbsp;&nbsp;**Possible breaking changes (md version)**&nbsp;&nbsp; ⚠️
${{ steps.levitate-markdown.outputs.levitate_markdown }}
${{ steps.levitate-markdown.outputs.levitate_markdown }}
[Read our guideline](https://github.com/grafana/grafana/blob/main/contribute/breaking-changes-guide/breaking-changes-guide.md)
[Console output](${{ steps.levitate-run.outputs.job_link }})
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
[Read our guideline](https://github.com/grafana/grafana/blob/main/contribute/breaking-changes-guide/breaking-changes-guide.md)
[Console output](${{ steps.levitate-run.outputs.job_link }})
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
# Remove comment from the PR (no more breaking changes)
- name: Remove comment from PR
if: steps.levitate-run.outputs.exit_code == 0
uses: marocchino/sticky-pull-request-comment@v2
with:
header: levitate-breaking-change-comment
number: ${{ github.event.pull_request.number }}
delete: true
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
# Remove comment from the PR (no more breaking changes)
- name: Remove comment from PR
if: steps.levitate-run.outputs.exit_code == 0
uses: marocchino/sticky-pull-request-comment@v2
with:
header: levitate-breaking-change-comment
number: ${{ github.event.pull_request.number }}
delete: true
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
# Posts a notification to Slack if a PR has a breaking change and it did not have a breaking change before
- name: Post to Slack
id: slack
if: steps.levitate-run.outputs.exit_code == 1 && steps.does-label-exist.outputs.result == 0 && env.HAS_SECRETS
uses: slackapi/slack-github-action@v1.24.0
with:
payload: |
{
"pr_link": "https://github.com/grafana/grafana/pull/${{ steps.levitate-run.outputs.pr_number }}",
"pr_number": "${{ steps.levitate-run.outputs.pr_number }}",
"job_link": "${{ steps.levitate-run.outputs.job_link }}",
"reporting_job_link": "${{ github.event.workflow_run.html_url }}",
"message": "${{ steps.levitate-run.outputs.message }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_LEVITATE_WEBHOOK_URL }}
HAS_SECRETS: ${{ (github.repository == 'grafana/grafana' || secrets.SLACK_LEVITATE_WEBHOOK_URL != '') || '' }}
# Posts a notification to Slack if a PR has a breaking change and it did not have a breaking change before
- name: Post to Slack
id: slack
if: steps.levitate-run.outputs.exit_code == 1 && steps.does-label-exist.outputs.result == 0 && env.HAS_SECRETS
uses: slackapi/slack-github-action@v1.26.0
with:
payload: |
{
"pr_link": "https://github.com/grafana/grafana/pull/${{ steps.levitate-run.outputs.pr_number }}",
"pr_number": "${{ steps.levitate-run.outputs.pr_number }}",
"job_link": "${{ steps.levitate-run.outputs.job_link }}",
"reporting_job_link": "${{ github.event.workflow_run.html_url }}",
"message": "${{ steps.levitate-run.outputs.message }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_LEVITATE_WEBHOOK_URL }}
HAS_SECRETS: ${{ (github.repository == 'grafana/grafana' || secrets.SLACK_LEVITATE_WEBHOOK_URL != '') || '' }}
# Add the label
- name: Add "levitate breaking change" label
if: steps.levitate-run.outputs.exit_code == 1 && steps.does-label-exist.outputs.result == 0
uses: actions/github-script@v6
env:
PR_NUMBER: ${{ steps.levitate-run.outputs.pr_number }}
with:
github-token: ${{ steps.generate_token.outputs.token }}
script: |
await github.rest.issues.addLabels({
issue_number: process.env.PR_NUMBER,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['levitate breaking change']
})
# Add the label
- name: Add "levitate breaking change" label
if: steps.levitate-run.outputs.exit_code == 1 && steps.does-label-exist.outputs.result == 0
uses: actions/github-script@v6
env:
PR_NUMBER: ${{ steps.levitate-run.outputs.pr_number }}
with:
github-token: ${{ steps.generate_token.outputs.token }}
script: |
await github.rest.issues.addLabels({
issue_number: process.env.PR_NUMBER,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['levitate breaking change']
})
# Remove label (no more breaking changes)
- name: Remove "levitate breaking change" label
if: steps.levitate-run.outputs.exit_code == 0 && steps.does-label-exist.outputs.result == 1
uses: actions/github-script@v6
env:
PR_NUMBER: ${{ steps.levitate-run.outputs.pr_number }}
with:
github-token: ${{ steps.generate_token.outputs.token }}
script: |
await github.rest.issues.removeLabel({
issue_number: process.env.PR_NUMBER,
owner: context.repo.owner,
repo: context.repo.repo,
name: 'levitate breaking change'
})
# Remove label (no more breaking changes)
- name: Remove "levitate breaking change" label
if: steps.levitate-run.outputs.exit_code == 0 && steps.does-label-exist.outputs.result == 1
uses: actions/github-script@v6
env:
PR_NUMBER: ${{ steps.levitate-run.outputs.pr_number }}
with:
github-token: ${{ steps.generate_token.outputs.token }}
script: |
await github.rest.issues.removeLabel({
issue_number: process.env.PR_NUMBER,
owner: context.repo.owner,
repo: context.repo.repo,
name: 'levitate breaking change'
})
# Add reviewers
# This is very weird, the actual request goes through (comes back with a 201), but does not assign the team.
# Related issue: https://github.com/renovatebot/renovate/issues/1908
- name: Add "grafana/plugins-platform-frontend" as a reviewer
if: steps.levitate-run.outputs.exit_code
uses: actions/github-script@v6
env:
PR_NUMBER: ${{ steps.levitate-run.outputs.pr_number }}
with:
github-token: ${{ steps.generate_token.outputs.token }}
script: |
await github.rest.pulls.requestReviewers({
pull_number: process.env.PR_NUMBER,
owner: context.repo.owner,
repo: context.repo.repo,
reviewers: [],
team_reviewers: ['plugins-platform-frontend']
});
# Add reviewers
# This is very weird, the actual request goes through (comes back with a 201), but does not assign the team.
# Related issue: https://github.com/renovatebot/renovate/issues/1908
- name: Add "grafana/plugins-platform-frontend" as a reviewer
if: steps.levitate-run.outputs.exit_code == 1
uses: actions/github-script@v6
env:
PR_NUMBER: ${{ steps.levitate-run.outputs.pr_number }}
with:
github-token: ${{ steps.generate_token.outputs.token }}
script: |
await github.rest.pulls.requestReviewers({
pull_number: process.env.PR_NUMBER,
owner: context.repo.owner,
repo: context.repo.repo,
reviewers: [],
team_reviewers: ['plugins-platform-frontend']
});
# Remove reviewers (no more breaking changes)
- name: Remove "grafana/plugins-platform-frontend" from the list of reviewers
if: steps.levitate-run.outputs.exit_code == 0
uses: actions/github-script@v6
env:
PR_NUMBER: ${{ steps.levitate-run.outputs.pr_number }}
with:
github-token: ${{ steps.generate_token.outputs.token }}
script: |
await github.rest.pulls.removeRequestedReviewers({
pull_number: process.env.PR_NUMBER,
owner: context.repo.owner,
repo: context.repo.repo,
reviewers: [],
team_reviewers: ['plugins-platform-frontend']
});
# Remove reviewers (no more breaking changes)
- name: Remove "grafana/plugins-platform-frontend" from the list of reviewers
if: steps.levitate-run.outputs.exit_code == 0
uses: actions/github-script@v6
env:
PR_NUMBER: ${{ steps.levitate-run.outputs.pr_number }}
with:
github-token: ${{ steps.generate_token.outputs.token }}
script: |
await github.rest.pulls.removeRequestedReviewers({
pull_number: process.env.PR_NUMBER,
owner: context.repo.owner,
repo: context.repo.repo,
reviewers: [],
team_reviewers: ['plugins-platform-frontend']
});
- name: Exit
run: exit ${{ steps.levitate-run.outputs.exit_code }}
shell: bash
- name: Exit
run: exit ${{ steps.levitate-run.outputs.exit_code }}
shell: bash

View File

@@ -7,7 +7,7 @@ jobs:
doc-validator:
runs-on: "ubuntu-latest"
container:
image: "grafana/doc-validator:v4.0.0"
image: "grafana/doc-validator:v5.0.0"
steps:
- name: "Checkout code"
uses: "actions/checkout@v4"

View File

@@ -4,7 +4,11 @@ on:
types: [created]
jobs:
config:
runs-on: "ubuntu-latest"
if: github.event.sender.type == 'User' &&
github.event.issue.pull_request &&
startsWith(github.event.comment.body, '/deploy-to-hg')
runs-on:
labels: ubuntu-latest-8-cores
outputs:
has-secrets: ${{ steps.check.outputs.has-secrets }}
steps:
@@ -33,11 +37,6 @@ jobs:
labels: ubuntu-latest-8-cores
continue-on-error: true
steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '>=1.20'
- name: Generate a GitHub app installation token
id: generate_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
@@ -53,15 +52,28 @@ jobs:
ref: main
path: ephemeral
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: ephemeral/go.mod
- name: Get latest grafana version number
run: |
# if package.json contains e.g. 11.0.0-pre, this writes 11.0.0 to version.txt
curl https://raw.githubusercontent.com/grafana/grafana/main/package.json | jq -r .version | grep -o '^[0-9\.]*' > version.txt
- name: Run action
env:
GITHUB_EVENT: ${{ toJson(github.event)}}
run: |
GRAFANA_VERSION=10.1.0
# Create a prerelease version number using the latest version from the package.json in the grafana repo.
export GRAFANA_VERSION="$(cat version.txt)"
echo "${GRAFANA_VERSION}"
cd $GITHUB_WORKSPACE/ephemeral/src
go run . \
-GITHUB_TOKEN="${{ steps.generate_token.outputs.token }}" \
-GITHUB_WORKFLOW_RUN_ID="${{ github.run_id }}" \
-GITHUB_EVENT="$GITHUB_EVENT" \
-GITHUB_TRIGGERING_ACTOR="${{ github.triggering_actor }}" \
-GCOM_HOST="${{ secrets.EI_GCOM_HOST }}" \

View File

@@ -29,11 +29,6 @@ jobs:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '>=1.20'
- name: Generate a GitHub app installation token
id: generate_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
@@ -49,15 +44,28 @@ jobs:
ref: main
path: ephemeral
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: ephemeral/go.mod
- name: Get latest grafana version number
run: |
# if package.json contains e.g. 11.0.0-pre, this writes 11.0.0 to version.txt
curl https://raw.githubusercontent.com/grafana/grafana/main/package.json | jq -r .version | grep -o '^[0-9\.]*' > version.txt
- name: Run action
env:
GITHUB_EVENT: ${{ toJson(github.event)}}
run: |
GRAFANA_VERSION=10.1.0
# Create a prerelease version number using the latest version from the package.json in the grafana repo.
export GRAFANA_VERSION="$(cat version.txt)"
echo "${GRAFANA_VERSION}"
cd $GITHUB_WORKSPACE/ephemeral/src
go run . \
-GITHUB_TOKEN="${{ steps.generate_token.outputs.token }}" \
-GITHUB_WORKFLOW_RUN_ID="${{ github.run_id }}" \
-GITHUB_EVENT="$GITHUB_EVENT" \
-GITHUB_TRIGGERING_ACTOR="${{ github.triggering_actor }}" \
-GCOM_HOST="${{ secrets.EI_GCOM_HOST }}" \

View File

@@ -1,28 +0,0 @@
name: Feature Toggle Cleanup
on:
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '30 10 * * *'
jobs:
feature-toggle-cleanup:
runs-on: ubuntu-latest
# This check is here to prevent this workflow from running on forks.
if: github.repository == 'grafana/grafana'
steps:
- name: Check out the code
uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- run: npm install csv-parse
- name: Parse CVS file to see which Feature Toggles should be notified about
id: parse-csv-file
uses: actions/github-script@v7
env:
FEATURE_TOGGLES_CSV_FILE_PATH: "pkg/services/featuremgmt/toggles_gen.csv"
with:
script: |
const { default: cleanupFeatureFlags } = await import('${{ github.workspace }}/.github/workflows/scripts/feature-toggle-cleanup/feature-toggle-cleanup.mjs')
await cleanupFeatureFlags({github, context, core})

View File

@@ -1,27 +1,48 @@
name: Create or update GitHub release
on:
workflow_call:
inputs:
version:
required: true
description: Needs to match, exactly, the name of a milestone (NO v prefix)
type: string
latest:
required: false
default: false
description: Mark this release as latest (`1`) or not (`0`, default)
type: string
dry_run:
required: false
default: false
type: boolean
workflow_dispatch:
inputs:
version:
required: true
description: Needs to match, exactly, the name of a milestone (NO v prefix)
type: string
latest:
required: false
description: Mark this release as latest (`1`) or not (`0`, default)
type: string
dry_run:
required: false
default: false
type: boolean
permissions:
# contents: write allows the action(s) to create github releases
contents: write
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: "Generate token"
id: generate_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_ID }}
private_key: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_PEM }}
- name: Create GitHub release (manually invoked)
uses: grafana/grafana-github-actions-go/github-release@main
with:
token: ${{ steps.generate_token.outputs.token }}
token: ${{ secrets.GITHUB_TOKEN }}
version: ${{ inputs.version }}
metrics_api_key: ${{ secrets.GRAFANA_MISC_STATS_API_KEY }}
latest: ${{ inputs.latest }}
dry_run: ${{ inputs.dry_run }}

33
.github/workflows/go_lint.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: golangci-lint
on:
push:
paths:
- pkg/**
- .github/workflows/go_lint.yml
- go.*
branches:
- main
pull_request:
permissions:
contents: read
jobs:
lint-go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- run: CODEGEN_VERIFY=1 make gen-cue
- run: make gen-go
- name: golangci-lint
uses: golangci/golangci-lint-action@v5
with:
version: v1.59.0
args: |
--config .golangci.toml --max-same-issues=0 --max-issues-per-linter=0 --verbose ./pkg/... ./pkg/apimachinery/... ./pkg/apiserver/... ./pkg/build/wire/... ./pkg/promlib/... ./pkg/util/xorm/...
only-new-issues: true
skip-cache: true
install-mode: binary

View File

@@ -0,0 +1,122 @@
name: Crowdin Download Action
on:
workflow_dispatch:
schedule:
- cron: "0 * * * *"
jobs:
download-sources-from-crowdin:
runs-on: ubuntu-latest
permissions:
contents: write # needed to commit changes into the PR
pull-requests: write # needed to update PR description, labels, etc
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Download sources
id: crowdin-download
uses: crowdin/github-action@v1
with:
upload_sources: false
upload_translations: false
download_sources: false
download_translations: true
export_only_approved: true
localization_branch_name: i18n_crowdin_translations
create_pull_request: true
pull_request_title: 'I18n: Download translations from Crowdin'
pull_request_body: |
:robot: Automatic download of translations from Crowdin.
Steps for merging:
1. A quick sanity check of the changes and approve. Things to look out for:
- No changes in the English file. The source of truth is in the main branch, NOT in Crowdin.
- Translations maybe be removed if the English phrase was removed, but there should not be many of these
- Anything else that looks 'funky'. Ask if you're not sure.
2. Approve & (Auto-)merge. :tada:
If there's a conflict, close the pull request and **delete the branch**. A GH action will recreate the pull request.
Remember, the longer this pull request is open, the more likely it is that it'll get conflicts.
pull_request_labels: 'area/frontend, area/internationalization, no-changelog, no-backport'
pull_request_reviewers: 'grafana-frontend-platform'
pull_request_base_branch_name: 'main'
base_url: 'https://grafana.api.crowdin.com'
config: 'crowdin.yml'
source: 'public/locales/en-US/grafana.json'
translation: 'public/locales/%locale%/%original_file_name%'
# Magic details of the github-actions bot user, to pass CLA checks
github_user_name: "github-actions[bot]"
github_user_email: "41898282+github-actions[bot]@users.noreply.github.com"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
- name: Generate token
if: steps.crowdin-download.outputs.pull_request_url
id: generate_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.GRAFANA_PR_AUTOMATION_APP_ID }}
private_key: ${{ secrets.GRAFANA_PR_AUTOMATION_APP_PEM }}
- name: Get pull request ID
if: steps.crowdin-download.outputs.pull_request_url
shell: bash
# Crowdin action returns us the URL of the pull request, but we need an ID for the GraphQL API
# that looks like 'PR_kwDOAOaWjc5mP_GU'
run: |
pr_id=$(gh pr view ${{ steps.crowdin-download.outputs.pull_request_url }} --json id -q .id)
echo "PULL_REQUEST_ID=$pr_id" >> "$GITHUB_ENV"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get project board ID
uses: octokit/graphql-action@v2.x
id: get-project-id
if: steps.crowdin-download.outputs.pull_request_url
with:
# Frontend Platform project - https://github.com/orgs/grafana/projects/78
org: grafana
project_number: 78
query: |
query getProjectId($org: String!, $project_number: Int!){
organization(login: $org) {
projectV2(number: $project_number) {
title
id
}
}
}
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
- name: Add to project board
uses: octokit/graphql-action@v2.x
if: steps.crowdin-download.outputs.pull_request_url
with:
projectid: ${{ fromJson(steps.get-project-id.outputs.data).organization.projectV2.id }}
prid: ${{ env.PULL_REQUEST_ID }}
query: |
mutation addPullRequestToProject($projectid: ID!, $prid: ID!){
addProjectV2ItemById(input: {projectId: $projectid, contentId: $prid}) {
item {
id
}
}
}
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
- name: Run auto-milestone
uses: grafana/grafana-github-actions-go/auto-milestone@main
if: steps.crowdin-download.outputs.pull_request_url
with:
pr: ${{ steps.crowdin-download.outputs.pull_request_number }}
token: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -1,67 +0,0 @@
# When Crowdin creates a pull request from the crowdin-service-branch branch,
# run `yarn i18n:extract` and commit the changed grafana.json files back into the PR
# to reformat crowdin's changes to prevent conflicts with our CI checks.
name: Fix Crowdin I18n files
on:
pull_request:
paths:
- 'public/locales/*/grafana.json'
branches:
- main # Only run on pull requests *target* main (will be merged into main)
jobs:
fix-files:
# Only run on pull requests *from* the crowdin-service-branch branch
if: github.head_ref == 'crowdin-service-branch'
name: Fix files
runs-on: ubuntu-latest
permissions:
contents: write # needed to commit changes back into the PR
pull-requests: write # needed to update PR description
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v4
with:
node-version: 20.9.0
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Extract I18n files
run: yarn i18n:extract
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d # v5.0.0
with:
commit_message: "Github Action: Auto-fix i18n files"
file_pattern: public/locales/*/grafana.json
- name: Update PR description
uses: devindford/Append_PR_Comment@32dd2619cd96ac8da9907c416c992fe265233ca8 # v1.1.3
if: ${{ ! contains(github.event.pull_request.body, 'Steps for merging') }}
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
body-update-action: prefix
body-template: |
:robot: Automatic sync of translations from Crowdin.
Steps for merging:
1. Wait for the "Github Action: Auto-fix i18n files" commit that may be required for CI to pass.
2. A quick sanity check of the changes and approve. Things to look out for:
- No changes to the English strings. The source of truth is already in the main branch, NOT Crowdin.
- Translations maybe be removed if the English phrase was removed, but there should not be many of these
- Anything else that looks 'funky'. Ask if you're not sure.
3. Approve & (Auto-)merge. :tada:
If there's a conflict, close the pull request and **delete the branch**. Crowdin will recreate the pull request eventually.
Remember, the longer this pull request is open, the more likely it is that it'll get conflicts.

View File

@@ -0,0 +1,33 @@
name: Crowdin Upload Action
on:
workflow_dispatch:
push:
paths:
- 'public/locales/en-US/grafana.json'
branches:
- main
jobs:
upload-sources-to-crowdin:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Upload sources
uses: crowdin/github-action@v1
with:
upload_sources: true
upload_sources_args: '--dest=public/locales/en-US/grafana.json'
upload_translations: false
download_translations: false
create_pull_request: false
base_url: 'https://grafana.api.crowdin.com'
config: 'crowdin.yml'
source: 'public/locales/en-US/grafana.json'
translation: 'public/locales/%locale%/%original_file_name%'
env:
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

View File

@@ -53,7 +53,7 @@ jobs:
echo "TEAM=${TEAM}" >> $GITHUB_ENV
- name: "Prepare payload"
uses: frabert/replace-string-action@v2.0
uses: frabert/replace-string-action@v2.5
id: preparePayload
with:
# replace double quotes with single quotes to avoid breaking the JSON payload sent to Slack
@@ -64,7 +64,7 @@ jobs:
- name: Get Token
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@v2
uses: peter-murray/workflow-application-token-action@v3
with:
application_id: ${{ secrets.APP_GRAFANA_TEAM_CHECKER_ID }}
application_private_key: ${{ secrets.APP_GRAFANA_TEAM_CHECKER_KEY }}
@@ -86,7 +86,7 @@ jobs:
- name: "Send Slack notification"
if: ${{ (env.CHANNEL != 'null') && ((env.USER_FOUND == 'false') || (env.TEAM != 'null')) }}
uses: slackapi/slack-github-action@v1.24.0
uses: slackapi/slack-github-action@v1.26.0
with:
payload: >
{

View File

@@ -25,7 +25,7 @@ jobs:
id: check
shell: bash
run: |
if [ -n "${{ (secrets.GRAFANA_MISC_STATS_API_KEY != '' && secrets.GH_BOT_ACCESS_TOKEN != '') || '' }}" ]; then
if [ -n "${{ (secrets.GRAFANA_MISC_STATS_API_KEY != '') || '' }}" ]; then
echo "has-secrets=1" >> "$GITHUB_OUTPUT"
fi
@@ -46,5 +46,5 @@ jobs:
uses: ./actions/metrics-collector
with:
metricsWriteAPIKey: ${{secrets.GRAFANA_MISC_STATS_API_KEY}}
token: ${{secrets.GH_BOT_ACCESS_TOKEN}}
token: ${{secrets.GITHUB_TOKEN}}
configPath: "metrics-collector"

View File

@@ -9,6 +9,7 @@ on:
- labeled
- unlabeled
- edited
- auto_merge_enabled
issues:
types:
- milestoned

View File

@@ -14,19 +14,29 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
if: github.repository == 'grafana/grafana'
steps:
- name: "Generate token"
id: generate_token
continue-on-error: true
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
with:
app_id: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_ID }}
private_key: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_PEM }}
- name: Checkout repository
uses: actions/checkout@v4
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
token: ${{ steps.generate_token.outputs.token }}
- name: Set go version
uses: actions/setup-go@v4
with:
go-version: '1.21.5'
go-version-file: go.mod
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL

View File

@@ -16,6 +16,7 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
if: github.repository == 'grafana/grafana'
steps:
- name: Checkout repository

View File

@@ -14,6 +14,7 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
if: github.repository == 'grafana/grafana'
steps:
- name: Checkout repository

View File

@@ -0,0 +1,51 @@
name: "Go Workspace Check"
on:
workflow_dispatch:
pull_request:
branches: [main]
paths:
- '**/go.work'
- '**/go.work.sum'
- '**/go.mod'
- '**/go.sum'
jobs:
check:
name: Go Workspace Check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set go version
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Workspace Sync
run: go work sync
- name: Check for go mod & workspace changes
run: |
if ! git diff --exit-code --quiet; then
echo "Changes detected:"
git diff
echo "Please run 'go work sync' and commit the changes."
echo "If there is a change in enterprise dependencies, please update pkg/extensions/main.go."
exit 1
fi
- name: Build
run: make build-go
- name: Check for go workspace changes
run: |
if ! git diff --exit-code --quiet; then
echo "Changes detected:"
git diff
echo "Please run 'make build-go' and commit the changes."
echo "If there is a change in enterprise dependencies, please update pkg/extensions/main.go."
exit 1
fi

View File

@@ -1,4 +1,4 @@
# Owned by grafana-delivery-squad
# Owned by grafana-release-guild
# Intended to be dropped into the base repo Ex: grafana/grafana
name: Check for patch conflicts
run-name: check-patch-conflicts-${{ github.base_ref }}-${{ github.head_ref }}
@@ -18,6 +18,7 @@ on:
jobs:
trigger_downstream_patch_check:
uses: grafana/security-patch-actions/.github/workflows/test-patches.yml@main
if: github.repository == 'grafana/grafana'
with:
src_repo: "${{ github.repository }}"
src_ref: "${{ github.head_ref }}" # this is the source branch name, Ex: "feature/newthing"

View File

@@ -36,7 +36,7 @@ jobs:
- name: "Setup Go"
uses: "actions/setup-go@v4"
with:
go-version: '1.21.5'
go-version-file: go.mod
- name: "Verify kinds"
run: go run .github/workflows/scripts/kinds/verify-kinds.go

View File

@@ -39,7 +39,7 @@ jobs:
- name: "Setup Go"
uses: "actions/setup-go@v4"
with:
go-version: '1.21.5'
go-version-file: go.mod
- name: "Verify kinds"
run: go run .github/workflows/scripts/kinds/verify-kinds.go

View File

@@ -55,7 +55,7 @@ jobs:
# Tags aren't necessarily made to the HEAD of the version branch.
# The documentation to be published is always on the HEAD of the version branch.
if: "steps.has-matching-release-tag.outputs.bool == 'true' && github.ref_type == 'tag'"
run: "git switch --detach origin/${{ steps.target.output.target }}.x"
run: "git switch --detach origin/${{ steps.target.outputs.target }}.x"
- name: "Publish to website repository (release)"
if: "steps.has-matching-release-tag.outputs.bool == 'true'"

77
.github/workflows/release-comms.yml vendored Normal file
View File

@@ -0,0 +1,77 @@
# This workflow runs whenever the release PR is merged. It includes post-release communication processes like
# posting to slack, the website, community forums, etc.
# Only things that happen after a release is completed and all of the necessary code changes (like the changelog) are made.
name: Post-release
on:
workflow_dispatch:
inputs:
dry_run:
required: false
default: true
version:
required: true
latest:
type: bool
default: false
pull_request:
types:
- closed
branches:
- 'main'
- 'v*.*.*'
jobs:
setup:
if: ${{ github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/')) }}
name: Setup and establish latest
outputs:
version: ${{ steps.output.outputs.version }}
dry_run: ${{ steps.output.outputs.dry_run }}
latest: ${{ steps.output.outputs.latest }}
runs-on: ubuntu-latest
steps:
- if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
echo setting up GITHUB_ENV for ${{ github.event_name }}
echo "VERSION=${{ inputs.version }}" >> $GITHUB_ENV
echo "DRY_RUN=${{ inputs.dry_run }}" >> $GITHUB_ENV
echo "LATEST=${{ inputs.latest }}" >> $GITHUB_ENV
- if: ${{ github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') }}
run: |
echo "VERSION=$(echo ${{ github.head_ref }} | sed -e 's/release\///g')" >> $GITHUB_ENV
echo "DRY_RUN=true" >> $GITHUB_ENV
echo "LATEST=${{ contains(github.event.pull_request.labels.*.name, 'release/latest') }}" >> $GITHUB_ENV
- id: output
run: |
echo "dry_run: $DRY_RUN"
echo "latest: $LATEST"
echo "version: $VERSION"
echo "dry_run=$DRY_RUN" >> "$GITHUB_OUTPUT"
echo "latest=$LATEST" >> "$GITHUB_OUTPUT"
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
post_changelog_on_forum:
needs: setup
uses: ./.github/workflows/community-release.yml
secrets:
GRAFANA_MISC_STATS_API_KEY: ${{ secrets.GRAFANA_MISC_STATS_API_KEY }}
GRAFANABOT_FORUM_KEY: ${{ secrets.GRAFANABOT_FORUM_KEY }}
with:
version: ${{ needs.setup.outputs.version }}
dry_run: ${{ needs.setup.outputs.dry_run == 'true' }}
create_github_release:
# a github release requires a git tag
# The github-release action retrieves the changelog using the /repos/grafana/grafana/contents/CHANGELOG.md API
# endpoint.
needs: setup
uses: ./.github/workflows/github-release.yml
with:
version: ${{ needs.setup.outputs.version }}
dry_run: ${{ needs.setup.outputs.dry_run == 'true' }}
post_on_slack:
needs: setup
runs-on: ubuntu-latest
steps:
- run: |
echo announce on slack that ${{ needs.setup.outputs.version }} has been released
echo dry run: ${{ needs.setup.outputs.dry_run }}

153
.github/workflows/release-pr.yml vendored Normal file
View File

@@ -0,0 +1,153 @@
# This workflow creates a new PR in Grafana which is triggered after a release is completed.
# It should include all code changes that are needed after a release is done. This includes the changelog update and
# version bumps, but could include more in the future.
# Please refrain from including any processes that do not result in code changes in this workflow. Instead, they should
# either be triggered in the release promotion process or in the release comms process (that is triggered by merging
# this PR).
name: Complete a Grafana release
on:
workflow_dispatch:
inputs:
version:
required: true
type: string
description: The version of Grafana that is being released
target:
required: true
type: string
description: The base branch that these changes are being merged into
backport:
required: false
type: string
description: Branch to backport these changes to
dry_run:
required: false
default: false
type: bool
latest:
required: false
default: false
type: bool
permissions:
contents: write
pull-requests: write
jobs:
push-changelog-to-main:
name: Create PR to main to update the changelog
uses: ./.github/workflows/changelog.yml
with:
version: ${{ inputs.version }}
latest: ${{ inputs.latest }}
dry_run: ${{ inputs.dry_run }}
target: main
create-prs:
name: Create Release PR
runs-on: ubuntu-latest
if: github.repository == 'grafana/grafana'
steps:
- name: Generate bot token
id: generate_token
uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92
with:
app_id: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_ID }}
private_key: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_PEM }}
- name: Checkout Grafana
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Configure git user
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local --add --bool push.autoSetupRemote true
- name: Create branch
run: git checkout -b "release/${{ github.run_id }}/${{ inputs.version }}"
- name: Generate changelog
id: changelog
uses: ./.github/workflows/actions/changelog
with:
github_token: ${{ steps.generate_token.outputs.token }}
target: v${{ inputs.version }}
output_file: changelog_items.md
- name: Patch CHANGELOG.md
run: |
# Prepare CHANGELOG.md content with version delimiters
(
echo
echo "# ${{ inputs.version}} ($(date '+%F'))"
echo
cat changelog_items.md
) > CHANGELOG.part
# Check if a version exists in the changelog
if grep -q "<!-- ${{ inputs.version}} START" CHANGELOG.md ; then
# Replace the content between START and END delimiters
echo "Version ${{ inputs.version }} is found in the CHANGELOG.md, patching contents..."
sed -i -e '/${{ inputs.version }} START/,/${{ inputs.version }} END/{//!d;}' \
-e '/${{ inputs.version }} START/r CHANGELOG.part' CHANGELOG.md
else
# Prepend changelog part to the main changelog file
echo "Version ${{ inputs.version }} not found in the CHANGELOG.md"
(
echo "<!-- ${{ inputs.version }} START -->"
cat CHANGELOG.part
echo "<!-- ${{ inputs.version }} END -->"
cat CHANGELOG.md
) > CHANGELOG.tmp
mv CHANGELOG.tmp CHANGELOG.md
fi
rm -f CHANGELOG.part changelog_items.md
git diff CHANGELOG.md
- name: Commit CHANGELOG.md changes
run: git commit --allow-empty -m "Update changelog placeholder" CHANGELOG.md
- name: Update package.json versions
uses: ./pkg/build/actions/bump-version
with:
version: ${{ inputs.version }}
- name: Add package.json changes
run: |
git add .
git commit -m "Update version to ${{ inputs.version }}"
- name: Git push
if: ${{ inputs.dry_run }} != true
run: git push
- name: Create PR without backports
if: "${{ inputs.backport == '' }}"
run: >
gh pr create \
$( [ "x${{ inputs.latest }}" == "xtrue" ] && printf %s '-l "release/latest"') \
--dry-run=${{ inputs.dry_run }} \
-B "${{ inputs.target }}" \
--title "Release: ${{ inputs.version }}" \
--body "These code changes must be merged after a release is complete"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create PR with backports
if: "${{ inputs.backport != '' }}"
run: >
gh pr create \
$( [ "x${{ inputs.latest }}" == "xtrue" ] && printf %s '-l "release/latest"') \
-l "backport ${{ inputs.backport }}" \
-l "product-approved" \
--dry-run=${{ inputs.dry_run }} \
-B "${{ inputs.target }}" \
--title "Release: ${{ inputs.version }}" \
--body "These code changes must be merged after a release is complete"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

47
.github/workflows/run-scenes-e2e.yml vendored Normal file
View File

@@ -0,0 +1,47 @@
name: Run dashboard scenes e2e
on:
schedule:
- cron: "0 8 * * 1-5" # every day at 08:00UTC on weekdays
# push # uncomment for test run during PR
env:
ARCH: linux-amd64
jobs:
dashboard-scenes-e2e:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Pin Go version to mod file
uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- run: go version
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: yarn install --immutable
- name: Build grafana
run: make build
- name: Install Cypress dependencies
uses: cypress-io/github-action@v6
with:
runTests: false
- name: Run dashboard scenes e2e
run: yarn e2e:scenes
- name: "Send Slack notification"
if: ${{ failure() }}
uses: slackapi/slack-github-action@v1.26.0
with:
payload: >
{
"icon_emoji": ":this-is-fine-fire:",
"username": "Dashboard scenes e2e tests failed",
"text": "Link to run: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}",
"channel": "#grafana-dashboards-squad"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@@ -1,38 +0,0 @@
import { parse } from 'csv-parse/sync';
import fs from 'fs';
/***
* Feauture Flag Structure example
* Name: 'disableEnvelopeEncryption',
Stage: 'GA',
Owner: '@grafana/grafana-as-code',
Created: '2022-05-24',
requiresDevMode: 'false',
RequiresLicense: 'false',
RequiresRestart: 'false',
FrontendOnly: 'false'
*
*/
export default function cleanupFeatureFlags() {
const today = new Date();
const sixMonthAgo = today.setMonth(today.getMonth() - 6);
const inputFileContents = fs.readFileSync(process.env.FEATURE_TOGGLES_CSV_FILE_PATH);
const parsedFeatureFlags = parse(inputFileContents, {
columns: true,
skip_empty_lines: true,
cast: true,
cast_date: true,
});
// Here we can have the custom logic of how to handle what type of feature flag - e.g. GA can be treated differently than experimental and so on.
for (const flag of parsedFeatureFlags) {
if (flag.Created < sixMonthAgo) {
console.log(`The flag ${flag.Name} was created more than 6 months ago. It should be checked.`);
console.log(flag);
}
}
}

View File

@@ -1,121 +1,111 @@
package main
import (
"archive/zip"
"context"
"errors"
"fmt"
"io"
"net/http"
"golang.org/x/text/cases"
"golang.org/x/text/language"
"os"
"path/filepath"
"regexp"
"strconv"
"strings"
"testing/fstest"
"cuelang.org/go/cue"
cueformat "cuelang.org/go/cue/format"
"github.com/google/go-github/github"
"github.com/grafana/codejen"
"github.com/grafana/grafana/pkg/codegen"
"github.com/grafana/grafana/pkg/cuectx"
"github.com/grafana/grafana/pkg/plugins/pfs"
"github.com/grafana/grafana/pkg/plugins/pfs/corelist"
"github.com/grafana/grafana/pkg/registry/corekind"
"github.com/grafana/kindsys"
"github.com/grafana/thema"
"golang.org/x/oauth2"
"github.com/grafana/grafana/pkg/registry/schemas"
)
const (
GITHUB_OWNER = "grafana"
GITHUB_REPO = "kind-registry"
)
var nonAlphaNumRegex = regexp.MustCompile("[^a-zA-Z0-9 ]+")
// main This script verifies that stable kinds are not updated once published (new schemas
// can be added but existing ones cannot be updated).
// If the env variable CODEGEN_VERIFY is not present, this also generates kind files into a
// local "next" folder, ready to be published in the kind-registry repo.
// It generates kind files into a local "next" folder, ready to be published in the kind-registry repo.
// If kind names are given as parameters, the script will make the above actions only for the
// given kinds.
func main() {
var corek []kindsys.Kind
var compok []kindsys.Composable
kindRegistry, err := NewKindRegistry()
defer kindRegistry.cleanUp()
if err != nil {
die(err)
}
// Search for the latest version directory present in the kind-registry repo
latestRegistryDir, err := kindRegistry.findLatestDir()
if err != nil {
die(fmt.Errorf("failed to get latest directory for published kinds: %s", err))
}
errs := make([]error, 0)
// Kind verification
for _, kind := range corekind.NewBase(nil).All() {
name := kind.Props().Common().MachineName
err := verifyKind(kindRegistry, kind, name, "core", latestRegistryDir)
if err != nil {
errs = append(errs, err)
continue
}
corek = append(corek, kind)
}
for _, pp := range corelist.New(nil) {
for _, kind := range pp.ComposableKinds {
si, err := kindsys.FindSchemaInterface(kind.Def().Properties.SchemaInterface)
if err != nil {
errs = append(errs, err)
continue
}
name := strings.ToLower(fmt.Sprintf("%s/%s", strings.TrimSuffix(kind.Lineage().Name(), si.Name()), si.Name()))
err = verifyKind(kindRegistry, kind, name, "composable", latestRegistryDir)
if err != nil {
errs = append(errs, err)
continue
}
compok = append(compok, kind)
}
}
die(errs...)
if _, set := os.LookupEnv("CODEGEN_VERIFY"); set {
os.Exit(0)
}
// File generation
jfs := codejen.NewFS()
outputPath := filepath.Join(".github", "workflows", "scripts", "kinds")
coreJennies := codejen.JennyList[kindsys.Kind]{}
corekinds, err := schemas.GetCoreKinds()
die(err)
composableKinds, err := schemas.GetComposableKinds()
die(err)
coreJennies := codejen.JennyList[schemas.CoreKind]{}
coreJennies.Append(
KindRegistryJenny(outputPath),
CoreKindRegistryJenny(outputPath),
)
corefs, err := coreJennies.GenerateFS(corek...)
corefs, err := coreJennies.GenerateFS(corekinds...)
die(err)
die(jfs.Merge(corefs))
composableJennies := codejen.JennyList[kindsys.Composable]{}
composableJennies := codejen.JennyList[schemas.ComposableKind]{}
composableJennies.Append(
ComposableKindRegistryJenny(outputPath),
)
composablefs, err := composableJennies.GenerateFS(compok...)
composablefs, err := composableJennies.GenerateFS(composableKinds...)
die(err)
die(jfs.Merge(composablefs))
if err = jfs.Write(context.Background(), ""); err != nil {
die(fmt.Errorf("error while writing generated code to disk:\n%s", err))
}
if err := copyCueSchemas("packages/grafana-schema/src/common", filepath.Join(outputPath, "next")); err != nil {
die(fmt.Errorf("error while copying the grafana-schema/common package:\n%s", err))
}
}
func copyCueSchemas(fromDir string, toDir string) error {
baseTargetDir := filepath.Base(fromDir)
return filepath.Walk(fromDir, func(path string, info os.FileInfo, err error) error {
if err != nil {
return err
}
targetPath := filepath.Join(
toDir,
baseTargetDir,
strings.TrimPrefix(path, fromDir),
)
if info.IsDir() {
return ensureDirectoryExists(targetPath, info.Mode())
}
if !strings.HasSuffix(path, ".cue") {
return nil
}
return copyFile(path, targetPath, info.Mode())
})
}
func copyFile(from string, to string, mode os.FileMode) error {
input, err := os.ReadFile(from)
if err != nil {
return err
}
return os.WriteFile(to, input, mode)
}
func ensureDirectoryExists(directory string, mode os.FileMode) error {
_, err := os.Stat(directory)
if errors.Is(err, os.ErrNotExist) {
if err = os.Mkdir(directory, mode); err != nil {
return err
}
} else if err != nil {
return err
}
return os.Chmod(directory, mode)
}
func die(errs ...error) {
@@ -127,101 +117,8 @@ func die(errs ...error) {
}
}
// verifyKind verifies that stable kinds are not updated once published (new schemas
// can be added but existing ones cannot be updated)
func verifyKind(registry *kindRegistry, kind kindsys.Kind, name string, category string, latestRegistryDir string) error {
oldKindString, err := registry.getPublishedKind(name, category, latestRegistryDir)
if err != nil {
return err
}
var oldKind kindsys.Kind
if oldKindString != "" {
switch category {
case "core":
oldKind, err = loadCoreKind(name, oldKindString)
case "composable":
oldKind, err = loadComposableKind(name, oldKindString)
default:
return fmt.Errorf("kind can only be core or composable")
}
}
if err != nil {
return err
}
// Kind is new - no need to compare it
if oldKind == nil {
return nil
}
// Check that maturity isn't downgraded
if kind.Maturity().Less(oldKind.Maturity()) {
return fmt.Errorf("kind maturity can't be downgraded once a kind is published")
}
if oldKind.Maturity().Less(kindsys.MaturityStable) {
return nil
}
// Check that old schemas do not contain updates
err = thema.IsAppendOnly(oldKind.Lineage(), kind.Lineage())
if err != nil {
return fmt.Errorf("existing schemas in lineage %s cannot be modified: %w", name, err)
}
return nil
}
func isLess(v1 []uint64, v2 []uint64) bool {
if len(v1) == 1 || len(v2) == 1 {
return v1[0] < v2[0]
}
return v1[0] < v2[0] || (v1[0] == v2[0] && isLess(v1[2:], v2[2:]))
}
func loadCoreKind(name string, kind string) (kindsys.Kind, error) {
fs := fstest.MapFS{
fmt.Sprintf("%s.cue", name): &fstest.MapFile{
Data: []byte(kind),
},
}
rt := cuectx.GrafanaThemaRuntime()
def, err := cuectx.LoadCoreKindDef(fmt.Sprintf("%s.cue", name), rt.Context(), fs)
if err != nil {
return nil, fmt.Errorf("%s is not a valid kind: %w", name, err)
}
return kindsys.BindCore(rt, def)
}
func loadComposableKind(name string, kind string) (kindsys.Kind, error) {
parts := strings.Split(name, "/")
if len(parts) > 1 {
name = parts[1]
}
fs := fstest.MapFS{
fmt.Sprintf("%s.cue", name): &fstest.MapFile{
Data: []byte(kind),
},
}
rt := cuectx.GrafanaThemaRuntime()
def, err := pfs.LoadComposableKindDef(fs, rt, fmt.Sprintf("%s.cue", name))
if err != nil {
return nil, fmt.Errorf("%s is not a valid kind: %w", name, err)
}
return kindsys.BindComposable(rt, def)
}
// KindRegistryJenny generates kind files into the "next" folder of the local kind registry.
func KindRegistryJenny(path string) codegen.OneToOne {
// CoreKindRegistryJenny generates kind files into the "next" folder of the local kind registry.
func CoreKindRegistryJenny(path string) codejen.OneToOne[schemas.CoreKind] {
return &kindregjenny{
path: path,
}
@@ -235,35 +132,18 @@ func (j *kindregjenny) JennyName() string {
return "KindRegistryJenny"
}
func (j *kindregjenny) Generate(kind kindsys.Kind) (*codejen.File, error) {
name := kind.Props().Common().MachineName
core, ok := kind.(kindsys.Core)
if !ok {
return nil, fmt.Errorf("kind sent to KindRegistryJenny must be a core kind")
}
newKindBytes, err := kindToBytes(core.Def().V)
func (j *kindregjenny) Generate(kind schemas.CoreKind) (*codejen.File, error) {
newKindBytes, err := kindToBytes(kind.CueFile)
if err != nil {
return nil, err
}
path := filepath.Join(j.path, "next", "core", name, name+".cue")
path := filepath.Join(j.path, "next", "core", kind.Name, kind.Name+".cue")
return codejen.NewFile(path, newKindBytes, j), nil
}
// kindToBytes converts a kind cue value to a .cue file content
func kindToBytes(kind cue.Value) ([]byte, error) {
node := kind.Syntax(
cue.All(),
cue.Schema(),
cue.Docs(true),
)
return cueformat.Node(node)
}
// ComposableKindRegistryJenny generates kind files into the "next" folder of the local kind registry.
func ComposableKindRegistryJenny(path string) codejen.OneToOne[kindsys.Composable] {
func ComposableKindRegistryJenny(path string) codejen.OneToOne[schemas.ComposableKind] {
return &ckrJenny{
path: path,
}
@@ -277,149 +157,73 @@ func (j *ckrJenny) JennyName() string {
return "ComposableKindRegistryJenny"
}
func (j *ckrJenny) Generate(k kindsys.Composable) (*codejen.File, error) {
si, err := kindsys.FindSchemaInterface(k.Def().Properties.SchemaInterface)
if err != nil {
panic(err)
}
func (j *ckrJenny) Generate(k schemas.ComposableKind) (*codejen.File, error) {
name := strings.ToLower(fmt.Sprintf("%s/%s", k.Name, k.Filename))
name := strings.ToLower(fmt.Sprintf("%s/%s", strings.TrimSuffix(k.Lineage().Name(), si.Name()), si.Name()))
v := fixComposableKindFormat(k)
newKindBytes, err := kindToBytes(k.Def().V)
newKindBytes, err := kindToBytes(v)
if err != nil {
return nil, err
}
newKindBytes = []byte(fmt.Sprintf("package grafanaplugin\n\n%s", newKindBytes))
return codejen.NewFile(filepath.Join(j.path, "next", "composable", name+".cue"), newKindBytes, j), nil
return codejen.NewFile(filepath.Join(j.path, "next", "composable", name), newKindBytes, j), nil
}
type kindRegistry struct {
zipDir string
zipFile *zip.ReadCloser
// kindToBytes converts a kind cue value to a .cue file content
func kindToBytes(kind cue.Value) ([]byte, error) {
node := kind.Syntax(
cue.All(),
cue.Schema(),
cue.Docs(true),
)
return cueformat.Node(node)
}
// NewKindRegistry downloads the archive of the kind-registry GH repository and open it
func NewKindRegistry() (*kindRegistry, error) {
ctx := context.Background()
tc := oauth2.NewClient(ctx, nil)
client := github.NewClient(tc)
// Create a temporary file to store the downloaded archive
file, err := os.CreateTemp("", "*.zip")
if err != nil {
return nil, fmt.Errorf("failed to create temporary file: %w", err)
}
defer file.Close()
// Get the repository archive URL
archiveURL, _, err := client.Repositories.GetArchiveLink(ctx, GITHUB_OWNER, GITHUB_REPO, github.Zipball, &github.RepositoryContentGetOptions{})
if err != nil {
return nil, fmt.Errorf("failed to get archive URL: %w", err)
func fixComposableKindFormat(schema schemas.ComposableKind) cue.Value {
variant := "PanelCfg"
if schema.CueFile.LookupPath(cue.ParsePath("composableKinds.DataQuery")).Exists() {
variant = "DataQuery"
}
// Download the archive file
httpClient := http.DefaultClient
resp, err := httpClient.Get(archiveURL.String())
if err != nil {
return nil, fmt.Errorf("failed to download archive: %w", err)
}
defer resp.Body.Close()
newCue := schema.CueFile.Context().CompileString(
fmt.Sprintf("schemaInterface: %q\n", variant) +
fmt.Sprintf("name: %q + %q\n\n", UpperCamelCase(schema.Name), variant) +
"lineage: _",
)
// Save the downloaded archive to the temporary file
_, err = io.Copy(file, resp.Body)
if err != nil {
return nil, fmt.Errorf("failed to save archive: %w", err)
}
// Open the zip file for reading
zipDir := file.Name()
zipFile, err := zip.OpenReader(zipDir)
if err != nil {
return nil, fmt.Errorf("failed to open zip file %s: %w", zipDir, err)
}
return &kindRegistry{
zipDir: zipDir,
zipFile: zipFile,
}, nil
lineagePath := cue.MakePath(cue.Str("composableKinds"), cue.Str(variant), cue.Str("lineage"))
return newCue.FillPath(cue.MakePath(cue.Str("lineage")), schema.CueFile.LookupPath(lineagePath))
}
// cleanUp removes the archive from the temporary files and closes the zip reader
func (registry *kindRegistry) cleanUp() {
if registry.zipDir != "" {
err := os.Remove(registry.zipDir)
if err != nil {
fmt.Fprint(os.Stderr, fmt.Errorf("failed to remove zip archive: %w", err))
}
func UpperCamelCase(s string) string {
s = LowerCamelCase(s)
// Uppercase the first letter
if len(s) > 0 {
s = strings.ToUpper(s[:1]) + s[1:]
}
if registry.zipFile != nil {
err := registry.zipFile.Close()
if err != nil {
fmt.Fprint(os.Stderr, fmt.Errorf("failed to close zip file reader: %w", err))
}
}
return s
}
// findLatestDir get the latest version directory published in the kind registry
func (registry *kindRegistry) findLatestDir() (string, error) {
re := regexp.MustCompile(`([0-9]+)\.([0-9]+)\.([0-9]+)`)
latestVersion := []uint64{0, 0, 0}
latestDir := ""
func LowerCamelCase(s string) string {
// Replace all non-alphanumeric characters by spaces
s = nonAlphaNumRegex.ReplaceAllString(s, " ")
for _, file := range registry.zipFile.File {
if !file.FileInfo().IsDir() {
continue
}
// Title case s
s = cases.Title(language.AmericanEnglish, cases.NoLower).String(s)
parts := re.FindStringSubmatch(file.Name)
if parts == nil || len(parts) < 4 {
continue
}
// Remove all spaces
s = strings.ReplaceAll(s, " ", "")
version := make([]uint64, len(parts)-1)
for i := 1; i < len(parts); i++ {
version[i-1], _ = strconv.ParseUint(parts[i], 10, 32)
}
if isLess(latestVersion, version) {
latestVersion = version
latestDir = file.Name
}
// Lowercase the first letter
if len(s) > 0 {
s = strings.ToLower(s[:1]) + s[1:]
}
return latestDir, nil
}
// getPublishedKind retrieves the latest published kind from the kind registry
func (registry *kindRegistry) getPublishedKind(name string, category string, latestRegistryDir string) (string, error) {
if latestRegistryDir == "" {
return "", nil
}
var cueFilePath string
switch category {
case "core":
cueFilePath = fmt.Sprintf("%s/%s.cue", name, name)
case "composable":
cueFilePath = fmt.Sprintf("%s.cue", name)
default:
return "", fmt.Errorf("kind can only be core or composable")
}
kindPath := filepath.Join(latestRegistryDir, category, cueFilePath)
file, err := registry.zipFile.Open(kindPath)
if err != nil {
return "", fmt.Errorf("failed to open file: %w", err)
}
defer file.Close()
data, err := io.ReadAll(file)
if err != nil {
return "", fmt.Errorf("failed to read file: %w", err)
}
return string(data), nil
return s
}

View File

@@ -4,6 +4,7 @@ on:
- cron: '30 1 * * *'
permissions:
issues: write
pull-requests: write
jobs:
@@ -13,24 +14,29 @@ jobs:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# Number of days of inactivity before a stale Issue or Pull Request is closed.
# Set to -1 to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
days-before-close: 14
# Number of days of inactivity before an Issue or Pull Request becomes stale
days-before-stale: 30
# We don't want any Issues to be marked as stale for now.
days-before-issue-stale: -1
exempt-issue-labels: no stalebot
exempt-pr-labels: no stalebot
operations-per-run: 500
operations-per-run: 750
# start from the oldest issues/PRs when performing stale operations
ascending: true
days-before-issue-stale: 365
days-before-issue-close: 30
stale-issue-label: stale
exempt-issue-labels: no stalebot,type/epic
stale-issue-message: >
This issue has been automatically marked as stale because it has not had
activity in the last year. It will be closed in 30 days if no further activity occurs. Please
feel free to leave a comment if you believe the issue is still relevant.
Thank you for your contributions!
close-issue-message: >
This issue has been automatically closed because it has not had any further
activity in the last 30 days. Thank you for your contributions!
days-before-pr-stale: 30
days-before-pr-close: 14
stale-pr-label: stale
exempt-pr-labels: no stalebot
stale-pr-message: >
This pull request has been automatically marked as stale because it has not had
activity in the last 30 days. It will be closed in 2 weeks if no further activity occurs. Please
feel free to give a status update now, ping for review, or re-open when it's ready.
Thank you for your contributions!
feel free to give a status update or ping for review. Thank you for your contributions!
close-pr-message: >
This pull request has been automatically closed because it has not had
activity in the last 2 weeks. Please feel free to give a status update now, ping for review, or re-open when it's ready.
Thank you for your contributions!
This pull request has been automatically closed because it has not had any further
activity in the last 2 weeks. Thank you for your contributions!

View File

@@ -1,4 +1,4 @@
# Owned by grafana-delivery-squad
# Owned by grafana-release-guild
# Intended to be dropped into the base repo, Ex: grafana/grafana
name: Sync to mirror
run-name: sync-to-mirror-${{ github.ref_name }}

View File

@@ -12,8 +12,8 @@ jobs:
- uses: grafana/writers-toolkit/update-make-docs@update-make-docs/v1
with:
pr_options: >
--label 'backport v10.0.x'
--label 'backport v10.1.x'
--label 'backport v10.2.x'
--label 'backport v10.3.x'
--label no-changelog
--label type/docs

View File

@@ -4,7 +4,7 @@ on:
pull_request:
branches: [ main ]
paths:
- '**/*.cue'
- '**/*.cue'
jobs:
main:
@@ -18,10 +18,9 @@ jobs:
- name: "Setup Go"
uses: "actions/setup-go@v4"
with:
go-version: '1.21.5'
go-version-file: go.mod
- name: "Verify kinds"
run: go run .github/workflows/scripts/kinds/verify-kinds.go
env:
CODEGEN_VERIFY: 1
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

17
.gitignore vendored
View File

@@ -24,9 +24,6 @@ __debug_bin*
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
# we temporarily commit this file because yarn downloading it
# somehow produces different checksum values
!.yarn/cache/pa11y-ci-https-1e9675e9e1-668c9119bd.zip
.pnp.*
# Enterprise emails
@@ -134,9 +131,7 @@ pkg/services/quota/quotaimpl/storage/storage.json
/devenv/bulk-dashboards/*.json
/devenv/bulk-folders/*/*.json
/devenv/bulk_alerting_dashboards/*.json
/devenv/datasources_bulk.yaml
/devenv/bulk_alerting_dashboards/bulk_alerting_datasources.yaml
/scripts/build/release_publisher/release_publisher
*.patch
@@ -174,6 +169,11 @@ compilation-stats.json
/e2e/build_results.zip
/e2e/extensions
/e2e/extensions-suite
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
/playwright/.auth/
# grafana server
/scripts/grafana-server/server.log
@@ -202,6 +202,7 @@ public/api-spec.json
deployment_tools_config.json
.betterer.cache
.nx
# Temporary file for backporting PRs
.pr-body.txt
@@ -212,3 +213,9 @@ public/app/plugins/**/dist/
# Ignore transpiled JavaScript resulting from the generate-transformations.ts script.
/public/app/features/transformers/docs/*.js
/scripts/docs/generate-transformations.js
# Go coverage files created with go test -cover -coverprogile=something.out ...
*.out
# Locally enabling the Go race detector until we can globally do so
.go-race-enabled-locally

View File

@@ -1,9 +1,6 @@
[run]
timeout = "10m"
[linters-settings.goconst]
min-len = 5
min-occurrences = 5
concurrency = 10
[linters-settings.exhaustive]
default-signifies-exhaustive = true
@@ -21,6 +18,7 @@ deny = [
{ pkg = "github.com/pkg/errors", desc = "Deprecated: Go 1.13 supports the functionality provided by pkg/errors in the standard library." },
{ pkg = "github.com/xorcare/pointer", desc = "Use pkg/util.Pointer instead, which is a generic one-liner alternative" },
{ pkg = "github.com/gofrs/uuid", desc = "Use github.com/google/uuid instead, which we already depend on." },
{ pkg = "github.com/bmizerany/assert", desc = "Use github.com/stretchr/testify/assert instead, which we already depend on." },
]
[linters-settings.depguard.rules.coreplugins]
@@ -55,12 +53,67 @@ deny = [
{ pkg = "github.com/grafana/grafana/pkg/tsdb/intervalv2", desc = "Core plugins are not allowed to depend on Grafana core packages" },
]
files = [
"**/pkg/tsdb/grafana-pyroscope-datasource/*",
"**/pkg/tsdb/grafana-pyroscope-datasource/**/*",
"**/pkg/tsdb/grafana-testdata-datasource/*",
"**/pkg/tsdb/grafana-testdata-datasource/**/*",
"**/pkg/tsdb/azuremonitor/*",
"**/pkg/tsdb/azuremonitor/**/*",
"**/pkg/tsdb/cloud-monitoring/*",
"**/pkg/tsdb/cloud-monitoring/**/*",
"**/pkg/tsdb/mysql/*",
"**/pkg/tsdb/mysql/**/*",
"**/pkg/tsdb/parca/*",
"**/pkg/tsdb/parca/**/*",
"**/pkg/tsdb/tempo/*",
"**/pkg/tsdb/tempo/**/*",
"**/pkg/tsdb/cloudwatch/*",
"**/pkg/tsdb/cloudwatch/**/*",
]
[linters-settings.depguard.rules.apiserver]
list-mode = "lax"
allow = [
"github.com/grafana/grafana/pkg/apimachinery",
"github.com/grafana/grafana/pkg/apiserver",
"github.com/grafana/grafana/pkg/services/apiserver/utils",
"github.com/grafana/grafana/pkg/services/featuremgmt",
"github.com/grafana/grafana/pkg/infra/kvstore",
"github.com/grafana/grafana/pkg/services/apiserver/options",
"github.com/grafana/grafana/pkg/apis/playlist/v0alpha1",
]
deny = [
{ pkg = "github.com/grafana/grafana/pkg", desc = "apiserver is not allowed to import grafana core" }
]
files = [
"**/pkg/apiserver/*",
"**/pkg/apiserver/**/*"
]
[linters-settings.depguard.rules.apimachinery]
list-mode = "lax"
allow = [
"github.com/grafana/grafana/pkg/apimachinery",
]
deny = [
{ pkg = "github.com/grafana/grafana/pkg", desc = "apimachinery is not allowed to import grafana core" }
]
files = [
"**/pkg/apimachinery/*",
"**/pkg/apimachinery/**/*"
]
[linters-settings.depguard.rules.promlib]
list-mode = "lax" # allow unless explicitely denied
deny = [
{ pkg = "github.com/grafana/grafana/pkg", desc = "promlib is not allowed to import grafana core" }
]
allow = [
"github.com/grafana/grafana/pkg/promlib"
]
files = [
"**/pkg/promlib/*",
"**/pkg/promlib/**/*"
]
[linters-settings.gocritic]
@@ -68,6 +121,9 @@ enabled-checks = ["ruleguard"]
[linters-settings.gocritic.settings.ruleguard]
rules = "pkg/ruleguard.rules.go"
[linters-settings.misspell]
ignore-words = ["Unknwon", "Creater"]
[linters-settings.nakedret]
max-func-lines = 60
@@ -79,7 +135,7 @@ enable = [
"dogsled",
"errcheck",
# "gochecknoinits",
"goconst",
# "goconst",
# "gocritic", # Temporarily disabled on 2022-09-09, running into weird bug "ruleguard: execution error: used Run() with an empty rule set; forgot to call Load() first?"
"goimports",
"goprintffuncname",
@@ -110,6 +166,7 @@ enable = [
[issues]
exclude-use-default = false
max-same-issues = 0
# Enable when appropriate
# Poorly chosen identifier
@@ -135,6 +192,13 @@ text = "SA1019: http.CloseNotifier"
linters = ["staticcheck"]
text = "SA1019: strings.Title"
# go.opentelemetry.io/otel/exporters/jaeger" is deprecated: This module is no longer supported. OpenTelemetry dropped support for Jaeger exporter in July 2023.
# Jaeger officially accepts and recommends using OTLP.
# Use [go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp] or [go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc] instead.
[[issues.exclude-rules]]
linters = ["staticcheck"]
text = "SA1019: \"go.opentelemetry.io/otel/exporters/jaeger\""
[[issues.exclude-rules]]
linters = ["staticcheck"]
text = "use fake service and real access control evaluator instead"
@@ -175,10 +239,6 @@ text = "501"
linters = ["gosec"]
text = "404"
[[issues.exclude-rules]]
linters = ["misspell"]
text = "Unknwon` is a misspelling of `Unknown"
[[issues.exclude-rules]]
linters = ["errorlint"]
text = "non-wrapping format verb for fmt.Errorf"
@@ -197,3 +257,10 @@ text = "ST1020"
[[issues.exclude-rules]]
linters = ["stylecheck"]
text = "ST1021"
# Remove this when we have go v1.22 in place
# https://stackoverflow.com/a/68247837/767660
[[issues.exclude-rules]]
linters = ["gosec"]
path = '(.+)_test\.go'
text = "G601"

View File

@@ -34,7 +34,7 @@ var dashboardSettings = [
wait: 500,
rootElement: '.main-view',
// TODO: improve the accessibility of the permission tab https://github.com/grafana/grafana/issues/77203
threshold: 11,
threshold: 5,
},
{
url: '${HOST}/d/O6f11TZWk/panel-tests-bar-gauge?orgId=1&editview=dashboard_json',
@@ -64,7 +64,7 @@ var config = {
url: '${HOST}/login',
wait: 500,
rootElement: '.main-view',
threshold: 13,
threshold: 0,
},
{
url: '${HOST}/login',
@@ -76,13 +76,13 @@ var config = {
"click element button[data-testid='data-testid Login button']",
"wait for element button[data-testid='data-testid Skip change password button'] to be visible",
],
threshold: 15,
threshold: 2,
rootElement: '.main-view',
},
{
url: '${HOST}/?orgId=1',
wait: 500,
threshold: 3,
threshold: 0,
},
{
url: '${HOST}/d/O6f11TZWk/panel-tests-bar-gauge',
@@ -95,7 +95,7 @@ var config = {
url: '${HOST}/?orgId=1&search=open',
wait: 500,
rootElement: '.main-view',
threshold: 3,
threshold: 0,
},
{
url: '${HOST}/alerting/list',
@@ -103,49 +103,49 @@ var config = {
rootElement: '.main-view',
// the unified alerting promotion alert's content contrast is too low
// see https://github.com/grafana/grafana/pull/41829
threshold: 6,
threshold: 7,
},
{
url: '${HOST}/datasources',
wait: 500,
rootElement: '.main-view',
threshold: 3,
threshold: 0,
},
{
url: '${HOST}/org/users',
wait: 500,
rootElement: '.main-view',
threshold: 1,
threshold: 0,
},
{
url: '${HOST}/org/teams',
wait: 500,
rootElement: '.main-view',
threshold: 1,
threshold: 0,
},
{
url: '${HOST}/plugins',
wait: 500,
rootElement: '.main-view',
threshold: 3,
threshold: 0,
},
{
url: '${HOST}/org',
wait: 500,
rootElement: '.main-view',
threshold: 1,
threshold: 0,
},
{
url: '${HOST}/org/apikeys',
wait: 500,
rootElement: '.main-view',
threshold: 4,
threshold: 2,
},
{
url: '${HOST}/dashboards',
wait: 500,
rootElement: '.main-view',
threshold: 1,
threshold: 0,
},
],
};

View File

@@ -12,16 +12,13 @@ node_modules
pkg
public/lib/monaco
public/sass/*.generated.scss
scripts/cli/bettererIssueTemplate.md
scripts/grafana-server/tmp
vendor
# TS generate from cue by cuetsy
**/*.gen.ts
# Auto-generated internationalization files
public/locales/_build/
public/locales/**/*.js
# Auto-generated theme files
theme.light.generated.json
theme.dark.generated.json
@@ -31,10 +28,5 @@ public/api-merged.json
public/api-enterprise-spec.json
public/openapi3.json
# Generated Kinds report
kinds/report.json
# Generated schema docs
docs/sources/developers/kinds/
scripts/cli/bettererIssueTemplate.md
# Crowdin files
public/locales/**/*.json

47
.vscode/launch.json vendored
View File

@@ -12,14 +12,51 @@
"args": ["server", "--homepath", "${workspaceFolder}", "--packaging", "dev"]
},
{
"name": "Run API Server (k8s)",
"name": "Run API Server (testdata)",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/pkg/cmd/grafana/",
"env": {},
"cwd": "${workspaceFolder}",
"args": ["apiserver", "example.grafana.app"]
"args": ["apiserver", "--secure-port=8443", "--runtime-config=testdata.datasource.grafana.app/v0alpha1=true"]
},
{
"name": "Run API Server (query-localhost)",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/pkg/cmd/grafana/",
"env": {},
"cwd": "${workspaceFolder}",
"args": [
"apiserver",
"--secure-port=8443",
"--runtime-config=query.grafana.app/v0alpha1=true",
"--grafana.authn.signing-keys-url=http://localhost:3000/api/signing-keys/keys",
"--hg-url=http://localhost:3000",
"--hg-key=$HGAPIKEY"
]
},
{
"name": "Run Server (query GRPC Storage Server)",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/pkg/cmd/grafana/",
"env": {"GF_GRAFANA_APISERVER_STORAGE_TYPE": "unified-grpc"},
"cwd": "${workspaceFolder}",
"args": ["server", "--homepath", "${workspaceFolder}", "--packaging", "dev"]
},
{
"name": "Run Storage Server",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/pkg/cmd/grafana/",
"env": {"GF_DEFAULT_TARGET": "storage-server","GF_SERVER_HTTP_PORT": "3001"},
"cwd": "${workspaceFolder}",
"args": ["server", "target", "--homepath", "${workspaceFolder}", "--packaging", "dev"]
},
{
"name": "Attach to Chrome",
@@ -29,14 +66,16 @@
"webRoot": "${workspaceFolder}"
},
{
"name": "Debug Jest test",
"name": "Debug UI test",
"type": "node",
"request": "launch",
"runtimeExecutable": "yarn",
"runtimeArgs": ["run", "jest", "--runInBand", "${file}"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"port": 9229
"env": {
"NODE_ENV": "test"
}
},
{
"name": "Debug Go test",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,121 @@
diff --git a/build/GridItem.js b/build/GridItem.js
index 0a700da9f1180ca532e32e04dc7ea50f2e67b96c..a2e4673fa1133aeaa4018cc01312ca386c3395f5 100644
--- a/build/GridItem.js
+++ b/build/GridItem.js
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
+var _reactDOM = require("react-dom");
var _propTypes = _interopRequireDefault(require("prop-types"));
var _reactDraggable = require("react-draggable");
var _reactResizable = require("react-resizable");
@@ -147,8 +148,10 @@ class GridItem extends _react.default.Component /*:: <Props, State>*/{
const pTop = parentRect.top / transformScale;
newPosition.left = cLeft - pLeft + offsetParent.scrollLeft;
newPosition.top = cTop - pTop + offsetParent.scrollTop;
- this.setState({
- dragging: newPosition
+ _reactDOM.flushSync(() => {
+ this.setState({
+ dragging: newPosition
+ });
});
// Call callback with this data
@@ -213,8 +216,10 @@ class GridItem extends _react.default.Component /*:: <Props, State>*/{
top,
left
};
- this.setState({
- dragging: newPosition
+ _reactDOM.flushSync(() => {
+ this.setState({
+ dragging: newPosition
+ });
});
// Call callback with this data
@@ -261,8 +266,10 @@ class GridItem extends _react.default.Component /*:: <Props, State>*/{
top,
left
};
- this.setState({
- dragging: null
+ _reactDOM.flushSync(() => {
+ this.setState({
+ dragging: null
+ });
});
const {
x,
@@ -485,8 +492,10 @@ class GridItem extends _react.default.Component /*:: <Props, State>*/{
let updatedSize = size;
if (node) {
updatedSize = (0, _utils.resizeItemInDirection)(handle, position, size, containerWidth);
- this.setState({
- resizing: handlerName === "onResizeStop" ? null : updatedSize
+ _reactDOM.flushSync(() => {
+ this.setState({
+ resizing: handlerName === "onResizeStop" ? null : updatedSize
+ });
});
}
diff --git a/lib/GridItem.jsx b/lib/GridItem.jsx
index dbe41f92388f19d3e476690fa0ee5584ab9d5bb4..1e4713667cd7dadd6618fe06176804a02ee3ccc2 100644
--- a/lib/GridItem.jsx
+++ b/lib/GridItem.jsx
@@ -1,5 +1,6 @@
// @flow
import React from "react";
+import { flushSync } from "react-dom";
import PropTypes from "prop-types";
import { DraggableCore } from "react-draggable";
import { Resizable } from "react-resizable";
@@ -459,7 +460,9 @@ export default class GridItem extends React.Component<Props, State> {
const pTop = parentRect.top / transformScale;
newPosition.left = cLeft - pLeft + offsetParent.scrollLeft;
newPosition.top = cTop - pTop + offsetParent.scrollTop;
- this.setState({ dragging: newPosition });
+ flushSync(() => {
+ this.setState({ dragging: newPosition });
+ });
// Call callback with this data
const { x, y } = calcXY(
@@ -516,7 +519,9 @@ export default class GridItem extends React.Component<Props, State> {
}
const newPosition: PartialPosition = { top, left };
- this.setState({ dragging: newPosition });
+ flushSync(() => {
+ this.setState({ dragging: newPosition });
+ });
// Call callback with this data
const { containerPadding } = this.props;
@@ -549,7 +554,9 @@ export default class GridItem extends React.Component<Props, State> {
const { w, h, i, containerPadding } = this.props;
const { left, top } = this.state.dragging;
const newPosition: PartialPosition = { top, left };
- this.setState({ dragging: null });
+ flushSync(() => {
+ this.setState({ dragging: null });
+ });
const { x, y } = calcXY(
this.getPositionParams(),
@@ -605,8 +612,10 @@ export default class GridItem extends React.Component<Props, State> {
size,
containerWidth
);
- this.setState({
- resizing: handlerName === "onResizeStop" ? null : updatedSize
+ flushSync(() => {
+ this.setState({
+ resizing: handlerName === "onResizeStop" ? null : updatedSize
+ });
});
}

File diff suppressed because one or more lines are too long

894
.yarn/releases/yarn-4.2.2.cjs vendored Executable file

File diff suppressed because one or more lines are too long

View File

@@ -1,20 +0,0 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);
const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require eslint/bin/eslint.js
require(absPnpApiPath).setup();
}
}
// Defer to the real eslint/bin/eslint.js your application uses
module.exports = absRequire(`eslint/bin/eslint.js`);

View File

@@ -1,20 +0,0 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);
const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require eslint
require(absPnpApiPath).setup();
}
}
// Defer to the real eslint your application uses
module.exports = absRequire(`eslint`);

View File

@@ -1,14 +0,0 @@
{
"name": "eslint",
"version": "8.52.0-sdk",
"main": "./lib/api.js",
"type": "commonjs",
"bin": {
"eslint": "./bin/eslint.js"
},
"exports": {
"./package.json": "./package.json",
".": "./lib/api.js",
"./use-at-your-own-risk": "./lib/unsupported-api.js"
}
}

View File

@@ -1,6 +0,0 @@
# This file is automatically generated by @yarnpkg/sdks.
# Manual changes might be lost!
integrations:
- vscode
- vim

View File

@@ -1,7 +0,0 @@
{
"name": "prettier",
"version": "3.0.0-sdk",
"main": "./index.cjs",
"type": "commonjs",
"bin": "./bin/prettier.cjs"
}

View File

@@ -1,20 +0,0 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);
const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/bin/tsc
require(absPnpApiPath).setup();
}
}
// Defer to the real typescript/bin/tsc your application uses
module.exports = absRequire(`typescript/bin/tsc`);

View File

@@ -1,20 +0,0 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);
const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/bin/tsserver
require(absPnpApiPath).setup();
}
}
// Defer to the real typescript/bin/tsserver your application uses
module.exports = absRequire(`typescript/bin/tsserver`);

View File

@@ -1,20 +0,0 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);
const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/lib/tsc.js
require(absPnpApiPath).setup();
}
}
// Defer to the real typescript/lib/tsc.js your application uses
module.exports = absRequire(`typescript/lib/tsc.js`);

View File

@@ -1,225 +0,0 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);
const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
const moduleWrapper = tsserver => {
if (!process.versions.pnp) {
return tsserver;
}
const {isAbsolute} = require(`path`);
const pnpApi = require(`pnpapi`);
const isVirtual = str => str.match(/\/(\$\$virtual|__virtual__)\//);
const isPortal = str => str.startsWith("portal:/");
const normalize = str => str.replace(/\\/g, `/`).replace(/^\/?/, `/`);
const dependencyTreeRoots = new Set(pnpApi.getDependencyTreeRoots().map(locator => {
return `${locator.name}@${locator.reference}`;
}));
// VSCode sends the zip paths to TS using the "zip://" prefix, that TS
// doesn't understand. This layer makes sure to remove the protocol
// before forwarding it to TS, and to add it back on all returned paths.
function toEditorPath(str) {
// We add the `zip:` prefix to both `.zip/` paths and virtual paths
if (isAbsolute(str) && !str.match(/^\^?(zip:|\/zip\/)/) && (str.match(/\.zip\//) || isVirtual(str))) {
// We also take the opportunity to turn virtual paths into physical ones;
// this makes it much easier to work with workspaces that list peer
// dependencies, since otherwise Ctrl+Click would bring us to the virtual
// file instances instead of the real ones.
//
// We only do this to modules owned by the the dependency tree roots.
// This avoids breaking the resolution when jumping inside a vendor
// with peer dep (otherwise jumping into react-dom would show resolution
// errors on react).
//
const resolved = isVirtual(str) ? pnpApi.resolveVirtual(str) : str;
if (resolved) {
const locator = pnpApi.findPackageLocator(resolved);
if (locator && (dependencyTreeRoots.has(`${locator.name}@${locator.reference}`) || isPortal(locator.reference))) {
str = resolved;
}
}
str = normalize(str);
if (str.match(/\.zip\//)) {
switch (hostInfo) {
// Absolute VSCode `Uri.fsPath`s need to start with a slash.
// VSCode only adds it automatically for supported schemes,
// so we have to do it manually for the `zip` scheme.
// The path needs to start with a caret otherwise VSCode doesn't handle the protocol
//
// Ref: https://github.com/microsoft/vscode/issues/105014#issuecomment-686760910
//
// 2021-10-08: VSCode changed the format in 1.61.
// Before | ^zip:/c:/foo/bar.zip/package.json
// After | ^/zip//c:/foo/bar.zip/package.json
//
// 2022-04-06: VSCode changed the format in 1.66.
// Before | ^/zip//c:/foo/bar.zip/package.json
// After | ^/zip/c:/foo/bar.zip/package.json
//
// 2022-05-06: VSCode changed the format in 1.68
// Before | ^/zip/c:/foo/bar.zip/package.json
// After | ^/zip//c:/foo/bar.zip/package.json
//
case `vscode <1.61`: {
str = `^zip:${str}`;
} break;
case `vscode <1.66`: {
str = `^/zip/${str}`;
} break;
case `vscode <1.68`: {
str = `^/zip${str}`;
} break;
case `vscode`: {
str = `^/zip/${str}`;
} break;
// To make "go to definition" work,
// We have to resolve the actual file system path from virtual path
// and convert scheme to supported by [vim-rzip](https://github.com/lbrayner/vim-rzip)
case `coc-nvim`: {
str = normalize(resolved).replace(/\.zip\//, `.zip::`);
str = resolve(`zipfile:${str}`);
} break;
// Support neovim native LSP and [typescript-language-server](https://github.com/theia-ide/typescript-language-server)
// We have to resolve the actual file system path from virtual path,
// everything else is up to neovim
case `neovim`: {
str = normalize(resolved).replace(/\.zip\//, `.zip::`);
str = `zipfile://${str}`;
} break;
default: {
str = `zip:${str}`;
} break;
}
} else {
str = str.replace(/^\/?/, process.platform === `win32` ? `` : `/`);
}
}
return str;
}
function fromEditorPath(str) {
switch (hostInfo) {
case `coc-nvim`: {
str = str.replace(/\.zip::/, `.zip/`);
// The path for coc-nvim is in format of /<pwd>/zipfile:/<pwd>/.yarn/...
// So in order to convert it back, we use .* to match all the thing
// before `zipfile:`
return process.platform === `win32`
? str.replace(/^.*zipfile:\//, ``)
: str.replace(/^.*zipfile:/, ``);
} break;
case `neovim`: {
str = str.replace(/\.zip::/, `.zip/`);
// The path for neovim is in format of zipfile:///<pwd>/.yarn/...
return str.replace(/^zipfile:\/\//, ``);
} break;
case `vscode`:
default: {
return str.replace(/^\^?(zip:|\/zip(\/ts-nul-authority)?)\/+/, process.platform === `win32` ? `` : `/`)
} break;
}
}
// Force enable 'allowLocalPluginLoads'
// TypeScript tries to resolve plugins using a path relative to itself
// which doesn't work when using the global cache
// https://github.com/microsoft/TypeScript/blob/1b57a0395e0bff191581c9606aab92832001de62/src/server/project.ts#L2238
// VSCode doesn't want to enable 'allowLocalPluginLoads' due to security concerns but
// TypeScript already does local loads and if this code is running the user trusts the workspace
// https://github.com/microsoft/vscode/issues/45856
const ConfiguredProject = tsserver.server.ConfiguredProject;
const {enablePluginsWithOptions: originalEnablePluginsWithOptions} = ConfiguredProject.prototype;
ConfiguredProject.prototype.enablePluginsWithOptions = function() {
this.projectService.allowLocalPluginLoads = true;
return originalEnablePluginsWithOptions.apply(this, arguments);
};
// And here is the point where we hijack the VSCode <-> TS communications
// by adding ourselves in the middle. We locate everything that looks
// like an absolute path of ours and normalize it.
const Session = tsserver.server.Session;
const {onMessage: originalOnMessage, send: originalSend} = Session.prototype;
let hostInfo = `unknown`;
Object.assign(Session.prototype, {
onMessage(/** @type {string | object} */ message) {
const isStringMessage = typeof message === 'string';
const parsedMessage = isStringMessage ? JSON.parse(message) : message;
if (
parsedMessage != null &&
typeof parsedMessage === `object` &&
parsedMessage.arguments &&
typeof parsedMessage.arguments.hostInfo === `string`
) {
hostInfo = parsedMessage.arguments.hostInfo;
if (hostInfo === `vscode` && process.env.VSCODE_IPC_HOOK) {
const [, major, minor] = (process.env.VSCODE_IPC_HOOK.match(
// The RegExp from https://semver.org/ but without the caret at the start
/(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
) ?? []).map(Number)
if (major === 1) {
if (minor < 61) {
hostInfo += ` <1.61`;
} else if (minor < 66) {
hostInfo += ` <1.66`;
} else if (minor < 68) {
hostInfo += ` <1.68`;
}
}
}
}
const processedMessageJSON = JSON.stringify(parsedMessage, (key, value) => {
return typeof value === 'string' ? fromEditorPath(value) : value;
});
return originalOnMessage.call(
this,
isStringMessage ? processedMessageJSON : JSON.parse(processedMessageJSON)
);
},
send(/** @type {any} */ msg) {
return originalSend.call(this, JSON.parse(JSON.stringify(msg, (key, value) => {
return typeof value === `string` ? toEditorPath(value) : value;
})));
}
});
return tsserver;
};
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/lib/tsserver.js
require(absPnpApiPath).setup();
}
}
// Defer to the real typescript/lib/tsserver.js your application uses
module.exports = moduleWrapper(absRequire(`typescript/lib/tsserver.js`));

View File

@@ -1,225 +0,0 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);
const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
const moduleWrapper = tsserver => {
if (!process.versions.pnp) {
return tsserver;
}
const {isAbsolute} = require(`path`);
const pnpApi = require(`pnpapi`);
const isVirtual = str => str.match(/\/(\$\$virtual|__virtual__)\//);
const isPortal = str => str.startsWith("portal:/");
const normalize = str => str.replace(/\\/g, `/`).replace(/^\/?/, `/`);
const dependencyTreeRoots = new Set(pnpApi.getDependencyTreeRoots().map(locator => {
return `${locator.name}@${locator.reference}`;
}));
// VSCode sends the zip paths to TS using the "zip://" prefix, that TS
// doesn't understand. This layer makes sure to remove the protocol
// before forwarding it to TS, and to add it back on all returned paths.
function toEditorPath(str) {
// We add the `zip:` prefix to both `.zip/` paths and virtual paths
if (isAbsolute(str) && !str.match(/^\^?(zip:|\/zip\/)/) && (str.match(/\.zip\//) || isVirtual(str))) {
// We also take the opportunity to turn virtual paths into physical ones;
// this makes it much easier to work with workspaces that list peer
// dependencies, since otherwise Ctrl+Click would bring us to the virtual
// file instances instead of the real ones.
//
// We only do this to modules owned by the the dependency tree roots.
// This avoids breaking the resolution when jumping inside a vendor
// with peer dep (otherwise jumping into react-dom would show resolution
// errors on react).
//
const resolved = isVirtual(str) ? pnpApi.resolveVirtual(str) : str;
if (resolved) {
const locator = pnpApi.findPackageLocator(resolved);
if (locator && (dependencyTreeRoots.has(`${locator.name}@${locator.reference}`) || isPortal(locator.reference))) {
str = resolved;
}
}
str = normalize(str);
if (str.match(/\.zip\//)) {
switch (hostInfo) {
// Absolute VSCode `Uri.fsPath`s need to start with a slash.
// VSCode only adds it automatically for supported schemes,
// so we have to do it manually for the `zip` scheme.
// The path needs to start with a caret otherwise VSCode doesn't handle the protocol
//
// Ref: https://github.com/microsoft/vscode/issues/105014#issuecomment-686760910
//
// 2021-10-08: VSCode changed the format in 1.61.
// Before | ^zip:/c:/foo/bar.zip/package.json
// After | ^/zip//c:/foo/bar.zip/package.json
//
// 2022-04-06: VSCode changed the format in 1.66.
// Before | ^/zip//c:/foo/bar.zip/package.json
// After | ^/zip/c:/foo/bar.zip/package.json
//
// 2022-05-06: VSCode changed the format in 1.68
// Before | ^/zip/c:/foo/bar.zip/package.json
// After | ^/zip//c:/foo/bar.zip/package.json
//
case `vscode <1.61`: {
str = `^zip:${str}`;
} break;
case `vscode <1.66`: {
str = `^/zip/${str}`;
} break;
case `vscode <1.68`: {
str = `^/zip${str}`;
} break;
case `vscode`: {
str = `^/zip/${str}`;
} break;
// To make "go to definition" work,
// We have to resolve the actual file system path from virtual path
// and convert scheme to supported by [vim-rzip](https://github.com/lbrayner/vim-rzip)
case `coc-nvim`: {
str = normalize(resolved).replace(/\.zip\//, `.zip::`);
str = resolve(`zipfile:${str}`);
} break;
// Support neovim native LSP and [typescript-language-server](https://github.com/theia-ide/typescript-language-server)
// We have to resolve the actual file system path from virtual path,
// everything else is up to neovim
case `neovim`: {
str = normalize(resolved).replace(/\.zip\//, `.zip::`);
str = `zipfile://${str}`;
} break;
default: {
str = `zip:${str}`;
} break;
}
} else {
str = str.replace(/^\/?/, process.platform === `win32` ? `` : `/`);
}
}
return str;
}
function fromEditorPath(str) {
switch (hostInfo) {
case `coc-nvim`: {
str = str.replace(/\.zip::/, `.zip/`);
// The path for coc-nvim is in format of /<pwd>/zipfile:/<pwd>/.yarn/...
// So in order to convert it back, we use .* to match all the thing
// before `zipfile:`
return process.platform === `win32`
? str.replace(/^.*zipfile:\//, ``)
: str.replace(/^.*zipfile:/, ``);
} break;
case `neovim`: {
str = str.replace(/\.zip::/, `.zip/`);
// The path for neovim is in format of zipfile:///<pwd>/.yarn/...
return str.replace(/^zipfile:\/\//, ``);
} break;
case `vscode`:
default: {
return str.replace(/^\^?(zip:|\/zip(\/ts-nul-authority)?)\/+/, process.platform === `win32` ? `` : `/`)
} break;
}
}
// Force enable 'allowLocalPluginLoads'
// TypeScript tries to resolve plugins using a path relative to itself
// which doesn't work when using the global cache
// https://github.com/microsoft/TypeScript/blob/1b57a0395e0bff191581c9606aab92832001de62/src/server/project.ts#L2238
// VSCode doesn't want to enable 'allowLocalPluginLoads' due to security concerns but
// TypeScript already does local loads and if this code is running the user trusts the workspace
// https://github.com/microsoft/vscode/issues/45856
const ConfiguredProject = tsserver.server.ConfiguredProject;
const {enablePluginsWithOptions: originalEnablePluginsWithOptions} = ConfiguredProject.prototype;
ConfiguredProject.prototype.enablePluginsWithOptions = function() {
this.projectService.allowLocalPluginLoads = true;
return originalEnablePluginsWithOptions.apply(this, arguments);
};
// And here is the point where we hijack the VSCode <-> TS communications
// by adding ourselves in the middle. We locate everything that looks
// like an absolute path of ours and normalize it.
const Session = tsserver.server.Session;
const {onMessage: originalOnMessage, send: originalSend} = Session.prototype;
let hostInfo = `unknown`;
Object.assign(Session.prototype, {
onMessage(/** @type {string | object} */ message) {
const isStringMessage = typeof message === 'string';
const parsedMessage = isStringMessage ? JSON.parse(message) : message;
if (
parsedMessage != null &&
typeof parsedMessage === `object` &&
parsedMessage.arguments &&
typeof parsedMessage.arguments.hostInfo === `string`
) {
hostInfo = parsedMessage.arguments.hostInfo;
if (hostInfo === `vscode` && process.env.VSCODE_IPC_HOOK) {
const [, major, minor] = (process.env.VSCODE_IPC_HOOK.match(
// The RegExp from https://semver.org/ but without the caret at the start
/(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
) ?? []).map(Number)
if (major === 1) {
if (minor < 61) {
hostInfo += ` <1.61`;
} else if (minor < 66) {
hostInfo += ` <1.66`;
} else if (minor < 68) {
hostInfo += ` <1.68`;
}
}
}
}
const processedMessageJSON = JSON.stringify(parsedMessage, (key, value) => {
return typeof value === 'string' ? fromEditorPath(value) : value;
});
return originalOnMessage.call(
this,
isStringMessage ? processedMessageJSON : JSON.parse(processedMessageJSON)
);
},
send(/** @type {any} */ msg) {
return originalSend.call(this, JSON.parse(JSON.stringify(msg, (key, value) => {
return typeof value === `string` ? toEditorPath(value) : value;
})));
}
});
return tsserver;
};
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/lib/tsserverlibrary.js
require(absPnpApiPath).setup();
}
}
// Defer to the real typescript/lib/tsserverlibrary.js your application uses
module.exports = moduleWrapper(absRequire(`typescript/lib/tsserverlibrary.js`));

View File

@@ -1,20 +0,0 @@
#!/usr/bin/env node
const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);
const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript
require(absPnpApiPath).setup();
}
}
// Defer to the real typescript your application uses
module.exports = absRequire(`typescript`);

View File

@@ -1,10 +0,0 @@
{
"name": "typescript",
"version": "5.2.2-sdk",
"main": "./lib/typescript.js",
"type": "commonjs",
"bin": {
"tsc": "./bin/tsc",
"tsserver": "./bin/tsserver"
}
}

View File

@@ -4,12 +4,12 @@ enableGlobalCache: false
enableTelemetry: false
nodeLinker: pnp
nodeLinker: node-modules
packageExtensions:
"@storybook/core-common@7.4.5":
'croact-css-styled@1.1.9':
dependencies:
'@storybook/react-webpack5': 7.4.5
croact: 1.0.4
doctrine@3.0.0:
dependencies:
assert: 2.0.0
@@ -21,25 +21,16 @@ packageExtensions:
peerDependencies:
react: 17.0.1
react-dom: 17.0.1
react-compat-css-styled@1.0.8:
dependencies:
react-simple-compat: 1.2.2
react-icons@2.2.7:
peerDependencies:
prop-types: "*"
react-resizable@3.0.4:
peerDependencies:
react-dom: 17.0.1
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-outdated.cjs
spec: "https://mskelton.dev/yarn-outdated/v2"
spec: 'https://mskelton.dev/yarn-outdated/v2'
yarnPath: .yarn/releases/yarn-4.0.0.cjs
yarnPath: .yarn/releases/yarn-4.2.2.cjs
# Uncomment the following lines if you want to use Verdaccio local npm registry. Read more at packages/README.md
# npmScopes:
# grafana:
# npmRegistryServer: http://localhost:4873
# unsafeHttpWhitelist:
# - 'localhost'
#npmScopes:
# grafana:
# npmRegistryServer: http://localhost:4873
#
#unsafeHttpWhitelist:
# - 'localhost'

File diff suppressed because it is too large Load Diff

View File

@@ -1,9 +1,9 @@
# syntax=docker/dockerfile:1
ARG BASE_IMAGE=alpine:3.18.3
ARG JS_IMAGE=node:20-alpine3.18
ARG BASE_IMAGE=alpine:3.19.1
ARG JS_IMAGE=node:20-alpine
ARG JS_PLATFORM=linux/amd64
ARG GO_IMAGE=golang:1.21.5-alpine3.18
ARG GO_IMAGE=golang:1.22.4-alpine
ARG GO_SRC=go-builder
ARG JS_SRC=js-builder
@@ -14,16 +14,18 @@ ENV NODE_OPTIONS=--max_old_space_size=8000
WORKDIR /tmp/grafana
COPY package.json yarn.lock .yarnrc.yml ./
COPY package.json project.json nx.json yarn.lock .yarnrc.yml ./
COPY .yarn .yarn
COPY packages packages
COPY plugins-bundled plugins-bundled
COPY public public
COPY LICENSE ./
RUN apk add --no-cache make build-base python3
RUN yarn install --immutable
COPY tsconfig.json .eslintrc .editorconfig .browserslistrc .prettierrc.js babel.config.json ./
COPY public public
COPY tsconfig.json .eslintrc .editorconfig .browserslistrc .prettierrc.js ./
COPY scripts scripts
COPY emails emails
@@ -38,9 +40,12 @@ ARG GO_BUILD_TAGS="oss"
ARG WIRE_TAGS="oss"
ARG BINGO="true"
# Install build dependencies
RUN if grep -i -q alpine /etc/issue; then \
apk add --no-cache gcc g++ make git; \
apk add --no-cache \
# This is required to allow building on arm64 due to https://github.com/golang/go/issues/22040
binutils-gold \
# Install build dependencies
gcc g++ make git; \
fi
WORKDIR /tmp/grafana
@@ -50,6 +55,10 @@ COPY .bingo .bingo
# Include vendored dependencies
COPY pkg/util/xorm/go.* pkg/util/xorm/
COPY pkg/apiserver/go.* pkg/apiserver/
COPY pkg/apimachinery/go.* pkg/apimachinery/
COPY pkg/build/wire/go.* pkg/build/wire/
COPY pkg/promlib/go.* pkg/promlib/
RUN go mod download
RUN if [[ "$BINGO" = "true" ]]; then \
@@ -68,7 +77,6 @@ COPY pkg pkg
COPY scripts scripts
COPY conf conf
COPY .github .github
COPY LICENSE ./
ENV COMMIT_SHA=${COMMIT_SHA}
ENV BUILD_BRANCH=${BUILD_BRANCH}
@@ -170,7 +178,7 @@ RUN if [ ! $(getent group "$GF_GID") ]; then \
COPY --from=go-src /tmp/grafana/bin/grafana* /tmp/grafana/bin/*/grafana* ./bin/
COPY --from=js-src /tmp/grafana/public ./public
COPY --from=go-src /tmp/grafana/LICENSE ./
COPY --from=js-src /tmp/grafana/LICENSE ./
EXPOSE 3000

View File

@@ -173,7 +173,7 @@ Supermajority votes must be called explicitly in a separate thread on the approp
Votes may take the form of a single proposal, with the option to vote yes or no, or the form of multiple alternatives.
A vote on a single proposal is considered successful if at least two thirds of those eligible to vote vote in favor.
A vote on a single proposal is considered successful if at least two thirds of those eligible to vote in favor.
If there are multiple alternatives, members may vote for one or more alternatives, or vote “no” to object to all alternatives. A vote on multiple alternatives is considered decided in favor of one alternative if it has received the most votes in favor, and a vote from at least two thirds of those eligible to vote. Should no alternative reach this quorum, another vote on a reduced number of options may be called separately.

View File

@@ -2,4 +2,4 @@
List of previous team members that have had a big impact on the company or the product and contributed during a long period of time.
- Hugo Häggmark ([School of applied technology](https://salt.study))
- Hugo Häggmark ([Björn Lundén](https://www.bjornlunden.se/))

View File

@@ -1,364 +0,0 @@
# Triage issues
The main goal of issue triage is to categorize all incoming Grafana issues and make sure each issue has all basic information needed for anyone else to understand and be able to start working on it.
> **Note:** This information is for Grafana project Maintainers, Owners, and Admins. If you are a Contributor, then you will not be able to perform most of the tasks in this topic.
The core maintainers of the Grafana project are responsible for categorizing all incoming issues and delegating any critical or important issue to other maintainers. Currently one maintainer each week is responsible. Besides that part, triage provides an important way to contribute to an open source project.
Triage helps ensure issues resolve quickly by:
- Ensuring the issue's intent and purpose is conveyed precisely. This is necessary because it can be difficult for an issue to explain how an end user experiences a problem and what actions they took.
- Giving a contributor the information they need before they commit to resolving an issue.
- Lowering the issue count by preventing duplicate issues.
- Streamlining the development process by preventing duplicate discussions.
If you don't have the knowledge or time to code, consider helping with triage. The community will thank you for saving them time by spending some of yours.
## Simplified flowchart diagram of the issue triage process
<!-- https://textik.com/#610afa78553def29 -->
```
+-------------------+
| |
| new issue/ | +
| more info added |
| |
+---------|---------+
|
+-------------|-----------+
| |
NO +------- all info needed to ------+ YES
| | categorize the issue? | |
| | | |
| +-------------------------+ |
+------|-----------+ +------------|----------+
| | | |
| label: | | label: type/* |
| needs more info | | label: area/* |
| | | label: datasource/* |
+------------------+ | | |
+------------|----------+
|
+--------|-------+
| |
NO +---------- is duplicate? --------------------+ YES
| | | |
| +----------------+ |
| +----------------|---------------+
+------|-----+ | |
| | | add comment: |
NO +------------ can repro? ------------+ YES | |
| | | | | /duplicate of #<issue number> |
| +------------+ | | |
| | +--------------------------------+
+-------------|-------------+ |
| | +--------|---------+
| label: | | |
| triage/needs-confirmation | NO +-------- needs priority? ------+ YES
| | | | | |
+-------------|-------------+ | +------------------+ |
| | |
+-------------|------+ +-------|--------+ +----------|---------+
| | | | | |
| Assign to project ------ Done -------------- label: priority/* |
| | | | | |
+--------------------+ +----------------+ +--------------------+
```
## 1. Find uncategorized issues
To get started with issue triage and finding issues that haven't been triaged you have two alternatives.
### Browse unlabeled issues
The easiest and straight forward way of getting started and finding issues that haven't been triaged is to browse [unlabeled issues](https://github.com/grafana/grafana/issues?q=is%3Aopen+is%3Aissue+no%3Alabel) and starting from the bottom and working yourself to the top.
### Subscribe to all notifications
The more advanced, but recommended way is to subscribe to all notifications from this repository which means that all new issues, pull requests, comments and important status changes are sent to your configured email address. Read this [guide](https://help.github.com/en/articles/watching-and-unwatching-repositories#watching-a-single-repository) for help with setting this up.
It's highly recommended that you setup filters to automatically remove emails from the inbox and label/categorize them accordingly to make it easy for you to understand when you need to act upon a notification or where to look for finding issues that haven't been triaged etc.
Instructions for setting up filters in Gmail can be found [here](#setting-up-gmail-filters). Another alternative is to use [Trailer](https://github.com/ptsochantaris/trailer) or similar software.
## 2. Ensure the issue contains basic information
Before triaging an issue very far, make sure that the issue's author provided the standard issue information. This will help you make an educated recommendation on how to categorize the issue. The Grafana project utilizes [GitHub issue templates](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository) to guide contributors to provide standard information that must be included for each type of template or type of issue.
### Standard issue information that must be included
Given a certain [issue template](https://github.com/grafana/grafana/issues/new/choose) have been used by the issue author or depending how the issue is perceived by the issue triage responsible, the following should help you understand what standard issue information that must be included.
#### Bug reports
Should explain what happened, what was expected and how to reproduce it together with any additional information that may help giving a complete picture of what happened such as screenshots, [query inspector](https://community.grafana.com/t/using-grafanas-query-inspector-to-troubleshoot-issues/2630) output and any environment related information that's applicable and/or maybe related to the reported problem:
- Grafana version:
- Data source type & version:
- OS Grafana is installed on:
- User OS & Browser:
- Grafana plugins:
- Others:
#### Enhancement requests
Prior to August, 2023, community-submitted feature requests were submitted as [Github discussions](https://github.com/grafana/grafana/discussions). These are now submitted using the [feature request issue template](https://github.com/grafana/grafana/issues/new?assignees=&labels=type%2Ffeature-request&projects=&template=1-feature_requests.md).
When submitting an enhancement request we ask that users focus on the problem they'd like to solve and why its a problem rather than focusing on the solution itself. To facilitate this the feature requests template includes the following:
- What would you like to be added?:
- Why is this needed (describe your use case and goals)\*\*?:
#### Accessibility issues
This is a mix between a bug report and enhancement request but focused on accessibility issues to help make Grafana improve keyboard navigation, screen-reader support and being accessible to everyone. The report should include relevant [WCAG criteria](https://www.w3.org/WAI/WCAG21/quickref/?versions=2.0), if applicable.
Grafana Labs is dedicated to improving our graphical user interfaces and overall experience so that our product becomes usable and accessible for people with disabilities as well as anyone else. Learn more about Grafana's commitment to [A11y](https://grafana.com/accessibility/) (accessibility).
#### Support requests
In general, if the issue description and title is perceived as a question no more information is needed. See how to categorize these requests [here](#support-requests-1).
### Good practices
To make it easier for everyone to understand and find issues they're searching for it's suggested as a general rule of thumbs to:
- Make sure that issue titles are named to explain the subject of the issue, has a correct spelling and doesn't include irrelevant information and/or sensitive information.
- Make sure that issue descriptions doesn't include irrelevant information, information from template that haven't been filled out and/or sensitive information.
- Do your best effort to change title and description or request suggested changes by adding a comment.
> **Note:** Above rules is applicable to both new and existing issues of the Grafana project.
### Do you have all the information needed to categorize an issue?
Depending on the issue, you might not feel all this information is needed. Use your best judgement. If you cannot triage an issue using what its author provided, explain kindly to the author that they must provide the above information to clarify the problem. Label issue with `needs more info` and add any related `area/*` or `datasource/*` labels. Alternatively, use `bot/needs more info` label and the Grafana bot will request it for you.
If the author provides the standard information but you are still unable to triage the issue, request additional information. Do this kindly and politely because you are asking for more of the author's time.
If the author does not respond to the requested information within the timespan of a week, close the issue with a kind note stating that the author can request for the issue to be reopened when the necessary information is provided.
When you feel you have all the information needed you're ready to [categorizing the issue](#3-categorizing-an-issue).
If you receive a notification with additional information provided but you are not anymore on issue triage and you feel you do not have time to handle it, you should delegate it to the current person on issue triage.
## 3. Categorizing an issue
An issue can have multiple of the following labels. Typically, a properly categorized issue should at least have:
- One label identifying its type (`type/*`).
- One or multiple labels identifying the functional areas of interest or component (`area/*`) and/or data source (`datasource/*`), if applicable.
| Label | Description |
| ------------------------ | ------------------------------------------------------------------------- |
| `type/bug` | A feature isn't working as expected given design or documentation. |
| `type/feature-request` | Request for a new feature or enhancement. |
| `type/docs` | Documentation problem or enhancement. |
| `type/accessibility` | Accessibility problem or enhancement. |
| `type/question` | Issue is a question or is perceived as such. |
| `type/duplicate` | An existing issue of the same subject/request have already been reported. |
| `type/works-as-intended` | A reported bug works as intended/by design. |
| `type/build-packaging` | Build or packaging problem or enhancement. |
| `area/*` | Subject is related to a functional area of interest or component. |
| `datasource/*` | Subject is related to a core data source plugin. |
### Duplicate issues
Make sure it's not a duplicate by searching existing issues using related terms from the issue title and description. If you think you know there is an existing issue, but can't find it, please reach out to one of the maintainers and ask for help. If you identify that the issue is a duplicate of an existing issue:
1. Add a comment `/duplicate of #<issue number>`. GitHub will recognize this and add some additional context to the issue activity.
2. The Grafana bot will do the rest, adding the correct label and closing comment
3. Add `type/duplicate` label. Optionally add any related `area/*` or `datasource/*` labels.
### Bug reports
If it's not perfectly clear that it's an actual bug, quickly try to reproduce it.
**It's a bug/it can be reproduced:**
1. Add a comment describing detailed steps for how to reproduce it, if applicable.
2. Label the issue `type/bug` and at least one `area/*` or `datasource/*` label.
3. If you know that maintainers wont be able to put any resources into it for some time then label the issue with `help wanted` and optionally `beginner friendly` together with pointers on which code to update to fix the bug. This should signal to the community that we would appreciate any help we can get to resolve this.
4. Move on to [prioritizing the issue](#4-prioritization-of-issues).
**It can't be reproduced:**
1. Either [ask for more information](#2-ensure-the-issue-contains-basic-information) needed to investigate it more thoroughly.
2. Either [delegate further investigations](#investigation-of-issues) to someone else.
**It works as intended/by design:**
1. Kindly and politely add a comment explaining briefly why we think it works as intended and close the issue.
2. Label the issue `type/works-as-intended`.
### Enhancement/feature?
1. Label the issue `type/feature-request` and add at least one `area/*` or `datasource/*` label.
2. Make sure the submitter has justified why this feature requests is important.
### Documentation issue?
First, evaluate if the documentation makes sense to be included in the Grafana project:
- Is this something we want/can maintain as a project?
- Is this referring to usage of some specific integration/tool and in that case is that a popular use case in combination with Grafana?
- If unsure, kindly and politely add a comment explaining that we would need [upvotes](https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments) to identify that lots of other users want/need this.
Second, label the issue `type/docs` and at least one `area/*` or `datasource/*` label.
**Minor typo/error/lack of information:**
There's a minor typo/error/lack of information that adds a lot of confusion for users and given the amount of work is a big win to make sure fixing it:
1. Either update the documentation yourself and open a pull request.
2. Either delegate the work to someone else by assigning that person to the issue and add the issue to next major/minor milestone.
**Major error/lack of information:**
1. Label the issue with `help wanted` and `beginner friendly`, if applicable, to signal that we find this important to fix and we would appreciate any help we can get from the community.
2. Move on to [prioritizing the issue](#4-prioritization-of-issues).
### Accessibility issues
1. Label the issue `type/accessibility` and at least one `area/*` or `datasource/*` label.
### Support requests
1. Kindly and politely direct the issue author to the [community site](https://community.grafana.com/) and explain that GitHub is mainly used for tracking bugs and feature requests. If possible, it's usually a good idea to add some pointers to the issue author's question.
2. Label the issue with `bot/question`. The Grafana bot will automatically close the issue, and it will add the type/question label for you.
## 4. Prioritization of issues
In general bugs and enhancement issues should be labeled with a priority.
This is the most difficult thing with triaging issues since it requires a lot of knowledge, context and experience before being able to think of and start feel comfortable adding a certain priority label.
The key here is asking for help and discuss issues to understand how more experienced project members think and reason. By doing that you learn more and eventually be more and more comfortable with prioritizing issues.
In case there is an uncertainty around the prioritization of an issue, please ask the maintainers for help.
| Label | Description |
| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| `priority/critical` | Highest priority. Must be actively worked on as someone's top priority right now. |
| `priority/support-subscription` | This is important for one or several customers having a paid Grafana support subscription. |
| `priority/important-soon` | Must be staffed and worked on either currently, or very soon, ideally in time for the next release. |
| `priority/important-longterm` | Important over the long term, but may not be staffed and/or may need multiple releases to complete. |
| `priority/nice-to-have` | It's a good idea, but not scheduled for any release. |
| `priority/awaiting-more-evidence` | Lowest priority. Possibly useful, but not yet enough interest in it. |
| `priority/unscheduled` | Something to look into before and to be discussed during the planning of the next (upcoming) major/minor stable release. |
**Critical bugs**
1. If a bug has been categorized and any of the following criteria apply, the bug should be labeled as critical and must be actively worked on as someone's top priority right now.
- Results in any data loss
- Critical security or performance issues
- Problem that makes a feature unusable
- Multiple users experience a severe problem affecting their business, users etc.
2. Label the issue `priority/critical`.
3. If applicable, label the issue `priority/support-subscription`.
4. Add the issue to the next upcoming patch release milestone. Create a new milestone if there are none.
5. Escalate the problem to the maintainers.
6. Assign or ask a maintainer for help assigning someone to make this issue their top priority right now.
**Important short-term**
1. Label the issue `priority/important-soon`.
2. If applicable, label the issue `priority/support-subscription`.
3. Add the issue to the next upcoming patch or major/minor stable release milestone. Ask maintainers for help if unsure if it's a patch or not. Create a new milestone if there are none.
4. Make sure to add the issue to a suitable backlog of a GitHub project and prioritize it or assign someone to work on it now or very soon.
5. Consider requesting [help from the community](#5-requesting-help-from-the-community), even though it may be problematic given a short amount of time until it should be released.
**Important long-term**
1. Label the issue `priority/important-longterm`.
2. Consider requesting [help from the community](#5-requesting-help-from-the-community).
**Nice to have**
1. Label the issue `priority/nice-to-have`.
2. Consider requesting [help from the community](#5-requesting-help-from-the-community).
**Not critical, but unsure?**
1. Label the issue `priority/unscheduled`.
2. Consider requesting [help from the community](#5-requesting-help-from-the-community).
## 5. Requesting help from the community
Depending on the issue and/or priority, it's always a good idea to consider signalling to the community that help from community is appreciated and needed in case an issue is not prioritized to be worked on by maintainers. Use your best judgement. In general, requesting help from the community means that a contribution has a good chance of getting accepted and merged.
In many cases the issue author or community as a whole is more suitable to contribute changes since they're experts in their domain. It's also quite common that someone has tried to get something to work using the documentation without success and made an effort to get it to work and/or reached out to the [community site](https://community.grafana.com/) to get the missing information. Particularly in these areas it's more likely that there exist experts in their own domain and it is usually a good idea to request help from contributors:
- Database setups
- Authentication like OAuth providers and LDAP setups
- Platform specific things
- Reverse proxy setups
- Alert notifiers
1. Kindly and politely add a comment to signal to users subscribed to updates of the issue.
- Explain that the issue would be nice to get resolved, but it isn't prioritized to work on by maintainers for an unforeseen future.
- If possible or applicable, try to help contributors getting starting by adding pointers and references to what code/files need to be changed and/or ideas of a good way to solve/implement the issue.
2. Label the issue with `help wanted`.
3. If applicable, label the issue with `beginner friendly` to denote that the issue is suitable for a beginner to work on.
4. If possible, try to estimate the amount of work by adding `effort/small`, `effort/medium` or `effort/large`.
## Investigation of issues
When an issue has all basic information provided, but the triage responsible haven't been able to reproduce the reported problem at a first glance, the issue is labeled [`triage/needs-confirmation`](https://github.com/grafana/grafana/labels/triage%2Fneeds-confirmation). Depending on the perceived severity and/or number of [upvotes](https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments), the investigation will either be delegated to another maintainer for further investigation or put on hold until someone else (maintainer or contributor) picks it up and eventually starts investigating it.
Investigating issues can be a very time consuming task, especially for the maintainers, given the huge number of combinations of plugins, data sources, platforms, databases, browsers, tools, hardware, integrations, versions and cloud services, etc that are being used with Grafana. There is a certain number of combinations that are more common than others, and these are in general easier for maintainers to investigate.
For some other combinations it may not be possible at all for a maintainer to setup a proper test environment to investigate the issue. In these cases we really appreciate any help we can get from the community. Otherwise the issue is highly likely to be closed.
Even if you don't have the time or knowledge to investigate an issue we highly recommend that you [upvote](https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments) the issue if you happen to have the same problem. If you have further details that may help investigating the issue please provide as much information as possible.
## Automation
We have some automation that triggers on comments or labels being added to issues. Many of these automated behaviors are defined in [commands.json](https://github.com/grafana/grafana/blob/main/.github/commands.json). Or in other [GitHub Actions](https://github.com/grafana/grafana/tree/main/.github/workflows)
[Read more on bot actions](https://github.com/grafana/grafana/blob/main/.github/bot.md)
## External PRs
Part of issue triage should also be triaging of external PRs. Main goal should be to make sure PRs from external contributors have an owner/reviewer and are not forgotten.
1. Check new external PRs which do not have a reviewer. You can easily search for pull requests made by external contributors by using the label: `pr/external` in your [query search](https://github.com/grafana/grafana/pulls?q=is%3Aopen+is%3Apr+label%3Apr%2Fexternal) Note: external PRs are automatically labeled with `pr/external` upon creation.
2. Check if there is a link to an existing issue. The link to a existing issue should be in the description section, underneath “Which issue(s) does this PR fix?:”.
3. If not and you know which issue it is solving, add the link yourself, otherwise ask the author to link the issue or create one.
4. Assign a reviewer based on who was handling the linked issue or what code or feature does the PR touches (look at who was the last to make changes there if all else fails).
## Appendix
### Setting up Gmail filters
If you're using Gmail it's highly recommended that you setup filters to automatically remove email from the inbox and label them accordingly to make it easy for you to understand when you need to act upon a notification or process all incoming issues that haven't been triaged.
This may be setup by personal preference, but here's a working configuration for reference.
1. Follow instructions in [gist](https://gist.github.com/marefr/9167c2e31466f6316c1cba118874e74f)
2. In Gmail, go to Settings -> Filters and Blocked Addresses
3. Import filters -> select xml file -> Open file
4. Review filters
5. Optional, Check Apply new filters to existing email
6. Create filters
This will give you a structure of labels in the sidebar similar to the following:
```
- Inbox
...
- GitHub (mine)
- activity
- assigned
- mentions
- GitHub (other)
- Grafana
```
- All notifications youll need to read/take action on show up as unread in GitHub (mine) and its sub-labels.
- All other notifications you dont need to take action on show up as unread in GitHub (other) and its sub-labels
- This is convenient for issue triage and to follow the activity in the Grafana project.

View File

@@ -10,7 +10,6 @@ The following directories and their subdirectories are licensed under Apache-2.0
```
packages/grafana-data/
packages/grafana-e2e/
packages/grafana-e2e-selectors/
packages/grafana-runtime/
packages/grafana-ui/
@@ -18,7 +17,7 @@ packaging/
kinds/
pkg/kinds/
pkg/kindsys/
pkg/registry/corekind/
pkg/registry/schemas/
grafana-mixin/
public/app/plugins/datasource/tempo
public/app/features/explore/TraceView/components

148
Makefile
View File

@@ -7,29 +7,37 @@ WIRE_TAGS = "oss"
-include local/Makefile
include .bingo/Variables.mk
.PHONY: all deps-go deps-js deps build-go build-backend build-server build-cli build-js build build-docker-full build-docker-full-ubuntu lint-go golangci-lint test-go test-js gen-ts test run run-frontend clean devenv devenv-down protobuf drone help gen-go gen-cue fix-cue
GO = go
GO_FILES ?= ./pkg/...
GO_VERSION = 1.22.4
GO_FILES ?= ./pkg/... ./pkg/apiserver/... ./pkg/apimachinery/... ./pkg/promlib/...
SH_FILES ?= $(shell find ./scripts -name *.sh)
GO_RACE := $(shell [ -n "$(GO_RACE)" -o -e ".go-race-enabled-locally" ] && echo 1 )
GO_RACE_FLAG := $(if $(GO_RACE),-race)
GO_BUILD_FLAGS += $(if $(GO_BUILD_DEV),-dev)
GO_BUILD_FLAGS += $(if $(GO_BUILD_TAGS),-build-tags=$(GO_BUILD_TAGS))
GO_BUILD_FLAGS += $(GO_RACE_FLAG)
targets := $(shell echo '$(sources)' | tr "," " ")
GO_INTEGRATION_TESTS := $(shell find ./pkg -type f -name '*_test.go' -exec grep -l '^func TestIntegration' '{}' '+' | grep -o '\(.*\)/' | sort -u)
.PHONY: all
all: deps build
##@ Dependencies
.PHONY: deps-go
deps-go: ## Install backend dependencies.
$(GO) run build.go setup
$(GO) run $(GO_RACE_FLAG) build.go setup
.PHONY: deps-js
deps-js: node_modules ## Install frontend dependencies.
.PHONY: deps
deps: deps-js ## Install all dependencies.
.PHONY: node_modules
node_modules: package.json yarn.lock ## Install node modules.
@echo "install frontend dependencies"
YARN_ENABLE_PROGRESS_BARS=false yarn install --immutable
@@ -45,12 +53,13 @@ $(NGALERT_SPEC_TARGET):
$(MERGED_SPEC_TARGET): swagger-oss-gen swagger-enterprise-gen $(NGALERT_SPEC_TARGET) $(SWAGGER) ## Merge generated and ngalert API specs
# known conflicts DsPermissionType, AddApiKeyCommand, Json, Duration (identical models referenced by both specs)
$(SWAGGER) mixin $(SPEC_TARGET) $(ENTERPRISE_SPEC_TARGET) $(NGALERT_SPEC_TARGET) --ignore-conflicts -o $(MERGED_SPEC_TARGET)
$(SWAGGER) mixin -q $(SPEC_TARGET) $(ENTERPRISE_SPEC_TARGET) $(NGALERT_SPEC_TARGET) --ignore-conflicts -o $(MERGED_SPEC_TARGET)
.PHONY: swagger-oss-gen
swagger-oss-gen: $(SWAGGER) ## Generate API Swagger specification
@echo "re-generating swagger for OSS"
rm -f $(SPEC_TARGET)
SWAGGER_GENERATE_EXTENSION=false $(SWAGGER) generate spec -m -w pkg/server -o $(SPEC_TARGET) \
SWAGGER_GENERATE_EXTENSION=false $(SWAGGER) generate spec -q -m -w pkg/server -o $(SPEC_TARGET) \
-x "github.com/grafana/grafana/pkg/services/ngalert/api/tooling/definitions" \
-x "github.com/prometheus/alertmanager" \
-i pkg/api/swagger_tags.json \
@@ -58,6 +67,7 @@ swagger-oss-gen: $(SWAGGER) ## Generate API Swagger specification
--exclude-tag=enterprise
# this file only exists if enterprise is enabled
.PHONY: swagger-enterprise-gen
ENTERPRISE_EXT_FILE = pkg/extensions/ext.go
ifeq ("$(wildcard $(ENTERPRISE_EXT_FILE))","") ## if enterprise is not enabled
swagger-enterprise-gen:
@@ -66,7 +76,7 @@ else
swagger-enterprise-gen: $(SWAGGER) ## Generate API Swagger specification
@echo "re-generating swagger for enterprise"
rm -f $(ENTERPRISE_SPEC_TARGET)
SWAGGER_GENERATE_EXTENSION=false $(SWAGGER) generate spec -m -w pkg/server -o $(ENTERPRISE_SPEC_TARGET) \
SWAGGER_GENERATE_EXTENSION=false $(SWAGGER) generate spec -q -m -w pkg/server -o $(ENTERPRISE_SPEC_TARGET) \
-x "github.com/grafana/grafana/pkg/services/ngalert/api/tooling/definitions" \
-x "github.com/prometheus/alertmanager" \
-i pkg/api/swagger_tags.json \
@@ -74,11 +84,14 @@ swagger-enterprise-gen: $(SWAGGER) ## Generate API Swagger specification
--include-tag=enterprise
endif
.PHONY: swagger-gen
swagger-gen: gen-go $(MERGED_SPEC_TARGET) swagger-validate
.PHONY: swagger-validate
swagger-validate: $(MERGED_SPEC_TARGET) $(SWAGGER) ## Validate API spec
$(SWAGGER) validate $(<)
$(SWAGGER) validate --skip-warnings $(<)
.PHONY: swagger-clean
swagger-clean:
rm -f $(SPEC_TARGET) $(MERGED_SPEC_TARGET) $(OAPI_SPEC_TARGET)
@@ -97,57 +110,92 @@ lefthook-uninstall: $(LEFTHOOK)
##@ OpenAPI 3
OAPI_SPEC_TARGET = public/openapi3.json
.PHONY: openapi3-gen
openapi3-gen: swagger-gen ## Generates OpenApi 3 specs from the Swagger 2 already generated
$(GO) run scripts/openapi3/openapi3conv.go $(MERGED_SPEC_TARGET) $(OAPI_SPEC_TARGET)
$(GO) run $(GO_RACE_FLAG) scripts/openapi3/openapi3conv.go $(MERGED_SPEC_TARGET) $(OAPI_SPEC_TARGET)
##@ Internationalisation
.PHONY: i18n-extract-enterprise
ENTERPRISE_FE_EXT_FILE = public/app/extensions/index.ts
ifeq ("$(wildcard $(ENTERPRISE_FE_EXT_FILE))","") ## if enterprise is not enabled
i18n-extract-enterprise:
@echo "Skipping i18n extract for Enterprise: not enabled"
else
i18n-extract-enterprise:
@echo "Extracting i18n strings for Enterprise"
yarn run i18next --config public/locales/i18next-parser-enterprise.config.cjs
node ./public/locales/pseudo.mjs --mode enterprise
endif
.PHONY: i18n-extract
i18n-extract: i18n-extract-enterprise
@echo "Extracting i18n strings for OSS"
yarn run i18next --config public/locales/i18next-parser.config.cjs
node ./public/locales/pseudo.mjs --mode oss
##@ Building
.PHONY: gen-cue
gen-cue: ## Do all CUE/Thema code generation
@echo "generate code from .cue files"
go generate ./pkg/plugins/plugindef
go generate ./kinds/gen.go
go generate ./public/app/plugins/gen.go
go generate ./pkg/kindsysreport/codegen/report.go
gen-go: $(WIRE)
.PHONY: gen-feature-toggles
gen-feature-toggles:
## First go test run fails because it will re-generate the feature toggles.
## Second go test run will compare the generated files and pass.
@echo "generate feature toggles"
go test -v ./pkg/services/featuremgmt/... > /dev/null 2>&1; \
if [ $$? -eq 0 ]; then \
echo "feature toggles already up-to-date"; \
else \
go test -v ./pkg/services/featuremgmt/...; \
fi
.PHONY: gen-go
gen-go:
@echo "generate go files"
$(WIRE) gen -tags $(WIRE_TAGS) ./pkg/server
$(GO) run $(GO_RACE_FLAG) ./pkg/build/wire/cmd/wire/main.go gen -tags $(WIRE_TAGS) ./pkg/server
.PHONY: fix-cue
fix-cue: $(CUE)
@echo "formatting cue files"
$(CUE) fix kinds/**/*.cue
$(CUE) fix public/app/plugins/**/**/*.cue
.PHONY: gen-jsonnet
gen-jsonnet:
go generate ./devenv/jsonnet
.PHONY: build-go
build-go: gen-go ## Build all Go binaries.
@echo "build go files"
$(GO) run build.go $(GO_BUILD_FLAGS) build
.PHONY: build-backend
build-backend: ## Build Grafana backend.
@echo "build backend"
$(GO) run build.go $(GO_BUILD_FLAGS) build-backend
.PHONY: build-server
build-server: ## Build Grafana server.
@echo "build server"
$(GO) run build.go $(GO_BUILD_FLAGS) build-server
.PHONY: build-cli
build-cli: ## Build Grafana CLI application.
@echo "build grafana-cli"
$(GO) run build.go $(GO_BUILD_FLAGS) build-cli
.PHONY: build-js
build-js: ## Build frontend assets.
@echo "build frontend"
yarn run build
yarn run plugins:build-bundled
build-plugins-go: ## Build decoupled plugins
@echo "build plugins"
@cd pkg/tsdb; \
mage -v
PLUGIN_ID ?=
.PHONY: build-plugin-go
build-plugin-go: ## Build decoupled plugins
@echo "build plugin $(PLUGIN_ID)"
@cd pkg/tsdb; \
@@ -157,11 +205,19 @@ build-plugin-go: ## Build decoupled plugins
fi; \
mage -v buildplugin $(PLUGIN_ID)
.PHONY: build
build: build-go build-js ## Build backend and frontend.
.PHONY: run
run: $(BRA) ## Build and run web server on filesystem changes.
$(BRA) run
.PHONY: run-go
run-go: ## Build and run web server immediately.
$(GO) run -race $(if $(GO_BUILD_TAGS),-build-tags=$(GO_BUILD_TAGS)) \
./pkg/cmd/grafana -- server -packaging=dev cfg:app_mode=development
.PHONY: run-frontend
run-frontend: deps-js ## Fetch js dependencies and watch frontend for rebuild
yarn start
@@ -173,61 +229,67 @@ test-go: test-go-unit test-go-integration
.PHONY: test-go-unit
test-go-unit: ## Run unit tests for backend with flags.
@echo "test backend unit tests"
$(GO) test -short -covermode=atomic -timeout=30m ./pkg/...
go list -f '{{.Dir}}/...' -m | xargs \
$(GO) test $(GO_RACE_FLAG) -short -covermode=atomic -timeout=30m
.PHONY: test-go-integration
test-go-integration: ## Run integration tests for backend with flags.
@echo "test backend integration tests"
$(GO) test -count=1 -run "^TestIntegration" -covermode=atomic -timeout=5m $(GO_INTEGRATION_TESTS)
$(GO) test $(GO_RACE_FLAG) -count=1 -run "^TestIntegration" -covermode=atomic -timeout=5m $(GO_INTEGRATION_TESTS)
.PHONY: test-go-integration-alertmanager
test-go-integration-alertmanager: ## Run integration tests for the remote alertmanager (config taken from the mimir_backend block).
@echo "test remote alertmanager integration tests"
$(GO) clean -testcache
AM_URL=http://localhost:8080 AM_TENANT_ID=test \
$(GO) test -count=1 -run "^TestIntegrationRemoteAlertmanager" -covermode=atomic -timeout=5m ./pkg/services/ngalert/...
$(GO) test $(GO_RACE_FLAG) -count=1 -run "^TestIntegrationRemoteAlertmanager" -covermode=atomic -timeout=5m ./pkg/services/ngalert/...
.PHONY: test-go-integration-postgres
test-go-integration-postgres: devenv-postgres ## Run integration tests for postgres backend with flags.
@echo "test backend integration postgres tests"
$(GO) clean -testcache
GRAFANA_TEST_DB=postgres \
$(GO) test -p=1 -count=1 -run "^TestIntegration" -covermode=atomic -timeout=10m $(GO_INTEGRATION_TESTS)
$(GO) test $(GO_RACE_FLAG) -p=1 -count=1 -run "^TestIntegration" -covermode=atomic -timeout=10m $(GO_INTEGRATION_TESTS)
.PHONY: test-go-integration-mysql
test-go-integration-mysql: devenv-mysql ## Run integration tests for mysql backend with flags.
@echo "test backend integration mysql tests"
GRAFANA_TEST_DB=mysql \
$(GO) test -p=1 -count=1 -run "^TestIntegration" -covermode=atomic -timeout=10m $(GO_INTEGRATION_TESTS)
$(GO) test $(GO_RACE_FLAG) -p=1 -count=1 -run "^TestIntegration" -covermode=atomic -timeout=10m $(GO_INTEGRATION_TESTS)
.PHONY: test-go-integration-redis
test-go-integration-redis: ## Run integration tests for redis cache.
@echo "test backend integration redis tests"
$(GO) clean -testcache
REDIS_URL=localhost:6379 $(GO) test -run IntegrationRedis -covermode=atomic -timeout=2m $(GO_INTEGRATION_TESTS)
REDIS_URL=localhost:6379 $(GO) test $(GO_RACE_FLAG) -run IntegrationRedis -covermode=atomic -timeout=2m $(GO_INTEGRATION_TESTS)
.PHONY: test-go-integration-memcached
test-go-integration-memcached: ## Run integration tests for memcached cache.
@echo "test backend integration memcached tests"
$(GO) clean -testcache
MEMCACHED_HOSTS=localhost:11211 $(GO) test -run IntegrationMemcached -covermode=atomic -timeout=2m $(GO_INTEGRATION_TESTS)
MEMCACHED_HOSTS=localhost:11211 $(GO) test $(GO_RACE_FLAG) -run IntegrationMemcached -covermode=atomic -timeout=2m $(GO_INTEGRATION_TESTS)
.PHONY: test-js
test-js: ## Run tests for frontend.
@echo "test frontend"
yarn test
.PHONY: test
test: test-go test-js ## Run all tests.
##@ Linting
.PHONY: golangci-lint
golangci-lint: $(GOLANGCI_LINT)
@echo "lint via golangci-lint"
$(GOLANGCI_LINT) run \
--config .golangci.toml \
$(GO_FILES)
.PHONY: lint-go
lint-go: golangci-lint ## Run all code checks for backend. You can use GO_FILES to specify exact files to check
# with disabled SC1071 we are ignored some TCL,Expect `/usr/bin/env expect` scripts
.PHONY: shellcheck
shellcheck: $(SH_FILES) ## Run checks for shell scripts.
@docker run --rm -v "$$PWD:/mnt" koalaman/shellcheck:stable \
$(SH_FILES) -e SC1071 -e SC2162
@@ -237,6 +299,7 @@ shellcheck: $(SH_FILES) ## Run checks for shell scripts.
TAG_SUFFIX=$(if $(WIRE_TAGS)!=oss,-$(WIRE_TAGS))
PLATFORM=linux/amd64
.PHONY: build-docker-full
build-docker-full: ## Build Docker image for development.
@echo "build docker container"
tar -ch . | \
@@ -250,6 +313,7 @@ build-docker-full: ## Build Docker image for development.
--tag grafana/grafana$(TAG_SUFFIX):dev \
$(DOCKER_BUILD_ARGS)
.PHONY: build-docker-full-ubuntu
build-docker-full-ubuntu: ## Build Docker image based on Ubuntu for development.
@echo "build docker container"
tar -ch . | \
@@ -261,7 +325,7 @@ build-docker-full-ubuntu: ## Build Docker image based on Ubuntu for development.
--build-arg COMMIT_SHA=$$(git rev-parse HEAD) \
--build-arg BUILD_BRANCH=$$(git rev-parse --abbrev-ref HEAD) \
--build-arg BASE_IMAGE=ubuntu:22.04 \
--build-arg GO_IMAGE=golang:1.21.5 \
--build-arg GO_IMAGE=golang:$(GO_VERSION) \
--tag grafana/grafana$(TAG_SUFFIX):dev-ubuntu \
$(DOCKER_BUILD_ARGS)
@@ -269,6 +333,7 @@ build-docker-full-ubuntu: ## Build Docker image based on Ubuntu for development.
# create docker-compose file with provided sources and start them
# example: make devenv sources=postgres,auth/openldap
.PHONY: devenv
ifeq ($(sources),)
devenv:
@printf 'You have to define sources for this command \nexample: make devenv sources=postgres,openldap\n'
@@ -282,15 +347,18 @@ devenv: devenv-down ## Start optional services, e.g. postgres, prometheus, and e
docker-compose up -d --build
endif
.PHONY: devenv-down
devenv-down: ## Stop optional services.
@cd devenv; \
test -f docker-compose.yaml && \
docker-compose down || exit 0;
.PHONY: devenv-postgres
devenv-postgres:
@cd devenv; \
sources=postgres_tests
.PHONY: devenv-mysql
devenv-mysql:
@cd devenv; \
sources=mysql_tests
@@ -302,18 +370,23 @@ devenv-mysql:
# go-gettable dependency and so getting it installed can be inconvenient.
#
# If you are working on changes to protobuf interfaces you may either use
# this target or run the individual scripts below directly.
# this target or run the individual scripts below directly
.PHONY: protobuf
protobuf: ## Compile protobuf definitions
bash scripts/protobuf-check.sh
bash pkg/plugins/backendplugin/pluginextensionv2/generate.sh
bash pkg/plugins/backendplugin/secretsmanagerplugin/generate.sh
bash pkg/services/store/entity/generate.sh
go install google.golang.org/protobuf/cmd/protoc-gen-go
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
buf generate pkg/plugins/backendplugin/pluginextensionv2 --template pkg/plugins/backendplugin/pluginextensionv2/buf.gen.yaml
buf generate pkg/plugins/backendplugin/secretsmanagerplugin --template pkg/plugins/backendplugin/secretsmanagerplugin/buf.gen.yaml
buf generate pkg/services/store/entity --template pkg/services/store/entity/buf.gen.yaml
.PHONY: clean
clean: ## Clean up intermediate build artifacts.
@echo "cleaning"
rm -rf node_modules
rm -rf public/build
.PHONY: gen-ts
gen-ts:
@echo "generating TypeScript definitions"
go get github.com/tkrajina/typescriptify-golang-structs/typescriptify@v0.1.7
@@ -323,17 +396,34 @@ gen-ts:
# This repository's configuration is protected (https://readme.drone.io/signature/).
# Use this make target to regenerate the configuration YAML files when
# you modify starlark files.
.PHONY: drone
drone: $(DRONE)
bash scripts/drone/env-var-check.sh
$(DRONE) starlark --format
$(DRONE) lint .drone.yml --trusted
$(DRONE) --server https://drone.grafana.net sign --save grafana/grafana
# Generate an Emacs tags table (https://www.gnu.org/software/emacs/manual/html_node/emacs/Tags-Tables.html) for Starlark files.
.PHONY: scripts/drone/TAGS
scripts/drone/TAGS: $(shell find scripts/drone -name '*.star')
etags --lang none --regex="/def \(\w+\)[^:]+:/\1/" --regex="/\s*\(\w+\) =/\1/" $^ -o $@
.PHONY: format-drone
format-drone:
buildifier --lint=fix -r scripts/drone
.PHONY: go-race-is-enabled
go-race-is-enabled:
@if [ -n "$(GO_RACE)" ]; then \
echo "The Go race detector is enabled locally, yey!"; \
else \
echo "The Go race detector is NOT enabled locally, boo!"; \
fi;
.PHONY: enable-go-race
enable-go-race:
@touch .go-race-enabled-locally
.PHONY: help
help: ## Display this help.
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)

View File

@@ -1,110 +0,0 @@
# Guide to upgrading dependencies
Upgrading Go or Node.js requires making changes in many different files. See below for a list and explanation for each.
## Go
- Drone
- `grafana/build-container`
- Appveyor
- Dockerfile
## Node.js
- Drone
- `grafana/build-container`
- Appveyor
- Dockerfile
- `.github/workflows/publish.yml`
## Go dependencies
The Grafana project uses [Go modules](https://golang.org/cmd/go/#hdr-Modules__module_versions__and_more) to manage dependencies on external packages. This requires a working Go environment with version 1.11 or greater installed.
To add or update a new dependency, use the `go get` command:
```bash
go get example.com/some/module/pkg
# Pick a specific version.
go get example.com/some/module/pkg@vX.Y.Z
```
Tidy up the `go.mod` and `go.sum` files:
```bash
go mod tidy
```
You have to commit the changes to `go.mod` and `go.sum` before submitting the pull request.
To understand what the actual dependencies of `grafana-server` are, one could run it with `-vv` flag. This might produce an output, different from `go.mod` contents and `-vv` option is the source of truth here. It lists the modules _compiled_ into the executable, while `go.mod` lists also test and weak transitive dependencies (modules, used in some package, which is not in use by itself). If you are interested in reporting a vulnerability in a dependency module - please consult `-vv` output, maybe the "dependency" is not a dependency as such.
### Upgrading dependencies
If you need to upgrade a direct or indirect dependency, you can do it like so, $MODULE being the dependency in question: `go get -u $MODULE`. The corresponding entry in go.mod should then have the version you specified; if it's an indirect dependency, the entry should have the `// indirect` comment. Follow this by executing `go mod tidy`, to ensure that go.mod and go.sum are up to date. If the indirect dependency turns out to not be used (transitively) by any of our packages, `go mod tidy` will actually strip it from go.mod. In that case, you can just ignore it since it isn't used in the end.
## Node.js dependencies
Updated using `yarn`.
- `package.json`
## Where to make changes
### Drone
Our CI builds run on Drone.
#### Files
- `.circleci/config.yml`.
#### Dependencies
- nodejs
- golang
- grafana/build-container (our custom docker build container)
### grafana/build-container
The main build steps (in Drone) happen using a custom Docker image that comes pre-baked with some of the necessary dependencies.
Link: [grafana/build-container](https://github.com/grafana/grafana/tree/main/scripts/build/ci-build)
#### Dependencies
- fpm
- nodejs
- golang
- crosscompiling (several compilers)
### Appveyor
Main and release builds trigger test runs on Appveyors build environment so that tests will run on Windows.
#### Files:
- `appveyor.yml`
#### Dependencies
- nodejs
- golang
### Dockerfile
There is a Docker build for Grafana in the root of the project that allows anyone to build Grafana just using Docker.
#### Files
- `Dockerfile`
#### Dependencies
- nodejs
- golang
### Local developer environments
Please send out a notice in the grafana-dev slack channel when updating Go or Node.js to make it easier for everyone to update their local developer environments.

View File

@@ -14,7 +14,7 @@ Team members and their access to repositories is maintained through [GitHub team
Examples of proposed changes are overarching architecture, component design, and specific code or graphical elements. Proposed changes SHOULD cover the big picture and intention, but individual parts SHOULD be split into the smallest possible changes. Changes SHOULD be based on and target the main branch. Depending on size of the proposed change, each change SHOULD be discussed, in increasing order of change size and complexity:
- Directly in a RR (Pull Request) - this MAY be done, but SHOULD not be the common case.
- Directly in a PR (Pull Request) - this MAY be done, but SHOULD not be the common case.
- Issue
- Developer mailing list
- Design document, shared via Google Docs, accessible to at least all team members.
@@ -44,7 +44,7 @@ Once a PR is approved as per above, any team member MAY merge the PR.
## Backporting a PR
Critical bug fixes needed for a previous minor release should be backported to the respective release branches after coordinating with the delivery team.
Please see the [contibution guide](./contribute/merge-pull-request.md#should-the-pull-request-be-backported) for further details.
Please see the [contribution guide](./contribute/merge-pull-request.md#should-the-pull-request-be-backported) for further details.
# Release workflow

View File

@@ -1,60 +0,0 @@
{
"babelrc": false,
// Note: order is bottom-to-top and/or right-to-left
"presets": [
[
"@babel/preset-env",
{
"bugfixes": true,
"browserslistEnv": "dev"
}
],
[
"@babel/preset-typescript",
{
"allowNamespaces": true,
"allowDeclareFields": true
}
],
[
"@babel/preset-react",
{
"runtime": "automatic"
}
]
],
"plugins": [
[
"@babel/plugin-transform-typescript",
{
"allowNamespaces": true,
"allowDeclareFields": true
}
],
// added to mitigate https://github.com/babel/babel/issues/14289
// package (and following line) can be removed once the issue is fixed and released
"@babel/plugin-proposal-class-properties",
["@babel/plugin-proposal-object-rest-spread", { "loose": true }],
"@babel/plugin-transform-react-constant-elements",
"@babel/plugin-proposal-nullish-coalescing-operator",
"@babel/plugin-proposal-optional-chaining",
"@babel/plugin-syntax-dynamic-import", // needed for `() => import()` in routes.ts
"angularjs-annotate",
"macros"
],
"env": {
"production": {
"presets": [
[
"@babel/preset-env",
{
"browserslistEnv": "production"
}
]
]
},
"hot": {
"plugins": ["react-refresh/babel"]
}
}
}

View File

@@ -9,10 +9,6 @@ app_mode = production
# instance name, defaults to HOSTNAME environment variable value or hostname if HOSTNAME var is empty
instance_name = ${HOSTNAME}
# force migration will run migrations that might cause dataloss
# Deprecated, use clean_upgrade option in [unified_alerting.upgrade] instead.
force_migration = false
#################################### Paths ###############################
[paths]
# Path to where grafana can store temp files, sessions, and the sqlite3 db (if that is used)
@@ -70,6 +66,9 @@ enable_gzip = false
cert_file =
cert_key =
# Certificates file watch interval
certs_watch_interval =
# Unix socket gid
# Changing the gid of a file without privileges requires that the target group is in the group of the process and that the process is the file owner
# It is recommended to set the gid as http server user gid
@@ -94,6 +93,10 @@ read_timeout = 0
#exampleHeader1 = exampleValue1
#exampleHeader2 = exampleValue2
[environment]
# Sets whether the local file system is available for Grafana to use. Default is true for backward compatibility.
local_file_system_available = true
#################################### GRPC Server #########################
[grpc_server]
network = "tcp"
@@ -101,6 +104,14 @@ address = "127.0.0.1:10000"
use_tls = false
cert_file =
key_file =
# this will log the request and response for each unary gRPC call
enable_logging = false
# Maximum size of a message that can be received in bytes. If not set, uses the gRPC default (4MiB).
max_recv_msg_size =
# Maximum size of a message that can be sent in bytes. If not set, uses the gRPC default (unlimited).
max_send_msg_size =
#################################### Database ############################
[database]
@@ -134,6 +145,9 @@ log_queries =
# For "mysql", use either "true", "false", or "skip-verify".
ssl_mode = disable
# For "postgres", use either "1" to enable or "0" to disable SNI
ssl_sni =
# Database drivers may support different transaction isolation levels.
# Currently, only "mysql" driver supports isolation levels.
# If the value is empty - driver's default isolation level is applied.
@@ -154,7 +168,10 @@ cache_mode = private
# For "sqlite3" only. Enable/disable Write-Ahead Logging, https://sqlite.org/wal.html. Default is false.
wal = false
# For "mysql" only if migrationLocking feature toggle is set. How many seconds to wait before failing to lock the database for the migrations, default is 0.
# For "mysql" and "postgres". Lock the database for the migrations, default is true.
migration_locking = true
# For "mysql" and "postgres" only if migrationLocking is set. How many seconds to wait before failing to lock the database for the migrations, default is 0.
locking_attempt_timeout_sec = 0
# For "sqlite" only. How many times to retry query in case of database is locked failures. Default is 0 (disabled).
@@ -246,7 +263,7 @@ reporting_distributor = grafana-labs
# for new versions of grafana. The check is used
# in some UI views to notify that a grafana update exists.
# This option does not cause any auto updates, nor send any information
# only a GET request to https://raw.githubusercontent.com/grafana/grafana/main/latest.json to get the latest version.
# only a GET request to https://grafana.com/api/grafana/versions/stable to get the latest version.
check_for_updates = true
# Set to false to disable all checks to https://grafana.com
@@ -376,8 +393,8 @@ content_security_policy_report_only = false
# $ROOT_PATH is server.root_url without the protocol.
content_security_policy_report_only_template = """script-src 'self' 'unsafe-eval' 'unsafe-inline' 'strict-dynamic' $NONCE;object-src 'none';font-src 'self';style-src 'self' 'unsafe-inline' blob:;img-src * data:;base-uri 'self';connect-src 'self' grafana.com ws://$ROOT_PATH wss://$ROOT_PATH;manifest-src 'self';media-src 'none';form-action 'self';"""
# Controls if old angular plugins are supported or not. This will be disabled by default in future release
angular_support_enabled = true
# Controls if old angular plugins are supported or not.
angular_support_enabled = false
# The CSRF check will be executed even if the request has no login cookie.
csrf_always_check = false
@@ -429,6 +446,11 @@ default_home_dashboard_path =
# Upper limit of data sources that Grafana will return. This limit is a temporary configuration and it will be deprecated when pagination will be introduced on the list data sources API.
datasource_limit = 5000
# Number of queries to be executed concurrently. Only for the datasource supports concurrency.
# For now only Loki and InfluxDB (with influxql) are supporting concurrency behind the feature flags.
# Check datasource documentations for enabling concurrency.
concurrent_query_count = 10
################################### SQL Data Sources #####################
[sql_datasources]
@@ -464,9 +486,12 @@ auto_assign_org_role = Viewer
# Require email validation before sign up completes
verify_email_enabled = false
# Redirect to default OrgId after login
login_default_org_id =
# Background text for the user field on the login page
login_hint = email or username
password_hint = password
login_hint =
password_hint =
# Default UI theme ("dark" or "light" or "system")
default_theme = dark
@@ -491,6 +516,9 @@ editors_can_admin = false
# The duration in time a user invitation remains valid before expiring. This setting should be expressed as a duration. Examples: 6h (hours), 2d (days), 1w (week). Default is 24h (24 hours). The minimum supported duration is 15m (15 minutes).
user_invite_max_lifetime_duration = 24h
# The duration in time a verification email, used to update the email address of a user, remains valid before expiring. This setting should be expressed as a duration. Examples: 6h (hours), 2d (days), 1w (week). Default is 1h (1 hour).
verification_email_max_lifetime_duration = 1h
# Enter a comma-separated list of usernames to hide them in the Grafana UI. These users are shown to Grafana admins and to themselves.
hidden_users =
@@ -547,10 +575,6 @@ oauth_auto_login = false
# OAuth state max age cookie duration in seconds. Defaults to 600 seconds.
oauth_state_cookie_max_age = 600
# Skip forced assignment of OrgID 1 or 'auto_assign_org_id' for social logins
# Deprecated, use skip_org_role_sync option for specific provider instead.
oauth_skip_org_role_update_sync = false
# limit of api_key seconds to live before expiration
api_key_max_seconds_to_live = -1
@@ -577,6 +601,16 @@ id_response_header_prefix = X-Grafana
# The header value will encode the namespace ("user:<id>", "api-key:<id>", "service-account:<id>")
id_response_header_namespaces = user api-key service-account
#################################### SSO Settings ###########################
[sso_settings]
# interval for reloading the SSO Settings from the database
# useful in high availability setups running multiple Grafana instances
# set to 0 to disable this feature
reload_interval = 1m
# List of providers that can be configured through the SSO Settings API and UI.
configurable_providers = github gitlab google generic_oauth azuread okta
#################################### Anonymous Auth ######################
[auth.anonymous]
# enable anonymous access
@@ -592,7 +626,7 @@ org_role = Viewer
hide_version = false
# number of devices in total
device_limit =
device_limit =
#################################### GitHub Auth #########################
[auth.github]
@@ -613,6 +647,7 @@ team_ids =
allowed_organizations =
role_attribute_path =
role_attribute_strict = false
org_mapping =
allow_assign_grafana_admin = false
skip_org_role_sync = false
tls_skip_verify_insecure = false
@@ -640,6 +675,7 @@ allowed_domains =
allowed_groups =
role_attribute_path =
role_attribute_strict = false
org_mapping =
allow_assign_grafana_admin = false
skip_org_role_sync = false
tls_skip_verify_insecure = false
@@ -664,10 +700,12 @@ token_url = https://oauth2.googleapis.com/token
api_url = https://openidconnect.googleapis.com/v1/userinfo
signout_redirect_url =
allowed_domains =
validate_hd = true
hosted_domain =
allowed_groups =
role_attribute_path =
role_attribute_strict = false
org_mapping =
allow_assign_grafana_admin = false
skip_org_role_sync = true
tls_skip_verify_insecure = false
@@ -746,6 +784,8 @@ allowed_domains =
allowed_groups =
role_attribute_path =
role_attribute_strict = false
org_attribute_path =
org_mapping =
allow_assign_grafana_admin = false
skip_org_role_sync = false
tls_skip_verify_insecure = false
@@ -772,6 +812,8 @@ login_attribute_path =
name_attribute_path =
role_attribute_path =
role_attribute_strict = false
org_attribute_path =
org_mapping =
groups_attribute_path =
id_token_attribute_name =
team_ids_attribute_path =
@@ -797,6 +839,14 @@ use_refresh_token = false
#################################### Basic Auth ##########################
[auth.basic]
enabled = true
# This setting will enable a stronger password policy for user's password under basic auth.
# The password will need to comply with the following password policy
# 1. Have a minimum of 12 characters
# 2. Composed by at least 1 uppercase character
# 3. Composed by at least 1 lowercase character
# 4. Composed by at least 1 digit character
# 5. Composed by at least 1 symbol character
password_policy = false
#################################### Auth Proxy ##########################
[auth.proxy]
@@ -804,7 +854,7 @@ enabled = false
header_name = X-WEBAUTH-USER
header_property = username
auto_sign_up = true
sync_ttl = 60
sync_ttl = 15
whitelist =
headers =
headers_encoded = false
@@ -817,6 +867,8 @@ enable_login_token = false
header_name =
email_claim =
username_claim =
email_attribute_path =
username_attribute_path =
jwk_set_url =
jwk_set_file =
cache_ttl = 60m
@@ -825,11 +877,11 @@ key_file =
key_id =
role_attribute_path =
role_attribute_strict = false
groups_attribute_path =
auto_sign_up = false
url_login = false
allow_assign_grafana_admin = false
skip_org_role_sync = false
signout_redirect_url =
#################################### Auth LDAP ###########################
[auth.ldap]
@@ -843,7 +895,7 @@ skip_org_role_sync = false
sync_cron = "0 1 * * *"
active_sync_enabled = true
#################################### AWS ###########################
#################################### AWS #####################################
[aws]
# Enter a comma-separated list of allowed AWS authentication providers.
# Options are: default (AWS SDK Default), keys (Access && secret key), credentials (Credentials field), ec2_iam_role (EC2 IAM Role)
@@ -859,6 +911,14 @@ list_metrics_page_limit = 500
# Experimental, for use in Grafana Cloud only. Please do not set.
external_id =
# Sets the expiry duration of an assumed role.
# This setting should be expressed as a duration. Examples: 6h (hours), 10d (days), 2w (weeks), 1M (month).
session_duration = "15m"
# Set the plugins that will receive AWS settings for each request (via plugin context)
# By default this will include all Grafana Labs owned AWS plugins, or those that make use of AWS settings (ElasticSearch, Prometheus).
forward_settings_to_plugins = cloudwatch, grafana-athena-datasource, grafana-redshift-datasource, grafana-x-ray-datasource, grafana-timestream-datasource, grafana-iot-sitewise-datasource, grafana-iot-twinmaker-app, grafana-opensearch-datasource, aws-datasource-provisioner, elasticsearch, prometheus
#################################### Azure ###############################
[azure]
# Azure cloud environment where Grafana is hosted
@@ -866,6 +926,10 @@ external_id =
# Default value is AzureCloud (i.e. public cloud)
cloud = AzureCloud
# A customized list of Azure cloud settings and properties, used by data sources which need this information when run in non-standard azure environments
# When specified, this list will replace the default cloud list of AzureCloud, AzureChinaCloud, AzureUSGovernment and AzureGermanCloud
clouds_config =
# Specifies whether Grafana hosted in Azure service with Managed Identity configured (e.g. Azure Virtual Machines instance)
# If enabled, the managed identity can be used for authentication of Grafana in Azure services
# Disabled by default, needs to be explicitly enabled
@@ -898,6 +962,13 @@ workload_identity_token_file =
# Disabled by default, needs to be explicitly enabled
user_identity_enabled = false
# Specifies whether user identity authentication fallback credentials should be enabled in data sources
# Enabling this allows data source creators to provide fallback credentials for backend initiated requests
# e.g. alerting, recorded queries etc.
# Enabled by default, needs to be explicitly disabled
# Will not have any effect if user identity is disabled above
user_identity_fallback_credentials_enabled = true
# Override token URL for Azure Active Directory
# By default is the same as token URL configured for AAD authentication settings
user_identity_token_url =
@@ -910,6 +981,11 @@ user_identity_client_id =
# By default is the same as used in AAD authentication or can be set to another application (for OBO flow)
user_identity_client_secret =
# Allows the usage of a custom token request assertion when Grafana is behind an authentication proxy
# In most cases this will not need to be used. To enable this set the value to "username"
# The default is empty and any other value will not enable this functionality
username_assertion =
# Set the plugins that will receive Azure settings for each request (via plugin context)
# By default this will include all Grafana Labs owned Azure plugins, or those that make use of Azure settings (Azure Monitor, Azure Data Explorer, Prometheus, MSSQL).
forward_settings_to_plugins = grafana-azure-monitor-datasource, prometheus, grafana-azure-data-explorer-datasource, mssql
@@ -940,6 +1016,7 @@ from_address = admin@grafana.localhost
from_name = Grafana
ehlo_identity =
startTLS_policy =
enable_tracing = false
[smtp.static_headers]
# Include custom static headers in all outgoing emails
@@ -1031,6 +1108,11 @@ instrumentations_console_enabled = false
# Should webvitals instrumentation be enabled, only affects Grafana Javascript Agent
instrumentations_webvitals_enabled = false
# level of internal logging for debugging Grafana Javascript Agent.
# possible values are: 0 = OFF, 1 = ERROR, 2 = WARN, 3 = INFO, 4 = VERBOSE
# more details: https://github.com/grafana/faro-web-sdk/blob/v1.3.7/docs/sources/tutorials/quick-start-browser.md#how-to-activate-debugging
internal_logger_level = 0
# Api Key, only applies to Grafana Javascript Agent provider
api_key =
@@ -1081,9 +1163,13 @@ global_file = 1000
# global limit of correlations
global_correlations = -1
# Limit of the number of alert rules per rule group.
# This is not strictly enforced yet, but will be enforced over time.
alerting_rule_group_rules = 100
#################################### Unified Alerting ####################
[unified_alerting]
# Enable the Unified Alerting sub-system and interface. When enabled we'll migrate all of your alert rules and notification channels to the new system. New alert rules will be created and your notification channels will be converted into an Alertmanager configuration. Previous data is preserved to enable backwards compatibility but new data is removed when switching. When this configuration section and flag are not defined, the state is defined at runtime. See the documentation for more details.
# Enable the Alerting sub-system and interface.
enabled =
# Comma-separated list of organization IDs for which to disable unified alerting. Only supported if unified alerting is enabled.
@@ -1097,7 +1183,12 @@ admin_config_poll_interval = 60s
# The interval string is a possibly signed sequence of decimal numbers, followed by a unit suffix (ms, s, m, h, d), e.g. 30s or 1m.
alertmanager_config_poll_interval = 60s
# The redis server address that should be connected to.
# Set to true when using redis in cluster mode.
ha_redis_cluster_mode_enabled = false
# The redis server address(es) that should be connected to.
# Can either be a single address, or if using redis in cluster mode,
# the cluster configuration address or a comma-separated list of addresses.
ha_redis_address =
# The username that should be used to authenticate with the redis server.
@@ -1120,6 +1211,34 @@ ha_redis_peer_name =
# The maximum number of simultaneous redis connections.
ha_redis_max_conns = 5
# Enable TLS on the client used to communicate with the redis server. This should be set to true
# if using any of the other ha_redis_tls_* fields.
ha_redis_tls_enabled = false
# Path to the PEM-encoded TLS client certificate file used to authenticate with the redis server.
# Required if using Mutual TLS.
ha_redis_tls_cert_path =
# Path to the PEM-encoded TLS private key file. Also requires the client certificate to be configured.
# Required if using Mutual TLS.
ha_redis_tls_key_path =
# Path to the PEM-encoded CA certificates file. If not set, the host's root CA certificates are used.
ha_redis_tls_ca_path =
# Overrides the expected name of the redis server certificate.
ha_redis_tls_server_name =
# Skips validating the redis server certificate.
ha_redis_tls_insecure_skip_verify =
# Overrides the default TLS cipher suite list.
ha_redis_tls_cipher_suites =
# Overrides the default minimum TLS version.
# Allowed values: VersionTLS10, VersionTLS11, VersionTLS12, VersionTLS13
ha_redis_tls_min_version =
# Listen address/hostname and port to receive unified alerting messages for other Grafana instances. The port is used for both TCP and UDP. It is assumed other Grafana instances are also running on the same port.
ha_listen_address = "0.0.0.0:9094"
@@ -1150,17 +1269,17 @@ ha_gossip_interval = 200ms
# The interval string is a possibly signed sequence of decimal numbers, followed by a unit suffix (ms, s, m, h, d), e.g. 30s or 1m.
ha_push_pull_interval = 60s
# Enable or disable alerting rule execution. The alerting UI remains visible. This option has a legacy version in the `[alerting]` section that takes precedence.
# Enable or disable alerting rule execution. The alerting UI remains visible.
execute_alerts = true
# Alert evaluation timeout when fetching data from the datasource. This option has a legacy version in the `[alerting]` section that takes precedence.
# Alert evaluation timeout when fetching data from the datasource.
# The timeout string is a possibly signed sequence of decimal numbers, followed by a unit suffix (ms, s, m, h, d), e.g. 30s or 1m.
evaluation_timeout = 30s
# Number of times we'll attempt to evaluate an alert rule before giving up on that evaluation. The default value is 1.
max_attempts = 1
# Minimum interval to enforce between rule evaluations. Rules will be adjusted if they are less than this value or if they are not multiple of the scheduler interval (10s). Higher values can help with resource management as we'll schedule fewer evaluations over time. This option has a legacy version in the `[alerting]` section that takes precedence.
# Minimum interval to enforce between rule evaluations. Rules will be adjusted if they are less than this value or if they are not multiple of the scheduler interval (10s). Higher values can help with resource management as we'll schedule fewer evaluations over time.
# The interval string is a possibly signed sequence of decimal numbers, followed by a unit suffix (ms, s, m, h, d), e.g. 30s or 1m.
min_interval = 10s
@@ -1169,6 +1288,17 @@ min_interval = 10s
# (concurrent queries per rule disabled).
max_state_save_concurrency = 1
# If the feature flag 'alertingSaveStatePeriodic' is enabled, this is the interval that is used to persist the alerting instances to the database.
# The interval string is a possibly signed sequence of decimal numbers, followed by a unit suffix (ms, s, m, h, d), e.g. 30s or 1m.
state_periodic_save_interval = 5m
# Disables the smoothing of alert evaluations across their evaluation window.
# Rules will evaluate in sync.
disable_jitter = false
# Retention period for Alertmanager notification log entries.
notification_log_retention = 5d
[unified_alerting.screenshots]
# Enable screenshots in notifications. You must have either installed the Grafana image rendering
# plugin, or set up Grafana to use a remote rendering service.
@@ -1242,6 +1372,10 @@ loki_basic_auth_username =
# Optional password for basic authentication on requests sent to Loki. Can be left blank.
loki_basic_auth_password =
# For "loki" only.
# Optional max query length for queries sent to Loki. Default is 721h which matches the default Loki value.
loki_max_query_length = 721h
[unified_alerting.state_history.external_labels]
# Optional extra labels to attach to outbound state history records or log streams.
# Any number of label key-value-pairs can be provided.
@@ -1249,12 +1383,16 @@ loki_basic_auth_password =
# ex.
# mylabelkey = mylabelvalue
[unified_alerting.upgrade]
# If set to true when upgrading from legacy alerting to Unified Alerting, grafana will first delete all existing
# Unified Alerting resources, thus re-upgrading all organizations from scratch. If false or unset, organizations that
# have previously upgraded will not lose their existing Unified Alerting data when switching between legacy and
# Unified Alerting. Should be kept false when not needed as it may cause unintended data-loss if left enabled.
clean_upgrade = false
[unified_alerting.state_history.annotations]
# Controls retention of annotations automatically created while evaluating alert rules.
# Alert state history backend must be configured to be annotations (see setting [unified_alerting.state_history].backend).
# Configures how long alert annotations are stored for. Default is 0, which keeps them forever.
# This setting should be expressed as a duration. Ex 6h (hours), 10d (days), 2w (weeks), 1M (month).
max_age =
# Configures max number of alert annotations that Grafana stores. Default value is 0, which keeps all alert annotations.
max_annotations_to_keep =
# NOTE: this configuration options are not used yet.
[remote.alertmanager]
@@ -1278,43 +1416,6 @@ password =
sync_interval = 5m
#################################### Alerting ############################
[alerting]
# Enable the legacy alerting sub-system and interface. If Unified Alerting is already enabled and you try to go back to legacy alerting, all data that is part of Unified Alerting will be deleted. When this configuration section and flag are not defined, the state is defined at runtime. See the documentation for more details.
enabled =
# Makes it possible to turn off alert execution but alerting UI is visible
execute_alerts = true
# Default setting for new alert rules. Defaults to categorize error and timeouts as alerting. (alerting, keep_state)
error_or_timeout = alerting
# Default setting for how Grafana handles nodata or null values in alerting. (alerting, no_data, keep_state, ok)
nodata_or_nullvalues = no_data
# Alert notifications can include images, but rendering many images at the same time can overload the server
# This limit will protect the server from render overloading and make sure notifications are sent out quickly
concurrent_render_limit = 5
# Default setting for alert calculation timeout. Default value is 30
evaluation_timeout_seconds = 30
# Default setting for alert notification timeout. Default value is 30
notification_timeout_seconds = 30
# Default setting for max attempts to sending alert notifications. Default value is 3
max_attempts = 3
# Makes it possible to enforce a minimal interval between evaluations, to reduce load on the backend
min_interval_seconds = 1
# Configures for how long alert annotations are stored. Default is 0, which keeps them forever.
# This setting should be expressed as an duration. Ex 6h (hours), 10d (days), 2w (weeks), 1M (month).
max_annotation_age =
# Configures max number of alert annotations that Grafana stores. Default value is 0, which keeps all alert annotations.
max_annotations_to_keep =
#################################### Annotations #########################
[annotations]
# Configures the batch size for the annotation clean-up job. This setting is used for dashboard, API, and alert annotations.
@@ -1375,6 +1476,11 @@ concurrent_query_limit =
# Enable the Query history
enabled = true
#################################### Short Links #############################
[short_links]
# Short links which are never accessed will be deleted as cleanup. Time is in days. Default is 7 days. Max is 365. 0 means they will be deleted approximately every 10 minutes.
expire_time = 7
#################################### Internal Grafana Metrics ############
# Metrics available at HTTP URL /metrics and /metrics/plugins/:pluginId
[metrics]
@@ -1408,6 +1514,7 @@ url = https://grafana.com
[grafana_com]
url = https://grafana.com
api_url = https://grafana.com/api
sso_api_token = ""
#################################### Distributed tracing ############
# Opentracing is deprecated use opentelemetry instead
@@ -1518,6 +1625,12 @@ concurrent_render_request_limit = 30
# Default is 5m. This should be more than enough for most deployments.
# Change the value only if image rendering is failing and you see `Failed to get the render key from cache` in Grafana logs.
render_key_lifetime = 5m
# Default width for panel screenshot
default_image_width = 1000
# Default height for panel screenshot
default_image_height = 500
# Default scale for panel screenshot
default_image_scale = 1
[panels]
# here for to support old env variables, can remove after a few months
@@ -1770,3 +1883,20 @@ read_only_toggles =
[public_dashboards]
# Set to false to disable public dashboards
enabled = true
###################################### Cloud Migration ######################################
[cloud_migration]
# Set to true to enable target-side migration UI
is_target = false
# Token used to send requests to grafana com
gcom_api_token = ""
# How long to wait for a request to fetch an instance to complete
fetch_instance_timeout = 5s
# How long to wait for a request to create an access policy to complete
create_access_policy_timeout = 5s
# How long to wait for a request to create to fetch an access policy to complete
fetch_access_policy_timeout = 5s
# How long to wait for a request to create to delete an access policy to complete
delete_access_policy_timeout = 5s
# The domain name used to access cms
domain = grafana-dev.net

View File

@@ -67,6 +67,45 @@ apiVersion: 1
# labels:
# team: sre_team_1
# isPaused: false
# # optional settings that let configure notification settings applied to alerts created by this rule
# notification_settings:
# # <string> name of the receiver (contact-point) that should be used for this route
# receiver: grafana-default-email
# # <list<string>> The labels by which incoming alerts are grouped together. For example,
# # multiple alerts coming in for cluster=A and alertname=LatencyHigh would
# # be batched into a single group.
# #
# # To aggregate by all possible labels, use the special value '...' as
# # the sole label name, for example:
# # group_by: ['...']
# # This effectively disables aggregation entirely, passing through all
# # alerts as-is. This is unlikely to be what you want, unless you have
# # a very low alert volume or your upstream notification system performs
# # its own grouping.
# # If defined, must contain the labels 'alertname' and 'grafana_folder', except when contains '...'
# group_by: ["alertname", "grafana_folder", "region"]
# # <list> Times when the route should be muted. These must match the name of a
# # mute time interval.
# # Additionally, the root node cannot have any mute times.
# # When a route is muted it will not send any notifications, but
# # otherwise acts normally (including ending the route-matching process
# # if the `continue` option is not set)
# mute_time_intervals:
# - abc
# # <duration> How long to initially wait to send a notification for a group
# # of alerts. Allows to collect more initial alerts for the same group.
# # (Usually ~0s to few minutes).
# # If not specified, the corresponding setting of the default policy is used.
# group_wait: 30s
# # <duration> How long to wait before sending a notification about new alerts that
# # are added to a group of alerts for which an initial notification has
# # already been sent. (Usually ~5m or more).
# # If not specified, the corresponding setting of the default policy is used.
# group_interval: 5m
# # <duration> How long to wait before sending a notification again if it has already
# # been sent successfully for an alert. (Usually ~3h or more)
# # If not specified, the corresponding setting of the default policy is used.
# repeat_interval: 4h
# # List of alert rule UIDs that should be deleted
# deleteRules:
@@ -152,7 +191,7 @@ apiVersion: 1
# - orgID: 1
# # <string, required> name of the template, must be unique
# name: my_first_template
# # <string, required> content of the the template
# # <string, required> content of the template
# template: Alerting with a custome text template
# # List of templates that should be deleted

View File

@@ -1,50 +1,71 @@
# # config file version
# Configuration file version
apiVersion: 1
# # list of datasources that should be deleted from the database
#deleteDatasources:
# # List of data sources to delete from the database.
# deleteDatasources:
# - name: Graphite
# orgId: 1
# # list of datasources to insert/update depending
# # on what's available in the database
#datasources:
# # <string, required> name of the datasource. Required
# - name: Graphite
# # <string, required> datasource type. Required
# type: graphite
# # <string, required> access mode. direct or proxy. Required
# access: proxy
# # <int> org id. will default to orgId 1 if not specified
# orgId: 1
# # <string> url
# url: http://localhost:8080
# # <string> database user, if used
# user:
# # <string> database name, if used
# database:
# # <bool> enable/disable basic auth
# basicAuth:
# # <string> basic auth username
# basicAuthUser:
# # <bool> enable/disable with credentials headers
# withCredentials:
# # <bool> mark as default datasource. Max one per org
# isDefault:
# # <map> fields that will be converted to json and stored in json_data
# jsonData:
# graphiteVersion: "1.1"
# tlsAuth: true
# tlsAuthWithCACert: true
# httpHeaderName1: "Authorization"
# # <string> json object of data that will be encrypted.
# secureJsonData:
# tlsCACert: "..."
# tlsClientCert: "..."
# tlsClientKey: "..."
# # <openshift\kubernetes token example>
# httpHeaderValue1: "Bearer xf5yhfkpsnmgo"
# version: 1
# # <bool> allow users to edit datasources from the UI.
# editable: false
# # List of data sources to insert/update depending on what's
# # available in the database.
# datasources:
# # <string, required> Sets the name you use to refer to
# # the data source in panels and queries.
# - name: Graphite
# # <string, required> Sets the data source type.
# type: graphite
# # <string, required> Sets the access mode, either
# # proxy or direct (Server or Browser in the UI).
# # Some data sources are incompatible with any setting
# # but proxy (Server).
# access: proxy
# # <int> Sets the organization id. Defaults to orgId 1.
# orgId: 1
# # <string> Sets a custom UID to reference this
# # data source in other parts of the configuration.
# # If not specified, Grafana generates one.
# uid: my_unique_uid
# # <string> Sets the data source's URL, including the
# # port.
# url: http://localhost:8080
# # <string> Sets the database user, if necessary.
# user:
# # <string> Sets the database name, if necessary.
# database:
# # <bool> Enables basic authorization.
# basicAuth:
# # <string> Sets the basic authorization username.
# basicAuthUser:
# # <bool> Enables credential headers.
# withCredentials:
# # <bool> Toggles whether the data source is pre-selected
# # for new panels. You can set only one default
# # data source per organization.
# isDefault:
# # <map> Fields to convert to JSON and store in jsonData.
# jsonData:
# # <string> Defines the Graphite service's version.
# graphiteVersion: '1.1'
# # <bool> Enables TLS authentication using a client
# # certificate configured in secureJsonData.
# tlsAuth: true
# # <bool> Enables TLS authentication using a CA
# # certificate.
# tlsAuthWithCACert: true
# # <map> Fields to encrypt before storing in jsonData.
# secureJsonData:
# # <string> Defines the CA cert, client cert, and
# # client key for encrypted authentication.
# tlsCACert: '...'
# tlsClientCert: '...'
# tlsClientKey: '...'
# # <string> Sets the database password, if necessary.
# password:
# # <string> Sets the basic authorization password.
# basicAuthPassword:
# # <int> Sets the version. Used to compare versions when
# # updating. Ignored when creating a new data source.
# version: 1
# # <bool> Allows users to edit data sources from the
# # Grafana UI.
# editable: false

View File

@@ -1,25 +0,0 @@
# # config file version
apiVersion: 1
# notifiers:
# - name: default-slack-temp
# type: slack
# org_name: Main Org.
# is_default: true
# uid: notifier1
# settings:
# recipient: "XXX"
# token: "xoxb"
# uploadImage: true
# url: https://slack.com
# - name: default-email
# type: email
# org_id: 1
# uid: notifier2
# is_default: false
# settings:
# addresses: example11111@example.com
# delete_notifiers:
# - name: default-slack-temp
# org_name: Main Org.
# uid: notifier1

Some files were not shown because too many files have changed in this diff Show More