grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
23.97k stars 3.46k forks source link

[3.3.0] loki-local-config.yaml#L41 causing startup failure #15039

Open tgurr opened 1 day ago

tgurr commented 1 day ago

Describe the bug When trying to start loki 3.3.0 with the default loki-local-config.yaml from the release/tagged 3.3.0 tarball loki fails to start with:

Nov 20 16:06:21 localhost loki[897933]: failed parsing config: /etc/loki/config.yml: yaml: unmarshal errors:
Nov 20 16:06:21 localhost loki[897933]:   line 41: field enabled not found in type aggregation.Config. Use `-config.expand-env=true` flag if you want to expand environment variables in your config file

To offending line is https://github.com/grafana/loki/blob/v3.3.0/cmd/loki/loki-local-config.yaml#L41, after removing it loki 3.3.0 starts up fine.

To Reproduce Steps to reproduce the behavior:

  1. Use loki-local-config.yaml shipped with loki 3.3.0
  2. Try to start loki 3.3.0

Expected behavior Service running

Environment:

Screenshots, Promtail config, or terminal output https://github.com/grafana/loki/blob/v3.3.0/cmd/loki/loki-local-config.yaml#L41