Commit Graph

57790 Commits

Author SHA1 Message Date
Ashley Harrison 48662d8a1d
[release-11.6.1] Dashboards: update `@grafana/llm` to v0.13.2 and update usage (#102877)
Dashboards: update `@grafana/llm` to v0.13.2 and update usage (#101814)

This version of the package deprecates the `openai` object in
favour of the vendor-agnostic `llm` object, so this PR also
updates the usage of the package to use the new object and
take advantage of the vendor-agnostic APIs.

(cherry picked from commit 8988274912)

Co-authored-by: Ben Sully <ben.sully@grafana.com>
2025-03-26 11:56:53 +00:00
Ashley Harrison 7da43f0e0e
[release-11.6.1] LDAP test: Fix page crash (#102684)
* LDAP test: Fix page crash (#102587)

* fix translation code on ldap page causing crash

* move tooltip outside of trans

(cherry picked from commit 4f01c1aa88)

* pseudo translations
2025-03-26 10:11:34 +00:00
Matheus Macabu 798a546f24
[release-11.6.1] Dependencies: Bump github.com/redis/go-redis/v9 to 9.7.3 to address CVE-2025-29923 (#102863)
Dependencies: Bump github.com/redis/go-redis/v9 from 9.7.0 to 9.7.3
2025-03-26 10:53:50 +01:00
github-actions[bot] 78ca78f5df
Release: 11.6.0 (#102837)
* Update changelog

* Update version to 11.6.0

* point to next 11.6.1 instead of 11.6.0-pre

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jeff Levin <jeff@levinology.com>
2025-03-25 14:09:54 -08:00
Isabel Matwawana 93cba80719
[release-11.6.0] Docs: bar gauge visualization refactor (#102830)
Docs: bar gauge visualization refactor (#102747)

* Added Config options heading and bumped heading levels

* Added empty Text size options section and updated Value options

* Updated bar gauge section

* Added missing options and removed screenshot

* Fixed Bar gauge options

* Added descriptions for Text size section

* Added links to text size section

* Fixed text size section

(cherry picked from commit 13058d2715)
2025-03-25 16:03:58 -04:00
grafana-delivery-bot[bot] f03be943ae
[release-11.6.0] Docs: updating admonition shortcodes in plugin management (#102818)
Docs: updating admonition shortcodes in plugin management (#102817)

(cherry picked from commit 4dccc03fa2)

Co-authored-by: Jacob Valdez <jacob.valdez@grafana.com>
2025-03-25 13:58:39 -05:00
Denis Vodopianov b2605ed292
Chore: Update JWT library (CVE-2025-30204) (#102727)
* Chore: Update JWT library (CVE-2025-30204)

* Chore: Update JWT library (CVE-2025-30204)
2025-03-24 19:19:52 +01:00
Jacob Valdez 9d1f5434c3
[release-11.6.0] Docs: What's new & Upgrade guide v11.6 (#102716)
Docs: What's new & Upgrade guide v11.6 (#101479)

* Docs: What's new & Upgrade guide v11.6

* Adding alerting entries

* adding new entries

* updating entries and initial text from website PR

* Reorder changelog entries

* adjusting front matter spacing for product labels

* adding missing space

---------

Co-authored-by: Mitch Seaman <mjseaman@users.noreply.github.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
(cherry picked from commit b0fda33d06)
2025-03-24 09:30:29 -05:00
Jacob Valdez 4732857aee
[release-11.6.0] Docs: Cleaning up configure security hardening docs (#102636)
Docs: Cleaning up configure security hardening docs (#102567)

* Docs: Cleaning up configure security hardening docs

* Adjusting layout

(cherry picked from commit 7d435e5d84)
2025-03-21 12:50:34 -05:00
grafana-delivery-bot[bot] d2fdff9ee4
[release-11.6.0] docs: Span details includes events and links (#102573)
docs: Span details includes events and links (#102520)

* docs: Span details includes events and links

Adds to the explore trace integration information about trace span
events and links, which are also available in the trace view.

Signed-off-by: Alex Bikfalvi <alex.bikfalvi@grafana.com>

* Update trace-integration.md

* Apply suggestions from code review

* Fix prettier issues

Signed-off-by: Alex Bikfalvi <alex.bikfalvi@grafana.com>

---------

Signed-off-by: Alex Bikfalvi <alex.bikfalvi@grafana.com>
Co-authored-by: Kim Nylander <104772500+knylander-grafana@users.noreply.github.com>
(cherry picked from commit a5665c06cf)

Co-authored-by: Alex Bikfalvi <alex@bikfalvi.com>
2025-03-21 08:48:09 +01:00
Yuri Tseretyan b6bc0eeb3f
[release-11.6.0] Alerting: Add migration to clean up rule versions table (#102562)
Alerting: Add migration to clean up rule versions table (#102484)

* add migration to clean up rule versions
* drop index right before creating a new one.
* fetch only rules which version greater than toKeep

(cherry picked from commit 24ebacb10b)
2025-03-20 22:40:47 +02:00
Matheus Macabu fef74521e9
Chore: Bump github.com/expr-lang/expr to v1.17.0 to address CVE-2025-29786 (#102533) 2025-03-20 14:53:25 +01:00
Mariell Hoversholm 5c0ee5cfcc
[v11.6] App Platform: Pin bleve to fix CVE-2022-31022 (#102531)
App Platform: Pin bleve to fix CVE-2022-31022

This pins Bleve to a soon-to-be v2.5.0 commit.

Fixes CVE-2022-31022. We can unpin when v2.5.0 releases (likely March 25th).
We do not need any new features or similar, though there are some fixes that are nice to receive.

We will **not** backport this fix farther as we aren't actually vulnerable to anything via CVE-2022-31022; we never use its code, nor does Bleve. The reason we are fixing this is to get Trivy to stop complaining.
2025-03-20 14:19:44 +01:00
grafana-delivery-bot[bot] 08d88bacc2
[release-11.6.0] Dashboards: Fix time range bug when use_browser_locale is enabled (#102396)
Dashboards: Fix time range bug when use_browser_locale is enabled (#102339)

* fix

* update

* fix tests and update

(cherry picked from commit 32756a6c30)

Co-authored-by: Haris Rozajac <58232930+harisrozajac@users.noreply.github.com>
2025-03-19 12:38:12 +00:00
Alexander Akhmetov 07698ebbaa
Revert "[release-11.6.0] Alerting: Add an index to alert_rule_versiontable on (rule_org_id, rule_uid) (#102353)" (#102367)
Revert "[release-11.6.0] Alerting: Add an index to alert_rule_version table on (rule_org_id, rule_uid) (#102353)"

This reverts commit c3a547e1c9.
2025-03-18 14:40:34 +01:00
grafana-delivery-bot[bot] 22b3ab8175
[release-11.6.0] Dashboards: Fix missing `v/e/i` keybindings to return back to dashboard (#102364)
Dashboards: Fix missing `v/e/i` keybindings to return back to dashboard (#101876)

readd keybindings to return from edit/view/inspect modes

(cherry picked from commit 3e7626cc96)

Co-authored-by: Victor Marin <36818606+mdvictor@users.noreply.github.com>
2025-03-18 14:52:29 +02:00
Alexander Akhmetov c3a547e1c9
[release-11.6.0] Alerting: Add an index to alert_rule_version table on (rule_org_id, rule_uid) (#102353)
Alerting: Add an index to alert_rule_version table on (rule_org_id, rule_uid) (#102347)

(cherry picked from commit 9491fa1895)
2025-03-18 12:33:51 +01:00
grafana-delivery-bot[bot] 9f280bd5c4
[release-11.6.0] Transformations: Fix field naming in Add field from calc (Binary mode) (#102335)
Transformations: Fix field naming in Add field from calc (Binary mode) (#102331)

(cherry picked from commit 1a6ec71822)

Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2025-03-17 20:07:12 -05:00
grafana-delivery-bot[bot] 877cdabd43
[release-11.6.0] Docs: Add enterprise availability notes (#102321)
Docs: Add enterprise availability notes (#101909)

* Added enterprise only note

* Fixed wording

* Added availability to share panel internally and removed invite new member

* Fixed wording for consistency

* Removed link to invite new members section

* Discarded change

(cherry picked from commit 1e6aa27313)

Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2025-03-17 16:18:08 -04:00
David Kim (DK) 4a713bd9ed
Plugin: expose nested folder component from core grafana (#97765)
* expose nested folder component from core grafana

* prettier

* import order

* remove unused commented code

* remove unneeded file

* make a LazyFolderPicker

* fix types, change permission to string

* comment

* reset some changes back to main

* no need to log

---------

Co-authored-by: Joe Blubaugh <joe.blubaugh@grafana.com>
Co-authored-by: joshhunt <josh@trtr.co>
Co-authored-by: joshhunt <josh.hunt@grafana.com>
2025-03-10 10:50:42 +00:00
Pepe Cano a800f87064
Alerting docs: clarify `No data/Error` alerts skip pending period (#101431)
* Alerting docs: clarify `No data/Error` alerts skip pending period

* fix vale errors
2025-03-10 11:36:09 +01:00
Pepe Cano 97d16c7a7b
Alerting docs: clarify the `export` JSON format are for file provisioning (#101617)
* Remove unused `Separator` column

* Clarify the `export` JSON output is for file provisioning

* minor copy changes

* Be more specific about the `X-Disable-Provenance` header

* minor change

* fix vale errors

* Set inline code format in property names

* fix vale error: `bool`
2025-03-10 11:33:30 +01:00
Pepe Cano 5fb8540230
Alerting docs: clarify values included in `Alert.Labels` and `Alert.Values` (#101571)
* Alerting docs: clarify values included in `Alert.Labels` and `Alert.Values`

* minor change
2025-03-10 11:31:50 +01:00
Pepe Cano 23ccd2be95
Alerting docs: dynamic label changes (#101781) 2025-03-10 11:31:07 +01:00
Karl Persson 9a3864e603
Auth: Update to authlib (#101863)
Update to latest authlib
2025-03-10 11:08:40 +01:00
Sven Grossmann 8ea6280469
Loki: Removal of `Resolution` in query editors (#101860)
Loki: Remove usage of `Resolution` in Annotations
2025-03-10 11:02:10 +01:00
Oscar Kilhed 72aa2392cb
Dashboards tabs: If trying to navigate to non existing tab with url, default to the first tab (#101784)
* if tab does from url does not exist default to 0

* fix lint
2025-03-10 10:47:15 +01:00
Alex Khomenko 7cd7d7f608
Provisioning: Register middleware and reducer (#101859) 2025-03-10 11:02:57 +02:00
Torkel Ödegaard 2f104739d7
Dashboard: Auto focus title fields in edit pane (#101668)
* Dashboard: Auto focus title fields in edit pane

* Fix scroll issue

* Update

* No auto focus in panel edit

* Update to implementation

* alt skip fix

* fixed playwright test

* Update

* Fix
2025-03-10 08:03:55 +01:00
Stephanie Hingtgen b56db69b32
K8s: Dashboard History: Improve Error Handling (#101816) 2025-03-09 12:19:40 +03:00
Stephanie Hingtgen 9651505cb7
K8s: Dashboards: Fix provisioning (#101844) 2025-03-08 09:37:41 +03:00
Stephanie Hingtgen 473c0b5e89
K8s: Fix plugin updater (#101843) 2025-03-08 02:42:20 +02:00
grafana-pr-automation[bot] 4ea290e931
I18n: Download translations from Crowdin (#101751)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-08 02:29:28 +02:00
Stephanie Hingtgen bd0c645ff0
K8s: Schema v2: Return 406 in /api (#101842) 2025-03-07 18:20:02 -06:00
Leon Sorokin 1444e9d572
Transformations: Improve groupBy field selection and aggregated field types (#101753) 2025-03-08 01:43:08 +02:00
Drew Slobodnjak f0a8e86c28
Geomap: WebGL for Marker Layer (#95457)
* Geomap: Implement webgl for marker layer

* Cover rgb color formatting

* Adjust size

* Adjust size and leave todo for adjustment

* Add custom icon example

* Use prepareSVG to handle custom icons

* Apply icon offset

* Add example of text labels for fixed case

* Add text canvas layer and layerGroup

* Use textMarker for text layer style

* Fix geometry calcs

* Only include text layer if needed

* Remove extra line

* Move color functions to utils

* Pass webGL bool to marker maker

* Move webgl symbol style to marker maker

* Get hit detection working for webgl layers

* Improve icon hit detection

* Improve text performance

* Fix types and simplify webgl styling

* Simplify webgl regular shape lookup

* Add comments

* Set fallback color to white

* Fix data fit for initial view

* Update color utils to support colors with alpha

* Add tests for color value function

* Add tests for getWebGLStyle function

* Clean up comments

* Only show text if no symbol is specified

* Remove size multiplier from webgl implementation

* Add size multiplier back for now
2025-03-07 13:16:17 -08:00
Isabel Matwawana b26fdf8f5e
Docs: traces visualization refactor (#101476)
* Added Config options heading, bumped heading levels, and changed heading

* Updated task sub-heading and added to do notes

* Moved span filter options into a table and moved sentences after table

* Removed image

* Replaced captions with alt text

* Updated image path for main screenshot

* Fixed image path

* Updated screenshot and made to do notes

* Updated link to new heading

* Removed comments
2025-03-07 16:09:44 -05:00
Ezequiel Victorero 1c7f9d4333
Chore: Bump gofpdf (#101823) 2025-03-07 17:40:22 -03:00
Matthew Jacobson 19b878ce66
Alerting: Include time range in template dashboard and panel urls (#101095)
Alerting: Include time range in templated dashboard and panel urls

Time range:
from=Alert.StartsAt-1hr

Firing Alerts: to=Current Timestamp
Resolved Alerts: to=Alert.EndsAt
2025-03-07 15:28:56 -05:00
Jev Forsberg 9be18278d9
Chore: Move code verification to proper workflow (#101742)
* baldm0mma/ move verification to new workflow

* baldm0mma/ test if needs install step

* baldm0mma/ remove install step

* baldm0mma/ update go version
2025-03-07 13:13:40 -07:00
colin-stuart ff10186db7
Docs: Group Attribute Sync feature in private preview (#101822)
* Docs: Group Attribute Sync feature in private preview

* add link & support note

* update GAS API docs
2025-03-07 14:28:26 -05:00
Juan Cabanas 5e21b9e2d1
Invite User: Add invite user button in top bar (#101809) 2025-03-07 16:09:59 -03:00
Matthew Jacobson b73c59547c
Alerting: Re-encrypt existing contact points before get and patch in legacy config API (#101263)
* Test covering Get+Save interaction for newly secret fields

* Alerting: Re-encrypt existing contact points before get and patch
2025-03-07 13:26:48 -05:00
Yuri Tseretyan dc75b454f5
Alerting: Improve performance of the setting GUID during migration (#101800) 2025-03-07 12:28:07 -05:00
Torkel Ödegaard 8f6dcd01d6
Dashboard: Editing selection redesign (#101763)
* Dashboard: Editing selection redesign

* Reduce row padding and make it uniform

* Minor tweak

* Update
2025-03-07 17:58:05 +01:00
maicon 8c22459e1f
Add debug info for encodeIdentityInMetadata (#101801)
Signed-off-by: Maicon Costa <maiconscosta@gmail.com>
2025-03-07 13:40:09 -03:00
Collin Fingar 8cdc687abf
i18n: Marking up Pagination and PageToolbar in Grafana-UI for translation (#101738)
* Grafana-UI: Pagination + PageToolbar i18n

* betterer results update for i18n fix

* Linting fix w/ import order
2025-03-07 11:12:07 -05:00
Alexander Akhmetov 48ea9b08a2
Alerting: Add recording rule target datasource support to Prometheus conversion API (#101799)
What is this feature?

Adds target datasource UID to the recording rules so that they write to the same datasource used for alerting rule queries after the import.

Why do we need this feature?

Target datasourse support was added in #101678, and under a feature flag grafanaManagedRecordingRulesDatasources (#101778).

This PR makes the importing process:
    Check if the import contains recording rules
    Verify both recording rules and the grafanaManagedRecordingRulesDatasources feature flag are enabled
    If either check fails, return an error
    If both checks pass, create recording rules with the provided datasource UID set as both the query and target datasource
2025-03-07 16:56:24 +01:00
owensmallwood 827da46c51
Unified Storage: Remove wildcard queries (#101441)
* WIP adding custom analyzer so we can do substring search efficiently

* Adding unit tests for title search

* formatting

* adds more title search unit tests

* organize helpers

* fixes issue caused by having two title mappings

* Removes camelcase token filter since it prevents you from searching for a substring of chars and numbers. Adds regression test.

* adds back mapping for title_phrase

* use simple analyzer for input query string so it doesn't filter out english stop words

* ran bleve tests, table snapshots updated

* ignore linter for "unused" test functions. They are very helpful for troubleshooting search. Keeping them.

* only log total hits and query cost if result not nil

* fixes failing test - one more field because there are two title mappings now

* fix test

* fixes test - only take first item when its the title

* Adds separate internal field for title ngram mapping.

When searching with a query, results are sorted by score desc.

When searching without a query, results are sorted by title desc.

Adjusts ngram max to be 10.

Text queries are a disjunction of an exact match, phrase match, and a match. Boosted to have priority in that order.

Adds more unit tests for searching.

* linter

* fix test

* ran tests - generated new test dash json

* sort by title phrase instead of title

* fix test - not relying on /apis/dashboard/search to apply title sorting anymore
2025-03-07 09:51:15 -06:00
Gilles De Mey da8f26a07c
Alerting: Refactor and clean up rule type guard functions (#101639) 2025-03-07 16:15:55 +01:00