grafana/pkg/tsdb/loki
Matias Chomicki 2573cbec08
Loki: Added support to split queries by stream shard (#94245)
* Add shard query splitting implementation

* Shard query splitting: reuse function from query splitting

* Shard query splitting: remove max line limit

* Shard query splitting: update test

* Shard query splitting: fix types and non-sharded queries

* Merge responses: fix log merging

* Merge responses: remove legacy code

* Query splitting: add support to retry failed requests

* Query splitting: unit test request retrying

* Query splitting: add unsubscriptions

* Shard query splitting: fix retrying

* Shard query splitting: switch to dynamic grouping

* Shard query splitting: update group size thresholds and fix -1 query

* Shard query splitting: update initial group size + don't retry parse errors

* Shard query splitting: update unit test

* chore: update mock value

* Shard query splitting: add support for multiple targets

* chore: update description

* Shard query splitting: use group targets

* chore: filter hidden queries

* Shard query splitting: issue initial log query without sharding

* Splitting: fix retrying in both methods

* Merge responses: keep execution time

* Shard query splitting: remove no-shard attempt

* Shard query splitting: adjust groups based on rate of change

* chore: clean up experiments

* Shard query splittng: remove log query restrictions

* Shard query splitting: remove fallback to time splitting

* Loki: add new query direction

* Missing generated file

* LokiOptionField: integrate new query direction

* Shard query splitting: delegate non-scan queries to time splitting

* Query splitting: do not retry queries with parse errors

* Loki datasource: add placeholder for feature flag

* Shard query splitting: add function with support criteria

* Shard query splitting: refactor query modification and shard logs volume

* Shard query splitting: update unit tests

* chore: Update scan direction tooltip

* chore: formatting

* LogsVolumePanel: fix missing state in logs volume panel data

* Merge responses: better handle missing nanoseconds

* LokiQueryOptionFields: display query direction for log queries

* loki: process scan direction as backward

* Loki datasource: restrict sharding to Explore

* Retrying: invert criteria and move to response utils

* Formatting

* Use log volume refId constant

* Fix import order

* Create feature flag

* Use feature toggle

* LogsVolumePanel: prevent flashing no data while streaming
2024-10-23 14:21:03 +03:00
..
instrumentation Plugins: Enhanced plugin instrumentation (#90199) 2024-07-09 15:03:46 +02:00
kinds/dataquery Loki: Added support to split queries by stream shard (#94245) 2024-10-23 14:21:03 +03:00
testdata Loki: Fix bug duplicating parsed labels across multiple log lines (#80292) 2024-01-11 15:09:13 +01:00
testdata_dataplane Loki: Fix bug duplicating parsed labels across multiple log lines (#80292) 2024-01-11 15:09:13 +01:00
testdata_logs_dataplane Loki: Fix bug duplicating parsed labels across multiple log lines (#80292) 2024-01-11 15:09:13 +01:00
testdata_metric_dataplane Loki: Fix bug duplicating parsed labels across multiple log lines (#80292) 2024-01-11 15:09:13 +01:00
api_mock.go Loki: Replace imports of infra/log with SDK (#84336) 2024-03-20 11:25:35 +02:00
api_test.go Loki: Support custom X-Query-Tags header (#85123) 2024-03-26 13:08:09 +02:00
api.go Loki: Lower log level when retrieving metadata (#87910) 2024-05-15 17:08:03 +03:00
frame_test.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
frame.go Loki: Add backend functionality to parse structured metadata from Loki (#77361) 2023-11-16 17:06:14 +01:00
framing_test.go Loki: Replace imports of infra/log with SDK (#84336) 2024-03-20 11:25:35 +02:00
healthcheck_test.go Loki: Remove unnecessary featuremgmt (#90874) 2024-07-24 11:00:41 +02:00
healthcheck.go Core: Remove thema and kindsys dependencies (#84499) 2024-03-21 11:11:29 +01:00
loki_bench_test.go Loki: Replace imports of infra/log with SDK (#84336) 2024-03-20 11:25:35 +02:00
loki.go Loki: Add dashboard and panel names as headers (#92096) 2024-08-22 21:30:43 +02:00
parse_query_test.go Loki: Support custom X-Query-Tags header (#85123) 2024-03-26 13:08:09 +02:00
parse_query.go Loki: Added support to split queries by stream shard (#94245) 2024-10-23 14:21:03 +03:00
step_test.go Loki: Implement step editor (#69648) 2023-06-16 19:08:29 +03:00
step.go Chore: Clean up intervalv2 functions (#82074) 2024-02-09 11:39:21 +01:00
streaming.go Core: Remove thema and kindsys dependencies (#84499) 2024-03-21 11:11:29 +01:00
types.go Infinite scrolling: Add X-Query-Tag header (#81089) 2024-01-29 11:24:05 +01:00