Mustafa Sencer Özcan
4c5d9cb95f
feat: add unified storage data migration step for playlists ( #114582 )
...
* fix: add type
* feat: register step
* feat: add playlist support
* test: add test case
* fix: gen mock
* fix: go gen
* fix: lint
* fix: lint
* fix: tests
* fix: add resource
* fix: readd
* fix: address comments
* fix: independent playlist query for migrations
* fix: remove lock logic for sqlite
* fix: handle creation and update datetimes
* fix: query templating
* fix: simply resources and address comments
2025-12-04 15:15:00 +00:00
Mustafa Sencer Özcan
2f6836e78a
fix: make graceful handle default for the malformed dashboard jsons during unified migration ( #114295 )
...
* fix: graceful handling by default
* fix: make fallback the default behavior
2025-11-24 14:12:52 +01:00
Mustafa Sencer Özcan
30c04ab3fc
feat: inject unified data migrations in dual writer ( #114138 )
...
* feat: draft changes for on-prem unified migration
* feat: further draft changes for on-prem unified migration
* fix: remove some tbis
* refactor: rename
* fix: another approach
* fix: background service related issues
* fix: address comments
* fix: make gen-go
* fix: background service related issues
* feat: refactor dual writer and legacy migrator
* fix: minor issues
* feat: working version in oss
* fix: wire
* fix: revert test data override
* fix: enterprise related issues
* chore: add todo
* fix: revert dual writer method
* fix: lint
* chore: logger format
* fix: reduce log level
* fix: log change
* fix: disable
* fix: address comments
* fix: return error on dual writer service
* fix: merge conflict
---------
Co-authored-by: Rafael Paulovic <rafael.paulovic@grafana.com >
2025-11-20 16:40:20 +01:00
Todd Treece
069cc909ea
Revert "chore(tracing): Initialize tracing early, before wire" ( #112758 )
...
Revert "chore(tracing): Initialize tracing early, before wire (#112007 )"
This reverts commit 8ec162afec .
2025-10-21 21:23:09 +00:00
Dave Henderson
8ec162afec
chore(tracing): Initialize tracing early, before wire ( #112007 )
...
Signed-off-by: Dave Henderson <dave.henderson@grafana.com >
2025-10-06 13:44:13 +00:00
Will Browne
05a6e8503e
Plugins: StaticFS should implement FSRemover ( #110706 )
...
make staticfs implement fs removal interface
2025-09-09 15:33:05 +01:00
Peter Štibraný
c32650e9d8
Replace remaining calls to testing.Short where possible. ( #110765 )
...
* Replace remaining calls to testing.Short where possible.
* Update style guide.
* Revert change in TestAlertmanager_ExtraDedupStage, as it doesn't work.
* Make TestAlertRulePostExport into integration test.
2025-09-09 08:16:12 +00:00
Peter Štibraný
7fd9ab9481
Replace check for integration tests. ( #110707 )
...
* Replace check for integration tests.
* Revert changes in pkg/tsdb/mysql packages.
* Fix formatting of few tests.
2025-09-08 15:49:49 +02:00
Roberto Jiménez Sánchez
4de9ec7310
Provisioning: Fix import cycle between grafana and provisioning app ( #110406 )
...
* Move operators to grafana/grafana
* Go mod tidy
2025-09-01 13:29:34 +00:00
Stephanie Hingtgen
232d68fb8c
Controllers: Make available as a target ( #110357 )
...
* Controllers: Add to build process
* Allow setting through env variables
2025-08-30 12:27:50 +02:00
maicon
5270d8e53f
fix(unified-storage): remove permissions after executing on both stores ( #109722 )
...
Signed-off-by: Maicon Costa <maiconscosta@gmail.com >
Co-authored-by: Jean-Philippe Quéméner <jeanphilippe.quemener@grafana.com >
2025-08-15 15:57:42 +00:00
Sofia Papagiannaki
d4395aeec3
Chore: Use cli.Context instead of background context in RunServer function ( #109553 )
...
Use cli.Context instead of background context in RunServer function
2025-08-15 08:48:06 +00:00
Sofia Papagiannaki
402572c580
Add ConfigProvider and modify quota.Service to use it ( #109395 )
...
* Add config provider and integrate with wire setup
* Refactor quota service to use config provider for configuration management
* Enhance OSSConfigProvider to include logging and update ProvideService to return an error. Refactor server initialization to handle potential errors from config provider. Remove unnecessary wire binding for OSSConfigProvider.
* Update CODEOWNERS to include the configprovider package under the grafana-backend-services-squad.
* Refactor quota service initialization to include context in multiple service providers. Update tests and service implementations to ensure proper context handling during service creation.
2025-08-12 09:42:10 +03:00
Dana Axinte
a3cdfce25a
SecretsManager: Consolidation service and ability to run via cli ( #108774 )
...
* list all encrypted values and count
* separate interfaces
* add time filter to global queries
* initial secrets consolidation
* Revert defaults
* More verbose description of the operation
* Add consolidation tests and tracing
* Fix lint
* Revert debug log
2025-07-31 14:45:59 +01:00
Mustafa Sencer Özcan
98e37f2ca9
fix: special handling of unmarshalling for invalid json dashboards ( #108519 )
...
* implement special dashboard fallback logic when dashboard data has invalid json behind feature flag
---------
Co-authored-by: Will Assis <william@williamassis.com >
2025-07-30 10:18:38 -04:00
Tania
27c395694d
OpenFeature: Initialize early ( #108594 )
...
* Move OpenFeatureInit
* Remove unused import
* Remove todo
2025-07-28 16:05:57 +02:00
Serge Zaitsev
a95fb3a37c
Chore: Omit integration tests if short test flag is passed ( #108777 )
...
* omit integration tests if short test flag is passed
* Update pkg/services/ngalert/models/receivers_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/tests/api/alerting/api_ruler_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/tests/api/alerting/api_ruler_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/tests/api/alerting/api_ruler_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/tests/api/alerting/api_ruler_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/tests/api/alerting/api_ruler_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/services/ngalert/models/receivers_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/cmd/grafana-cli/commands/datamigrations/to_unified_storage_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/services/ngalert/models/receivers_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* fix the rest
* false positive
---------
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
2025-07-28 13:38:54 +02:00
Bruno Abrantes
e5b6ab1b11
fix: do not migrate library panels to unified storage ( #108380 )
...
Signed-off-by: Bruno Abrantes <bruno@brunoabrantes.com >
2025-07-21 14:34:23 +02:00
Stephanie Hingtgen
b1d3155b60
K8s: Library Panels: Add rerouting for get ( #107362 )
2025-06-30 13:26:24 -05:00
Serge Zaitsev
f66a693438
Chore: Rename integration tests to follow the common convention ( #105987 )
...
* automatically rename integration tests to follow the common convention
* name tests differently
* alter column type to bigint
* update another column to bigint
* add another alter
* fix subquery for mysql
2025-06-29 16:56:24 +02:00
Mustafa Sencer Özcan
c47fc53eee
fix: set withHistory flag to true for non-interactive mode ( #107263 )
2025-06-26 16:08:30 +00:00
Mustafa Sencer Özcan
e7af803906
fix: migration cli exit on grpc errors when on non-interactive ( #107163 )
2025-06-25 08:50:53 +02:00
Mustafa Sencer Özcan
74ce09011e
fix: migration cli pass in feature toggle management into unified client ( #107141 )
2025-06-24 21:43:43 +02:00
Mustafa Sencer Özcan
3a13c2db64
chore: add logging around migration cli ( #107046 )
2025-06-20 15:20:06 +00:00
Will Browne
3d37f969e7
Plugins: Move discovery logic to plugin sources ( #106911 )
...
* move finder behaviour to source
* tidy
* undo go.mod changes
* fix comment
* tidy unsafe local source
2025-06-19 10:28:23 +01:00
maicon
fcb369e9a3
Unistore/datamigration: Take namespace from command line flag ( #106724 )
...
Signed-off-by: Maicon Costa <maiconscosta@gmail.com >
2025-06-15 19:45:42 +00:00
Stephanie Hingtgen
feeced9618
K8s: Dashboards /apis: Fix library element connections ( #106734 )
2025-06-13 21:40:39 +02:00
Jean-Philippe Quéméner
002f46736a
refactor(unified-storage): move generated protos to own pkg ( #105356 )
2025-05-15 21:36:52 +02:00
Ryan McKinley
b09d79b21c
K8s/Dashboard: Promote from alpha1 to beta1 ( #104009 )
2025-04-23 20:54:35 +03:00
Ryan McKinley
0283c98e30
K8s/Folders: Use v1beta1 and app-sdk based spec ( #103975 )
2025-04-14 23:20:10 +03:00
Stephanie Hingtgen
f5ad1ef69b
K8s: Folders: Add v1 api ( #103842 )
2025-04-11 13:09:52 +01:00
Will Browne
a1b792b1f5
Plugins: Remove plugin dependency version ( #103728 )
...
remove plugin dependency version
2025-04-10 15:02:05 +01:00
maicon
fa7ea6ee00
UniStore: Add non interactive mode for CLI migration ( #103407 )
...
Signed-off-by: Maicon Costa <maiconscosta@gmail.com >
2025-04-07 17:23:47 -03:00
Stephanie Hingtgen
4918d8720c
Dashboard Restore: Remove experimental functionality under feature flag dashboardRestore for now - this will be reworked ( #103204 )
2025-04-03 02:52:54 -05:00
Andres Martinez Gotor
8f0b2d9fd5
Chore: Enable Grafana version check when installing plugins ( #103176 )
2025-04-01 15:35:09 +02:00
Mariell Hoversholm
e1e1d3fd9f
Fix: Prints should always include new lines ( #102795 )
...
* CI: Allow Bench conversion to fail
We shouldn't mark PRs and commits as X if they fail to convert logs with Bench.
* Fix: Prints should always include new lines
* fix: remove unused import
2025-03-27 12:27:53 +01:00
Stephanie Hingtgen
7c2890384a
K8s: Dashboards: Set v1alpha1 as priority ( #102729 )
2025-03-25 10:32:49 -06:00
Will Assis
31a371e385
fix(unified-storage): remove bleve index metric from global scope ( #101825 )
...
* refactor grafana_index_server_index_size to calculate in a goroutine instead of at scrape time and remove grafana_index_server_indexed_docs metric
* use wire to inject bleve index metrics
* remove sprinkles metrics from bleve index metrics
* log error when trying to calculate file index size and bump interval to 1m instead of 5s
2025-03-13 10:09:38 -04:00
Igor Suleymanov
5d2ba10113
K8s/Dashboards: Extract Dashboard APIs to an app submodule ( #102029 )
...
* Move dashboard k8s APIs to a separate app
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
* Copy dashboard code in Dockerfile
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
* Fix conversion generation
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
* Update OpenAPI snapshot for dashboard/v0alpha1
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
---------
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
2025-03-13 11:05:01 +02:00
Hugo Kiyodi Oshiro
0a24a7cd4c
Plugins: Remove uninstall plugin step from cli plugins update-all ( #101632 )
2025-03-06 15:59:32 +01:00
Ryan McKinley
c1b48cc488
Dashboards: Add apiVersion to dashboard table ( #100845 )
2025-03-04 07:47:45 +03:00
Will Assis
f5e5824bab
fix (unified-storage): stop registering unified storage metrics in global state ( #101322 )
...
* move prometheus.register for unified storage metrics into metrics.go and do most of the plumbing to get it to work
* convert StorageApiMetrics to pointer and check for nil before using it
* rename type and variables to something more sensible
---------
Co-authored-by: Jean-Philippe Quéméner <jeanphilippe.quemener@grafana.com >
2025-02-28 07:39:39 -05:00
Ryan McKinley
806c043e45
UnifiedStorage: Rename Batch processing to Bulk ( #101413 )
2025-02-28 08:41:08 +03:00
Stephanie Hingtgen
67be9aeed6
K8s: Search fallback: Support all sort by methods ( #100776 )
2025-02-18 12:30:11 -06:00
Georges Chaudy
9d68c4f665
unified: allow customising the ProvideUnifiedStorageClient ( #100704 )
...
* unified: allow customising the ProvideUnifiedStorageClient
* fix go mod
2025-02-14 11:26:51 +01:00
Ryan McKinley
a5355fd66c
Storage: Add command line tool to migrate legacy dashboards (and folders) to unified storage ( #99199 )
2025-02-11 19:57:46 +02:00
Syerikjan Kh
dfe0712955
feat: pass gcom sso_api_token to repo created from install command ( #98973 )
...
* feat: pass gcom sso_api_token to repo created from install command
* fix
* fix: extract gcom section to a func
* Update pkg/cmd/grafana-cli/utils/command_line.go
Co-authored-by: Giuseppe Guerra <giuseppe.guerra@grafana.com >
* fix: only set gcom token when the request is to GCOM
---------
Co-authored-by: Giuseppe Guerra <giuseppe.guerra@grafana.com >
2025-01-15 08:15:18 -05: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
Eric Leijonmarck
fe6ec1258f
CLI: Remove manager-users conflict users cli ( #95135 )
...
* Remove conflict_user cli
* Delete pkg/build/cmd/exportversion.go
2024-11-04 09:38:08 +00:00
Karl Persson
4083b2208e
Zanzana: periodic sync of team members ( #94752 )
...
* Rewrite zanzana collector to fetch all available pages
* Register access control as a background service
* If zanzana is enabled we run Syncs and start Reconciliation job
* Update pkg/services/authz/zanzana/client/client.go
Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com >
* Use server lock when doing performing reconciliation
2024-10-17 15:28:33 +02:00