owensmallwood
9642eedce6
Unified Storage: Use tls preferred when grafana db using ssl ( #97378 )
...
When unified storage is using the grafana db (default case for on-prem), if the db is using ssl then set tls=preferred. This fixes an on-prem bug in 11.3.1.
2024-12-03 23:56:13 +02:00
Georges Chaudy
4f8ab73a8c
unistore: Add support for verify-full in postgres ( #96825 )
...
Add support for verify-full in postgres
2024-11-21 12:31:33 +00:00
Georges Chaudy
76b43267c8
Unified Storage: Use ssl_mode instead of sslmode ( #95658 )
...
change unistore to use ssl_mode instead of sslmode
2024-10-31 16:10:47 +01:00
Diego Augusto Molina
3e1f5559a6
Unistore Chore: Add database-level observability ( #92266 )
...
* add testing harness
* fix mockery and linters
* WIP
* wip
* fix transactions
* fix transaction tracing; add tracing by default
* rename package
* move WithTx to simplify logic of DB implementations
* fix potential issue with context deadline
* add db instrumentation to dbutil
* add otel tests
* improve naming
* minor fix in semantics and add comprehensive OTel testing
* fix naming
* instrument resourceVersionAtomicInc
* provide a default testing tracer
* fix docs
* fix typo in docs
* add semconv for k8s
2024-10-18 00:32:08 -03:00
Diego Augusto Molina
cf08f6762d
Unistore Chore: Add OTEL testing harness ( #94835 )
...
* add testing harness
* fix mockery and linters
* fix data race in tests
* fix data race in tests
* reduce cardinality of data
2024-10-17 08:41:06 -03:00
Diego Augusto Molina
44282134da
Unistore Chore: Make it easier to implement DB interface ( #94680 )
...
make it easier to implement DB interface
2024-10-16 13:40:35 -03:00
Diego Augusto Molina
4a800eda9f
Unistore Chore: add inocuous preparative changes for otel-based db observability ( #94473 )
...
add inocuous preparative changes for otel tracing
2024-10-09 20:32:09 +00:00
Diego Augusto Molina
7d32d5eff4
Unistore: Reuse MySQL and Postgres Grafana core config instead of the object ( #94223 )
...
* Reuse MySQL and Postgres Grafana config instead of the object
- Only reuse the Grafana DB object for SQLite. Support for SQLite will be added in a different PR
- Fail when reusing the Grafana DB object if it is using DB instrumentation
- In the case that we have to reuse a Grafana DB with its instrumentation, fail with an error that describes a workaround
- Add regression tests to reproduce incident 2144
* remove temp file
* fix linter
* fix linter x2
* fix linter x3
2024-10-04 12:07:20 +00:00
Ryan McKinley
c59dddf7af
MySQL: Add parseTime=true to SQL connections ( #92469 )
2024-08-27 14:16:04 +03:00
Ryan McKinley
2136fd9a92
Storage: Remove unified storage feature flag ( #92192 )
...
remove unified storage flag
2024-08-21 19:28:30 +03:00
Diego Augusto Molina
9a65d0a977
Storage: remove sqlstore.WrapDatabaseDriverWithHooks ( #92111 )
...
remove sqlstore.WrapDatabaseDriverWithHooks from Unified Storage after related incident
2024-08-21 10:31:34 -03:00
owensmallwood
1cb3470e3e
Unified Storage: Wrapping the mysql driver with hooks causes issues ( #92099 )
...
dont wrap the mysql driver with hooks. Its causing the error 'begin tx: sql: driver does not support non-default isolation level'.
2024-08-19 15:09:25 -06:00
owensmallwood
28f2a4078d
Unified Storage: Records grafana database metrics ( #91932 )
...
* records grafana database metrics for unified storage
* update type to tracing.Tracer
* use nil for tracer in tests
2024-08-15 11:13:36 -06:00
Ryan McKinley
160fe2a3a4
Storage: Remove entity store ( #91233 )
2024-07-31 09:25:39 +03:00
owensmallwood
2362e79e4e
Unified Storage: Configure client to use tls=preferred ( #91162 )
...
* optionally set tls=preferred in the mysql connection string from env var
2024-07-30 11:24:28 -06:00
Diego Augusto Molina
399d77a0fd
Resource server improvements and fixes ( #90715 )
...
* cleanup dependencies and improve list method
* Improve Resource Server API, remove unnecessary dependencies
* Reduce the API footprint of ResourceDBInterface and its implementation
* Improve LifecycleHooks to use context
* Improve testing
* reduce API size and improve code
* sqltemplate: add DialectForDriver func and improve naming
* improve lifecycle API
* many small fixes after adding more tests
2024-07-22 20:08:30 +03:00
Georges Chaudy
08c611c68b
ResourceServer: Resource store sql backend ( #90170 )
2024-07-18 08:03:18 -07:00