Skip to content

Commit

Permalink
Validate missing configs
Browse files Browse the repository at this point in the history
  • Loading branch information
grobinson-grafana committed Mar 11, 2025
1 parent d9273ba commit e0d675c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/loki/loki.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,15 @@ func (c *Config) Validate() error {
if err := c.LimitsConfig.Validate(); err != nil {
errs = append(errs, errors.Wrap(err, "CONFIG ERROR: invalid limits_config config"))
}
if err := c.IngestLimits.Validate(); err != nil {
errs = append(errs, errors.Wrap(err, "CONFIG ERROR: invalid ingest_limits config"))
}
if err := c.IngestLimitsFrontend.Validate(); err != nil {
errs = append(errs, errors.Wrap(err, "CONFIG ERROR: invalid limits_frontend config"))
}
if err := c.IngestLimitsFrontendClient.Validate(); err != nil {
errs = append(errs, errors.Wrap(err, "CONFIG ERROR: invalid limits_frontend_client config"))
}
if err := c.Worker.Validate(); err != nil {
errs = append(errs, errors.Wrap(err, "CONFIG ERROR: invalid frontend_worker config"))
}
Expand Down

0 comments on commit e0d675c

Please sign in to comment.