Skip to content

Commit

Permalink
Don't increment overrides reload failed counter when request was canc…
Browse files Browse the repository at this point in the history
…elled (grafana#3202)
  • Loading branch information
Koenraad Verheyden authored Dec 7, 2023
1 parent ed1d975 commit 5f9d87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/overrides/user_configurable_overrides.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (o *userConfigurableOverridesManager) running(ctx context.Context) error {

case <-ticker.C:
err := o.reloadAllTenantLimits(ctx)
if err != nil {
if err != nil && !errors.Is(err, context.Canceled) {
metricUserConfigurableOverridesReloadFailed.Inc()
level.Error(o.logger).Log("msg", "failed to refresh user-configurable config", "err", err)
}
Expand Down

0 comments on commit 5f9d87d

Please sign in to comment.