Commit Graph

55717 Commits

Author SHA1 Message Date
renovate[bot]
fc7805957e
Update dependency @faker-js/faker to v9.3.0 (#97883)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-13 09:25:55 +00:00
renovate[bot]
69ca52fcb3
Update dependency @types/react-transition-group to v4.4.12 (#97879)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-13 09:24:29 +00:00
renovate[bot]
78af0fb533
Update dependency @types/react-color to v3.0.13 (#97878)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-13 09:22:27 +00:00
renovate[bot]
1e0d807572
Update dependency @grafana/plugin-e2e to v1.13.1 (#97851)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-13 09:21:06 +00:00
Dominik Prokop
f8686be56a
Schema v2: Make DashboardScene accept v1 and v2 schema (#96931)
* WIP

* Refactor useSaveDashboard to make it dashboard type independent when used

* DashboardPrompt: makeit Dashboard type independent

* DashboardScene: accept both v1 and v2 schema

* Update save dashboard command interface

* Fix test

* Lint

* Refactor

* Add onSaveComplete to DashboardSceneSerializer

* Cleanup tests

* Remove unused code

* Refactor dashboard tracking information

* added a todo

* Fix betterer

* Update betterer results
2024-12-13 10:20:22 +01:00
Tom Ratcliffe
0f52065377
Chore: Rename betterer stats file and attempt to fix (#97887)
Rename betterer stats and attempt to fix
2024-12-13 09:19:11 +00:00
Agnès Toulet
1c4d30f73c
Rendering: Add logs (#97885)
* Rendering: add logs

* fix tests and lint issues
2024-12-13 09:42:35 +01:00
Isabel Matwawana
6011cffed7
Docs: Fix broken link (#97891) 2024-12-13 08:42:30 +01:00
Ariana
c6a45061be
Docs: Update docs to make panel embedding more clear (#97587)
Co-authored-by: Isabel Matwawana <76437239+imatwawana@users.noreply.github.com>
2024-12-12 19:19:37 -05:00
Andreas Christou
cc4afff889
Graphite: Set maxDataPoints based on user value in alerting (#97178) 2024-12-12 23:26:44 +00:00
Kat Yang
886cbad275
ExploreMetrics: Improve semantic HTML and remove unused styles (#97367)
Chore: Code cleanup
2024-12-12 17:55:16 -05:00
Isabella Siu
b3a12f486e
Elasticsearch: Use _field_caps instead of _mapping to get fields (#97607) 2024-12-12 17:20:04 -05:00
Isabella Siu
a362769491
Cloudwatch: Update grafana-aws-sdk for AWS/AmplifyHosting metrics (#97799)
Cloudwatch: update grafana-aws-sdk for AWS/AmplifyHosting metrics
2024-12-12 16:59:51 -05:00
Jean-Philippe Quéméner
1509fadd5b
refactor(unified-storage): make datasyncer configurable (#97832) 2024-12-12 21:41:01 +01:00
Gilles De Mey
6dc41f0b18
Alerting: Fix flakey FilterView test (#97882)
* increase timeout

* update assertion

* Add retry as well to prevent flakiness 🤞

---------

Co-authored-by: Tom Ratcliffe <tom.ratcliffe@grafana.com>
2024-12-12 22:23:37 +02:00
owensmallwood
0e8702369a
Folders: Create default folder permissions within transaction (#97812)
create default folder permissions within transaction
2024-12-12 14:08:46 -06:00
ismail simsek
3345f860dc
Explore Metrics: Refactor auto query generators (#97815)
* move graph builders in one file

* rename the folder as auto-query

* have a components folder

* more refactoring

* rename

* remove getQueryGeneratorFor

* why not renaming again

* add tests for baseQuery

* remove the need of default query generator

* refactor getAutoQueriesForMetric

* split the logic

* better structure

* better structure 2

* clean up

* summary tests

* unite tests for default.ts

* update unit tests

* update unit tests

* cleaning

* one variable for filters
2024-12-12 18:40:11 +01:00
Brendan O'Handley
3266d62d6d
Explore metrics: OTel breakdown get request header too large with job and instance bug (#97136)
* don't duplicate job or instance in match terms for OTel

* truncate job and instance list if exceeding 2000 chars for GET request

* test for warning when truncating

* fix check for duplicated job and instance, make easier to read

* add trans and remove console.log

* report when a metric has too many labels for job and info

* remove console.warn

* fix tests for not logging warning

* fix tests

* remove unused import

* make i18n-extract

* Update public/app/features/trails/interactions.ts

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>

* allow to dismiss warning

---------

Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
2024-12-12 11:31:55 -06:00
Tom Ratcliffe
482af91782
Alerting: Remove manual feature discovery mocking (#96243)
* Update mock methods to remove discovery API

* Update tests to remove mock discovery API

* Remove ref in TESTING.md

* Fix other references to 'mimir'
2024-12-12 19:11:04 +02:00
Matias Chomicki
ebfa06e040
Loki: Added support to show label types in Log Details (#97284)
* Log Details: add support to resolve label types if supported

* Update public/app/features/logs/utils.ts

Co-authored-by: Galen Kistler <109082771+gtk-grafana@users.noreply.github.com>

* LogDetailsRow: create component to display label type

* Remove log

* Add missing index resolution for label type values

* Make type icon less prominent

* Update new icon styles

* Formatting

* Update public/app/features/logs/utils.ts

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

* Update public/app/features/logs/utils.ts

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

* LogDetails: update test

* Formatting

---------

Co-authored-by: Galen Kistler <109082771+gtk-grafana@users.noreply.github.com>
Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2024-12-12 18:49:59 +02:00
grafana-pr-automation[bot]
7b934f0d2b
I18n: Download translations from Crowdin (#97868)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-12 16:48:47 +00:00
renovate[bot]
c05547ba7e
Update dependency @emotion/react to v11.14.0 (#97752)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-12 16:44:48 +00:00
renovate[bot]
4521cfb28c
Update dependency @babel/preset-react to v7.26.3 (#97677)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-12 16:44:13 +00:00
renovate[bot]
ee661ac54b
Update React Aria (#96960)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-12 16:43:28 +00:00
Ashley Harrison
08bb66ba72
Chore: Update to node 22 (#97779)
* update to node 22

* downgrade to 22.11.0

* switch to using node-version-file

* update @types/node

* revert back to using node-version
2024-12-12 16:39:52 +00:00
Andreas Christou
dbe2d7ac47
Azure: Add documentation for Basic Logs (#97193)
* Add documentation for Basic Logs

* Lint

* Update docs/sources/datasources/azure-monitor/query-editor/index.md

Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>

---------

Co-authored-by: Larissa Wandzura <126723338+lwandz13@users.noreply.github.com>
2024-12-12 16:38:26 +00:00
Matias Chomicki
3fdf0ea1f4
Logs: Added option to show the log line body when displayed fields are used (#97209)
* LogDetailsBody: create and integrate component

* Chore: sort prop names

* Add tests

* Address lint issues

* Update betterer

* Update public/app/features/logs/components/LogDetailsBody.tsx

Co-authored-by: Galen Kistler <109082771+gtk-grafana@users.noreply.github.com>

* Update public/app/features/logs/components/LogDetailsBody.tsx

Co-authored-by: Galen Kistler <109082771+gtk-grafana@users.noreply.github.com>

* Update tests

---------

Co-authored-by: Galen Kistler <109082771+gtk-grafana@users.noreply.github.com>
2024-12-12 17:44:06 +02:00
grafana-pr-automation[bot]
18c1c4cf95
I18n: Download translations from Crowdin (#97849)
New Crowdin translations by GitHub Action

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-12-12 17:30:48 +02:00
Todd Treece
6c8c0ab350
Chore: Ignore duplicate process_* metrics in MultiRegistry (#97857) 2024-12-12 16:55:09 +02:00
Vardan Torosyan
63d3cf93fe
Docs: Clarify when force_use_graph_api is required for Azure (#97844) 2024-12-12 15:17:46 +01:00
Vardan Torosyan
2182f4829e
Docs: Refer to the org header usage in JWT docs (#96549) 2024-12-12 15:17:23 +01:00
Mariell Hoversholm
e6a6fc6f74
Tests: Require GrafanaOpts when creating Grafana dir (#97825)
I don't see a reason to accept a variable amount here, as we never use it. The only use I can see is optionally
including the opts, which isn't necessary and only complicates matters when an empty struct would do just as well: the
options are all created to be assumed zero-values already, in case a test doesn't need that option set.
2024-12-12 15:13:06 +01:00
renovate[bot]
47e58d5903
Update dependency @grafana/experimental to v2.1.5 (#97846)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-12 14:07:38 +00:00
Andres Martinez Gotor
6a4db1742b
Docs: Clarify environment variable usage in provisioning (#97848) 2024-12-12 15:05:47 +01:00
Ashley Harrison
b34fd6b6a1
Chore: update react-inlinesvg and use new icon caching mechanism (#97725)
* Update dependency react-inlinesvg to v4

* attempt to use new icon caching

* remove unicons chunk

* fix layout shift

* update snapshot

* parameterise cache by commit hash and clear old caches

* remove icon caching in storybook

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-12 13:35:28 +00:00
Robert Goltz
0a390cc069
Chore: Bump dependency golang.org/x/crypto to v0.31.0 - fix: CVE-2024-45337 (#97823)
* Update dependency golang.org/x/crypto to v0.31.0

* Update dependency golang.org/x/crypto to v0.31.0 - based on Trivy Scan

* Chore: go mod tidy

* Chore: make update-workspace

* Chore: manually update more sum files

---------

Co-authored-by: Mariell Hoversholm <mariell.hoversholm@grafana.com>
2024-12-12 14:21:46 +01:00
Konrad Lalik
8055d69ad2
Alerting: Alert list - pagination and filtering part 1 (#96423)
* Add basic token-based paginated fetching

* Add 1:many relation between UI and API pages

* Fix pagination arrows

* Add pagination  to hierarchical view

* Add multidatasource filtering

* Improve flushing filtered rules, add better identifiers

* Fix pagination for data sources not supporting server side pagination

* Use alert rule loader on the filter view

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>

* use useTransition and update loader

* types

* Update ruleGruopIdentifier. Add actions and location to recording rules

* Update to the new API parameters

* Refactor iterator code

* Use ix to merge iterators

* Improve perf

* use AbortController to cancel loading pages

* remove iterops for now

* add comments

* add application and rulesource information to list view

* update test

* update list view functionality

* add emptystate

* automatically load more items when we get to the bottom of the page

* reduce number of loaders

* separate hook for useFilteredRulesIteratorProvider

* use useDeepCompareEffect to track filter state changes

* fix weird no results loading glitch

* fix rare case where changing filters wouldn't update the list

* add number of results to component

* Simplify FilterView rerendering

* add filter for dashboard

* Add tests for filtered view, use data source UID instead of names in the interator code

* Improve HTML semantics, extract a separate GroupedView component

* Split RuleList.v2 into multiple files

* Split tests into Filtered and Grouped view files

* PR feedback

* Improve error handling, add tests for GroupedView

* Improve types, small refactoring

* Improve rules setup

* Small improvements, v1 and v2 versions of the view type selector

* Remove yarn cache changes

* Import from test-utils

* Move groupIdentifiers, improve state param parsing

* reorder imports

* reorder imports

* update yarn resolution

* i18n

* Improve API mock, increase timeout limit

* Add tests for RuleList.v2

* Update tests

* Fix mocks in test

* Fix lint

* Fix data sources mock

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
Co-authored-by: Tom Ratcliffe <tom.ratcliffe@grafana.com>
2024-12-12 14:18:52 +01:00
Gabriel MABILLE
65dfbd7731
go.mod: Update authlib (#97833)
* go.mod: Update authlib

* No clue why it was removed by my computer but not by CI
2024-12-12 13:56:01 +01:00
linoman
c47aed0db5
SCIM: Clean removes old swagger documentation (#97786)
* remove open swagger references
2024-12-12 12:42:09 +01:00
grafana-pr-automation[bot]
27a54e8c73
I18n: Download translations from Crowdin (#97787) 2024-12-12 11:29:52 +00:00
Sergej-Vlasov
8009af54be
DefaultGridLayoutManager: Add itemHeight to DashboardGridItem when duplicating panel (#97648)
* add itemHeight to DashboardGridItem when duplicating panel

* adjust test to include itemHeight check
2024-12-12 12:57:42 +02:00
Ieva
32554c78a8
Direct DB perm checks: check that the namespaces match (#97828)
check that the namespace of the caller matches the namespace in the request
2024-12-12 12:57:16 +02:00
Leonor Oliveira
f710573b37
Use searcher GetStats to count for folders and dashboards under a folder to be deleted (#97708)
* get stats from index

* fix logging

* fix logging

* actually counting

* Use searcher to check for resources referencing a folder

* Add tests when deleting a folder

* Lint

* merge/fix test

* will delegate to SQL

* get stats from index

* fix logging

* actually counting

* merge/fix test

* will delegate to SQL

* Uncomment test

* Add tests for checking stats before deleting a folder

* Change base branch to main

* Lint

* [REVIEW] remove logs

* Check for type assertion success

---------

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-12-12 11:53:01 +01:00
Sonia Aguilar
afd0699c85
Alerting: Fix not being able to remove a reducer when using range query (#97757)
* Fix not being able to remove a reducer when using range query

* use useEffectOnce
2024-12-12 11:38:12 +01:00
Mariell Hoversholm
8f628a0695
Cloudwatch: Change deprecated errorsource references (#97827)
This has been failing to compile, bringing down a _lot_ of tests along with it (notably the entire pkg/tests dir).
The `experimental/errorsource` package was deprecated, so the recommended replacement was used.
2024-12-12 11:37:11 +01:00
Tom Ratcliffe
5be8a9b3c3
Alerting/chore: Deprecate MockDataSourceSrv and remove from Alerting tests (#97267)
* Mark MockDataSourceSrv as deprecated

* Add `module` into necessary existing mock datasources

* Remove config mock

* Update helper method for test datasources to more accurately reflect real behaviour

* Update alerting/unified tests to remove mock datasource srv

* Lint fix

* Remove some unused re-exports

* Make mock mimir use correct module

Ⓜ️

* Add necessary handlers for mimir query editor responses

* Lint fix

* Add implementation to mock mimir data source
2024-12-12 09:50:36 +00:00
Will Browne
d85353926d
Metrics: Export multi registry (#97662)
* export multi registry

* fixup
2024-12-12 09:48:27 +00:00
Santiago
7ad004236e
Alerting: Change the description for the 'Message' field in webhooks (#96153) 2024-12-12 10:30:23 +01:00
Oscar Kilhed
e3e7086a91
GrafanaData: Add now parameter to dateMath.parse to subsitute now string (#97151)
* Add now parameter to dateMath.parse to subsitute now string

* Create new function, deprecate the old

* Add docstring

* Typo
2024-12-12 11:22:49 +02:00
Ivana Huckova
7de65b39b5
Elasticsearch and Cloudwatch: Replace deprecated experimental/errorsource (#97363)
* Update elasticsearch

* Update azure monitor

* Update test

* Revert "Update azure monitor"

This reverts commit 21b53845b8.

* Update cloudwatch
2024-12-12 10:12:03 +01:00