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>
* 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>
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)
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>
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)
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.
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>
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>
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>
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>
* 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>
* 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`
* 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
* 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
* 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
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
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
* 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