loki: generate dataplane-compliant logs dataframes (behind feature flag) (#69909)

* add feature flag

* prepare tests

* enable dataplane-format in loki-backend
This commit is contained in:
Gábor Farkas
2023-07-13 09:58:00 +02:00
committed by GitHub
parent 9990d5025d
commit e045860fbf
57 changed files with 4435 additions and 23 deletions

View File

@@ -411,6 +411,12 @@ var (
Expression: "true",
Owner: grafanaObservabilityLogsSquad,
},
{
Name: "lokiLogsDataplane",
Description: "Changes logs responses from Loki to be compliant with the dataplane specification.",
Stage: FeatureStageExperimental,
Owner: grafanaObservabilityLogsSquad,
},
{
Name: "dataplaneFrontendFallback",
Description: "Support dataplane contract field name change for transformations and field name matchers where the name is different",

View File

@@ -59,6 +59,7 @@ influxdbBackendMigration,experimental,@grafana/observability-metrics,false,false
clientTokenRotation,experimental,@grafana/grafana-authnz-team,false,false,false,false
prometheusDataplane,GA,@grafana/observability-metrics,false,false,false,false
lokiMetricDataplane,GA,@grafana/observability-logs,false,false,false,false
lokiLogsDataplane,experimental,@grafana/observability-logs,false,false,false,false
dataplaneFrontendFallback,GA,@grafana/observability-metrics,false,false,false,true
disableSSEDataplane,experimental,@grafana/observability-metrics,false,false,false,false
alertStateHistoryLokiSecondary,experimental,@grafana/alerting-squad,false,false,false,false
1 Name Stage Owner requiresDevMode RequiresLicense RequiresRestart FrontendOnly
59 clientTokenRotation experimental @grafana/grafana-authnz-team false false false false
60 prometheusDataplane GA @grafana/observability-metrics false false false false
61 lokiMetricDataplane GA @grafana/observability-logs false false false false
62 lokiLogsDataplane experimental @grafana/observability-logs false false false false
63 dataplaneFrontendFallback GA @grafana/observability-metrics false false false true
64 disableSSEDataplane experimental @grafana/observability-metrics false false false false
65 alertStateHistoryLokiSecondary experimental @grafana/alerting-squad false false false false

View File

@@ -247,6 +247,10 @@ const (
// 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"
// FlagDataplaneFrontendFallback
// Support dataplane contract field name change for transformations and field name matchers where the name is different
FlagDataplaneFrontendFallback = "dataplaneFrontendFallback"