diff --git a/cmd/loki/loki-local-config.yaml b/cmd/loki/loki-local-config.yaml index 24d7a8344a5286d418473cecbe6f0495469fb398..a3092d89ad0492655c1957baa1370e25b50326c6 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 073e8a0bd88edfcd2e4917e413b01f64f5cec43c..0769a3ec36deed05cd20d6fa6b96054865edb218 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 c4450402736d26d174a127ab491b3be1936dc79a..93739f3e72094f4b57f73d8a1638dbbc77adc2ae 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 80eb6328009d1c331b48a8ea1a7ecc3489e9c1c4..f81b0e72d35580fde1fc1cf9a8b476e3004a980e 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',