diff --git a/cmd/loki/loki-local-config.yaml b/cmd/loki/loki-local-config.yaml index 24d7a8344a528..a3092d89ad049 100644 --- a/cmd/loki/loki-local-config.yaml +++ b/cmd/loki/loki-local-config.yaml @@ -27,6 +27,3 @@ storage_config: filesystem: directory: /tmp/loki/chunks - -limits_config: - enforce_metric_name: false diff --git a/cmd/loki/main.go b/cmd/loki/main.go index 073e8a0bd88ed..0769a3ec36dee 100644 --- a/cmd/loki/main.go +++ b/cmd/loki/main.go @@ -29,6 +29,9 @@ func main() { flagext.RegisterFlags(&cfg) flag.Parse() + // The flags set the EnforceMetricName to be true, but in loki it _should_ be false. + cfg.LimitsConfig.EnforceMetricName = false + util.InitLogger(&cfg.Server) if configFile != "" { diff --git a/production/helm/loki/values.yaml b/production/helm/loki/values.yaml index c4450402736d2..93739f3e72094 100644 --- a/production/helm/loki/values.yaml +++ b/production/helm/loki/values.yaml @@ -32,8 +32,6 @@ config: # prefix: "" # httpclienttimeout: "20s" # consistentreads: true - limits_config: - enforce_metric_name: false schema_config: configs: - from: 0 diff --git a/production/ksonnet/loki/config.libsonnet b/production/ksonnet/loki/config.libsonnet index 80eb6328009d1..f81b0e72d3558 100644 --- a/production/ksonnet/loki/config.libsonnet +++ b/production/ksonnet/loki/config.libsonnet @@ -29,10 +29,6 @@ grpc_server_max_recv_msg_size: 1024 * 1024 * 64, }, - limits_config: { - enforce_metric_name: false, - }, - ingester: { chunk_idle_period: '15m',