Will Assis
4164239f56
unified-storage: implement sqlkv Save method ( #115458 )
...
* unified-storage: sqlkv save method
2025-12-19 14:27:06 -05:00
Georges Chaudy
07bf7b2ae1
kvstore: add cluster-scoped resource support ( #113183 )
...
kvstore add experimental clusterscope resource
2025-11-03 15:53:59 -08:00
Georges Chaudy
147ff4279b
kvstore: fix events lookback + startkey ( #113092 )
...
* fix snowflakes events
* add tests
2025-10-28 17:25:55 +01:00
Georges Chaudy
bc9540fadb
kvstore: use batch delete to cleanup old events ( #112737 )
...
* use batchdelete for cleaning up old events
* comment
2025-10-27 12:27:31 +01:00
Georges Chaudy
7be30abab0
fix folder missing in the event key ( #112698 )
2025-10-21 10:40:56 +00:00
owensmallwood
1f7f3c9a5a
Unified Storage: KVStore use new validation ( #110834 )
...
* name field must match either k8s regex or grafana legacy uid regex. Adds tests.
* moves invalid test to being valid
* uses new US naming validation for kv store validation
* fix function name and update key regex
* fix comment
* use correct errs var
* updates kv key tests
2025-10-09 11:25:39 -06:00
Georges Chaudy
c251ebf4d5
kvstore: merge the metadata store into the datastore ( #110334 )
...
* migrate eventstore to datastore
* Add folder to event key
* lint
* lint
* lint
* lint
* remove foundkye
* refactor the Keys methods to move the Sort outside the ListKey method
* remove bad import
* fix missing params
* lint
* fix test
* perf improvement
2025-09-16 12:16:29 +02:00
owensmallwood
7ce971cba1
Unified Storage: Adds pruner for kv eventstore ( #110785 )
...
* Adds pruner for eventstore - default 24 hours. Adds tests.
* update comment
* remove delay on startup. formatting
* updates log message type and removes useless comment
* caller handles goroutine for runCleanupOldEvents()
* simplify timestamp extraction
* adds config for event pruning interval
* uses start and end key to get all expired events
* remove sort when listing keys in event pruner - order doesnt matter
* use snowflake constants
* log when we delete 0 rows
* pass time.Time to cleanup old events func
2025-09-12 14:40:16 -06:00
Will Assis and Georges Chaudy
ea7c370edd
unified-storage: add ListSinceModified to kv store ( #110250 )
...
* implement ListKeysSince in event store
implement data store version
---------
Co-authored-by: Georges Chaudy <chaudyg@gmail.com >
2025-09-04 12:26:40 -04:00
Georges Chaudy
7002ab90ae
unistore: save returns a writecloser ( #107955 )
...
* unistore: save returns a writecloser
* go-lint
* address comments
2025-07-11 18:25:48 +02:00
Georges Chaudy
ea0ddb3fc9
unistore: refactor get to return a reader ( #107951 )
2025-07-11 11:10:19 +02:00
Georges Chaudy
4a272fb61b
unistore: add eventstore and notifier ( #107182 )
...
* Add datastore
* too many slashes
* lint
* add metadata store
* simplify meta
* Add eventstore
* golint
* lint
* Add datastore
* too many slashes
* lint
* pr comments
* extract ParseKey
* readcloser
* remove get prefix
* use dedicated keys
* parsekey
* sameresource
* unrelated
* name
* renmae tests
* add key validation
* fix tests
* refactor a bit
* lint
* allow empty ns
* get keys instead of list
* rename the functions
* refactor yield candidate
* update test
* lint
* missing err check
* address comments
* increase the timeout
2025-06-30 11:20:57 +02:00