Commit Graph

58613 Commits

Author SHA1 Message Date
Oscar Kilhed 50499fa749
Dashboards: Add a config setting that limits the number of series that will be displayed in a panel. Users can opt in to render all series. (#103405)
* Limit series in panels in dashboards

* fix mangled comment
2025-04-11 13:56:58 +02:00
Alex Spencer 906004c7ae
TableNg: Fix a few bugs found in K8s land (#103829)
* fix: a few bugs found in K8s land

* fix: column width buggy behavior

* fix: column width try again
2025-04-11 05:47:40 -06:00
ismail simsek 962232c31c
Prometheus: Add ability to clear metric name in PromQL query builder (#103821)
is clearable true
2025-04-11 13:39:11 +02:00
Bogdan Matei 35e78feffa
Dynamic Dashboards: Add repeats for tabs (#103348) 2025-04-11 13:50:44 +03:00
Sergej-Vlasov 9b6021c490
AutoGridLayoutManager: Fix viz panel key duplication in auto and custom layouts (#103727)
* fix  viz panel key duplication in auto and custom layouts

* clean up
2025-04-11 11:17:32 +01:00
Andres Martinez Gotor 335a55047b
Advisor: Move the missing plugin check to its own step (#103861) 2025-04-11 12:11:05 +02:00
Ryan McKinley 0d20680695
Provisioning: Improve PR feedback (#103537)
* fix ref

* dryRun before save

* reuse code for create vs update

* update comments

* can update PRs

* return useful errors

* update preview links

* lint fix

* update some wording

* update mocks

* fixed

* Update pkg/registry/apis/provisioning/resources/dualwriter.go

Co-authored-by: Roberto Jiménez Sánchez <roberto.jimenez@grafana.com>

* more updates

* fix link

* error string

* dry run

* refactor galore

* with template test

* very basic tests

* more test cases

* remove generator

* more tests

* fix lint

* multiple files now

* merge main

* merge main

* fix snapshots

* fix snapshots

* slugify title

---------

Co-authored-by: Roberto Jiménez Sánchez <roberto.jimenez@grafana.com>
2025-04-11 11:06:16 +01:00
Alexa V 00dcf482cf
Dashboard -Schema V2 Stateless annotations (dsRef independent) (#102949)
* Implement basic behavior of stateless annotation

* Fix ds defined getting lost

* Fix linter

* adjust test to be aligned with datasources not automatically being assigned to the model

* Add  unit test for annotations

---------

Co-authored-by: Haris Rozajac <58232930+harisrozajac@users.noreply.github.com>
Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
2025-04-11 11:42:48 +02:00
Andres Martinez Gotor 8ebce76535
UserStorage: multiple improvements (#103779) 2025-04-11 11:32:31 +02:00
Laura Fernández 3607356f65
i18n: Update `internationalization/dates.ts` to use `locale` (#103731) 2025-04-11 11:24:40 +02:00
grafana-pr-automation[bot] c303cd3a8b
I18n: Download translations from Crowdin (#103840)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-04-11 09:55:12 +01:00
Peter Štibraný b0b4b31765
publicdashboards: Don't format timestamp before passing it to database. (#103463)
Don't format timestamp before passing it to database.
2025-04-11 10:31:10 +02:00
Peter Štibraný 54b8dde1e1
services/user: Fix userimpl tests when running on Spanner. (#103715)
Fix userimpl tests when running on Spanner.
2025-04-11 10:28:21 +02:00
Sergej-Vlasov 4648ba396b
DashboardScenePage: Correct slug in self referencing data links (#100048)
* switch to useLayoutEffect so queries run after url correction

* add comment

* suparate useEffects to avoid update on slug change

* add url correction for missing slug

* account for slug change during dashboard rename

* simplify fix

* add e2e test for data link without slug

* remove old comment

* remove newly added path from useEffect dependencies
2025-04-11 09:25:21 +01:00
Ashley Harrison 79400018a4
Preferences: Allow setting `lang` and `theme` from URL (#103587)
* allow setting theme/language via url

* set in backend instead

* add locale as well
2025-04-11 09:21:06 +01:00
Jean-Philippe Quéméner 50fcc053c2
feat(unified-storage): provide delete function for bucket (#103825) 2025-04-11 10:10:13 +02:00
Gabriel MABILLE 45d6bfe7cf
AuthZ: Make cache ttl configurable (#103769)
* AuthZ: Configure cache ttl

Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com>

* Client side conf

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com>

* 0 -> No caching

* Make it possible to disable cache on the remote client as well

* Comment

* Move ttl parsing up for in-proc to have it

---------

Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com>
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2025-04-11 10:09:47 +02:00
Konrad Lalik 0a8dccc19a
Alerting: New alert list filter improvements (#103107)
* Move filtering code to generators for performance reasons

Discarding rules and groups early in the iterable chain limits the number of promises we need to wait for which improves performance significantly

* Add error handling for generators

* Add support for data source filter for GMA rules

* search WIP fix

* Fix datasource filter

* Move filtering back to filtered rules hook, use paged groups for improved performance

* Add queriedDatasources field to grafana managed rules and update filtering logic to rely on it

- Introduced a new field `queriedDatasources` in the AlertingRule struct to track data sources used in rules.
- Updated the Prometheus API to populate `queriedDatasources` when creating alerting rules.
- Modified filtering logic in the ruleFilter function to utilize the new `queriedDatasources` field for improved data source matching.
- Adjusted related tests to reflect changes in rule structure and filtering behavior.

* Add FilterView performance logging

* Improve GMA Prometheus types, rename queried datasources property

* Use custom generator helpers for flattening and filtering rule groups

* Fix lint errors, add missing translations

* Revert test condition

* Refactor api prom changes

* Fix lint errors

* Update backend tests

* Refactor rule list components to improve error handling and data source management

- Enhanced error handling in FilterViewResults by logging errors before returning an empty iterable.
- Simplified conditional rendering in GrafanaRuleLoader for better readability.
- Updated data source handling in PaginatedDataSourceLoader and PaginatedGrafanaLoader to use new individual rule group generator.
- Renamed toPageless function to toIndividualRuleGroups for clarity in prometheusGroupsGenerator.
- Improved filtering logic in useFilteredRulesIterator to utilize a dedicated function for data source type validation.
- Added isRulesDataSourceType utility function for better data source type checks.
- Removed commented-out code in PromRuleDTOBase for cleaner interface definition.

* Fix abort controller on FilterView

* Improve generators filtering

* fix abort controller

* refactor cancelSearch

* make states exclusive

* Load full page in one loadResultPage call

* Update tests, update translations

* Refactor filter status into separate component

* hoist hook

* Use the new function for supported rules source type

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2025-04-11 10:02:34 +02:00
Torkel Ödegaard 1e669cbb45
AppChrome: Sidebar extensions button update (#103791)
* AppChrome: Sidebar app icon button update

* Update

* remove unused files

* Update public/app/core/components/AppChrome/ExtensionSidebar/ExtensionToolbarItem.tsx

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

* update

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2025-04-11 09:25:09 +02:00
Alex Khomenko 04fae8bd46
Provisioning: Update ConfigForm (#103846)
* Provisioning: Fix token permissions alignment

* Update config form

* Extract getDefaultValues
2025-04-11 08:33:11 +03:00
Andreas Christou 7aa8628971
AzureMonitor: Only fetch table plans in the builder (#103833)
* Only fetch table plans in the builder

* Appropriately set schema
2025-04-11 01:31:45 +01:00
Moustafa Baiou 032299011a
Alerting: Relax permissions for access a rule (#103664)
This makes it so that it is:
- No longer required to have datasource permissions to delete a rule.
- No longer required to have datasource permissions to update non-query related fields of a rule.
2025-04-11 00:58:37 +01:00
Andreas Christou 3a71a48a88
AzureMonitor: Improve selection of Basic Logs tables in the query builder (#103820)
* Add function for retrieving logs table plan

- Add URL builder method
- Add types

* Add auto-switching for basic logs tables

* Set dashboardTime property

* Ensure useEffect doesn't run on every query change

* Fix basicLogs property

* Add isLoading for schema
2025-04-10 14:11:00 -06:00
Sven Grossmann 05338838b0
Sidecar: Remove experimental Sidecar implementation (#103786)
* Sidecar: remove `appSidecar` feature toggle

* Sidecar: Remove sidecar implementation

* lint
2025-04-10 22:04:12 +02:00
Alex Khomenko 0bad0526f5
Provisioning: Simplify component logic (#103816) 2025-04-10 22:54:56 +03:00
Nick Richmond 73ba19a98e
Dashboards: Fix panel link to Grafana Metrics Drilldown (#103759)
* fix: panel link to Grafana Metrics Drilldown

* test: handling of plugin links
2025-04-10 21:50:10 +02:00
Kevin Yu fd6fd91115
Prometheus: Add support for cloud partners Prometheus data sources (#103482)
* wip

* Add prom flavor support for data source variables and export/import dashboards (#103321)

* add dashboard and data source var selection

* use match plugin id instead

* use updated matchpluginid

* formatting

* cleanup

* regex anchor

* update error msg

* Alerting: Clean up prometheus-flavored types and functions (#103703)

* clean up types and utility functions for dealing with
prometheus-flavored data sources

* Refactor alerting datasource types to use constants as source of truth

* Alerting: Clean up prometheus-flavored types and functions on the bac… (#103716)

Alerting: Clean up prometheus-flavored types and functions on the backend

* add matchPluginId tests

* Update matchPluginId func to bidirectional (#103746)

* update matchpluginid func to bidirectional

* lint

* formatting

* use actual isSupportedExternalRulesSourceType in test

* add tests in datasource_srv

* betterer

* remove type assertion

* remove unnecessary case

* use satisifies to not have to convert tuple to an array of string

* add prometheus_flavor test

---------

Co-authored-by: Andrew Hackmann <5140848+bossinc@users.noreply.github.com>
Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
Co-authored-by: Alexander Akhmetov <me@alx.cx>
2025-04-10 12:49:11 -07:00
Sven Grossmann 22a9e1b5ff
Scopes: Fix translation key of `scopes.dashboards.toggle.expand` (#102515) 2025-04-10 20:37:59 +01:00
Ryan McKinley 02b090574d
Unified: use server access client for bulk operations (#103828) 2025-04-10 20:29:59 +01:00
Dana Axinte 190f5a234f
Cloud migrations: Update links to docs in cloud stack page (#103789)
* modify links

* new tab links

* remove line
2025-04-10 20:08:00 +01:00
Piotr Jamróz 3551e6074c
TraceView: Handle External correlation links correctly (#103594)
* TraceView: Handle External correlation links correctly

* Improve handling URLs
2025-04-10 20:07:49 +01:00
Sarah Zinger acd843303e
SQL Expression: Add instrumentation for sql expressions (#103758) 2025-04-10 19:51:44 +01:00
Matias Chomicki 778d0b2da4
Logs: Clean up Explore meta information (#103801)
* LogLabels: add displayMax property

* MetaInfoText: prevent label wrapping

* LogsMetaRow: remove unescaped content and max characters

* LogsMetaRow: use font weight normal

* LogLabels: add button to collapse back

* LogsMetaRow: set line height

* LogsMetaRow: save common logs state

* LogsMetaRow: update unit tests

* LogLabels: update unit test

* LogListContext: add forceEscape option

* LogListContext: move forceEscape and hasUnescapedContents

* LogListControls: move forceEscape to controls

* LogList: read forceEscape from context

* i18n

* LogListControls: test new control

* Update betterer

* logsModel: update test

* LogLabels: replace characters with icons

* Prettier

* LogLabels: add aria labels

* i18n

* Update tests

* Update test
2025-04-10 19:47:17 +01:00
Sergej-Vlasov 828cd05f18
ConditionalRendering: Adjust naming and delete button alignment (#103677)
adjust naming and delete button alignment
2025-04-10 19:27:31 +01:00
Roberto Jiménez Sánchez 2eaeff8ea7
Provisioning: Fix issue with double prefix for github repository (#103781) 2025-04-10 20:57:42 +03:00
Stephanie Hingtgen 45a55234e1
Library panels: Fix search query (#103812) 2025-04-10 18:52:16 +01:00
Mihai Doarna f8fc3d2db2
Chore: Fix lint error in accesscontrol API endpoints (#103792)
fix lint error
2025-04-10 12:29:04 -05:00
Torkel Ödegaard 532e443017
DashboardOutline: Support renaming by double click (#103785)
* Outline rename

* Outline rename and validation working

* Update

* Restore valid name onBlur
2025-04-10 19:23:36 +02:00
Ashley Harrison c83c486c9b
Internationalisation: Lint rule improvement (#103788)
* improve autofix so it can fix foo={"bar"}

* apply fixes

* fix type checks + betterer

* tweak to make types happy
2025-04-10 16:22:52 +01:00
Kyle Brandt 4753c3f735
SQL Expressions: Set feature to private preview (#103734) 2025-04-10 10:46:48 -04:00
Isabel Matwawana fa2738a828
Docs: trend visualization refactor (#103754) 2025-04-10 10:44:10 -04:00
Ashley Harrison 6712a0331c
Themes: Enable new (experimental) themes by default (#103790)
enable new (experimental) themes by default in g12
2025-04-10 15:44:00 +01:00
Isabel Matwawana 9d025eeee1
Docs: flame graph visualization refactor (#103748) 2025-04-10 10:43:51 -04:00
Matias Chomicki 52eaf3f16d
PreviewLogRow: add missing preview styles (#103542) 2025-04-10 14:30:13 +00:00
Mihai Doarna 42dd2336b9
Team: Add validation for provisioned teams in setUserPermission endpoint (#103623)
* removed provisioned team validation from team permissions

* validate team in setUserPermission
2025-04-10 17:28:31 +03:00
Sonia Aguilar b4442b4f22
Alerting: Detect target folder rules and show warning (#103673)
* detect target folder rules and show warning

* show detected rules in target folder in a collapsed section

* fix detecting rules that might be overwritten

* refactor

* remove undefined

* fix text
2025-04-10 16:18:20 +02:00
Galen Kistler e6c945b535
Logs Panel: Explore - Condense line limit copy (#103739)
* chore: condense line limit copy, fix forward search calculation
2025-04-10 09:02:17 -05:00
Will Browne a1b792b1f5
Plugins: Remove plugin dependency version (#103728)
remove plugin dependency version
2025-04-10 15:02:05 +01:00
mohammad-hamid a255ae6b0b
Read in cert file path from env vars (#103643)
use cert file path
2025-04-10 09:56:41 -04:00
Dana Axinte e86df64657
CloudMigrations: Change onPremToCloudMigrations feature toggle to GA (#103212)
* feature to ga

* change description
2025-04-10 14:53:22 +01:00