Loki: Enable dataplane-compliant metric data by default (#67137)

loki: enable dataplane-compliant metric data by default
This commit is contained in:
Gábor Farkas 2023-04-25 12:46:07 +02:00 committed by GitHub
parent b93f26f29d
commit 9b3ddae424
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 5 deletions

View File

@ -36,6 +36,7 @@ Some stable features are enabled by default. You can disable a stable feature by
| `logsSampleInExplore` | Enables access to the logs sample feature in Explore | Yes |
| `logsContextDatasourceUi` | Allow datasource to provide custom UI for context view | Yes |
| `prometheusDataplane` | Changes responses to from Prometheus to be compliant with the dataplane specification. In particular it sets the numeric Field.Name from 'Value' to the value of the `__name__` label when present. | 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 |
| `useCachingService` | When turned on, the new query and resource caching implementation using a wire service inject will be used in place of the previous middleware implementation | |
@ -101,7 +102,6 @@ Alpha features might be changed or removed without prior notice.
| `prometheusResourceBrowserCache` | Displays browser caching options in Prometheus data source configuration |
| `influxdbBackendMigration` | Query InfluxDB InfluxQL without the proxy |
| `clientTokenRotation` | Replaces the current in-request token rotation so that the client initiates the rotation |
| `lokiMetricDataplane` | Changes responses from Loki to be compliant with the dataplane specification. |
| `disableSSEDataplane` | Disables dataplane specific processing in server side expressions. |
| `alertStateHistoryLokiSecondary` | Enable Grafana to write alert state history to an external Loki instance in addition to Grafana annotations. |
| `alertStateHistoryLokiPrimary` | Enable a remote Loki instance as the primary source for state history reads. |

View File

@ -435,8 +435,9 @@ var (
},
{
Name: "lokiMetricDataplane",
Description: "Changes responses from Loki to be compliant with the dataplane specification.",
State: FeatureStateAlpha,
Description: "Changes metric responses from Loki to be compliant with the dataplane specification.",
State: FeatureStateStable,
Expression: "true",
Owner: grafanaObservabilityLogsSquad,
},
{

View File

@ -63,7 +63,7 @@ prometheusResourceBrowserCache,alpha,@grafana/observability-metrics,false,false,
influxdbBackendMigration,alpha,@grafana/observability-metrics,false,false,false,true
clientTokenRotation,alpha,@grafana/grafana-authnz-team,false,false,false,false
prometheusDataplane,stable,@grafana/observability-metrics,false,false,false,false
lokiMetricDataplane,alpha,@grafana/observability-logs,false,false,false,false
lokiMetricDataplane,stable,@grafana/observability-logs,false,false,false,false
dataplaneFrontendFallback,stable,@grafana/observability-metrics,false,false,false,true
disableSSEDataplane,alpha,@grafana/observability-metrics,false,false,false,false
alertStateHistoryLokiSecondary,alpha,@grafana/alerting-squad,false,false,false,false

1 Name State Owner requiresDevMode RequiresLicense RequiresRestart FrontendOnly
63 influxdbBackendMigration alpha @grafana/observability-metrics false false false true
64 clientTokenRotation alpha @grafana/grafana-authnz-team false false false false
65 prometheusDataplane stable @grafana/observability-metrics false false false false
66 lokiMetricDataplane alpha stable @grafana/observability-logs false false false false
67 dataplaneFrontendFallback stable @grafana/observability-metrics false false false true
68 disableSSEDataplane alpha @grafana/observability-metrics false false false false
69 alertStateHistoryLokiSecondary alpha @grafana/alerting-squad false false false false

View File

@ -264,7 +264,7 @@ const (
FlagPrometheusDataplane = "prometheusDataplane"
// FlagLokiMetricDataplane
// Changes responses from Loki to be compliant with the dataplane specification.
// Changes metric responses from Loki to be compliant with the dataplane specification.
FlagLokiMetricDataplane = "lokiMetricDataplane"
// FlagDataplaneFrontendFallback