diff --git a/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md b/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md index a9199b6ea11..30374f38aa3 100644 --- a/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md +++ b/docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md @@ -34,7 +34,6 @@ Most [generally available](https://grafana.com/docs/release-life-cycle/#general- | `lokiQuerySplitting` | Split large interval queries into subqueries with smaller time intervals | Yes | | `prometheusMetricEncyclopedia` | Adds the metrics explorer component to the Prometheus query builder as an option in metric select | Yes | | `influxdbBackendMigration` | Query InfluxDB InfluxQL without the proxy | Yes | -| `lokiMetricDataplane` | Changes metric responses from Loki to be compliant with the dataplane specification. | Yes | | `dataplaneFrontendFallback` | Support dataplane contract field name change for transformations and field name matchers where the name is different | Yes | | `unifiedRequestLog` | Writes error logs to the request logger | Yes | | `recordedQueriesMulti` | Enables writing multiple items from a single query within Recorded Queries | Yes | diff --git a/packages/grafana-data/src/types/featureToggles.gen.ts b/packages/grafana-data/src/types/featureToggles.gen.ts index 663f65888fc..2d78e294e6c 100644 --- a/packages/grafana-data/src/types/featureToggles.gen.ts +++ b/packages/grafana-data/src/types/featureToggles.gen.ts @@ -59,7 +59,6 @@ export interface FeatureToggles { influxqlStreamingParser?: boolean; influxdbRunQueriesInParallel?: boolean; prometheusRunQueriesInParallel?: boolean; - lokiMetricDataplane?: boolean; lokiLogsDataplane?: boolean; dataplaneFrontendFallback?: boolean; disableSSEDataplane?: boolean; diff --git a/pkg/services/featuremgmt/registry.go b/pkg/services/featuremgmt/registry.go index 2260ec8c0eb..c8542eaea61 100644 --- a/pkg/services/featuremgmt/registry.go +++ b/pkg/services/featuremgmt/registry.go @@ -316,14 +316,6 @@ var ( FrontendOnly: false, Owner: grafanaObservabilityMetricsSquad, }, - { - Name: "lokiMetricDataplane", - Description: "Changes metric responses from Loki to be compliant with the dataplane specification.", - Stage: FeatureStageGeneralAvailability, - Expression: "true", - Owner: grafanaObservabilityLogsSquad, - AllowSelfServe: true, - }, { Name: "lokiLogsDataplane", Description: "Changes logs responses from Loki to be compliant with the dataplane specification.", diff --git a/pkg/services/featuremgmt/toggles_gen.csv b/pkg/services/featuremgmt/toggles_gen.csv index eb3759fc0ac..43c5d1b9170 100644 --- a/pkg/services/featuremgmt/toggles_gen.csv +++ b/pkg/services/featuremgmt/toggles_gen.csv @@ -40,7 +40,6 @@ influxdbBackendMigration,GA,@grafana/observability-metrics,false,false,true influxqlStreamingParser,experimental,@grafana/observability-metrics,false,false,false influxdbRunQueriesInParallel,privatePreview,@grafana/observability-metrics,false,false,false prometheusRunQueriesInParallel,privatePreview,@grafana/observability-metrics,false,false,false -lokiMetricDataplane,GA,@grafana/observability-logs,false,false,false lokiLogsDataplane,experimental,@grafana/observability-logs,false,false,false dataplaneFrontendFallback,GA,@grafana/observability-metrics,false,false,true disableSSEDataplane,experimental,@grafana/observability-metrics,false,false,false diff --git a/pkg/services/featuremgmt/toggles_gen.go b/pkg/services/featuremgmt/toggles_gen.go index 7e012332b13..2f912caa947 100644 --- a/pkg/services/featuremgmt/toggles_gen.go +++ b/pkg/services/featuremgmt/toggles_gen.go @@ -171,10 +171,6 @@ const ( // Enables running Prometheus queries in parallel FlagPrometheusRunQueriesInParallel = "prometheusRunQueriesInParallel" - // FlagLokiMetricDataplane - // Changes metric responses from Loki to be compliant with the dataplane specification. - FlagLokiMetricDataplane = "lokiMetricDataplane" - // FlagLokiLogsDataplane // Changes logs responses from Loki to be compliant with the dataplane specification. FlagLokiLogsDataplane = "lokiLogsDataplane" diff --git a/pkg/tsdb/loki/api.go b/pkg/tsdb/loki/api.go index ecc71392c24..06c6e5c090c 100644 --- a/pkg/tsdb/loki/api.go +++ b/pkg/tsdb/loki/api.go @@ -15,9 +15,7 @@ import ( "time" jsoniter "github.com/json-iterator/go" - "go.opentelemetry.io/otel/attribute" "go.opentelemetry.io/otel/codes" - "go.opentelemetry.io/otel/trace" "google.golang.org/grpc/metadata" "github.com/grafana/grafana-plugin-sdk-go/backend" @@ -217,23 +215,21 @@ func (api *LokiAPI) DataQuery(ctx context.Context, query lokiQuery, responseOpts } start = time.Now() - _, span := api.tracer.Start(ctx, "datasource.loki.parseResponse", trace.WithAttributes( - attribute.Bool("metricDataplane", responseOpts.metricDataplane), - )) + _, span := api.tracer.Start(ctx, "datasource.loki.parseResponse") defer span.End() iter := jsoniter.Parse(jsoniter.ConfigDefault, resp.Body, 1024) - res := converter.ReadPrometheusStyleResult(iter, converter.Options{Dataplane: responseOpts.metricDataplane}) + res := converter.ReadPrometheusStyleResult(iter, converter.Options{Dataplane: true}) if res.Error != nil { span.RecordError(res.Error) span.SetStatus(codes.Error, res.Error.Error()) instrumentation.UpdatePluginParsingResponseDurationSeconds(ctx, time.Since(start), "error") - api.log.Error("Error parsing response from loki", "error", res.Error, "metricDataplane", responseOpts.metricDataplane, "duration", time.Since(start), "stage", stageParseResponse) + api.log.Error("Error parsing response from loki", "error", res.Error, "duration", time.Since(start), "stage", stageParseResponse) return nil, res.Error } instrumentation.UpdatePluginParsingResponseDurationSeconds(ctx, time.Since(start), "ok") - api.log.Info("Response parsed from loki", "duration", time.Since(start), "metricDataplane", responseOpts.metricDataplane, "framesLength", len(res.Frames), "stage", stageParseResponse) + api.log.Info("Response parsed from loki", "duration", time.Since(start), "framesLength", len(res.Frames), "stage", stageParseResponse) return &res, nil } diff --git a/pkg/tsdb/loki/framing_test.go b/pkg/tsdb/loki/framing_test.go index 34e2773eb80..db36a7624b1 100644 --- a/pkg/tsdb/loki/framing_test.go +++ b/pkg/tsdb/loki/framing_test.go @@ -72,10 +72,8 @@ func TestSuccessResponse(t *testing.T) { for _, test := range tt { t.Run(test.name, func(t *testing.T) { - runTest("testdata", test.filepath, test.query, ResponseOpts{metricDataplane: false, logsDataplane: false}) - runTest("testdata_metric_dataplane", test.filepath, test.query, ResponseOpts{metricDataplane: true, logsDataplane: false}) - runTest("testdata_logs_dataplane", test.filepath, test.query, ResponseOpts{metricDataplane: false, logsDataplane: true}) - runTest("testdata_dataplane", test.filepath, test.query, ResponseOpts{metricDataplane: true, logsDataplane: true}) + runTest("test_non_dataplane", test.filepath, test.query, ResponseOpts{logsDataplane: false}) + runTest("testdata_dataplane", test.filepath, test.query, ResponseOpts{logsDataplane: true}) }) } } diff --git a/pkg/tsdb/loki/loki.go b/pkg/tsdb/loki/loki.go index 72ca44fe673..099e9b344f3 100644 --- a/pkg/tsdb/loki/loki.go +++ b/pkg/tsdb/loki/loki.go @@ -78,8 +78,7 @@ type QueryJSONModel struct { } type ResponseOpts struct { - metricDataplane bool - logsDataplane bool + logsDataplane bool } func parseQueryModel(raw json.RawMessage) (*QueryJSONModel, error) { @@ -180,8 +179,7 @@ func (s *Service) QueryData(ctx context.Context, req *backend.QueryDataRequest) } responseOpts := ResponseOpts{ - metricDataplane: isFeatureEnabled(ctx, featuremgmt.FlagLokiMetricDataplane), - logsDataplane: isFeatureEnabled(ctx, featuremgmt.FlagLokiLogsDataplane), + logsDataplane: isFeatureEnabled(ctx, featuremgmt.FlagLokiLogsDataplane), } if isFeatureEnabled(ctx, featuremgmt.FlagLokiSendDashboardPanelNames) { @@ -291,7 +289,7 @@ func runQuery(ctx context.Context, api *LokiAPI, query *lokiQuery, responseOpts } for _, frame := range res.Frames { - err = adjustFrame(frame, query, !responseOpts.metricDataplane, responseOpts.logsDataplane) + err = adjustFrame(frame, query, false, responseOpts.logsDataplane) if err != nil { plog.Error("Error adjusting frame", "error", err) diff --git a/pkg/tsdb/loki/testdata/empty.golden.jsonc b/pkg/tsdb/loki/test_non_dataplane/empty.golden.jsonc similarity index 100% rename from pkg/tsdb/loki/testdata/empty.golden.jsonc rename to pkg/tsdb/loki/test_non_dataplane/empty.golden.jsonc diff --git a/pkg/tsdb/loki/testdata/empty.json b/pkg/tsdb/loki/test_non_dataplane/empty.json similarity index 100% rename from pkg/tsdb/loki/testdata/empty.json rename to pkg/tsdb/loki/test_non_dataplane/empty.json diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/matrix_gap.golden.jsonc b/pkg/tsdb/loki/test_non_dataplane/matrix_gap.golden.jsonc similarity index 100% rename from pkg/tsdb/loki/testdata_metric_dataplane/matrix_gap.golden.jsonc rename to pkg/tsdb/loki/test_non_dataplane/matrix_gap.golden.jsonc diff --git a/pkg/tsdb/loki/testdata/matrix_gap.json b/pkg/tsdb/loki/test_non_dataplane/matrix_gap.json similarity index 100% rename from pkg/tsdb/loki/testdata/matrix_gap.json rename to pkg/tsdb/loki/test_non_dataplane/matrix_gap.json diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/matrix_inf.golden.jsonc b/pkg/tsdb/loki/test_non_dataplane/matrix_inf.golden.jsonc similarity index 100% rename from pkg/tsdb/loki/testdata_metric_dataplane/matrix_inf.golden.jsonc rename to pkg/tsdb/loki/test_non_dataplane/matrix_inf.golden.jsonc diff --git a/pkg/tsdb/loki/testdata/matrix_inf.json b/pkg/tsdb/loki/test_non_dataplane/matrix_inf.json similarity index 100% rename from pkg/tsdb/loki/testdata/matrix_inf.json rename to pkg/tsdb/loki/test_non_dataplane/matrix_inf.json diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/matrix_name.golden.jsonc b/pkg/tsdb/loki/test_non_dataplane/matrix_name.golden.jsonc similarity index 100% rename from pkg/tsdb/loki/testdata_metric_dataplane/matrix_name.golden.jsonc rename to pkg/tsdb/loki/test_non_dataplane/matrix_name.golden.jsonc diff --git a/pkg/tsdb/loki/testdata/matrix_name.json b/pkg/tsdb/loki/test_non_dataplane/matrix_name.json similarity index 100% rename from pkg/tsdb/loki/testdata/matrix_name.json rename to pkg/tsdb/loki/test_non_dataplane/matrix_name.json diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/matrix_nan.golden.jsonc b/pkg/tsdb/loki/test_non_dataplane/matrix_nan.golden.jsonc similarity index 100% rename from pkg/tsdb/loki/testdata_metric_dataplane/matrix_nan.golden.jsonc rename to pkg/tsdb/loki/test_non_dataplane/matrix_nan.golden.jsonc diff --git a/pkg/tsdb/loki/testdata/matrix_nan.json b/pkg/tsdb/loki/test_non_dataplane/matrix_nan.json similarity index 100% rename from pkg/tsdb/loki/testdata/matrix_nan.json rename to pkg/tsdb/loki/test_non_dataplane/matrix_nan.json diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/matrix_simple.golden.jsonc b/pkg/tsdb/loki/test_non_dataplane/matrix_simple.golden.jsonc similarity index 100% rename from pkg/tsdb/loki/testdata_metric_dataplane/matrix_simple.golden.jsonc rename to pkg/tsdb/loki/test_non_dataplane/matrix_simple.golden.jsonc diff --git a/pkg/tsdb/loki/testdata/matrix_simple.json b/pkg/tsdb/loki/test_non_dataplane/matrix_simple.json similarity index 100% rename from pkg/tsdb/loki/testdata/matrix_simple.json rename to pkg/tsdb/loki/test_non_dataplane/matrix_simple.json diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/matrix_small_step.golden.jsonc b/pkg/tsdb/loki/test_non_dataplane/matrix_small_step.golden.jsonc similarity index 100% rename from pkg/tsdb/loki/testdata_metric_dataplane/matrix_small_step.golden.jsonc rename to pkg/tsdb/loki/test_non_dataplane/matrix_small_step.golden.jsonc diff --git a/pkg/tsdb/loki/testdata/matrix_small_step.json b/pkg/tsdb/loki/test_non_dataplane/matrix_small_step.json similarity index 100% rename from pkg/tsdb/loki/testdata/matrix_small_step.json rename to pkg/tsdb/loki/test_non_dataplane/matrix_small_step.json diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/matrix_with_stats.golden.jsonc b/pkg/tsdb/loki/test_non_dataplane/matrix_with_stats.golden.jsonc similarity index 100% rename from pkg/tsdb/loki/testdata_metric_dataplane/matrix_with_stats.golden.jsonc rename to pkg/tsdb/loki/test_non_dataplane/matrix_with_stats.golden.jsonc diff --git a/pkg/tsdb/loki/testdata/matrix_with_stats.json b/pkg/tsdb/loki/test_non_dataplane/matrix_with_stats.json similarity index 100% rename from pkg/tsdb/loki/testdata/matrix_with_stats.json rename to pkg/tsdb/loki/test_non_dataplane/matrix_with_stats.json diff --git a/pkg/tsdb/loki/testdata/streams_parse_errors.golden.jsonc b/pkg/tsdb/loki/test_non_dataplane/streams_parse_errors.golden.jsonc similarity index 100% rename from pkg/tsdb/loki/testdata/streams_parse_errors.golden.jsonc rename to pkg/tsdb/loki/test_non_dataplane/streams_parse_errors.golden.jsonc diff --git a/pkg/tsdb/loki/testdata/streams_parse_errors.json b/pkg/tsdb/loki/test_non_dataplane/streams_parse_errors.json similarity index 100% rename from pkg/tsdb/loki/testdata/streams_parse_errors.json rename to pkg/tsdb/loki/test_non_dataplane/streams_parse_errors.json diff --git a/pkg/tsdb/loki/testdata/streams_simple.golden.jsonc b/pkg/tsdb/loki/test_non_dataplane/streams_simple.golden.jsonc similarity index 100% rename from pkg/tsdb/loki/testdata/streams_simple.golden.jsonc rename to pkg/tsdb/loki/test_non_dataplane/streams_simple.golden.jsonc diff --git a/pkg/tsdb/loki/testdata/streams_simple.json b/pkg/tsdb/loki/test_non_dataplane/streams_simple.json similarity index 100% rename from pkg/tsdb/loki/testdata/streams_simple.json rename to pkg/tsdb/loki/test_non_dataplane/streams_simple.json diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/streams_structured_metadata.golden.jsonc b/pkg/tsdb/loki/test_non_dataplane/streams_structured_metadata.golden.jsonc similarity index 100% rename from pkg/tsdb/loki/testdata_metric_dataplane/streams_structured_metadata.golden.jsonc rename to pkg/tsdb/loki/test_non_dataplane/streams_structured_metadata.golden.jsonc diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/streams_structured_metadata.json b/pkg/tsdb/loki/test_non_dataplane/streams_structured_metadata.json similarity index 100% rename from pkg/tsdb/loki/testdata_metric_dataplane/streams_structured_metadata.json rename to pkg/tsdb/loki/test_non_dataplane/streams_structured_metadata.json diff --git a/pkg/tsdb/loki/testdata/streams_structured_metadata_2.golden.jsonc b/pkg/tsdb/loki/test_non_dataplane/streams_structured_metadata_2.golden.jsonc similarity index 100% rename from pkg/tsdb/loki/testdata/streams_structured_metadata_2.golden.jsonc rename to pkg/tsdb/loki/test_non_dataplane/streams_structured_metadata_2.golden.jsonc diff --git a/pkg/tsdb/loki/testdata/streams_structured_metadata_2.json b/pkg/tsdb/loki/test_non_dataplane/streams_structured_metadata_2.json similarity index 100% rename from pkg/tsdb/loki/testdata/streams_structured_metadata_2.json rename to pkg/tsdb/loki/test_non_dataplane/streams_structured_metadata_2.json diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/vector_simple.golden.jsonc b/pkg/tsdb/loki/test_non_dataplane/vector_simple.golden.jsonc similarity index 100% rename from pkg/tsdb/loki/testdata_metric_dataplane/vector_simple.golden.jsonc rename to pkg/tsdb/loki/test_non_dataplane/vector_simple.golden.jsonc diff --git a/pkg/tsdb/loki/testdata/vector_simple.json b/pkg/tsdb/loki/test_non_dataplane/vector_simple.json similarity index 100% rename from pkg/tsdb/loki/testdata/vector_simple.json rename to pkg/tsdb/loki/test_non_dataplane/vector_simple.json diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/vector_special_values.golden.jsonc b/pkg/tsdb/loki/test_non_dataplane/vector_special_values.golden.jsonc similarity index 100% rename from pkg/tsdb/loki/testdata_metric_dataplane/vector_special_values.golden.jsonc rename to pkg/tsdb/loki/test_non_dataplane/vector_special_values.golden.jsonc diff --git a/pkg/tsdb/loki/testdata/vector_special_values.json b/pkg/tsdb/loki/test_non_dataplane/vector_special_values.json similarity index 100% rename from pkg/tsdb/loki/testdata/vector_special_values.json rename to pkg/tsdb/loki/test_non_dataplane/vector_special_values.json diff --git a/pkg/tsdb/loki/testdata/matrix_gap.golden.jsonc b/pkg/tsdb/loki/testdata/matrix_gap.golden.jsonc deleted file mode 100644 index eba2fd2f4bb..00000000000 --- a/pkg/tsdb/loki/testdata/matrix_gap.golden.jsonc +++ /dev/null @@ -1,88 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" -// } -// Name: {} -// Dimensions: 2 Fields by 6 Rows -// +-----------------------------------+-----------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: | -// | Type: []time.Time | Type: []float64 | -// +-----------------------------------+-----------------+ -// | 2022-01-24 08:54:13.815 +0000 UTC | 50 | -// | 2022-01-24 08:59:13.815 +0000 UTC | 57 | -// | 2022-01-24 09:04:13.815 +0000 UTC | 55 | -// | 2022-01-24 09:34:13.815 +0000 UTC | 54 | -// | 2022-01-24 09:39:13.815 +0000 UTC | 55 | -// | 2022-01-24 09:44:13.815 +0000 UTC | 56 | -// +-----------------------------------+-----------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "name": "{}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - }, - "config": { - "interval": 42000 - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": {}, - "config": { - "displayNameFromDS": "{}" - } - } - ] - }, - "data": { - "values": [ - [ - 1643014453815, - 1643014753815, - 1643015053815, - 1643016853815, - 1643017153815, - 1643017453815 - ], - [ - 50, - 57, - 55, - 54, - 55, - 56 - ] - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata/matrix_inf.golden.jsonc b/pkg/tsdb/loki/testdata/matrix_inf.golden.jsonc deleted file mode 100644 index 8ffd65e7835..00000000000 --- a/pkg/tsdb/loki/testdata/matrix_inf.golden.jsonc +++ /dev/null @@ -1,115 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" -// } -// Name: {level="info", location="moon", protocol="http"} -// Dimensions: 2 Fields by 8 Rows -// +---------------------------------+--------------------------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=info, location=moon, protocol=http | -// | Type: []time.Time | Type: []float64 | -// +---------------------------------+--------------------------------------------------+ -// | 2022-01-24 10:53:31.1 +0000 UTC | +Inf | -// | 2022-01-24 10:58:31.2 +0000 UTC | -Inf | -// | 2022-01-24 10:53:31.3 +0000 UTC | +Inf | -// | 2022-01-24 10:58:31.4 +0000 UTC | -Inf | -// | 2022-01-24 10:53:31.5 +0000 UTC | +Inf | -// | 2022-01-24 10:58:31.6 +0000 UTC | -Inf | -// | 2022-01-24 10:53:31.7 +0000 UTC | +Inf | -// | 2022-01-24 10:58:31.8 +0000 UTC | -Inf | -// +---------------------------------+--------------------------------------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "name": "{level=\"info\", location=\"moon\", protocol=\"http\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - }, - "config": { - "interval": 42000 - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "info", - "location": "moon", - "protocol": "http" - }, - "config": { - "displayNameFromDS": "{level=\"info\", location=\"moon\", protocol=\"http\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1643021611100, - 1643021911200, - 1643021611300, - 1643021911400, - 1643021611500, - 1643021911600, - 1643021611700, - 1643021911800 - ], - [ - null, - null, - null, - null, - null, - null, - null, - null - ] - ], - "entities": [ - null, - { - "Inf": [ - 0, - 2, - 4, - 6 - ], - "NegInf": [ - 1, - 3, - 5, - 7 - ] - } - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata/matrix_name.golden.jsonc b/pkg/tsdb/loki/testdata/matrix_name.golden.jsonc deleted file mode 100644 index 45d2e5fd6d0..00000000000 --- a/pkg/tsdb/loki/testdata/matrix_name.golden.jsonc +++ /dev/null @@ -1,76 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" -// } -// Name: {__name__="moon", level="error"} -// Dimensions: 2 Fields by 1 Rows -// +-----------------------------------+------------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: __name__=moon, level=error | -// | Type: []time.Time | Type: []float64 | -// +-----------------------------------+------------------------------------+ -// | 2021-12-10 08:36:06.989 +0000 UTC | 0.4 | -// +-----------------------------------+------------------------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "name": "{__name__=\"moon\", level=\"error\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - }, - "config": { - "interval": 42000 - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "__name__": "moon", - "level": "error" - }, - "config": { - "displayNameFromDS": "{__name__=\"moon\", level=\"error\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1639125366989 - ], - [ - 0.4 - ] - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata/matrix_nan.golden.jsonc b/pkg/tsdb/loki/testdata/matrix_nan.golden.jsonc deleted file mode 100644 index 7f9f5417919..00000000000 --- a/pkg/tsdb/loki/testdata/matrix_nan.golden.jsonc +++ /dev/null @@ -1,89 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" -// } -// Name: {} -// Dimensions: 2 Fields by 3 Rows -// +-----------------------------------+-----------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: | -// | Type: []time.Time | Type: []float64 | -// +-----------------------------------+-----------------+ -// | 2022-01-24 08:54:10.417 +0000 UTC | NaN | -// | 2022-01-24 08:59:10.517 +0000 UTC | NaN | -// | 2022-01-24 08:54:10.617 +0000 UTC | NaN | -// +-----------------------------------+-----------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "name": "{}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - }, - "config": { - "interval": 42000 - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": {}, - "config": { - "displayNameFromDS": "{}" - } - } - ] - }, - "data": { - "values": [ - [ - 1643014450417, - 1643014750517, - 1643014450617 - ], - [ - null, - null, - null - ] - ], - "entities": [ - null, - { - "NaN": [ - 0, - 1, - 2 - ] - } - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata/matrix_simple.golden.jsonc b/pkg/tsdb/loki/testdata/matrix_simple.golden.jsonc deleted file mode 100644 index d8904b596c8..00000000000 --- a/pkg/tsdb/loki/testdata/matrix_simple.golden.jsonc +++ /dev/null @@ -1,166 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" -// } -// Name: {level="error", location="moon"} -// Dimensions: 2 Fields by 4 Rows -// +-----------------------------------+------------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=error, location=moon | -// | Type: []time.Time | Type: []float64 | -// +-----------------------------------+------------------------------------+ -// | 2021-12-10 08:36:06.989 +0000 UTC | 0.4 | -// | 2021-12-10 08:36:46.989 +0000 UTC | 0.2 | -// | 2021-12-10 08:36:56.989 +0000 UTC | 0.2 | -// | 2021-12-10 08:37:46.989 +0000 UTC | 0.6 | -// +-----------------------------------+------------------------------------+ -// -// -// -// Frame[1] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" -// } -// Name: {level="info", location="mars"} -// Dimensions: 2 Fields by 5 Rows -// +-----------------------------------+-----------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=info, location=mars | -// | Type: []time.Time | Type: []float64 | -// +-----------------------------------+-----------------------------------+ -// | 2021-12-10 08:36:26.989 +0000 UTC | 0.6 | -// | 2021-12-10 08:36:36.989 +0000 UTC | 0.8 | -// | 2021-12-10 08:36:46.989 +0000 UTC | 0.8 | -// | 2021-12-10 08:36:56.989 +0000 UTC | 0.8 | -// | 2021-12-10 08:37:56.989 +0000 UTC | 2.6 | -// +-----------------------------------+-----------------------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "name": "{level=\"error\", location=\"moon\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - }, - "config": { - "interval": 42000 - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "error", - "location": "moon" - }, - "config": { - "displayNameFromDS": "{level=\"error\", location=\"moon\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1639125366989, - 1639125406989, - 1639125416989, - 1639125466989 - ], - [ - 0.4, - 0.2, - 0.2, - 0.6 - ] - ] - } - }, - { - "schema": { - "name": "{level=\"info\", location=\"mars\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - }, - "config": { - "interval": 42000 - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "info", - "location": "mars" - }, - "config": { - "displayNameFromDS": "{level=\"info\", location=\"mars\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1639125386989, - 1639125396989, - 1639125406989, - 1639125416989, - 1639125476989 - ], - [ - 0.6, - 0.8, - 0.8, - 0.8, - 2.6 - ] - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata/matrix_small_step.golden.jsonc b/pkg/tsdb/loki/testdata/matrix_small_step.golden.jsonc deleted file mode 100644 index 6079d871213..00000000000 --- a/pkg/tsdb/loki/testdata/matrix_small_step.golden.jsonc +++ /dev/null @@ -1,84 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" -// } -// Name: {level="error"} -// Dimensions: 2 Fields by 4 Rows -// +-----------------------------------+---------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=error | -// | Type: []time.Time | Type: []float64 | -// +-----------------------------------+---------------------+ -// | 2021-12-10 08:36:06.511 +0000 UTC | 0.4 | -// | 2021-12-10 08:36:46.512 +0000 UTC | 0.2 | -// | 2021-12-10 08:36:56.513 +0000 UTC | 0.2 | -// | 2021-12-10 08:37:46.514 +0000 UTC | 0.6 | -// +-----------------------------------+---------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "name": "{level=\"error\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - }, - "config": { - "interval": 42000 - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "error" - }, - "config": { - "displayNameFromDS": "{level=\"error\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1639125366511, - 1639125406512, - 1639125416513, - 1639125466514 - ], - [ - 0.4, - 0.2, - 0.2, - 0.6 - ] - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata/matrix_with_stats.golden.jsonc b/pkg/tsdb/loki/testdata/matrix_with_stats.golden.jsonc deleted file mode 100644 index ea7a81c148b..00000000000 --- a/pkg/tsdb/loki/testdata/matrix_with_stats.golden.jsonc +++ /dev/null @@ -1,367 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "stats": [ -// { -// "displayName": "Summary: bytes processed per second", -// "unit": "Bps", -// "value": 3507022 -// }, -// { -// "displayName": "Summary: lines processed per second", -// "value": 24818 -// }, -// { -// "displayName": "Summary: total bytes processed", -// "unit": "decbytes", -// "value": 7772 -// }, -// { -// "displayName": "Summary: total lines processed", -// "value": 55 -// }, -// { -// "displayName": "Summary: exec time", -// "unit": "s", -// "value": 0.002216125 -// }, -// { -// "displayName": "Store: total chunks ref", -// "value": 2 -// }, -// { -// "displayName": "Store: total chunks downloaded", -// "value": 3 -// }, -// { -// "displayName": "Store: chunks download time", -// "unit": "s", -// "value": 0.000390958 -// }, -// { -// "displayName": "Store: head chunk bytes", -// "unit": "decbytes", -// "value": 4 -// }, -// { -// "displayName": "Store: head chunk lines", -// "value": 5 -// }, -// { -// "displayName": "Store: decompressed bytes", -// "unit": "decbytes", -// "value": 7772 -// }, -// { -// "displayName": "Store: decompressed lines", -// "value": 55 -// }, -// { -// "displayName": "Store: compressed bytes", -// "unit": "decbytes", -// "value": 31432 -// }, -// { -// "displayName": "Store: total duplicates", -// "value": 6 -// }, -// { -// "displayName": "Ingester: total reached", -// "value": 7 -// }, -// { -// "displayName": "Ingester: total chunks matched", -// "value": 8 -// }, -// { -// "displayName": "Ingester: total batches", -// "value": 9 -// }, -// { -// "displayName": "Ingester: total lines sent", -// "value": 10 -// }, -// { -// "displayName": "Ingester: head chunk bytes", -// "unit": "decbytes", -// "value": 11 -// }, -// { -// "displayName": "Ingester: head chunk lines", -// "value": 12 -// }, -// { -// "displayName": "Ingester: decompressed bytes", -// "unit": "decbytes", -// "value": 13 -// }, -// { -// "displayName": "Ingester: decompressed lines", -// "value": 14 -// }, -// { -// "displayName": "Ingester: compressed bytes", -// "unit": "decbytes", -// "value": 15 -// }, -// { -// "displayName": "Ingester: total duplicates", -// "value": 16 -// } -// ], -// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" -// } -// Name: {level="error", location="moon"} -// Dimensions: 2 Fields by 2 Rows -// +-----------------------------------+------------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=error, location=moon | -// | Type: []time.Time | Type: []float64 | -// +-----------------------------------+------------------------------------+ -// | 2021-12-10 08:36:06.989 +0000 UTC | 0.4 | -// | 2021-12-10 08:36:46.989 +0000 UTC | 0.2 | -// +-----------------------------------+------------------------------------+ -// -// -// -// Frame[1] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" -// } -// Name: {level="info", location="mars"} -// Dimensions: 2 Fields by 2 Rows -// +-----------------------------------+-----------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=info, location=mars | -// | Type: []time.Time | Type: []float64 | -// +-----------------------------------+-----------------------------------+ -// | 2021-12-10 08:36:26.989 +0000 UTC | 0.6 | -// | 2021-12-10 08:36:36.989 +0000 UTC | 0.8 | -// +-----------------------------------+-----------------------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "name": "{level=\"error\", location=\"moon\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "stats": [ - { - "displayName": "Summary: bytes processed per second", - "unit": "Bps", - "value": 3507022 - }, - { - "displayName": "Summary: lines processed per second", - "value": 24818 - }, - { - "displayName": "Summary: total bytes processed", - "unit": "decbytes", - "value": 7772 - }, - { - "displayName": "Summary: total lines processed", - "value": 55 - }, - { - "displayName": "Summary: exec time", - "unit": "s", - "value": 0.002216125 - }, - { - "displayName": "Store: total chunks ref", - "value": 2 - }, - { - "displayName": "Store: total chunks downloaded", - "value": 3 - }, - { - "displayName": "Store: chunks download time", - "unit": "s", - "value": 0.000390958 - }, - { - "displayName": "Store: head chunk bytes", - "unit": "decbytes", - "value": 4 - }, - { - "displayName": "Store: head chunk lines", - "value": 5 - }, - { - "displayName": "Store: decompressed bytes", - "unit": "decbytes", - "value": 7772 - }, - { - "displayName": "Store: decompressed lines", - "value": 55 - }, - { - "displayName": "Store: compressed bytes", - "unit": "decbytes", - "value": 31432 - }, - { - "displayName": "Store: total duplicates", - "value": 6 - }, - { - "displayName": "Ingester: total reached", - "value": 7 - }, - { - "displayName": "Ingester: total chunks matched", - "value": 8 - }, - { - "displayName": "Ingester: total batches", - "value": 9 - }, - { - "displayName": "Ingester: total lines sent", - "value": 10 - }, - { - "displayName": "Ingester: head chunk bytes", - "unit": "decbytes", - "value": 11 - }, - { - "displayName": "Ingester: head chunk lines", - "value": 12 - }, - { - "displayName": "Ingester: decompressed bytes", - "unit": "decbytes", - "value": 13 - }, - { - "displayName": "Ingester: decompressed lines", - "value": 14 - }, - { - "displayName": "Ingester: compressed bytes", - "unit": "decbytes", - "value": 15 - }, - { - "displayName": "Ingester: total duplicates", - "value": 16 - } - ], - "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - }, - "config": { - "interval": 42000 - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "error", - "location": "moon" - }, - "config": { - "displayNameFromDS": "{level=\"error\", location=\"moon\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1639125366989, - 1639125406989 - ], - [ - 0.4, - 0.2 - ] - ] - } - }, - { - "schema": { - "name": "{level=\"info\", location=\"mars\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - }, - "config": { - "interval": 42000 - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "info", - "location": "mars" - }, - "config": { - "displayNameFromDS": "{level=\"info\", location=\"mars\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1639125386989, - 1639125396989 - ], - [ - 0.6, - 0.8 - ] - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata/streams_structured_metadata.golden.jsonc b/pkg/tsdb/loki/testdata/streams_structured_metadata.golden.jsonc deleted file mode 100644 index c0c39f9cf26..00000000000 --- a/pkg/tsdb/loki/testdata/streams_structured_metadata.golden.jsonc +++ /dev/null @@ -1,416 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "typeVersion": [ -// 0, -// 0 -// ], -// "custom": { -// "frameType": "LabeledTimeValues" -// }, -// "stats": [ -// { -// "displayName": "Summary: bytes processed per second", -// "unit": "Bps", -// "value": 3507022 -// }, -// { -// "displayName": "Summary: lines processed per second", -// "value": 24818 -// }, -// { -// "displayName": "Summary: total bytes processed", -// "unit": "decbytes", -// "value": 7772 -// }, -// { -// "displayName": "Summary: total lines processed", -// "value": 55 -// }, -// { -// "displayName": "Summary: exec time", -// "unit": "s", -// "value": 0.002216125 -// }, -// { -// "displayName": "Store: total chunks ref", -// "value": 2 -// }, -// { -// "displayName": "Store: total chunks downloaded", -// "value": 3 -// }, -// { -// "displayName": "Store: chunks download time", -// "unit": "s", -// "value": 0.000390958 -// }, -// { -// "displayName": "Store: head chunk bytes", -// "unit": "decbytes", -// "value": 4 -// }, -// { -// "displayName": "Store: head chunk lines", -// "value": 5 -// }, -// { -// "displayName": "Store: decompressed bytes", -// "unit": "decbytes", -// "value": 7772 -// }, -// { -// "displayName": "Store: decompressed lines", -// "value": 55 -// }, -// { -// "displayName": "Store: compressed bytes", -// "unit": "decbytes", -// "value": 31432 -// }, -// { -// "displayName": "Store: total duplicates", -// "value": 6 -// }, -// { -// "displayName": "Ingester: total reached", -// "value": 7 -// }, -// { -// "displayName": "Ingester: total chunks matched", -// "value": 8 -// }, -// { -// "displayName": "Ingester: total batches", -// "value": 9 -// }, -// { -// "displayName": "Ingester: total lines sent", -// "value": 10 -// }, -// { -// "displayName": "Ingester: head chunk bytes", -// "unit": "decbytes", -// "value": 11 -// }, -// { -// "displayName": "Ingester: head chunk lines", -// "value": 12 -// }, -// { -// "displayName": "Ingester: decompressed bytes", -// "unit": "decbytes", -// "value": 13 -// }, -// { -// "displayName": "Ingester: decompressed lines", -// "value": 14 -// }, -// { -// "displayName": "Ingester: compressed bytes", -// "unit": "decbytes", -// "value": 15 -// }, -// { -// "displayName": "Ingester: total duplicates", -// "value": 16 -// } -// ], -// "executedQueryString": "Expr: query1" -// } -// Name: -// Dimensions: 6 Fields by 6 Rows -// +---------------------------------------+-----------------------------------------+------------------+---------------------+-----------------------------+--------------------------------+ -// | Name: labels | Name: Time | Name: Line | Name: tsNs | Name: labelTypes | Name: id | -// | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | -// | Type: []json.RawMessage | Type: []time.Time | Type: []string | Type: []string | Type: []json.RawMessage | Type: []string | -// +---------------------------------------+-----------------------------------------+------------------+---------------------+-----------------------------+--------------------------------+ -// | {"code":"one\",","location":"moonπŸŒ™"} | 2022-02-16 16:50:44.81075712 +0000 UTC | log line error 1 | 1645030244810757120 | {"code":"I","location":"I"} | 1645030244810757120_1d8c2178 | -// | {"code":"\",two","location":"moonπŸŒ™"} | 2022-02-16 16:50:47.02773504 +0000 UTC | log line info 1 | 1645030247027735040 | {"code":"I","location":"I"} | 1645030247027735040_87a7aed2 | -// | {"code":"\",two","location":"moonπŸŒ™"} | 2022-02-16 16:50:46.277587968 +0000 UTC | log line info 2 | 1645030246277587968 | {"code":"I","location":"I"} | 1645030246277587968_318d05c9 | -// | {"code":"\",two","location":"moonπŸŒ™"} | 2022-02-16 16:50:46.277587968 +0000 UTC | log line info 2 | 1645030246277587968 | {"code":"I","location":"I"} | 1645030246277587968_318d05c9_1 | -// | {"code":"\",two","location":"moonπŸŒ™"} | 2022-02-16 16:50:45.539423744 +0000 UTC | log line info 3 | 1645030245539423744 | {"code":"I","location":"I"} | 1645030245539423744_fd17f65c | -// | {"code":"\",two","location":"moonπŸŒ™"} | 2022-02-16 16:50:44.091700992 +0000 UTC | log line info 4 | 1645030244091700992 | {"code":"I","location":"I"} | 1645030244091700992_62ae07f3 | -// +---------------------------------------+-----------------------------------------+------------------+---------------------+-----------------------------+--------------------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "meta": { - "typeVersion": [ - 0, - 0 - ], - "custom": { - "frameType": "LabeledTimeValues" - }, - "stats": [ - { - "displayName": "Summary: bytes processed per second", - "unit": "Bps", - "value": 3507022 - }, - { - "displayName": "Summary: lines processed per second", - "value": 24818 - }, - { - "displayName": "Summary: total bytes processed", - "unit": "decbytes", - "value": 7772 - }, - { - "displayName": "Summary: total lines processed", - "value": 55 - }, - { - "displayName": "Summary: exec time", - "unit": "s", - "value": 0.002216125 - }, - { - "displayName": "Store: total chunks ref", - "value": 2 - }, - { - "displayName": "Store: total chunks downloaded", - "value": 3 - }, - { - "displayName": "Store: chunks download time", - "unit": "s", - "value": 0.000390958 - }, - { - "displayName": "Store: head chunk bytes", - "unit": "decbytes", - "value": 4 - }, - { - "displayName": "Store: head chunk lines", - "value": 5 - }, - { - "displayName": "Store: decompressed bytes", - "unit": "decbytes", - "value": 7772 - }, - { - "displayName": "Store: decompressed lines", - "value": 55 - }, - { - "displayName": "Store: compressed bytes", - "unit": "decbytes", - "value": 31432 - }, - { - "displayName": "Store: total duplicates", - "value": 6 - }, - { - "displayName": "Ingester: total reached", - "value": 7 - }, - { - "displayName": "Ingester: total chunks matched", - "value": 8 - }, - { - "displayName": "Ingester: total batches", - "value": 9 - }, - { - "displayName": "Ingester: total lines sent", - "value": 10 - }, - { - "displayName": "Ingester: head chunk bytes", - "unit": "decbytes", - "value": 11 - }, - { - "displayName": "Ingester: head chunk lines", - "value": 12 - }, - { - "displayName": "Ingester: decompressed bytes", - "unit": "decbytes", - "value": 13 - }, - { - "displayName": "Ingester: decompressed lines", - "value": 14 - }, - { - "displayName": "Ingester: compressed bytes", - "unit": "decbytes", - "value": 15 - }, - { - "displayName": "Ingester: total duplicates", - "value": 16 - } - ], - "executedQueryString": "Expr: query1" - }, - "fields": [ - { - "name": "labels", - "type": "other", - "typeInfo": { - "frame": "json.RawMessage" - } - }, - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - } - }, - { - "name": "Line", - "type": "string", - "typeInfo": { - "frame": "string" - } - }, - { - "name": "tsNs", - "type": "string", - "typeInfo": { - "frame": "string" - } - }, - { - "name": "labelTypes", - "type": "other", - "typeInfo": { - "frame": "json.RawMessage" - }, - "config": { - "custom": { - "hidden": true - } - } - }, - { - "name": "id", - "type": "string", - "typeInfo": { - "frame": "string" - } - } - ] - }, - "data": { - "values": [ - [ - { - "code": "one\",", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "location": "moonπŸŒ™" - } - ], - [ - 1645030244810, - 1645030247027, - 1645030246277, - 1645030246277, - 1645030245539, - 1645030244091 - ], - [ - "log line error 1", - "log line info 1", - "log line info 2", - "log line info 2", - "log line info 3", - "log line info 4" - ], - [ - "1645030244810757120", - "1645030247027735040", - "1645030246277587968", - "1645030246277587968", - "1645030245539423744", - "1645030244091700992" - ], - [ - { - "code": "I", - "location": "I" - }, - { - "code": "I", - "location": "I" - }, - { - "code": "I", - "location": "I" - }, - { - "code": "I", - "location": "I" - }, - { - "code": "I", - "location": "I" - }, - { - "code": "I", - "location": "I" - } - ], - [ - "1645030244810757120_1d8c2178", - "1645030247027735040_87a7aed2", - "1645030246277587968_318d05c9", - "1645030246277587968_318d05c9_1", - "1645030245539423744_fd17f65c", - "1645030244091700992_62ae07f3" - ] - ], - "nanos": [ - null, - [ - 757120, - 735040, - 587968, - 587968, - 423744, - 700992 - ], - null, - null, - null, - null - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata/streams_structured_metadata.json b/pkg/tsdb/loki/testdata/streams_structured_metadata.json deleted file mode 100644 index 760e15ca712..00000000000 --- a/pkg/tsdb/loki/testdata/streams_structured_metadata.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "status": "success", - "data": { - "encodingFlags": [ - "categorize-labels" - ], - "resultType": "streams", - "result": [ - { - "stream": { - "code": "one\",", - "location": "moonπŸŒ™" - }, - "values": [ - [ - "1645030244810757120", - "log line error 1", - {} - ] - ] - }, - { - "stream": { - "code": "\",two", - "location": "moonπŸŒ™" - }, - "values": [ - [ - "1645030247027735040", - "log line info 1", - {} - ], - [ - "1645030246277587968", - "log line info 2", - {} - ], - [ - "1645030246277587968", - "log line info 2", - {} - ], - [ - "1645030245539423744", - "log line info 3", - {} - ], - [ - "1645030244091700992", - "log line info 4", - {} - ] - ] - } - ], - "stats": { - "summary": { - "bytesProcessedPerSecond": 3507022, - "linesProcessedPerSecond": 24818, - "totalBytesProcessed": 7772, - "totalLinesProcessed": 55, - "execTime": 0.002216125 - }, - "store": { - "totalChunksRef": 2, - "totalChunksDownloaded": 3, - "chunksDownloadTime": 0.000390958, - "headChunkBytes": 4, - "headChunkLines": 5, - "decompressedBytes": 7772, - "decompressedLines": 55, - "compressedBytes": 31432, - "totalDuplicates": 6 - }, - "ingester": { - "totalReached": 7, - "totalChunksMatched": 8, - "totalBatches": 9, - "totalLinesSent": 10, - "headChunkBytes": 11, - "headChunkLines": 12, - "decompressedBytes": 13, - "decompressedLines": 14, - "compressedBytes": 15, - "totalDuplicates": 16 - } - } - } -} diff --git a/pkg/tsdb/loki/testdata/vector_simple.golden.jsonc b/pkg/tsdb/loki/testdata/vector_simple.golden.jsonc deleted file mode 100644 index 56b61d137bd..00000000000 --- a/pkg/tsdb/loki/testdata/vector_simple.golden.jsonc +++ /dev/null @@ -1,139 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: query1" -// } -// Name: {level="error", location="moon"} -// Dimensions: 2 Fields by 1 Rows -// +-------------------------------+------------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=error, location=moon | -// | Type: []time.Time | Type: []float64 | -// +-------------------------------+------------------------------------+ -// | 2022-02-16 16:41:39 +0000 UTC | 23 | -// +-------------------------------+------------------------------------+ -// -// -// -// Frame[1] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: query1" -// } -// Name: {level="info", location="moon"} -// Dimensions: 2 Fields by 1 Rows -// +-------------------------------+-----------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=info, location=moon | -// | Type: []time.Time | Type: []float64 | -// +-------------------------------+-----------------------------------+ -// | 2022-02-16 16:41:39 +0000 UTC | 47 | -// +-------------------------------+-----------------------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "name": "{level=\"error\", location=\"moon\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: query1" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "error", - "location": "moon" - }, - "config": { - "displayNameFromDS": "{level=\"error\", location=\"moon\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1645029699000 - ], - [ - 23 - ] - ] - } - }, - { - "schema": { - "name": "{level=\"info\", location=\"moon\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: query1" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "info", - "location": "moon" - }, - "config": { - "displayNameFromDS": "{level=\"info\", location=\"moon\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1645029699000 - ], - [ - 47 - ] - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata/vector_special_values.golden.jsonc b/pkg/tsdb/loki/testdata/vector_special_values.golden.jsonc deleted file mode 100644 index 6db425707cb..00000000000 --- a/pkg/tsdb/loki/testdata/vector_special_values.golden.jsonc +++ /dev/null @@ -1,229 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: query1" -// } -// Name: {level="error", location="moon"} -// Dimensions: 2 Fields by 1 Rows -// +-------------------------------+------------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=error, location=moon | -// | Type: []time.Time | Type: []float64 | -// +-------------------------------+------------------------------------+ -// | 2022-02-16 16:41:39 +0000 UTC | +Inf | -// +-------------------------------+------------------------------------+ -// -// -// -// Frame[1] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: query1" -// } -// Name: {level="info", location="moon"} -// Dimensions: 2 Fields by 1 Rows -// +-------------------------------+-----------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=info, location=moon | -// | Type: []time.Time | Type: []float64 | -// +-------------------------------+-----------------------------------+ -// | 2022-02-16 16:41:39 +0000 UTC | -Inf | -// +-------------------------------+-----------------------------------+ -// -// -// -// Frame[2] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: query1" -// } -// Name: {level="debug", location="moon"} -// Dimensions: 2 Fields by 1 Rows -// +-------------------------------+------------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=debug, location=moon | -// | Type: []time.Time | Type: []float64 | -// +-------------------------------+------------------------------------+ -// | 2022-02-16 16:41:39 +0000 UTC | NaN | -// +-------------------------------+------------------------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "name": "{level=\"error\", location=\"moon\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: query1" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "error", - "location": "moon" - }, - "config": { - "displayNameFromDS": "{level=\"error\", location=\"moon\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1645029699000 - ], - [ - null - ] - ], - "entities": [ - null, - { - "Inf": [ - 0 - ] - } - ] - } - }, - { - "schema": { - "name": "{level=\"info\", location=\"moon\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: query1" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "info", - "location": "moon" - }, - "config": { - "displayNameFromDS": "{level=\"info\", location=\"moon\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1645029699000 - ], - [ - null - ] - ], - "entities": [ - null, - { - "NegInf": [ - 0 - ] - } - ] - } - }, - { - "schema": { - "name": "{level=\"debug\", location=\"moon\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: query1" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "debug", - "location": "moon" - }, - "config": { - "displayNameFromDS": "{level=\"debug\", location=\"moon\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1645029699000 - ], - [ - null - ] - ], - "entities": [ - null, - { - "NaN": [ - 0 - ] - } - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/empty.golden.jsonc b/pkg/tsdb/loki/testdata_logs_dataplane/empty.golden.jsonc deleted file mode 100644 index e63a03ad551..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/empty.golden.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200 -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/empty.json b/pkg/tsdb/loki/testdata_logs_dataplane/empty.json deleted file mode 100644 index 9e26dfeeb6e..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/empty.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_gap.golden.jsonc b/pkg/tsdb/loki/testdata_logs_dataplane/matrix_gap.golden.jsonc deleted file mode 100644 index eba2fd2f4bb..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_gap.golden.jsonc +++ /dev/null @@ -1,88 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" -// } -// Name: {} -// Dimensions: 2 Fields by 6 Rows -// +-----------------------------------+-----------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: | -// | Type: []time.Time | Type: []float64 | -// +-----------------------------------+-----------------+ -// | 2022-01-24 08:54:13.815 +0000 UTC | 50 | -// | 2022-01-24 08:59:13.815 +0000 UTC | 57 | -// | 2022-01-24 09:04:13.815 +0000 UTC | 55 | -// | 2022-01-24 09:34:13.815 +0000 UTC | 54 | -// | 2022-01-24 09:39:13.815 +0000 UTC | 55 | -// | 2022-01-24 09:44:13.815 +0000 UTC | 56 | -// +-----------------------------------+-----------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "name": "{}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - }, - "config": { - "interval": 42000 - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": {}, - "config": { - "displayNameFromDS": "{}" - } - } - ] - }, - "data": { - "values": [ - [ - 1643014453815, - 1643014753815, - 1643015053815, - 1643016853815, - 1643017153815, - 1643017453815 - ], - [ - 50, - 57, - 55, - 54, - 55, - 56 - ] - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_gap.json b/pkg/tsdb/loki/testdata_logs_dataplane/matrix_gap.json deleted file mode 100644 index dbb9224b65d..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_gap.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "matrix", - "result": [ - { - "metric": {}, - "values": [ - [1643014453.815, "50"], - [1643014753.815, "57"], - [1643015053.815, "55"], - [1643016853.815, "54"], - [1643017153.815, "55"], - [1643017453.815, "56"] - ] - } - ] - } -} diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_inf.golden.jsonc b/pkg/tsdb/loki/testdata_logs_dataplane/matrix_inf.golden.jsonc deleted file mode 100644 index 8ffd65e7835..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_inf.golden.jsonc +++ /dev/null @@ -1,115 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" -// } -// Name: {level="info", location="moon", protocol="http"} -// Dimensions: 2 Fields by 8 Rows -// +---------------------------------+--------------------------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=info, location=moon, protocol=http | -// | Type: []time.Time | Type: []float64 | -// +---------------------------------+--------------------------------------------------+ -// | 2022-01-24 10:53:31.1 +0000 UTC | +Inf | -// | 2022-01-24 10:58:31.2 +0000 UTC | -Inf | -// | 2022-01-24 10:53:31.3 +0000 UTC | +Inf | -// | 2022-01-24 10:58:31.4 +0000 UTC | -Inf | -// | 2022-01-24 10:53:31.5 +0000 UTC | +Inf | -// | 2022-01-24 10:58:31.6 +0000 UTC | -Inf | -// | 2022-01-24 10:53:31.7 +0000 UTC | +Inf | -// | 2022-01-24 10:58:31.8 +0000 UTC | -Inf | -// +---------------------------------+--------------------------------------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "name": "{level=\"info\", location=\"moon\", protocol=\"http\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - }, - "config": { - "interval": 42000 - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "info", - "location": "moon", - "protocol": "http" - }, - "config": { - "displayNameFromDS": "{level=\"info\", location=\"moon\", protocol=\"http\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1643021611100, - 1643021911200, - 1643021611300, - 1643021911400, - 1643021611500, - 1643021911600, - 1643021611700, - 1643021911800 - ], - [ - null, - null, - null, - null, - null, - null, - null, - null - ] - ], - "entities": [ - null, - { - "Inf": [ - 0, - 2, - 4, - 6 - ], - "NegInf": [ - 1, - 3, - 5, - 7 - ] - } - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_inf.json b/pkg/tsdb/loki/testdata_logs_dataplane/matrix_inf.json deleted file mode 100644 index a7f95130dc3..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_inf.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "matrix", - "result": [ - { - "metric": { - "level": "info", - "location": "moon", - "protocol": "http" - }, - "values": [ - [1643021611.1, "+Inf"], - [1643021911.2, "-Inf"], - [1643021611.3, "+Infinity"], - [1643021911.4, "-Infinity"], - [1643021611.5, "+inf"], - [1643021911.6, "-infinity"], - [1643021611.7, "+iNf"], - [1643021911.8, "-INfInItY"] - ] - } - ] - } -} diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_name.golden.jsonc b/pkg/tsdb/loki/testdata_logs_dataplane/matrix_name.golden.jsonc deleted file mode 100644 index 45d2e5fd6d0..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_name.golden.jsonc +++ /dev/null @@ -1,76 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" -// } -// Name: {__name__="moon", level="error"} -// Dimensions: 2 Fields by 1 Rows -// +-----------------------------------+------------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: __name__=moon, level=error | -// | Type: []time.Time | Type: []float64 | -// +-----------------------------------+------------------------------------+ -// | 2021-12-10 08:36:06.989 +0000 UTC | 0.4 | -// +-----------------------------------+------------------------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "name": "{__name__=\"moon\", level=\"error\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - }, - "config": { - "interval": 42000 - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "__name__": "moon", - "level": "error" - }, - "config": { - "displayNameFromDS": "{__name__=\"moon\", level=\"error\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1639125366989 - ], - [ - 0.4 - ] - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_name.json b/pkg/tsdb/loki/testdata_logs_dataplane/matrix_name.json deleted file mode 100644 index 7870730fd9e..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_name.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "matrix", - "result": [ - { - "metric": { - "level": "error", - "__name__": "moon" - }, - "values": [ - [1639125366.989, "0.4"] - ] - } - ] - } -} diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_nan.golden.jsonc b/pkg/tsdb/loki/testdata_logs_dataplane/matrix_nan.golden.jsonc deleted file mode 100644 index 7f9f5417919..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_nan.golden.jsonc +++ /dev/null @@ -1,89 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" -// } -// Name: {} -// Dimensions: 2 Fields by 3 Rows -// +-----------------------------------+-----------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: | -// | Type: []time.Time | Type: []float64 | -// +-----------------------------------+-----------------+ -// | 2022-01-24 08:54:10.417 +0000 UTC | NaN | -// | 2022-01-24 08:59:10.517 +0000 UTC | NaN | -// | 2022-01-24 08:54:10.617 +0000 UTC | NaN | -// +-----------------------------------+-----------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "name": "{}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - }, - "config": { - "interval": 42000 - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": {}, - "config": { - "displayNameFromDS": "{}" - } - } - ] - }, - "data": { - "values": [ - [ - 1643014450417, - 1643014750517, - 1643014450617 - ], - [ - null, - null, - null - ] - ], - "entities": [ - null, - { - "NaN": [ - 0, - 1, - 2 - ] - } - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_nan.json b/pkg/tsdb/loki/testdata_logs_dataplane/matrix_nan.json deleted file mode 100644 index e862c581992..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_nan.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "matrix", - "result": [ - { - "metric": {}, - "values": [ - [1643014450.417, "NaN"], - [1643014750.517, "nan"], - [1643014450.617, "nAn"] - ] - } - ] - } -} diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_simple.golden.jsonc b/pkg/tsdb/loki/testdata_logs_dataplane/matrix_simple.golden.jsonc deleted file mode 100644 index d8904b596c8..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_simple.golden.jsonc +++ /dev/null @@ -1,166 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" -// } -// Name: {level="error", location="moon"} -// Dimensions: 2 Fields by 4 Rows -// +-----------------------------------+------------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=error, location=moon | -// | Type: []time.Time | Type: []float64 | -// +-----------------------------------+------------------------------------+ -// | 2021-12-10 08:36:06.989 +0000 UTC | 0.4 | -// | 2021-12-10 08:36:46.989 +0000 UTC | 0.2 | -// | 2021-12-10 08:36:56.989 +0000 UTC | 0.2 | -// | 2021-12-10 08:37:46.989 +0000 UTC | 0.6 | -// +-----------------------------------+------------------------------------+ -// -// -// -// Frame[1] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" -// } -// Name: {level="info", location="mars"} -// Dimensions: 2 Fields by 5 Rows -// +-----------------------------------+-----------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=info, location=mars | -// | Type: []time.Time | Type: []float64 | -// +-----------------------------------+-----------------------------------+ -// | 2021-12-10 08:36:26.989 +0000 UTC | 0.6 | -// | 2021-12-10 08:36:36.989 +0000 UTC | 0.8 | -// | 2021-12-10 08:36:46.989 +0000 UTC | 0.8 | -// | 2021-12-10 08:36:56.989 +0000 UTC | 0.8 | -// | 2021-12-10 08:37:56.989 +0000 UTC | 2.6 | -// +-----------------------------------+-----------------------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "name": "{level=\"error\", location=\"moon\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - }, - "config": { - "interval": 42000 - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "error", - "location": "moon" - }, - "config": { - "displayNameFromDS": "{level=\"error\", location=\"moon\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1639125366989, - 1639125406989, - 1639125416989, - 1639125466989 - ], - [ - 0.4, - 0.2, - 0.2, - 0.6 - ] - ] - } - }, - { - "schema": { - "name": "{level=\"info\", location=\"mars\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - }, - "config": { - "interval": 42000 - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "info", - "location": "mars" - }, - "config": { - "displayNameFromDS": "{level=\"info\", location=\"mars\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1639125386989, - 1639125396989, - 1639125406989, - 1639125416989, - 1639125476989 - ], - [ - 0.6, - 0.8, - 0.8, - 0.8, - 2.6 - ] - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_simple.json b/pkg/tsdb/loki/testdata_logs_dataplane/matrix_simple.json deleted file mode 100644 index 8b3608d2f0b..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_simple.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "matrix", - "result": [ - { - "metric": { - "level": "error", - "location": "moon" - }, - "values": [ - [1639125366.989, "0.4"], - [1639125406.989, "0.2"], - [1639125416.989, "0.2"], - [1639125466.989, "0.6"] - ] - }, - { - "metric": { - "level": "info", - "location": "mars" - }, - "values": [ - [1639125386.989, "0.6"], - [1639125396.989, "0.8"], - [1639125406.989, "0.8"], - [1639125416.989, "0.8"], - [1639125476.989, "2.6"] - ] - } - ] - } -} diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_small_step.golden.jsonc b/pkg/tsdb/loki/testdata_logs_dataplane/matrix_small_step.golden.jsonc deleted file mode 100644 index 6079d871213..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_small_step.golden.jsonc +++ /dev/null @@ -1,84 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" -// } -// Name: {level="error"} -// Dimensions: 2 Fields by 4 Rows -// +-----------------------------------+---------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=error | -// | Type: []time.Time | Type: []float64 | -// +-----------------------------------+---------------------+ -// | 2021-12-10 08:36:06.511 +0000 UTC | 0.4 | -// | 2021-12-10 08:36:46.512 +0000 UTC | 0.2 | -// | 2021-12-10 08:36:56.513 +0000 UTC | 0.2 | -// | 2021-12-10 08:37:46.514 +0000 UTC | 0.6 | -// +-----------------------------------+---------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "name": "{level=\"error\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - }, - "config": { - "interval": 42000 - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "error" - }, - "config": { - "displayNameFromDS": "{level=\"error\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1639125366511, - 1639125406512, - 1639125416513, - 1639125466514 - ], - [ - 0.4, - 0.2, - 0.2, - 0.6 - ] - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_small_step.json b/pkg/tsdb/loki/testdata_logs_dataplane/matrix_small_step.json deleted file mode 100644 index 7d0d2067548..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_small_step.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "matrix", - "result": [ - { - "metric": { - "level": "error" - }, - "values": [ - [1639125366.511, "0.4"], - [1639125406.512, "0.2"], - [1639125416.513, "0.2"], - [1639125466.514, "0.6"] - ] - } - ] - } -} diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_with_stats.golden.jsonc b/pkg/tsdb/loki/testdata_logs_dataplane/matrix_with_stats.golden.jsonc deleted file mode 100644 index ea7a81c148b..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_with_stats.golden.jsonc +++ /dev/null @@ -1,367 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "stats": [ -// { -// "displayName": "Summary: bytes processed per second", -// "unit": "Bps", -// "value": 3507022 -// }, -// { -// "displayName": "Summary: lines processed per second", -// "value": 24818 -// }, -// { -// "displayName": "Summary: total bytes processed", -// "unit": "decbytes", -// "value": 7772 -// }, -// { -// "displayName": "Summary: total lines processed", -// "value": 55 -// }, -// { -// "displayName": "Summary: exec time", -// "unit": "s", -// "value": 0.002216125 -// }, -// { -// "displayName": "Store: total chunks ref", -// "value": 2 -// }, -// { -// "displayName": "Store: total chunks downloaded", -// "value": 3 -// }, -// { -// "displayName": "Store: chunks download time", -// "unit": "s", -// "value": 0.000390958 -// }, -// { -// "displayName": "Store: head chunk bytes", -// "unit": "decbytes", -// "value": 4 -// }, -// { -// "displayName": "Store: head chunk lines", -// "value": 5 -// }, -// { -// "displayName": "Store: decompressed bytes", -// "unit": "decbytes", -// "value": 7772 -// }, -// { -// "displayName": "Store: decompressed lines", -// "value": 55 -// }, -// { -// "displayName": "Store: compressed bytes", -// "unit": "decbytes", -// "value": 31432 -// }, -// { -// "displayName": "Store: total duplicates", -// "value": 6 -// }, -// { -// "displayName": "Ingester: total reached", -// "value": 7 -// }, -// { -// "displayName": "Ingester: total chunks matched", -// "value": 8 -// }, -// { -// "displayName": "Ingester: total batches", -// "value": 9 -// }, -// { -// "displayName": "Ingester: total lines sent", -// "value": 10 -// }, -// { -// "displayName": "Ingester: head chunk bytes", -// "unit": "decbytes", -// "value": 11 -// }, -// { -// "displayName": "Ingester: head chunk lines", -// "value": 12 -// }, -// { -// "displayName": "Ingester: decompressed bytes", -// "unit": "decbytes", -// "value": 13 -// }, -// { -// "displayName": "Ingester: decompressed lines", -// "value": 14 -// }, -// { -// "displayName": "Ingester: compressed bytes", -// "unit": "decbytes", -// "value": 15 -// }, -// { -// "displayName": "Ingester: total duplicates", -// "value": 16 -// } -// ], -// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" -// } -// Name: {level="error", location="moon"} -// Dimensions: 2 Fields by 2 Rows -// +-----------------------------------+------------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=error, location=moon | -// | Type: []time.Time | Type: []float64 | -// +-----------------------------------+------------------------------------+ -// | 2021-12-10 08:36:06.989 +0000 UTC | 0.4 | -// | 2021-12-10 08:36:46.989 +0000 UTC | 0.2 | -// +-----------------------------------+------------------------------------+ -// -// -// -// Frame[1] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" -// } -// Name: {level="info", location="mars"} -// Dimensions: 2 Fields by 2 Rows -// +-----------------------------------+-----------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=info, location=mars | -// | Type: []time.Time | Type: []float64 | -// +-----------------------------------+-----------------------------------+ -// | 2021-12-10 08:36:26.989 +0000 UTC | 0.6 | -// | 2021-12-10 08:36:36.989 +0000 UTC | 0.8 | -// +-----------------------------------+-----------------------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "name": "{level=\"error\", location=\"moon\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "stats": [ - { - "displayName": "Summary: bytes processed per second", - "unit": "Bps", - "value": 3507022 - }, - { - "displayName": "Summary: lines processed per second", - "value": 24818 - }, - { - "displayName": "Summary: total bytes processed", - "unit": "decbytes", - "value": 7772 - }, - { - "displayName": "Summary: total lines processed", - "value": 55 - }, - { - "displayName": "Summary: exec time", - "unit": "s", - "value": 0.002216125 - }, - { - "displayName": "Store: total chunks ref", - "value": 2 - }, - { - "displayName": "Store: total chunks downloaded", - "value": 3 - }, - { - "displayName": "Store: chunks download time", - "unit": "s", - "value": 0.000390958 - }, - { - "displayName": "Store: head chunk bytes", - "unit": "decbytes", - "value": 4 - }, - { - "displayName": "Store: head chunk lines", - "value": 5 - }, - { - "displayName": "Store: decompressed bytes", - "unit": "decbytes", - "value": 7772 - }, - { - "displayName": "Store: decompressed lines", - "value": 55 - }, - { - "displayName": "Store: compressed bytes", - "unit": "decbytes", - "value": 31432 - }, - { - "displayName": "Store: total duplicates", - "value": 6 - }, - { - "displayName": "Ingester: total reached", - "value": 7 - }, - { - "displayName": "Ingester: total chunks matched", - "value": 8 - }, - { - "displayName": "Ingester: total batches", - "value": 9 - }, - { - "displayName": "Ingester: total lines sent", - "value": 10 - }, - { - "displayName": "Ingester: head chunk bytes", - "unit": "decbytes", - "value": 11 - }, - { - "displayName": "Ingester: head chunk lines", - "value": 12 - }, - { - "displayName": "Ingester: decompressed bytes", - "unit": "decbytes", - "value": 13 - }, - { - "displayName": "Ingester: decompressed lines", - "value": 14 - }, - { - "displayName": "Ingester: compressed bytes", - "unit": "decbytes", - "value": 15 - }, - { - "displayName": "Ingester: total duplicates", - "value": 16 - } - ], - "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - }, - "config": { - "interval": 42000 - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "error", - "location": "moon" - }, - "config": { - "displayNameFromDS": "{level=\"error\", location=\"moon\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1639125366989, - 1639125406989 - ], - [ - 0.4, - 0.2 - ] - ] - } - }, - { - "schema": { - "name": "{level=\"info\", location=\"mars\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: up(ALERTS)\nStep: 42s" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - }, - "config": { - "interval": 42000 - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "info", - "location": "mars" - }, - "config": { - "displayNameFromDS": "{level=\"info\", location=\"mars\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1639125386989, - 1639125396989 - ], - [ - 0.6, - 0.8 - ] - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_with_stats.json b/pkg/tsdb/loki/testdata_logs_dataplane/matrix_with_stats.json deleted file mode 100644 index 609ce7ff170..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/matrix_with_stats.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "matrix", - "result": [ - { - "metric": { - "level": "error", - "location": "moon" - }, - "values": [ - [1639125366.989, "0.4"], - [1639125406.989, "0.2"] - ] - }, - { - "metric": { - "level": "info", - "location": "mars" - }, - "values": [ - [1639125386.989, "0.6"], - [1639125396.989, "0.8"] - ] - } - ], - "stats": { - "summary": { - "bytesProcessedPerSecond": 3507022, - "linesProcessedPerSecond": 24818, - "totalBytesProcessed": 7772, - "totalLinesProcessed": 55, - "execTime": 0.002216125 - }, - "store": { - "totalChunksRef": 2, - "totalChunksDownloaded": 3, - "chunksDownloadTime": 0.000390958, - "headChunkBytes": 4, - "headChunkLines": 5, - "decompressedBytes": 7772, - "decompressedLines": 55, - "compressedBytes": 31432, - "totalDuplicates": 6 - }, - "ingester": { - "totalReached": 7, - "totalChunksMatched": 8, - "totalBatches": 9, - "totalLinesSent": 10, - "headChunkBytes": 11, - "headChunkLines": 12, - "decompressedBytes": 13, - "decompressedLines": 14, - "compressedBytes": 15, - "totalDuplicates": 16 - } - } - } -} diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/streams_parse_errors.golden.jsonc b/pkg/tsdb/loki/testdata_logs_dataplane/streams_parse_errors.golden.jsonc deleted file mode 100644 index 8631194fa4b..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/streams_parse_errors.golden.jsonc +++ /dev/null @@ -1,112 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "log-lines", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: query1" -// } -// Name: -// Dimensions: 4 Fields by 4 Rows -// +------------------------------------------------+-------------------------------+----------------+------------------------------+ -// | Name: labels | Name: timestamp | Name: body | Name: id | -// | Labels: | Labels: | Labels: | Labels: | -// | Type: []json.RawMessage | Type: []time.Time | Type: []string | Type: []string | -// +------------------------------------------------+-------------------------------+----------------+------------------------------+ -// | {"__error__":"LogfmtParserErr","place":"moon"} | 2022-06-17 06:49:51 +0000 UTC | "hello1 | 1655448591000000000_44cbf4ec | -// | {"__error__":"LogfmtParserErr","place":"moon"} | 2022-06-17 06:49:54 +0000 UTC | "hello4 | 1655448594000000000_408b3f5b | -// | {"place":"moon","text":"hello3"} | 2022-06-17 06:49:52 +0000 UTC | text=hello2 | 1655448592000000000_d1b2086 | -// | {"place":"moon","text":"hello4"} | 2022-06-17 06:49:53 +0000 UTC | text=hello3 | 1655448593000000000_45714922 | -// +------------------------------------------------+-------------------------------+----------------+------------------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "meta": { - "type": "log-lines", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: query1" - }, - "fields": [ - { - "name": "labels", - "type": "other", - "typeInfo": { - "frame": "json.RawMessage" - } - }, - { - "name": "timestamp", - "type": "time", - "typeInfo": { - "frame": "time.Time" - } - }, - { - "name": "body", - "type": "string", - "typeInfo": { - "frame": "string" - } - }, - { - "name": "id", - "type": "string", - "typeInfo": { - "frame": "string" - } - } - ] - }, - "data": { - "values": [ - [ - { - "__error__": "LogfmtParserErr", - "place": "moon" - }, - { - "__error__": "LogfmtParserErr", - "place": "moon" - }, - { - "place": "moon", - "text": "hello3" - }, - { - "place": "moon", - "text": "hello4" - } - ], - [ - 1655448591000, - 1655448594000, - 1655448592000, - 1655448593000 - ], - [ - "\"hello1", - "\"hello4", - "text=hello2", - "text=hello3" - ], - [ - "1655448591000000000_44cbf4ec", - "1655448594000000000_408b3f5b", - "1655448592000000000_d1b2086", - "1655448593000000000_45714922" - ] - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/streams_parse_errors.json b/pkg/tsdb/loki/testdata_logs_dataplane/streams_parse_errors.json deleted file mode 100644 index 3df7cd09781..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/streams_parse_errors.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "streams", - "result": [ - { - "stream": { "__error__": "LogfmtParserErr", "place": "moon" }, - "values": [ - ["1655448591000000000", "\"hello1"], - ["1655448594000000000", "\"hello4"] - ] - }, - { - "stream": { - "place": "moon", - "text": "hello3" - }, - "values": [["1655448592000000000", "text=hello2"]] - }, - { - "stream": { - "place": "moon", - "text": "hello4" - }, - "values": [["1655448593000000000", "text=hello3"]] - } - ] - } -} diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/streams_simple.golden.jsonc b/pkg/tsdb/loki/testdata_logs_dataplane/streams_simple.golden.jsonc deleted file mode 100644 index 7168eaf8514..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/streams_simple.golden.jsonc +++ /dev/null @@ -1,357 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "log-lines", -// "typeVersion": [ -// 0, -// 0 -// ], -// "stats": [ -// { -// "displayName": "Summary: bytes processed per second", -// "unit": "Bps", -// "value": 3507022 -// }, -// { -// "displayName": "Summary: lines processed per second", -// "value": 24818 -// }, -// { -// "displayName": "Summary: total bytes processed", -// "unit": "decbytes", -// "value": 7772 -// }, -// { -// "displayName": "Summary: total lines processed", -// "value": 55 -// }, -// { -// "displayName": "Summary: exec time", -// "unit": "s", -// "value": 0.002216125 -// }, -// { -// "displayName": "Store: total chunks ref", -// "value": 2 -// }, -// { -// "displayName": "Store: total chunks downloaded", -// "value": 3 -// }, -// { -// "displayName": "Store: chunks download time", -// "unit": "s", -// "value": 0.000390958 -// }, -// { -// "displayName": "Store: head chunk bytes", -// "unit": "decbytes", -// "value": 4 -// }, -// { -// "displayName": "Store: head chunk lines", -// "value": 5 -// }, -// { -// "displayName": "Store: decompressed bytes", -// "unit": "decbytes", -// "value": 7772 -// }, -// { -// "displayName": "Store: decompressed lines", -// "value": 55 -// }, -// { -// "displayName": "Store: compressed bytes", -// "unit": "decbytes", -// "value": 31432 -// }, -// { -// "displayName": "Store: total duplicates", -// "value": 6 -// }, -// { -// "displayName": "Ingester: total reached", -// "value": 7 -// }, -// { -// "displayName": "Ingester: total chunks matched", -// "value": 8 -// }, -// { -// "displayName": "Ingester: total batches", -// "value": 9 -// }, -// { -// "displayName": "Ingester: total lines sent", -// "value": 10 -// }, -// { -// "displayName": "Ingester: head chunk bytes", -// "unit": "decbytes", -// "value": 11 -// }, -// { -// "displayName": "Ingester: head chunk lines", -// "value": 12 -// }, -// { -// "displayName": "Ingester: decompressed bytes", -// "unit": "decbytes", -// "value": 13 -// }, -// { -// "displayName": "Ingester: decompressed lines", -// "value": 14 -// }, -// { -// "displayName": "Ingester: compressed bytes", -// "unit": "decbytes", -// "value": 15 -// }, -// { -// "displayName": "Ingester: total duplicates", -// "value": 16 -// } -// ], -// "executedQueryString": "Expr: query1" -// } -// Name: -// Dimensions: 4 Fields by 6 Rows -// +---------------------------------------+-----------------------------------------+------------------+--------------------------------+ -// | Name: labels | Name: timestamp | Name: body | Name: id | -// | Labels: | Labels: | Labels: | Labels: | -// | Type: []json.RawMessage | Type: []time.Time | Type: []string | Type: []string | -// +---------------------------------------+-----------------------------------------+------------------+--------------------------------+ -// | {"code":"one\",","location":"moonπŸŒ™"} | 2022-02-16 16:50:44.81075712 +0000 UTC | log line error 1 | 1645030244810757120_1d8c2178 | -// | {"code":"\",two","location":"moonπŸŒ™"} | 2022-02-16 16:50:47.02773504 +0000 UTC | log line info 1 | 1645030247027735040_87a7aed2 | -// | {"code":"\",two","location":"moonπŸŒ™"} | 2022-02-16 16:50:46.277587968 +0000 UTC | log line info 2 | 1645030246277587968_318d05c9 | -// | {"code":"\",two","location":"moonπŸŒ™"} | 2022-02-16 16:50:46.277587968 +0000 UTC | log line info 2 | 1645030246277587968_318d05c9_1 | -// | {"code":"\",two","location":"moonπŸŒ™"} | 2022-02-16 16:50:45.539423744 +0000 UTC | log line info 3 | 1645030245539423744_fd17f65c | -// | {"code":"\",two","location":"moonπŸŒ™"} | 2022-02-16 16:50:44.091700992 +0000 UTC | log line info 4 | 1645030244091700992_62ae07f3 | -// +---------------------------------------+-----------------------------------------+------------------+--------------------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "meta": { - "type": "log-lines", - "typeVersion": [ - 0, - 0 - ], - "stats": [ - { - "displayName": "Summary: bytes processed per second", - "unit": "Bps", - "value": 3507022 - }, - { - "displayName": "Summary: lines processed per second", - "value": 24818 - }, - { - "displayName": "Summary: total bytes processed", - "unit": "decbytes", - "value": 7772 - }, - { - "displayName": "Summary: total lines processed", - "value": 55 - }, - { - "displayName": "Summary: exec time", - "unit": "s", - "value": 0.002216125 - }, - { - "displayName": "Store: total chunks ref", - "value": 2 - }, - { - "displayName": "Store: total chunks downloaded", - "value": 3 - }, - { - "displayName": "Store: chunks download time", - "unit": "s", - "value": 0.000390958 - }, - { - "displayName": "Store: head chunk bytes", - "unit": "decbytes", - "value": 4 - }, - { - "displayName": "Store: head chunk lines", - "value": 5 - }, - { - "displayName": "Store: decompressed bytes", - "unit": "decbytes", - "value": 7772 - }, - { - "displayName": "Store: decompressed lines", - "value": 55 - }, - { - "displayName": "Store: compressed bytes", - "unit": "decbytes", - "value": 31432 - }, - { - "displayName": "Store: total duplicates", - "value": 6 - }, - { - "displayName": "Ingester: total reached", - "value": 7 - }, - { - "displayName": "Ingester: total chunks matched", - "value": 8 - }, - { - "displayName": "Ingester: total batches", - "value": 9 - }, - { - "displayName": "Ingester: total lines sent", - "value": 10 - }, - { - "displayName": "Ingester: head chunk bytes", - "unit": "decbytes", - "value": 11 - }, - { - "displayName": "Ingester: head chunk lines", - "value": 12 - }, - { - "displayName": "Ingester: decompressed bytes", - "unit": "decbytes", - "value": 13 - }, - { - "displayName": "Ingester: decompressed lines", - "value": 14 - }, - { - "displayName": "Ingester: compressed bytes", - "unit": "decbytes", - "value": 15 - }, - { - "displayName": "Ingester: total duplicates", - "value": 16 - } - ], - "executedQueryString": "Expr: query1" - }, - "fields": [ - { - "name": "labels", - "type": "other", - "typeInfo": { - "frame": "json.RawMessage" - } - }, - { - "name": "timestamp", - "type": "time", - "typeInfo": { - "frame": "time.Time" - } - }, - { - "name": "body", - "type": "string", - "typeInfo": { - "frame": "string" - } - }, - { - "name": "id", - "type": "string", - "typeInfo": { - "frame": "string" - } - } - ] - }, - "data": { - "values": [ - [ - { - "code": "one\",", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "location": "moonπŸŒ™" - } - ], - [ - 1645030244810, - 1645030247027, - 1645030246277, - 1645030246277, - 1645030245539, - 1645030244091 - ], - [ - "log line error 1", - "log line info 1", - "log line info 2", - "log line info 2", - "log line info 3", - "log line info 4" - ], - [ - "1645030244810757120_1d8c2178", - "1645030247027735040_87a7aed2", - "1645030246277587968_318d05c9", - "1645030246277587968_318d05c9_1", - "1645030245539423744_fd17f65c", - "1645030244091700992_62ae07f3" - ] - ], - "nanos": [ - null, - [ - 757120, - 735040, - 587968, - 587968, - 423744, - 700992 - ], - null, - null - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/streams_simple.json b/pkg/tsdb/loki/testdata_logs_dataplane/streams_simple.json deleted file mode 100644 index 71c0d4ab44b..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/streams_simple.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "streams", - "result": [ - { - "stream": { - "code": "one\",", - "location": "moonπŸŒ™" - }, - "values": [ - [ - "1645030244810757120", - "log line error 1" - ] - ] - }, - { - "stream": { - "code": "\",two", - "location": "moonπŸŒ™" - }, - "values": [ - [ - "1645030247027735040", - "log line info 1" - ], - [ - "1645030246277587968", - "log line info 2" - ], - [ - "1645030246277587968", - "log line info 2" - ], - [ - "1645030245539423744", - "log line info 3" - ], - [ - "1645030244091700992", - "log line info 4" - ] - ] - } - ], - "stats": { - "summary": { - "bytesProcessedPerSecond": 3507022, - "linesProcessedPerSecond": 24818, - "totalBytesProcessed": 7772, - "totalLinesProcessed": 55, - "execTime": 0.002216125 - }, - "store": { - "totalChunksRef": 2, - "totalChunksDownloaded": 3, - "chunksDownloadTime": 0.000390958, - "headChunkBytes": 4, - "headChunkLines": 5, - "decompressedBytes": 7772, - "decompressedLines": 55, - "compressedBytes": 31432, - "totalDuplicates": 6 - }, - "ingester": { - "totalReached": 7, - "totalChunksMatched": 8, - "totalBatches": 9, - "totalLinesSent": 10, - "headChunkBytes": 11, - "headChunkLines": 12, - "decompressedBytes": 13, - "decompressedLines": 14, - "compressedBytes": 15, - "totalDuplicates": 16 - } - } - } -} diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/streams_structured_metadata.golden.jsonc b/pkg/tsdb/loki/testdata_logs_dataplane/streams_structured_metadata.golden.jsonc deleted file mode 100644 index edbdb4e40d8..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/streams_structured_metadata.golden.jsonc +++ /dev/null @@ -1,396 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "log-lines", -// "typeVersion": [ -// 0, -// 0 -// ], -// "stats": [ -// { -// "displayName": "Summary: bytes processed per second", -// "unit": "Bps", -// "value": 3507022 -// }, -// { -// "displayName": "Summary: lines processed per second", -// "value": 24818 -// }, -// { -// "displayName": "Summary: total bytes processed", -// "unit": "decbytes", -// "value": 7772 -// }, -// { -// "displayName": "Summary: total lines processed", -// "value": 55 -// }, -// { -// "displayName": "Summary: exec time", -// "unit": "s", -// "value": 0.002216125 -// }, -// { -// "displayName": "Store: total chunks ref", -// "value": 2 -// }, -// { -// "displayName": "Store: total chunks downloaded", -// "value": 3 -// }, -// { -// "displayName": "Store: chunks download time", -// "unit": "s", -// "value": 0.000390958 -// }, -// { -// "displayName": "Store: head chunk bytes", -// "unit": "decbytes", -// "value": 4 -// }, -// { -// "displayName": "Store: head chunk lines", -// "value": 5 -// }, -// { -// "displayName": "Store: decompressed bytes", -// "unit": "decbytes", -// "value": 7772 -// }, -// { -// "displayName": "Store: decompressed lines", -// "value": 55 -// }, -// { -// "displayName": "Store: compressed bytes", -// "unit": "decbytes", -// "value": 31432 -// }, -// { -// "displayName": "Store: total duplicates", -// "value": 6 -// }, -// { -// "displayName": "Ingester: total reached", -// "value": 7 -// }, -// { -// "displayName": "Ingester: total chunks matched", -// "value": 8 -// }, -// { -// "displayName": "Ingester: total batches", -// "value": 9 -// }, -// { -// "displayName": "Ingester: total lines sent", -// "value": 10 -// }, -// { -// "displayName": "Ingester: head chunk bytes", -// "unit": "decbytes", -// "value": 11 -// }, -// { -// "displayName": "Ingester: head chunk lines", -// "value": 12 -// }, -// { -// "displayName": "Ingester: decompressed bytes", -// "unit": "decbytes", -// "value": 13 -// }, -// { -// "displayName": "Ingester: decompressed lines", -// "value": 14 -// }, -// { -// "displayName": "Ingester: compressed bytes", -// "unit": "decbytes", -// "value": 15 -// }, -// { -// "displayName": "Ingester: total duplicates", -// "value": 16 -// } -// ], -// "executedQueryString": "Expr: query1" -// } -// Name: -// Dimensions: 5 Fields by 6 Rows -// +---------------------------------------+-----------------------------------------+------------------+--------------------------------+-----------------------------+ -// | Name: labels | Name: timestamp | Name: body | Name: id | Name: labelTypes | -// | Labels: | Labels: | Labels: | Labels: | Labels: | -// | Type: []json.RawMessage | Type: []time.Time | Type: []string | Type: []string | Type: []json.RawMessage | -// +---------------------------------------+-----------------------------------------+------------------+--------------------------------+-----------------------------+ -// | {"code":"one\",","location":"moonπŸŒ™"} | 2022-02-16 16:50:44.81075712 +0000 UTC | log line error 1 | 1645030244810757120_1d8c2178 | {"code":"I","location":"I"} | -// | {"code":"\",two","location":"moonπŸŒ™"} | 2022-02-16 16:50:47.02773504 +0000 UTC | log line info 1 | 1645030247027735040_87a7aed2 | {"code":"I","location":"I"} | -// | {"code":"\",two","location":"moonπŸŒ™"} | 2022-02-16 16:50:46.277587968 +0000 UTC | log line info 2 | 1645030246277587968_318d05c9 | {"code":"I","location":"I"} | -// | {"code":"\",two","location":"moonπŸŒ™"} | 2022-02-16 16:50:46.277587968 +0000 UTC | log line info 2 | 1645030246277587968_318d05c9_1 | {"code":"I","location":"I"} | -// | {"code":"\",two","location":"moonπŸŒ™"} | 2022-02-16 16:50:45.539423744 +0000 UTC | log line info 3 | 1645030245539423744_fd17f65c | {"code":"I","location":"I"} | -// | {"code":"\",two","location":"moonπŸŒ™"} | 2022-02-16 16:50:44.091700992 +0000 UTC | log line info 4 | 1645030244091700992_62ae07f3 | {"code":"I","location":"I"} | -// +---------------------------------------+-----------------------------------------+------------------+--------------------------------+-----------------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "meta": { - "type": "log-lines", - "typeVersion": [ - 0, - 0 - ], - "stats": [ - { - "displayName": "Summary: bytes processed per second", - "unit": "Bps", - "value": 3507022 - }, - { - "displayName": "Summary: lines processed per second", - "value": 24818 - }, - { - "displayName": "Summary: total bytes processed", - "unit": "decbytes", - "value": 7772 - }, - { - "displayName": "Summary: total lines processed", - "value": 55 - }, - { - "displayName": "Summary: exec time", - "unit": "s", - "value": 0.002216125 - }, - { - "displayName": "Store: total chunks ref", - "value": 2 - }, - { - "displayName": "Store: total chunks downloaded", - "value": 3 - }, - { - "displayName": "Store: chunks download time", - "unit": "s", - "value": 0.000390958 - }, - { - "displayName": "Store: head chunk bytes", - "unit": "decbytes", - "value": 4 - }, - { - "displayName": "Store: head chunk lines", - "value": 5 - }, - { - "displayName": "Store: decompressed bytes", - "unit": "decbytes", - "value": 7772 - }, - { - "displayName": "Store: decompressed lines", - "value": 55 - }, - { - "displayName": "Store: compressed bytes", - "unit": "decbytes", - "value": 31432 - }, - { - "displayName": "Store: total duplicates", - "value": 6 - }, - { - "displayName": "Ingester: total reached", - "value": 7 - }, - { - "displayName": "Ingester: total chunks matched", - "value": 8 - }, - { - "displayName": "Ingester: total batches", - "value": 9 - }, - { - "displayName": "Ingester: total lines sent", - "value": 10 - }, - { - "displayName": "Ingester: head chunk bytes", - "unit": "decbytes", - "value": 11 - }, - { - "displayName": "Ingester: head chunk lines", - "value": 12 - }, - { - "displayName": "Ingester: decompressed bytes", - "unit": "decbytes", - "value": 13 - }, - { - "displayName": "Ingester: decompressed lines", - "value": 14 - }, - { - "displayName": "Ingester: compressed bytes", - "unit": "decbytes", - "value": 15 - }, - { - "displayName": "Ingester: total duplicates", - "value": 16 - } - ], - "executedQueryString": "Expr: query1" - }, - "fields": [ - { - "name": "labels", - "type": "other", - "typeInfo": { - "frame": "json.RawMessage" - } - }, - { - "name": "timestamp", - "type": "time", - "typeInfo": { - "frame": "time.Time" - } - }, - { - "name": "body", - "type": "string", - "typeInfo": { - "frame": "string" - } - }, - { - "name": "id", - "type": "string", - "typeInfo": { - "frame": "string" - } - }, - { - "name": "labelTypes", - "type": "other", - "typeInfo": { - "frame": "json.RawMessage" - }, - "config": { - "custom": { - "hidden": true - } - } - } - ] - }, - "data": { - "values": [ - [ - { - "code": "one\",", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "location": "moonπŸŒ™" - } - ], - [ - 1645030244810, - 1645030247027, - 1645030246277, - 1645030246277, - 1645030245539, - 1645030244091 - ], - [ - "log line error 1", - "log line info 1", - "log line info 2", - "log line info 2", - "log line info 3", - "log line info 4" - ], - [ - "1645030244810757120_1d8c2178", - "1645030247027735040_87a7aed2", - "1645030246277587968_318d05c9", - "1645030246277587968_318d05c9_1", - "1645030245539423744_fd17f65c", - "1645030244091700992_62ae07f3" - ], - [ - { - "code": "I", - "location": "I" - }, - { - "code": "I", - "location": "I" - }, - { - "code": "I", - "location": "I" - }, - { - "code": "I", - "location": "I" - }, - { - "code": "I", - "location": "I" - }, - { - "code": "I", - "location": "I" - } - ] - ], - "nanos": [ - null, - [ - 757120, - 735040, - 587968, - 587968, - 423744, - 700992 - ], - null, - null, - null - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/streams_structured_metadata.json b/pkg/tsdb/loki/testdata_logs_dataplane/streams_structured_metadata.json deleted file mode 100644 index 760e15ca712..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/streams_structured_metadata.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "status": "success", - "data": { - "encodingFlags": [ - "categorize-labels" - ], - "resultType": "streams", - "result": [ - { - "stream": { - "code": "one\",", - "location": "moonπŸŒ™" - }, - "values": [ - [ - "1645030244810757120", - "log line error 1", - {} - ] - ] - }, - { - "stream": { - "code": "\",two", - "location": "moonπŸŒ™" - }, - "values": [ - [ - "1645030247027735040", - "log line info 1", - {} - ], - [ - "1645030246277587968", - "log line info 2", - {} - ], - [ - "1645030246277587968", - "log line info 2", - {} - ], - [ - "1645030245539423744", - "log line info 3", - {} - ], - [ - "1645030244091700992", - "log line info 4", - {} - ] - ] - } - ], - "stats": { - "summary": { - "bytesProcessedPerSecond": 3507022, - "linesProcessedPerSecond": 24818, - "totalBytesProcessed": 7772, - "totalLinesProcessed": 55, - "execTime": 0.002216125 - }, - "store": { - "totalChunksRef": 2, - "totalChunksDownloaded": 3, - "chunksDownloadTime": 0.000390958, - "headChunkBytes": 4, - "headChunkLines": 5, - "decompressedBytes": 7772, - "decompressedLines": 55, - "compressedBytes": 31432, - "totalDuplicates": 6 - }, - "ingester": { - "totalReached": 7, - "totalChunksMatched": 8, - "totalBatches": 9, - "totalLinesSent": 10, - "headChunkBytes": 11, - "headChunkLines": 12, - "decompressedBytes": 13, - "decompressedLines": 14, - "compressedBytes": 15, - "totalDuplicates": 16 - } - } - } -} diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/streams_structured_metadata_2.golden.jsonc b/pkg/tsdb/loki/testdata_logs_dataplane/streams_structured_metadata_2.golden.jsonc deleted file mode 100644 index b2ea873dc1f..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/streams_structured_metadata_2.golden.jsonc +++ /dev/null @@ -1,363 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "log-lines", -// "typeVersion": [ -// 0, -// 0 -// ], -// "stats": [ -// { -// "displayName": "Summary: bytes processed per second", -// "unit": "Bps", -// "value": 3507022 -// }, -// { -// "displayName": "Summary: lines processed per second", -// "value": 24818 -// }, -// { -// "displayName": "Summary: total bytes processed", -// "unit": "decbytes", -// "value": 7772 -// }, -// { -// "displayName": "Summary: total lines processed", -// "value": 55 -// }, -// { -// "displayName": "Summary: exec time", -// "unit": "s", -// "value": 0.002216125 -// }, -// { -// "displayName": "Store: total chunks ref", -// "value": 2 -// }, -// { -// "displayName": "Store: total chunks downloaded", -// "value": 3 -// }, -// { -// "displayName": "Store: chunks download time", -// "unit": "s", -// "value": 0.000390958 -// }, -// { -// "displayName": "Store: head chunk bytes", -// "unit": "decbytes", -// "value": 4 -// }, -// { -// "displayName": "Store: head chunk lines", -// "value": 5 -// }, -// { -// "displayName": "Store: decompressed bytes", -// "unit": "decbytes", -// "value": 7772 -// }, -// { -// "displayName": "Store: decompressed lines", -// "value": 55 -// }, -// { -// "displayName": "Store: compressed bytes", -// "unit": "decbytes", -// "value": 31432 -// }, -// { -// "displayName": "Store: total duplicates", -// "value": 6 -// }, -// { -// "displayName": "Ingester: total reached", -// "value": 7 -// }, -// { -// "displayName": "Ingester: total chunks matched", -// "value": 8 -// }, -// { -// "displayName": "Ingester: total batches", -// "value": 9 -// }, -// { -// "displayName": "Ingester: total lines sent", -// "value": 10 -// }, -// { -// "displayName": "Ingester: head chunk bytes", -// "unit": "decbytes", -// "value": 11 -// }, -// { -// "displayName": "Ingester: head chunk lines", -// "value": 12 -// }, -// { -// "displayName": "Ingester: decompressed bytes", -// "unit": "decbytes", -// "value": 13 -// }, -// { -// "displayName": "Ingester: decompressed lines", -// "value": 14 -// }, -// { -// "displayName": "Ingester: compressed bytes", -// "unit": "decbytes", -// "value": 15 -// }, -// { -// "displayName": "Ingester: total duplicates", -// "value": 16 -// } -// ], -// "executedQueryString": "Expr: query1" -// } -// Name: -// Dimensions: 5 Fields by 3 Rows -// +------------------------------------------------------+--------------------------------------+------------------+------------------------------+------------------------------------------+ -// | Name: labels | Name: timestamp | Name: body | Name: id | Name: labelTypes | -// | Labels: | Labels: | Labels: | Labels: | Labels: | -// | Type: []json.RawMessage | Type: []time.Time | Type: []string | Type: []string | Type: []json.RawMessage | -// +------------------------------------------------------+--------------------------------------+------------------+------------------------------+------------------------------------------+ -// | {"code":"\",two","field2":"two","location":"moonπŸŒ™"} | 2024-01-10 14:01:36.244577 +0000 UTC | {"field2":"two"} | 1704895296244577000_194597ad | {"code":"I","field2":"P","location":"I"} | -// | {"code":"\",two","field1":"one","location":"moonπŸŒ™"} | 2024-01-10 14:01:07.503906 +0000 UTC | {"field1":"one"} | 1704895267503906000_90781cdf | {"code":"I","field1":"P","location":"I"} | -// | {"code":"\",two","field1":"one","location":"moonπŸŒ™"} | 2024-01-10 14:00:45.190222 +0000 UTC | {"field1":"one"} | 1704895245190222000_90781cdf | {"code":"I","field1":"P","location":"I"} | -// +------------------------------------------------------+--------------------------------------+------------------+------------------------------+------------------------------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "meta": { - "type": "log-lines", - "typeVersion": [ - 0, - 0 - ], - "stats": [ - { - "displayName": "Summary: bytes processed per second", - "unit": "Bps", - "value": 3507022 - }, - { - "displayName": "Summary: lines processed per second", - "value": 24818 - }, - { - "displayName": "Summary: total bytes processed", - "unit": "decbytes", - "value": 7772 - }, - { - "displayName": "Summary: total lines processed", - "value": 55 - }, - { - "displayName": "Summary: exec time", - "unit": "s", - "value": 0.002216125 - }, - { - "displayName": "Store: total chunks ref", - "value": 2 - }, - { - "displayName": "Store: total chunks downloaded", - "value": 3 - }, - { - "displayName": "Store: chunks download time", - "unit": "s", - "value": 0.000390958 - }, - { - "displayName": "Store: head chunk bytes", - "unit": "decbytes", - "value": 4 - }, - { - "displayName": "Store: head chunk lines", - "value": 5 - }, - { - "displayName": "Store: decompressed bytes", - "unit": "decbytes", - "value": 7772 - }, - { - "displayName": "Store: decompressed lines", - "value": 55 - }, - { - "displayName": "Store: compressed bytes", - "unit": "decbytes", - "value": 31432 - }, - { - "displayName": "Store: total duplicates", - "value": 6 - }, - { - "displayName": "Ingester: total reached", - "value": 7 - }, - { - "displayName": "Ingester: total chunks matched", - "value": 8 - }, - { - "displayName": "Ingester: total batches", - "value": 9 - }, - { - "displayName": "Ingester: total lines sent", - "value": 10 - }, - { - "displayName": "Ingester: head chunk bytes", - "unit": "decbytes", - "value": 11 - }, - { - "displayName": "Ingester: head chunk lines", - "value": 12 - }, - { - "displayName": "Ingester: decompressed bytes", - "unit": "decbytes", - "value": 13 - }, - { - "displayName": "Ingester: decompressed lines", - "value": 14 - }, - { - "displayName": "Ingester: compressed bytes", - "unit": "decbytes", - "value": 15 - }, - { - "displayName": "Ingester: total duplicates", - "value": 16 - } - ], - "executedQueryString": "Expr: query1" - }, - "fields": [ - { - "name": "labels", - "type": "other", - "typeInfo": { - "frame": "json.RawMessage" - } - }, - { - "name": "timestamp", - "type": "time", - "typeInfo": { - "frame": "time.Time" - } - }, - { - "name": "body", - "type": "string", - "typeInfo": { - "frame": "string" - } - }, - { - "name": "id", - "type": "string", - "typeInfo": { - "frame": "string" - } - }, - { - "name": "labelTypes", - "type": "other", - "typeInfo": { - "frame": "json.RawMessage" - }, - "config": { - "custom": { - "hidden": true - } - } - } - ] - }, - "data": { - "values": [ - [ - { - "code": "\",two", - "field2": "two", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "field1": "one", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "field1": "one", - "location": "moonπŸŒ™" - } - ], - [ - 1704895296244, - 1704895267503, - 1704895245190 - ], - [ - "{\"field2\":\"two\"}", - "{\"field1\":\"one\"}", - "{\"field1\":\"one\"}" - ], - [ - "1704895296244577000_194597ad", - "1704895267503906000_90781cdf", - "1704895245190222000_90781cdf" - ], - [ - { - "code": "I", - "field2": "P", - "location": "I" - }, - { - "code": "I", - "field1": "P", - "location": "I" - }, - { - "code": "I", - "field1": "P", - "location": "I" - } - ] - ], - "nanos": [ - null, - [ - 577000, - 906000, - 222000 - ], - null, - null, - null - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/streams_structured_metadata_2.json b/pkg/tsdb/loki/testdata_logs_dataplane/streams_structured_metadata_2.json deleted file mode 100644 index 45dc560f354..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/streams_structured_metadata_2.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "status": "success", - "data": { - "encodingFlags": [ - "categorize-labels" - ], - "resultType": "streams", - "result": [ - { - "stream": { - "code": "\",two", - "location": "moonπŸŒ™" - }, - "values": [ - [ - "1704895296244577000", - "{\"field2\":\"two\"}", - { - "parsed": { - "field2": "two" - } - } - ], - [ - "1704895267503906000", - "{\"field1\":\"one\"}", - { - "parsed": { - "field1": "one" - } - } - ], - [ - "1704895245190222000", - "{\"field1\":\"one\"}", - { - "parsed": { - "field1": "one" - } - } - ] - ] - } - ], - "stats": { - "summary": { - "bytesProcessedPerSecond": 3507022, - "linesProcessedPerSecond": 24818, - "totalBytesProcessed": 7772, - "totalLinesProcessed": 55, - "execTime": 0.002216125 - }, - "store": { - "totalChunksRef": 2, - "totalChunksDownloaded": 3, - "chunksDownloadTime": 0.000390958, - "headChunkBytes": 4, - "headChunkLines": 5, - "decompressedBytes": 7772, - "decompressedLines": 55, - "compressedBytes": 31432, - "totalDuplicates": 6 - }, - "ingester": { - "totalReached": 7, - "totalChunksMatched": 8, - "totalBatches": 9, - "totalLinesSent": 10, - "headChunkBytes": 11, - "headChunkLines": 12, - "decompressedBytes": 13, - "decompressedLines": 14, - "compressedBytes": 15, - "totalDuplicates": 16 - } - } - } -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/vector_simple.golden.jsonc b/pkg/tsdb/loki/testdata_logs_dataplane/vector_simple.golden.jsonc deleted file mode 100644 index 56b61d137bd..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/vector_simple.golden.jsonc +++ /dev/null @@ -1,139 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: query1" -// } -// Name: {level="error", location="moon"} -// Dimensions: 2 Fields by 1 Rows -// +-------------------------------+------------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=error, location=moon | -// | Type: []time.Time | Type: []float64 | -// +-------------------------------+------------------------------------+ -// | 2022-02-16 16:41:39 +0000 UTC | 23 | -// +-------------------------------+------------------------------------+ -// -// -// -// Frame[1] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: query1" -// } -// Name: {level="info", location="moon"} -// Dimensions: 2 Fields by 1 Rows -// +-------------------------------+-----------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=info, location=moon | -// | Type: []time.Time | Type: []float64 | -// +-------------------------------+-----------------------------------+ -// | 2022-02-16 16:41:39 +0000 UTC | 47 | -// +-------------------------------+-----------------------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "name": "{level=\"error\", location=\"moon\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: query1" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "error", - "location": "moon" - }, - "config": { - "displayNameFromDS": "{level=\"error\", location=\"moon\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1645029699000 - ], - [ - 23 - ] - ] - } - }, - { - "schema": { - "name": "{level=\"info\", location=\"moon\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: query1" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "info", - "location": "moon" - }, - "config": { - "displayNameFromDS": "{level=\"info\", location=\"moon\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1645029699000 - ], - [ - 47 - ] - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/vector_simple.json b/pkg/tsdb/loki/testdata_logs_dataplane/vector_simple.json deleted file mode 100644 index 7c7154c1b71..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/vector_simple.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "vector", - "result": [ - { - "metric": { "level": "error", "location": "moon"}, - "value": [1645029699, "23"] - }, - { - "metric": { "level": "info", "location": "moon" }, - "value": [1645029699, "47"] - } - ] - } -} diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/vector_special_values.golden.jsonc b/pkg/tsdb/loki/testdata_logs_dataplane/vector_special_values.golden.jsonc deleted file mode 100644 index 6db425707cb..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/vector_special_values.golden.jsonc +++ /dev/null @@ -1,229 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: query1" -// } -// Name: {level="error", location="moon"} -// Dimensions: 2 Fields by 1 Rows -// +-------------------------------+------------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=error, location=moon | -// | Type: []time.Time | Type: []float64 | -// +-------------------------------+------------------------------------+ -// | 2022-02-16 16:41:39 +0000 UTC | +Inf | -// +-------------------------------+------------------------------------+ -// -// -// -// Frame[1] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: query1" -// } -// Name: {level="info", location="moon"} -// Dimensions: 2 Fields by 1 Rows -// +-------------------------------+-----------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=info, location=moon | -// | Type: []time.Time | Type: []float64 | -// +-------------------------------+-----------------------------------+ -// | 2022-02-16 16:41:39 +0000 UTC | -Inf | -// +-------------------------------+-----------------------------------+ -// -// -// -// Frame[2] { -// "type": "timeseries-multi", -// "typeVersion": [ -// 0, -// 0 -// ], -// "executedQueryString": "Expr: query1" -// } -// Name: {level="debug", location="moon"} -// Dimensions: 2 Fields by 1 Rows -// +-------------------------------+------------------------------------+ -// | Name: Time | Name: Value | -// | Labels: | Labels: level=debug, location=moon | -// | Type: []time.Time | Type: []float64 | -// +-------------------------------+------------------------------------+ -// | 2022-02-16 16:41:39 +0000 UTC | NaN | -// +-------------------------------+------------------------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "name": "{level=\"error\", location=\"moon\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: query1" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "error", - "location": "moon" - }, - "config": { - "displayNameFromDS": "{level=\"error\", location=\"moon\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1645029699000 - ], - [ - null - ] - ], - "entities": [ - null, - { - "Inf": [ - 0 - ] - } - ] - } - }, - { - "schema": { - "name": "{level=\"info\", location=\"moon\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: query1" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "info", - "location": "moon" - }, - "config": { - "displayNameFromDS": "{level=\"info\", location=\"moon\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1645029699000 - ], - [ - null - ] - ], - "entities": [ - null, - { - "NegInf": [ - 0 - ] - } - ] - } - }, - { - "schema": { - "name": "{level=\"debug\", location=\"moon\"}", - "meta": { - "type": "timeseries-multi", - "typeVersion": [ - 0, - 0 - ], - "executedQueryString": "Expr: query1" - }, - "fields": [ - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - } - }, - { - "name": "Value", - "type": "number", - "typeInfo": { - "frame": "float64" - }, - "labels": { - "level": "debug", - "location": "moon" - }, - "config": { - "displayNameFromDS": "{level=\"debug\", location=\"moon\"}" - } - } - ] - }, - "data": { - "values": [ - [ - 1645029699000 - ], - [ - null - ] - ], - "entities": [ - null, - { - "NaN": [ - 0 - ] - } - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_logs_dataplane/vector_special_values.json b/pkg/tsdb/loki/testdata_logs_dataplane/vector_special_values.json deleted file mode 100644 index 18979ea3204..00000000000 --- a/pkg/tsdb/loki/testdata_logs_dataplane/vector_special_values.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "vector", - "result": [ - { - "metric": { "level": "error", "location": "moon"}, - "value": [1645029699, "+Inf"] - }, - { - "metric": { "level": "info", "location": "moon" }, - "value": [1645029699, "-Inf"] - }, - { - "metric": { "level": "debug", "location": "moon" }, - "value": [1645029699, "NaN"] - } - ] - } -} diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/empty.golden.jsonc b/pkg/tsdb/loki/testdata_metric_dataplane/empty.golden.jsonc deleted file mode 100644 index e63a03ad551..00000000000 --- a/pkg/tsdb/loki/testdata_metric_dataplane/empty.golden.jsonc +++ /dev/null @@ -1,5 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200 -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/empty.json b/pkg/tsdb/loki/testdata_metric_dataplane/empty.json deleted file mode 100644 index 9e26dfeeb6e..00000000000 --- a/pkg/tsdb/loki/testdata_metric_dataplane/empty.json +++ /dev/null @@ -1 +0,0 @@ -{} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/matrix_gap.json b/pkg/tsdb/loki/testdata_metric_dataplane/matrix_gap.json deleted file mode 100644 index dbb9224b65d..00000000000 --- a/pkg/tsdb/loki/testdata_metric_dataplane/matrix_gap.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "matrix", - "result": [ - { - "metric": {}, - "values": [ - [1643014453.815, "50"], - [1643014753.815, "57"], - [1643015053.815, "55"], - [1643016853.815, "54"], - [1643017153.815, "55"], - [1643017453.815, "56"] - ] - } - ] - } -} diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/matrix_inf.json b/pkg/tsdb/loki/testdata_metric_dataplane/matrix_inf.json deleted file mode 100644 index a7f95130dc3..00000000000 --- a/pkg/tsdb/loki/testdata_metric_dataplane/matrix_inf.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "matrix", - "result": [ - { - "metric": { - "level": "info", - "location": "moon", - "protocol": "http" - }, - "values": [ - [1643021611.1, "+Inf"], - [1643021911.2, "-Inf"], - [1643021611.3, "+Infinity"], - [1643021911.4, "-Infinity"], - [1643021611.5, "+inf"], - [1643021911.6, "-infinity"], - [1643021611.7, "+iNf"], - [1643021911.8, "-INfInItY"] - ] - } - ] - } -} diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/matrix_name.json b/pkg/tsdb/loki/testdata_metric_dataplane/matrix_name.json deleted file mode 100644 index 7870730fd9e..00000000000 --- a/pkg/tsdb/loki/testdata_metric_dataplane/matrix_name.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "matrix", - "result": [ - { - "metric": { - "level": "error", - "__name__": "moon" - }, - "values": [ - [1639125366.989, "0.4"] - ] - } - ] - } -} diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/matrix_nan.json b/pkg/tsdb/loki/testdata_metric_dataplane/matrix_nan.json deleted file mode 100644 index e862c581992..00000000000 --- a/pkg/tsdb/loki/testdata_metric_dataplane/matrix_nan.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "matrix", - "result": [ - { - "metric": {}, - "values": [ - [1643014450.417, "NaN"], - [1643014750.517, "nan"], - [1643014450.617, "nAn"] - ] - } - ] - } -} diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/matrix_simple.json b/pkg/tsdb/loki/testdata_metric_dataplane/matrix_simple.json deleted file mode 100644 index 8b3608d2f0b..00000000000 --- a/pkg/tsdb/loki/testdata_metric_dataplane/matrix_simple.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "matrix", - "result": [ - { - "metric": { - "level": "error", - "location": "moon" - }, - "values": [ - [1639125366.989, "0.4"], - [1639125406.989, "0.2"], - [1639125416.989, "0.2"], - [1639125466.989, "0.6"] - ] - }, - { - "metric": { - "level": "info", - "location": "mars" - }, - "values": [ - [1639125386.989, "0.6"], - [1639125396.989, "0.8"], - [1639125406.989, "0.8"], - [1639125416.989, "0.8"], - [1639125476.989, "2.6"] - ] - } - ] - } -} diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/matrix_small_step.json b/pkg/tsdb/loki/testdata_metric_dataplane/matrix_small_step.json deleted file mode 100644 index 7d0d2067548..00000000000 --- a/pkg/tsdb/loki/testdata_metric_dataplane/matrix_small_step.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "matrix", - "result": [ - { - "metric": { - "level": "error" - }, - "values": [ - [1639125366.511, "0.4"], - [1639125406.512, "0.2"], - [1639125416.513, "0.2"], - [1639125466.514, "0.6"] - ] - } - ] - } -} diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/matrix_with_stats.json b/pkg/tsdb/loki/testdata_metric_dataplane/matrix_with_stats.json deleted file mode 100644 index 609ce7ff170..00000000000 --- a/pkg/tsdb/loki/testdata_metric_dataplane/matrix_with_stats.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "matrix", - "result": [ - { - "metric": { - "level": "error", - "location": "moon" - }, - "values": [ - [1639125366.989, "0.4"], - [1639125406.989, "0.2"] - ] - }, - { - "metric": { - "level": "info", - "location": "mars" - }, - "values": [ - [1639125386.989, "0.6"], - [1639125396.989, "0.8"] - ] - } - ], - "stats": { - "summary": { - "bytesProcessedPerSecond": 3507022, - "linesProcessedPerSecond": 24818, - "totalBytesProcessed": 7772, - "totalLinesProcessed": 55, - "execTime": 0.002216125 - }, - "store": { - "totalChunksRef": 2, - "totalChunksDownloaded": 3, - "chunksDownloadTime": 0.000390958, - "headChunkBytes": 4, - "headChunkLines": 5, - "decompressedBytes": 7772, - "decompressedLines": 55, - "compressedBytes": 31432, - "totalDuplicates": 6 - }, - "ingester": { - "totalReached": 7, - "totalChunksMatched": 8, - "totalBatches": 9, - "totalLinesSent": 10, - "headChunkBytes": 11, - "headChunkLines": 12, - "decompressedBytes": 13, - "decompressedLines": 14, - "compressedBytes": 15, - "totalDuplicates": 16 - } - } - } -} diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/streams_parse_errors.golden.jsonc b/pkg/tsdb/loki/testdata_metric_dataplane/streams_parse_errors.golden.jsonc deleted file mode 100644 index 2d1a94347ce..00000000000 --- a/pkg/tsdb/loki/testdata_metric_dataplane/streams_parse_errors.golden.jsonc +++ /dev/null @@ -1,129 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "typeVersion": [ -// 0, -// 0 -// ], -// "custom": { -// "frameType": "LabeledTimeValues" -// }, -// "executedQueryString": "Expr: query1" -// } -// Name: -// Dimensions: 5 Fields by 4 Rows -// +------------------------------------------------+-------------------------------+----------------+---------------------+------------------------------+ -// | Name: labels | Name: Time | Name: Line | Name: tsNs | Name: id | -// | Labels: | Labels: | Labels: | Labels: | Labels: | -// | Type: []json.RawMessage | Type: []time.Time | Type: []string | Type: []string | Type: []string | -// +------------------------------------------------+-------------------------------+----------------+---------------------+------------------------------+ -// | {"__error__":"LogfmtParserErr","place":"moon"} | 2022-06-17 06:49:51 +0000 UTC | "hello1 | 1655448591000000000 | 1655448591000000000_44cbf4ec | -// | {"__error__":"LogfmtParserErr","place":"moon"} | 2022-06-17 06:49:54 +0000 UTC | "hello4 | 1655448594000000000 | 1655448594000000000_408b3f5b | -// | {"place":"moon","text":"hello3"} | 2022-06-17 06:49:52 +0000 UTC | text=hello2 | 1655448592000000000 | 1655448592000000000_d1b2086 | -// | {"place":"moon","text":"hello4"} | 2022-06-17 06:49:53 +0000 UTC | text=hello3 | 1655448593000000000 | 1655448593000000000_45714922 | -// +------------------------------------------------+-------------------------------+----------------+---------------------+------------------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "meta": { - "typeVersion": [ - 0, - 0 - ], - "custom": { - "frameType": "LabeledTimeValues" - }, - "executedQueryString": "Expr: query1" - }, - "fields": [ - { - "name": "labels", - "type": "other", - "typeInfo": { - "frame": "json.RawMessage" - } - }, - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - } - }, - { - "name": "Line", - "type": "string", - "typeInfo": { - "frame": "string" - } - }, - { - "name": "tsNs", - "type": "string", - "typeInfo": { - "frame": "string" - } - }, - { - "name": "id", - "type": "string", - "typeInfo": { - "frame": "string" - } - } - ] - }, - "data": { - "values": [ - [ - { - "__error__": "LogfmtParserErr", - "place": "moon" - }, - { - "__error__": "LogfmtParserErr", - "place": "moon" - }, - { - "place": "moon", - "text": "hello3" - }, - { - "place": "moon", - "text": "hello4" - } - ], - [ - 1655448591000, - 1655448594000, - 1655448592000, - 1655448593000 - ], - [ - "\"hello1", - "\"hello4", - "text=hello2", - "text=hello3" - ], - [ - "1655448591000000000", - "1655448594000000000", - "1655448592000000000", - "1655448593000000000" - ], - [ - "1655448591000000000_44cbf4ec", - "1655448594000000000_408b3f5b", - "1655448592000000000_d1b2086", - "1655448593000000000_45714922" - ] - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/streams_parse_errors.json b/pkg/tsdb/loki/testdata_metric_dataplane/streams_parse_errors.json deleted file mode 100644 index 3df7cd09781..00000000000 --- a/pkg/tsdb/loki/testdata_metric_dataplane/streams_parse_errors.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "streams", - "result": [ - { - "stream": { "__error__": "LogfmtParserErr", "place": "moon" }, - "values": [ - ["1655448591000000000", "\"hello1"], - ["1655448594000000000", "\"hello4"] - ] - }, - { - "stream": { - "place": "moon", - "text": "hello3" - }, - "values": [["1655448592000000000", "text=hello2"]] - }, - { - "stream": { - "place": "moon", - "text": "hello4" - }, - "values": [["1655448593000000000", "text=hello3"]] - } - ] - } -} diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/streams_simple.golden.jsonc b/pkg/tsdb/loki/testdata_metric_dataplane/streams_simple.golden.jsonc deleted file mode 100644 index 7a9fb1500eb..00000000000 --- a/pkg/tsdb/loki/testdata_metric_dataplane/streams_simple.golden.jsonc +++ /dev/null @@ -1,377 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "typeVersion": [ -// 0, -// 0 -// ], -// "custom": { -// "frameType": "LabeledTimeValues" -// }, -// "stats": [ -// { -// "displayName": "Summary: bytes processed per second", -// "unit": "Bps", -// "value": 3507022 -// }, -// { -// "displayName": "Summary: lines processed per second", -// "value": 24818 -// }, -// { -// "displayName": "Summary: total bytes processed", -// "unit": "decbytes", -// "value": 7772 -// }, -// { -// "displayName": "Summary: total lines processed", -// "value": 55 -// }, -// { -// "displayName": "Summary: exec time", -// "unit": "s", -// "value": 0.002216125 -// }, -// { -// "displayName": "Store: total chunks ref", -// "value": 2 -// }, -// { -// "displayName": "Store: total chunks downloaded", -// "value": 3 -// }, -// { -// "displayName": "Store: chunks download time", -// "unit": "s", -// "value": 0.000390958 -// }, -// { -// "displayName": "Store: head chunk bytes", -// "unit": "decbytes", -// "value": 4 -// }, -// { -// "displayName": "Store: head chunk lines", -// "value": 5 -// }, -// { -// "displayName": "Store: decompressed bytes", -// "unit": "decbytes", -// "value": 7772 -// }, -// { -// "displayName": "Store: decompressed lines", -// "value": 55 -// }, -// { -// "displayName": "Store: compressed bytes", -// "unit": "decbytes", -// "value": 31432 -// }, -// { -// "displayName": "Store: total duplicates", -// "value": 6 -// }, -// { -// "displayName": "Ingester: total reached", -// "value": 7 -// }, -// { -// "displayName": "Ingester: total chunks matched", -// "value": 8 -// }, -// { -// "displayName": "Ingester: total batches", -// "value": 9 -// }, -// { -// "displayName": "Ingester: total lines sent", -// "value": 10 -// }, -// { -// "displayName": "Ingester: head chunk bytes", -// "unit": "decbytes", -// "value": 11 -// }, -// { -// "displayName": "Ingester: head chunk lines", -// "value": 12 -// }, -// { -// "displayName": "Ingester: decompressed bytes", -// "unit": "decbytes", -// "value": 13 -// }, -// { -// "displayName": "Ingester: decompressed lines", -// "value": 14 -// }, -// { -// "displayName": "Ingester: compressed bytes", -// "unit": "decbytes", -// "value": 15 -// }, -// { -// "displayName": "Ingester: total duplicates", -// "value": 16 -// } -// ], -// "executedQueryString": "Expr: query1" -// } -// Name: -// Dimensions: 5 Fields by 6 Rows -// +---------------------------------------+-----------------------------------------+------------------+---------------------+--------------------------------+ -// | Name: labels | Name: Time | Name: Line | Name: tsNs | Name: id | -// | Labels: | Labels: | Labels: | Labels: | Labels: | -// | Type: []json.RawMessage | Type: []time.Time | Type: []string | Type: []string | Type: []string | -// +---------------------------------------+-----------------------------------------+------------------+---------------------+--------------------------------+ -// | {"code":"one\",","location":"moonπŸŒ™"} | 2022-02-16 16:50:44.81075712 +0000 UTC | log line error 1 | 1645030244810757120 | 1645030244810757120_1d8c2178 | -// | {"code":"\",two","location":"moonπŸŒ™"} | 2022-02-16 16:50:47.02773504 +0000 UTC | log line info 1 | 1645030247027735040 | 1645030247027735040_87a7aed2 | -// | {"code":"\",two","location":"moonπŸŒ™"} | 2022-02-16 16:50:46.277587968 +0000 UTC | log line info 2 | 1645030246277587968 | 1645030246277587968_318d05c9 | -// | {"code":"\",two","location":"moonπŸŒ™"} | 2022-02-16 16:50:46.277587968 +0000 UTC | log line info 2 | 1645030246277587968 | 1645030246277587968_318d05c9_1 | -// | {"code":"\",two","location":"moonπŸŒ™"} | 2022-02-16 16:50:45.539423744 +0000 UTC | log line info 3 | 1645030245539423744 | 1645030245539423744_fd17f65c | -// | {"code":"\",two","location":"moonπŸŒ™"} | 2022-02-16 16:50:44.091700992 +0000 UTC | log line info 4 | 1645030244091700992 | 1645030244091700992_62ae07f3 | -// +---------------------------------------+-----------------------------------------+------------------+---------------------+--------------------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "meta": { - "typeVersion": [ - 0, - 0 - ], - "custom": { - "frameType": "LabeledTimeValues" - }, - "stats": [ - { - "displayName": "Summary: bytes processed per second", - "unit": "Bps", - "value": 3507022 - }, - { - "displayName": "Summary: lines processed per second", - "value": 24818 - }, - { - "displayName": "Summary: total bytes processed", - "unit": "decbytes", - "value": 7772 - }, - { - "displayName": "Summary: total lines processed", - "value": 55 - }, - { - "displayName": "Summary: exec time", - "unit": "s", - "value": 0.002216125 - }, - { - "displayName": "Store: total chunks ref", - "value": 2 - }, - { - "displayName": "Store: total chunks downloaded", - "value": 3 - }, - { - "displayName": "Store: chunks download time", - "unit": "s", - "value": 0.000390958 - }, - { - "displayName": "Store: head chunk bytes", - "unit": "decbytes", - "value": 4 - }, - { - "displayName": "Store: head chunk lines", - "value": 5 - }, - { - "displayName": "Store: decompressed bytes", - "unit": "decbytes", - "value": 7772 - }, - { - "displayName": "Store: decompressed lines", - "value": 55 - }, - { - "displayName": "Store: compressed bytes", - "unit": "decbytes", - "value": 31432 - }, - { - "displayName": "Store: total duplicates", - "value": 6 - }, - { - "displayName": "Ingester: total reached", - "value": 7 - }, - { - "displayName": "Ingester: total chunks matched", - "value": 8 - }, - { - "displayName": "Ingester: total batches", - "value": 9 - }, - { - "displayName": "Ingester: total lines sent", - "value": 10 - }, - { - "displayName": "Ingester: head chunk bytes", - "unit": "decbytes", - "value": 11 - }, - { - "displayName": "Ingester: head chunk lines", - "value": 12 - }, - { - "displayName": "Ingester: decompressed bytes", - "unit": "decbytes", - "value": 13 - }, - { - "displayName": "Ingester: decompressed lines", - "value": 14 - }, - { - "displayName": "Ingester: compressed bytes", - "unit": "decbytes", - "value": 15 - }, - { - "displayName": "Ingester: total duplicates", - "value": 16 - } - ], - "executedQueryString": "Expr: query1" - }, - "fields": [ - { - "name": "labels", - "type": "other", - "typeInfo": { - "frame": "json.RawMessage" - } - }, - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - } - }, - { - "name": "Line", - "type": "string", - "typeInfo": { - "frame": "string" - } - }, - { - "name": "tsNs", - "type": "string", - "typeInfo": { - "frame": "string" - } - }, - { - "name": "id", - "type": "string", - "typeInfo": { - "frame": "string" - } - } - ] - }, - "data": { - "values": [ - [ - { - "code": "one\",", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "location": "moonπŸŒ™" - } - ], - [ - 1645030244810, - 1645030247027, - 1645030246277, - 1645030246277, - 1645030245539, - 1645030244091 - ], - [ - "log line error 1", - "log line info 1", - "log line info 2", - "log line info 2", - "log line info 3", - "log line info 4" - ], - [ - "1645030244810757120", - "1645030247027735040", - "1645030246277587968", - "1645030246277587968", - "1645030245539423744", - "1645030244091700992" - ], - [ - "1645030244810757120_1d8c2178", - "1645030247027735040_87a7aed2", - "1645030246277587968_318d05c9", - "1645030246277587968_318d05c9_1", - "1645030245539423744_fd17f65c", - "1645030244091700992_62ae07f3" - ] - ], - "nanos": [ - null, - [ - 757120, - 735040, - 587968, - 587968, - 423744, - 700992 - ], - null, - null, - null - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/streams_simple.json b/pkg/tsdb/loki/testdata_metric_dataplane/streams_simple.json deleted file mode 100644 index 71c0d4ab44b..00000000000 --- a/pkg/tsdb/loki/testdata_metric_dataplane/streams_simple.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "streams", - "result": [ - { - "stream": { - "code": "one\",", - "location": "moonπŸŒ™" - }, - "values": [ - [ - "1645030244810757120", - "log line error 1" - ] - ] - }, - { - "stream": { - "code": "\",two", - "location": "moonπŸŒ™" - }, - "values": [ - [ - "1645030247027735040", - "log line info 1" - ], - [ - "1645030246277587968", - "log line info 2" - ], - [ - "1645030246277587968", - "log line info 2" - ], - [ - "1645030245539423744", - "log line info 3" - ], - [ - "1645030244091700992", - "log line info 4" - ] - ] - } - ], - "stats": { - "summary": { - "bytesProcessedPerSecond": 3507022, - "linesProcessedPerSecond": 24818, - "totalBytesProcessed": 7772, - "totalLinesProcessed": 55, - "execTime": 0.002216125 - }, - "store": { - "totalChunksRef": 2, - "totalChunksDownloaded": 3, - "chunksDownloadTime": 0.000390958, - "headChunkBytes": 4, - "headChunkLines": 5, - "decompressedBytes": 7772, - "decompressedLines": 55, - "compressedBytes": 31432, - "totalDuplicates": 6 - }, - "ingester": { - "totalReached": 7, - "totalChunksMatched": 8, - "totalBatches": 9, - "totalLinesSent": 10, - "headChunkBytes": 11, - "headChunkLines": 12, - "decompressedBytes": 13, - "decompressedLines": 14, - "compressedBytes": 15, - "totalDuplicates": 16 - } - } - } -} diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/streams_structured_metadata_2.golden.jsonc b/pkg/tsdb/loki/testdata_metric_dataplane/streams_structured_metadata_2.golden.jsonc deleted file mode 100644 index 2f65417a5af..00000000000 --- a/pkg/tsdb/loki/testdata_metric_dataplane/streams_structured_metadata_2.golden.jsonc +++ /dev/null @@ -1,380 +0,0 @@ -// 🌟 This was machine generated. Do not edit. 🌟 -// -// Frame[0] { -// "typeVersion": [ -// 0, -// 0 -// ], -// "custom": { -// "frameType": "LabeledTimeValues" -// }, -// "stats": [ -// { -// "displayName": "Summary: bytes processed per second", -// "unit": "Bps", -// "value": 3507022 -// }, -// { -// "displayName": "Summary: lines processed per second", -// "value": 24818 -// }, -// { -// "displayName": "Summary: total bytes processed", -// "unit": "decbytes", -// "value": 7772 -// }, -// { -// "displayName": "Summary: total lines processed", -// "value": 55 -// }, -// { -// "displayName": "Summary: exec time", -// "unit": "s", -// "value": 0.002216125 -// }, -// { -// "displayName": "Store: total chunks ref", -// "value": 2 -// }, -// { -// "displayName": "Store: total chunks downloaded", -// "value": 3 -// }, -// { -// "displayName": "Store: chunks download time", -// "unit": "s", -// "value": 0.000390958 -// }, -// { -// "displayName": "Store: head chunk bytes", -// "unit": "decbytes", -// "value": 4 -// }, -// { -// "displayName": "Store: head chunk lines", -// "value": 5 -// }, -// { -// "displayName": "Store: decompressed bytes", -// "unit": "decbytes", -// "value": 7772 -// }, -// { -// "displayName": "Store: decompressed lines", -// "value": 55 -// }, -// { -// "displayName": "Store: compressed bytes", -// "unit": "decbytes", -// "value": 31432 -// }, -// { -// "displayName": "Store: total duplicates", -// "value": 6 -// }, -// { -// "displayName": "Ingester: total reached", -// "value": 7 -// }, -// { -// "displayName": "Ingester: total chunks matched", -// "value": 8 -// }, -// { -// "displayName": "Ingester: total batches", -// "value": 9 -// }, -// { -// "displayName": "Ingester: total lines sent", -// "value": 10 -// }, -// { -// "displayName": "Ingester: head chunk bytes", -// "unit": "decbytes", -// "value": 11 -// }, -// { -// "displayName": "Ingester: head chunk lines", -// "value": 12 -// }, -// { -// "displayName": "Ingester: decompressed bytes", -// "unit": "decbytes", -// "value": 13 -// }, -// { -// "displayName": "Ingester: decompressed lines", -// "value": 14 -// }, -// { -// "displayName": "Ingester: compressed bytes", -// "unit": "decbytes", -// "value": 15 -// }, -// { -// "displayName": "Ingester: total duplicates", -// "value": 16 -// } -// ], -// "executedQueryString": "Expr: query1" -// } -// Name: -// Dimensions: 6 Fields by 3 Rows -// +------------------------------------------------------+--------------------------------------+------------------+---------------------+------------------------------------------+------------------------------+ -// | Name: labels | Name: Time | Name: Line | Name: tsNs | Name: labelTypes | Name: id | -// | Labels: | Labels: | Labels: | Labels: | Labels: | Labels: | -// | Type: []json.RawMessage | Type: []time.Time | Type: []string | Type: []string | Type: []json.RawMessage | Type: []string | -// +------------------------------------------------------+--------------------------------------+------------------+---------------------+------------------------------------------+------------------------------+ -// | {"code":"\",two","field2":"two","location":"moonπŸŒ™"} | 2024-01-10 14:01:36.244577 +0000 UTC | {"field2":"two"} | 1704895296244577000 | {"code":"I","field2":"P","location":"I"} | 1704895296244577000_194597ad | -// | {"code":"\",two","field1":"one","location":"moonπŸŒ™"} | 2024-01-10 14:01:07.503906 +0000 UTC | {"field1":"one"} | 1704895267503906000 | {"code":"I","field1":"P","location":"I"} | 1704895267503906000_90781cdf | -// | {"code":"\",two","field1":"one","location":"moonπŸŒ™"} | 2024-01-10 14:00:45.190222 +0000 UTC | {"field1":"one"} | 1704895245190222000 | {"code":"I","field1":"P","location":"I"} | 1704895245190222000_90781cdf | -// +------------------------------------------------------+--------------------------------------+------------------+---------------------+------------------------------------------+------------------------------+ -// -// -// 🌟 This was machine generated. Do not edit. 🌟 -{ - "status": 200, - "frames": [ - { - "schema": { - "meta": { - "typeVersion": [ - 0, - 0 - ], - "custom": { - "frameType": "LabeledTimeValues" - }, - "stats": [ - { - "displayName": "Summary: bytes processed per second", - "unit": "Bps", - "value": 3507022 - }, - { - "displayName": "Summary: lines processed per second", - "value": 24818 - }, - { - "displayName": "Summary: total bytes processed", - "unit": "decbytes", - "value": 7772 - }, - { - "displayName": "Summary: total lines processed", - "value": 55 - }, - { - "displayName": "Summary: exec time", - "unit": "s", - "value": 0.002216125 - }, - { - "displayName": "Store: total chunks ref", - "value": 2 - }, - { - "displayName": "Store: total chunks downloaded", - "value": 3 - }, - { - "displayName": "Store: chunks download time", - "unit": "s", - "value": 0.000390958 - }, - { - "displayName": "Store: head chunk bytes", - "unit": "decbytes", - "value": 4 - }, - { - "displayName": "Store: head chunk lines", - "value": 5 - }, - { - "displayName": "Store: decompressed bytes", - "unit": "decbytes", - "value": 7772 - }, - { - "displayName": "Store: decompressed lines", - "value": 55 - }, - { - "displayName": "Store: compressed bytes", - "unit": "decbytes", - "value": 31432 - }, - { - "displayName": "Store: total duplicates", - "value": 6 - }, - { - "displayName": "Ingester: total reached", - "value": 7 - }, - { - "displayName": "Ingester: total chunks matched", - "value": 8 - }, - { - "displayName": "Ingester: total batches", - "value": 9 - }, - { - "displayName": "Ingester: total lines sent", - "value": 10 - }, - { - "displayName": "Ingester: head chunk bytes", - "unit": "decbytes", - "value": 11 - }, - { - "displayName": "Ingester: head chunk lines", - "value": 12 - }, - { - "displayName": "Ingester: decompressed bytes", - "unit": "decbytes", - "value": 13 - }, - { - "displayName": "Ingester: decompressed lines", - "value": 14 - }, - { - "displayName": "Ingester: compressed bytes", - "unit": "decbytes", - "value": 15 - }, - { - "displayName": "Ingester: total duplicates", - "value": 16 - } - ], - "executedQueryString": "Expr: query1" - }, - "fields": [ - { - "name": "labels", - "type": "other", - "typeInfo": { - "frame": "json.RawMessage" - } - }, - { - "name": "Time", - "type": "time", - "typeInfo": { - "frame": "time.Time" - } - }, - { - "name": "Line", - "type": "string", - "typeInfo": { - "frame": "string" - } - }, - { - "name": "tsNs", - "type": "string", - "typeInfo": { - "frame": "string" - } - }, - { - "name": "labelTypes", - "type": "other", - "typeInfo": { - "frame": "json.RawMessage" - }, - "config": { - "custom": { - "hidden": true - } - } - }, - { - "name": "id", - "type": "string", - "typeInfo": { - "frame": "string" - } - } - ] - }, - "data": { - "values": [ - [ - { - "code": "\",two", - "field2": "two", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "field1": "one", - "location": "moonπŸŒ™" - }, - { - "code": "\",two", - "field1": "one", - "location": "moonπŸŒ™" - } - ], - [ - 1704895296244, - 1704895267503, - 1704895245190 - ], - [ - "{\"field2\":\"two\"}", - "{\"field1\":\"one\"}", - "{\"field1\":\"one\"}" - ], - [ - "1704895296244577000", - "1704895267503906000", - "1704895245190222000" - ], - [ - { - "code": "I", - "field2": "P", - "location": "I" - }, - { - "code": "I", - "field1": "P", - "location": "I" - }, - { - "code": "I", - "field1": "P", - "location": "I" - } - ], - [ - "1704895296244577000_194597ad", - "1704895267503906000_90781cdf", - "1704895245190222000_90781cdf" - ] - ], - "nanos": [ - null, - [ - 577000, - 906000, - 222000 - ], - null, - null, - null, - null - ] - } - } - ] -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/streams_structured_metadata_2.json b/pkg/tsdb/loki/testdata_metric_dataplane/streams_structured_metadata_2.json deleted file mode 100644 index 45dc560f354..00000000000 --- a/pkg/tsdb/loki/testdata_metric_dataplane/streams_structured_metadata_2.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "status": "success", - "data": { - "encodingFlags": [ - "categorize-labels" - ], - "resultType": "streams", - "result": [ - { - "stream": { - "code": "\",two", - "location": "moonπŸŒ™" - }, - "values": [ - [ - "1704895296244577000", - "{\"field2\":\"two\"}", - { - "parsed": { - "field2": "two" - } - } - ], - [ - "1704895267503906000", - "{\"field1\":\"one\"}", - { - "parsed": { - "field1": "one" - } - } - ], - [ - "1704895245190222000", - "{\"field1\":\"one\"}", - { - "parsed": { - "field1": "one" - } - } - ] - ] - } - ], - "stats": { - "summary": { - "bytesProcessedPerSecond": 3507022, - "linesProcessedPerSecond": 24818, - "totalBytesProcessed": 7772, - "totalLinesProcessed": 55, - "execTime": 0.002216125 - }, - "store": { - "totalChunksRef": 2, - "totalChunksDownloaded": 3, - "chunksDownloadTime": 0.000390958, - "headChunkBytes": 4, - "headChunkLines": 5, - "decompressedBytes": 7772, - "decompressedLines": 55, - "compressedBytes": 31432, - "totalDuplicates": 6 - }, - "ingester": { - "totalReached": 7, - "totalChunksMatched": 8, - "totalBatches": 9, - "totalLinesSent": 10, - "headChunkBytes": 11, - "headChunkLines": 12, - "decompressedBytes": 13, - "decompressedLines": 14, - "compressedBytes": 15, - "totalDuplicates": 16 - } - } - } -} \ No newline at end of file diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/vector_simple.json b/pkg/tsdb/loki/testdata_metric_dataplane/vector_simple.json deleted file mode 100644 index 7c7154c1b71..00000000000 --- a/pkg/tsdb/loki/testdata_metric_dataplane/vector_simple.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "vector", - "result": [ - { - "metric": { "level": "error", "location": "moon"}, - "value": [1645029699, "23"] - }, - { - "metric": { "level": "info", "location": "moon" }, - "value": [1645029699, "47"] - } - ] - } -} diff --git a/pkg/tsdb/loki/testdata_metric_dataplane/vector_special_values.json b/pkg/tsdb/loki/testdata_metric_dataplane/vector_special_values.json deleted file mode 100644 index 18979ea3204..00000000000 --- a/pkg/tsdb/loki/testdata_metric_dataplane/vector_special_values.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "status": "success", - "data": { - "resultType": "vector", - "result": [ - { - "metric": { "level": "error", "location": "moon"}, - "value": [1645029699, "+Inf"] - }, - { - "metric": { "level": "info", "location": "moon" }, - "value": [1645029699, "-Inf"] - }, - { - "metric": { "level": "debug", "location": "moon" }, - "value": [1645029699, "NaN"] - } - ] - } -}