Commit Graph

57892 Commits

Author SHA1 Message Date
Haris Rozajac 32756a6c30
Dashboards: Fix time range bug when use_browser_locale is enabled (#102339)
* fix

* update

* fix tests and update
2025-03-18 12:46:22 -06:00
Alexa V defa03b155
Dashboard: Make dashboard scene serializer public (#102384)
Make dashboard scene seralizer public
2025-03-18 11:44:23 -06:00
Alexander Akhmetov a8a88f858a
Alerting: Remove uniqueness checks from the Prometheus conversion (#102261) 2025-03-18 18:38:27 +01:00
Alex Khomenko 9988624127
Provisioning: Update getting provisioned meta (#102371) 2025-03-18 20:30:45 +03:00
Yuri Tseretyan 69a62777c5
Fix flaky test TestIntegration_ListDeletedRules (#102383)
Signed-off-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com>
2025-03-18 13:28:19 -04:00
Yuri Tseretyan e39b17d701
Alerting: Remove constraints for uniqueness of rule title (#102067)
* fix having duplicated names in same group in the UI

---------

Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>
2025-03-18 13:27:44 -04:00
Darren Janeczek e948376a95
feat: component extension point for adaptive telemetry query actions (#101331)
* feat: component extension point for adaptive telemetry query actions

- only render the first non-null added-component, and provide utility in the added component infrastructure to  support this

---------

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
2025-03-18 12:45:01 -04:00
Alex Spencer a7a9f9b078
TimeSeries: Default to single hover point (#102323)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2025-03-18 11:06:10 -05:00
Collin Fingar 23ec5cfcbf
ColorPickerInput: Fixed color picker disappearing on input blur (#102241)
* ColorPickerInput: Fixed color picker disappearing on input blur

* Updates per feedback around targeting method

* Updated per feedback - testid vs id
2025-03-18 11:56:32 -04:00
Matheus Macabu 20f9902ed5
CloudMigrations: Remove public preview banner (#102354) 2025-03-18 16:21:16 +01:00
Tom Ratcliffe b8c627c566
Alerting: Fix display of paused recording rules (#102348)
* Fix display of paused recording rules

* Simplify paused state check for Grafana alert rules

The change eliminates redundant rule type checks by using a more generic
grafana.rule() check that covers both alerting and recording rules.

* Add test for recording rule paused state

* Add test for paused Grafana alert in Details tab

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2025-03-18 14:10:39 +00:00
Alexander Akhmetov 04f20127a2
Revert "Alerting: Add an index to alert_rule_version table on (rule_org_id, rule_uid) (#102347)" (#102368)
This reverts commit 9491fa1895.
2025-03-18 14:54:45 +01:00
Denis Vodopianov 7a01d39025
Chore: Revert Disabling fe-unit-tests github action in release branches (#102361) (#102366)
Revert "Chore: Disabling fe-unit-tests github action in release branches (#102361)"

This reverts commit b28e552a9b.
2025-03-18 14:43:50 +01:00
Georges Chaudy 0bafd4e99d
unistore: update spanner ddl to include unistore tables (#102198)
* provision unistore tables

* update the tests to use generated namespace

* update ddl

* update ddl

* clean streams

* missing space

* use engine.db.query
2025-03-18 14:37:11 +01:00
Isabella Siu 8c5a4591fd
Cloudwatch: Do not parse log query grouping field to float (#102244) 2025-03-18 09:18:58 -04:00
Ryan McKinley ff6a97f1a1
Provisioning: Update APIs in main (#102345) 2025-03-18 14:55:22 +02:00
Gábor Farkas c28b49e5d1
datasources: querier: single-tenant auth (#102049) 2025-03-18 13:51:49 +01:00
Bogdan Matei 621e7012df
Dynamic Dashboards: Fix some of the issues identified during bugbash (#102279) 2025-03-18 14:34:14 +02:00
Beverly Buchanan c5b48285b6
Update roles and permissions doc to include support note (#102327)
add content from support request
2025-03-18 08:30:24 -04:00
Beverly Buchanan b649c8fcd0
Update User API doc to include Cloud info/link (#102330)
* added content per support ticket

* clarified sentece
2025-03-18 08:29:06 -04:00
Denis Vodopianov b28e552a9b
Chore: Disabling fe-unit-tests github action in release branches (#102361) 2025-03-18 13:24:45 +01:00
ismail simsek a4d98e465f
Chore: Remove dataplane as option from prom converter (#102320)
remove dataplane as option from prom converter
2025-03-18 13:10:22 +01:00
Matheus Macabu 604b7f3a21
CiTools: Bump github.com/expr-lang/expr to silence Dependabot alert (#102358) 2025-03-18 12:34:48 +01:00
Jean-Philippe Quéméner 08994304d8
fix(unified-storage): check resource_api cfg for isHA (#102283) 2025-03-18 12:33:27 +01:00
Konrad Lalik 321a886b8b
Alerting: Add details and edit pages for groups (#100884)
* Add basic details page for groups

* Remove unused imports

* Add basic edit page for groups

* Add functional group details page

* Improve form, add namespaces for DS groups

* Add support for multiple actions in useProduceNewRuleGroup

* Attach real actions to form submit

* Add tests for the group details page

* Add basic tests for the group edit page

* Add tests for Mimir update

* Add rule group consistency check

* Extract draggable rules table to a separate file

* Add prom consistency waiting after group saving

* Add duration measure for Prometheus reconciliation time

* Remove a blinking error when redirecting to a new group

* Improve group details page. Use ruler or prom api depending on the ds capabilities

* Add group delete action for DMA

* Fix GroupDetailsPage tests

* Update tests

* Add and improve Edit page tests

* Add Group export for GMA groups

* Fix RulesGroup tests, add translations

* Disable editing plugin provided groups

* Fix alertingApi options, fix tests

* Fix lint errors, update translations

* use name for grafana managed recording rules

* add namespace to nav

* Remove group modals from the list page

* add cancel button to edit form

* add test for cancel butotn

* fix recording rule badge for Grafana managed rules

* Add doc comments, improve code

* Move url changes to be the last action in form submit

* Add returnTo URL handling for alert rule group navigation

* Create dedicated Title component showing breadcrumb navigation between folder
and group name.

Add label distinction between folders and namespaces based on
the rule source (Grafana vs external).

* Address PR feedback, minor refactorings

* Update rule group links to include return path and refactor rule type checks

- Modified `RulesGroup` and `GroupDetailsPage` components to include `includeReturnTo` in edit page links.
- Refactored rule type checks in `DraggableRulesTable` and `GroupDetailsPage` to use `rulerRuleType` for better clarity and maintainability.
- Updated documentation in `useUpdateRuleGroup` to clarify functionality for updating or moving rule groups.

* Refactor RulesGroup component and tests for improved link handling and permissions checks

- Added `includeReturnTo` parameter to rule group detail links in `RulesGroup` for better navigation.
- Updated test cases to verify rendering of edit and view buttons based on user permissions.
- Simplified test setup by removing unnecessary Redux provider wrapping in tests.

* Refactor: Update routing and test assertions in GroupDetails and GroupEdit pages

- Modified route paths in GroupDetailsPage and GroupEditPage tests to use `dataSourceUid` instead of `sourceId`.
- Updated test assertions to reflect changes in folder title and link structure in GroupDetailsPage.
- Simplified Title component by removing folder-related props and logic, focusing solely on the group name.

* Refactor: Simplify Title rendering in GroupDetailsPage

- Updated the renderTitle function in GroupDetailsPage to remove the folder prop from the Title component, focusing solely on the group name.

* Update GroupDetailsPage to prevent editing of provisioned groups

* Fix imports

* Improve styles

* Fix navigation when served from subpath

* Improve group removal handling in Prom consistency check. Fix Delete group button

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
2025-03-18 12:27:53 +01:00
Eric Leijonmarck fc9e5110d7
Access: Add migration to remove `datasources:drilldown` (#102188)
* Add migration to remove datasources:drilldown

* remove role assignments as well

* rename to datasources:drilldown

* remove the role assignments

* made it simple instead

* Update pkg/services/sqlstore/migrations/accesscontrol/datasource_drilldown_removal.go

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

* Update pkg/services/sqlstore/migrations/accesscontrol/datasource_drilldown_removal.go

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>

---------

Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com>
2025-03-18 13:06:30 +02:00
Stephanie Hingtgen c79c768421
Folders: Add pagination to list (#102334) 2025-03-18 04:56:06 -06:00
Oscar Kilhed ba44ceb4b2
Dynamic dashboards: Add paste panel option to add pane (#102350)
* Add paste panel to side pane, unify Store class, subscribe to storage events

* i18n
2025-03-18 11:49:33 +01:00
linoman afb058c40a
Fix URL rendering typo (#102346)
* Fix URL rendering typo

* run prettier

---------

Co-authored-by: Irene Rodriguez <irene.rodriguez@grafana.com>
2025-03-18 11:42:25 +01:00
Alexander Akhmetov 695ac91290
Alerting: Add backend support for keep_firing_for (#100750)
What is this feature?

This PR introduces a new alert rule configuration option, keep_firing_for (Prometheus documentation).

keep_firing_for prevents alerts from resolving immediately after the alert condition returns to normal. Instead, they transition into a "Recovering" state and are not considered resolved by the Alertmanager. Once the recovery period ends (or after the next evaluation if it is bigger than keep_firing_for), the alert transitions to "Normal" if it doesn't start alerting again:

Before                                          

+----------+     +----------+                    
| Alerting |---->|  Normal  |                    
+----------+     +----------+                    

-----
After

+----------+      +------------+     +----------+
| Alerting |----->| Recovering |---->|  Normal  |
+----------+      +------------+     +----------+                                                 

Why do we need this feature?

This feature prevents flapping alerts by adding a recovery period. This helps avoid false resolutions caused by brief alert
2025-03-18 11:24:48 +01:00
Alexander Akhmetov 9491fa1895
Alerting: Add an index to alert_rule_version table on (rule_org_id, rule_uid) (#102347) 2025-03-18 11:15:55 +01:00
Alexander Akhmetov 1d0a86252e
Alerting: Add target datasource support to Prometheus conversion (#102307) 2025-03-18 09:53:50 +01:00
Tom Ratcliffe e14b2fa034
Chore: Add descriptions to frontend types for feature toggle generation (#102230)
Add descriptions to frontend types for feature toggle generation
2025-03-18 09:20:47 +02:00
Alex Khomenko 3454030bc2
Provisioning: Add dashboard preview banner (#102305)
* Provisioned: Add dashboard preview banner

* Add translations

* Add banner to the dashboard page

* Add translations

* Add feature toggle
2025-03-18 08:55:25 +02:00
dependabot[bot] 967425ab1b
Bump github.com/expr-lang/expr from 1.16.9 to 1.17.0 in /pkg/codegen (#102333)
* Bump github.com/expr-lang/expr from 1.16.9 to 1.17.0 in /pkg/codegen

Bumps [github.com/expr-lang/expr](https://github.com/expr-lang/expr) from 1.16.9 to 1.17.0.
- [Release notes](https://github.com/expr-lang/expr/releases)
- [Commits](https://github.com/expr-lang/expr/compare/v1.16.9...v1.17.0)

---
updated-dependencies:
- dependency-name: github.com/expr-lang/expr
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* update workspace

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-18 09:49:03 +03:00
Alex Khomenko 20fcf443f8
Dashboard: Disable creating library panels for provisioned dashboards (#102308) 2025-03-18 07:29:52 +02:00
Leon Sorokin 1a6ec71822
Transformations: Fix field naming in Add field from calc (Binary mode) (#102331) 2025-03-18 02:39:47 +02:00
Leon Sorokin afd6326d0c
Chore: uPlot v1.6.32 (#102149) 2025-03-17 19:35:11 -05:00
grafana-pr-automation[bot] 2801c38eba
I18n: Download translations from Crowdin (#102332)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-03-18 02:30:31 +02:00
Stephanie Hingtgen 4755da0ff5
Folders: Fix user setting in api (#102329) 2025-03-17 18:33:09 -05:00
owensmallwood c45a342303
Unified Storage Dashboard Provisioning: Wait for deleted dashboards to be updated in the indexer (#102243)
* wait for deleted dashboards to be updated in the indexer

* updates comment

* adds test

* make function private

* fix failing test - had to add a couple more mock Search calls
2025-03-17 16:46:26 -06:00
Dominik Broj f7e0f095a2
Alerting: use 'Grafana IRM' wording in alerting contact point (#102014)
* chore: use 'Grafana IRM' wording in alerting contact point

* revert temp condition change

* remove unneeded ts assertion

* more renaming

* use translations

* update test

* running make i18n-extract

* avoid "simple" word in copy
2025-03-17 23:38:44 +02:00
Sven Grossmann 8297c0f34e
prom: fix sorting in `fetchLabels` (#102318)
* fix(prom): return label keys from prometheus language providers

* fix: only sort once

* fix: lose reference
2025-03-17 23:26:42 +02:00
ismail simsek 07024c9bac
Prometheus: Enable prometheusRunQueriesInParallel feature toggle by default (#102127)
enable prometheusRunQueriesInParallel by default
2025-03-17 22:13:59 +01:00
Stephanie Hingtgen 6019b21cc5
K8s: Dashboards: Fix multi-org provisioning flow (#102266) 2025-03-17 20:20:03 +02:00
Dzmitry Kozhukh 250cdbcd1a
GrafanaUI: prevent ToolbarButton from submitting wrapping form (#102228)
fix(grafana-ui): prevent toolbar button from submitting wrapping form
2025-03-17 17:13:54 +00:00
Ryan McKinley fd4e08e318
K8s/Dashboards: Remove slug annotation (#102270) 2025-03-17 19:01:29 +02:00
Ryan McKinley 261d7db0e6
Live: Update centrifuge and remove unreleased "gitops" (#102256) 2025-03-17 18:55:00 +02:00
Ashley Harrison 2ece94bc50
Chore: Fix pseudo translations (#102295)
* remove unnecessary pseudo translations

* properly initialise pseudo translations in core (not grafana-ui)
2025-03-17 16:45:36 +00:00
beejeebus 3bdb2aa349
Plugins: Fix support for adhoc filters with raw queries in InfluxDB (#101966)
Plugins: Fix support for adhoc filters with raw queries in InfluxDB

Fixes #101635.
2025-03-17 12:07:33 -04:00