Rafael Bortolon Paulovic
aa3b9dc4da
Unified: Run resource data migrations at startup ( #114857 )
...
* chore: uncomment unified migration
* chore: adapt and fix tests
* chore: dynamically bump max conns if needed during migration
* chore: copilot suggestions
* chore: pass ctx in RegisterMigration
* chore: make playlists opt-out and dashboards opt-in
* chore: adjust dashboard test
* chore: disable enable log in test
* chore: address review comments
- do not use pointer config
- add migration registry
* chore: more consistent naming
* chore: fix playlist discovery test
2025-12-17 10:09:57 +01:00
Rafael Bortolon Paulovic
31eaf1e898
chore: add log and metric before unified migration enforcement ( #114598 )
2025-12-01 17:56:59 +01:00
Costa Alexoglou
2b9c138d7e
feat: allow service_name override ( #112875 )
2025-10-23 14:36:23 +00:00
Todd Treece
815e782ad0
Server Lock: Handle context cancellation ( #112535 )
2025-10-22 08:27:51 -04: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
Jean-Philippe Quéméner
14750785b0
Revert "Convert unique keys in file and file_meta tables into primary key." ( #112626 )
...
Revert "Convert unique keys in file and file_meta tables into primary key. (#…"
This reverts commit e290c92e1b .
2025-10-20 12:30:31 +02:00
Peter Štibraný
e290c92e1b
Convert unique keys in file and file_meta tables into primary key. ( #112269 )
...
* Convert unique keys in file and file_meta tables into primary key.
* Fix panic.
* Fix comment.
* Always add migration to drop auto-generated PK.
* Drop and create PK for mysql in single statement.
* Drop my_row_id column too. (Please drop primary key column to be able to drop generated invisible primary key.)
2025-10-15 12:33:04 +02:00
Mariell Hoversholm
16502532e1
Chore: Update Redis library to v9 ( #112115 )
2025-10-14 10:36:53 +02:00
Will Browne
e109763f21
Plugins: Add metric for tracking plugin asset info ( #112322 )
...
* add metric for tracking plugin asset info
* make check more specific
* check host instead
2025-10-13 14:42:32 +01: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
2df39fc71a
Plugins: Add metrics for fs + cloud provisioning info ( #111030 )
...
* add new metrics for plugin fs + cloud provisioning
* fix test
* update label
2025-09-15 14:54:16 +01:00
Stephanie Hingtgen
a676dc6638
Stats: Add repository stats ( #110989 )
2025-09-11 16:36:25 -06:00
Todd Treece
191ddb127a
Background Services: Lifecycle o11y ( #110570 )
2025-09-10 14:33:03 -04: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
Serge Zaitsev and Matheus Macabu
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
Ryan McKinley
3f502f305d
Chore: Update mocks with recent mockery ( #107816 )
2025-07-09 09:15:34 +02:00
Nathan Vērzemnieks
66d9a33cc9
Datasources: Update grafana-aws-sdk for new sigv4 middleware and aws-sdk-go v1 removal ( #107522 )
...
Datasources: Update grafana-aws-sdk
2025-07-03 17:48:57 +02: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
Andreas Christou
2afcb0e95b
Data Sources: Fix namespace ( #107124 )
...
Fix namespace
2025-06-24 15:40:27 +01:00
Stephanie Hingtgen
f4e4ba6f19
Library elements: Remove ability to set as "library variable" ( #106594 )
2025-06-12 08:41:18 -05:00
b4cd51810b
SecretsManager: Various utils for usage insights, outbox and secretkeeper ( #106010 )
...
* SecretsManager: utils for usage insights on ST mode
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* SecretsManager: add assert
Co-authored-by: PoorlyDefinedBehaviour <brunotj2015@hotmail.com >
* SecretsManager: Remove encryption scope option
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* SecretsManager: add fake keeper
Co-authored-by: Dana Axinte <53751979+dana-axinte@users.noreply.github.com >
Co-authored-by: PoorlyDefinedBehaviour <brunotj2015@hotmail.com >
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
---------
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
Co-authored-by: PoorlyDefinedBehaviour <brunotj2015@hotmail.com >
2025-05-28 12:46:54 +01:00
Peter Štibraný
c4d3eb1cd0
Remove support for Google Spanner database. ( #105846 )
...
* Remove support for Google Spanner database.
2025-05-23 11:35:59 +02:00
beejeebus
8f79e4882f
Replace usage of http.DefaultClient and http.DefaultTransport ( #104135 )
...
Remove usage of http.DefaultClient and http.DefaultTransport
Part of grafana/data-sources#484
2025-05-09 13:26:39 -04:00
Serge Zaitsev
694b9dfe50
Chore: Replace xorm.io/xorm imports ( #104458 )
...
* replace xorm.io/xorm imports
* replace xorm from other go.mod files
* clean up workspace
* nolint does not make sense anymore as it is not a module
* try if nolint directive helps
* use nolint:all for xorm
* add more nolints
* try to skip xorm in linter config
* exclude xorm differently
* retrigger ci
2025-05-02 17:13:01 +02:00
Andreas Christou
35145801a2
Data Sources: Add gauge for response size ( #104394 )
2025-04-24 13:26:28 +01:00
Serge Zaitsev
047f5edae9
Chore: Add xorm.io/core into xorm ( #103700 )
...
* add xorm.io/core into xorm
* update workspace
* format imports
* update workspace
2025-04-16 08:58:50 +02:00
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
Mariell Hoversholm
757be6365a
CI: Bump golangci-lint to 2.0.2 ( #103572 )
2025-04-10 14:42:23 +02:00
Andres Martinez Gotor
89c70fcdcf
Chore: Advisor stats ( #103711 )
2025-04-10 10:51:00 +02:00
Gabriel MABILLE
2d89b16d7e
Tracing: Add Insecure to NewOTLPTracingConfig ( #103174 )
2025-04-01 17:34:42 +02:00
Emre Yazıcı and Matheus Macabu
7aa71aa734
Tracing: chore make insecure option configurable ( #99236 )
...
* Tracing: chore: make insecure option configurable
In case of insecure set to false, default system cert pool will be used to create otlpgrpc client.
* test: add tracing/insecure config checks
This is to verify whether insecure configuration is properly parsed.
* chore: update configura Grafana docs with new setting
* chore: also update comment in the ini files
---------
Co-authored-by: Matheus Macabu <macabu.matheus@gmail.com >
2025-03-27 12:37:23 -04:00
Peter Štibraný
5b5f433a26
spanner: Disable running alerting integration tests when using spanner. ( #102730 )
...
* Disable running alerting integration tests when using spanner.
* Disable tests for templategroup.
2025-03-26 10:57:55 +01:00
Andres Martinez Gotor
ebddc79780
Stats: Propagate context when listing sandbox plugins ( #102207 )
2025-03-19 15:29:30 +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
Matheus Macabu and Thomas Fournier
848d49e70f
Chore: Add username option for redis remote cache ( #101787 )
...
* Chore: Add username option for redis remote cache
(cherry picked from commit 25e28dc85e )
* Chore: Update docs and config with sample Redis conn with user+pass
---------
Co-authored-by: Thomas Fournier <tfournier@evolves.fr >
2025-03-12 08:26:41 +01:00
Peter Štibraný
fa809ac417
Fix more LastInsertId calls ( #101892 )
...
* Fix more places where LastInsertId is used without proper directive for Spanner.
* Fix tests.
2025-03-11 09:03:03 +01:00
Peter Štibraný
fd6a4908f1
Support Spanner's UNION syntax, which needs to be UNION DISTINCT or UNION ALL. ( #101768 )
...
* Support Spanner's UNION syntax, which needs to be UNION DISTINCT or UNION ALL.
2025-03-10 12:33:52 +01:00
Matheus Macabu
9eaaf95701
Hackaton 12: Add some unit tests, take 1 ( #101457 )
...
* tsdb/graphite: add happy path test for QueryData
* infra/httpclient/httpclientprovider: add tests for RedirectLimitMiddleware
2025-02-28 16:11:11 +02:00
Todd Treece
55aaf4aac0
Metrics: Add deny list in MultiRegistry ( #101010 )
2025-02-19 23:11:26 +02:00
Todd Treece
5a74a1a0f6
Metrics: Use correct gatherer in graphite bridge ( #100624 )
2025-02-13 10:19:22 -05:00
Andres Martinez Gotor
a066659e11
Frontend Sandbox: Add to statscollector ( #99735 )
2025-01-30 16:17:36 +01:00
Mariell Hoversholm
baaff6296f
Logging: Use slog adapter for go-kit/log with App SDK logger ( #99740 )
...
* feat: use slog adapter for go-kit/log
The adapter library is Apache-2.0, which is compatible with AGPL-3.0 as a dependency.
The adapter library outputs a little more info than we'd like, but rather a couple fields too many than it outputting
ERROR logs as INFO.
* feat: update dependencies
* chore: attribute ownership of dependency
* refactor: move require
* chore: make update-workspace
2025-01-29 14:59:37 +01:00
Sofia Papagiannaki and Will Browne
d192a44469
Plugins: Modify interface for plugin validations to allow taking PDC into account ( #96089 )
...
* Request interceptor: Do not block PDC
* Apply change after feedback received
* Add test
* Check if secure socks proxy configured for the instance
* Apply suggestions from code review
* Add dedicated service for datasource request URL validation (#99179 )
---------
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com >
2025-01-24 17:01:46 +02:00
Stephanie Hingtgen
e019e34eb5
Stats: use dashboard stats rather than list ( #99130 )
2025-01-17 08:19:56 +03:00
Mariell Hoversholm
36d6fad421
Feat: Setup the App SDK logging module ( #98927 )
...
* Feat: Setup the App SDK logging module
* Build: Depend on logging pkg and update App SDK
* Chore: Assign owner to logging module
2025-01-14 10:34:57 +01:00
Alexander Zobnin
cbb688e910
Zanzana: Remove usage from legacy access control ( #98883 )
...
* Zanzana: Remove usage from legacy access control
* remove unused
* remove zanzana client from services where it's not used
* remove unused metrics
* fix linter
2025-01-14 10:26:15 +01:00
Stephanie Hingtgen
ce512862f7
Stats: remove dependency on dashboards and folders ( #98653 )
2025-01-08 06:57:52 -06:00
Jo
40d3b02648
Auth: Separate anonymous settings to its own struct ( #97791 )
...
separate anonymous settings to its own struct
2024-12-13 10:46:27 +01:00
Todd Treece
6c8c0ab350
Chore: Ignore duplicate process_* metrics in MultiRegistry ( #97857 )
2024-12-12 16:55:09 +02:00
Will Browne
d85353926d
Metrics: Export multi registry ( #97662 )
...
* export multi registry
* fixup
2024-12-12 09:48:27 +00:00