Skip to content
Snippets Groups Projects
Unverified Commit 199746a1 authored by Goutham Veeramachaneni's avatar Goutham Veeramachaneni Committed by GitHub
Browse files

Make sure the default for EnforceMetricName is :white_check_mark: (#518)

parent b85609e5
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,3 @@ storage_config: ...@@ -27,6 +27,3 @@ storage_config:
filesystem: filesystem:
directory: /tmp/loki/chunks directory: /tmp/loki/chunks
limits_config:
enforce_metric_name: false
...@@ -29,6 +29,9 @@ func main() { ...@@ -29,6 +29,9 @@ func main() {
flagext.RegisterFlags(&cfg) flagext.RegisterFlags(&cfg)
flag.Parse() 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) util.InitLogger(&cfg.Server)
if configFile != "" { if configFile != "" {
......
...@@ -32,8 +32,6 @@ config: ...@@ -32,8 +32,6 @@ config:
# prefix: "" # prefix: ""
# httpclienttimeout: "20s" # httpclienttimeout: "20s"
# consistentreads: true # consistentreads: true
limits_config:
enforce_metric_name: false
schema_config: schema_config:
configs: configs:
- from: 0 - from: 0
......
...@@ -29,10 +29,6 @@ ...@@ -29,10 +29,6 @@
grpc_server_max_recv_msg_size: 1024 * 1024 * 64, grpc_server_max_recv_msg_size: 1024 * 1024 * 64,
}, },
limits_config: {
enforce_metric_name: false,
},
ingester: { ingester: {
chunk_idle_period: '15m', chunk_idle_period: '15m',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment