From 5f9d87d3a480dbf7f6d770ae6834bbc0bd7dee47 Mon Sep 17 00:00:00 2001 From: Koenraad Verheyden Date: Thu, 7 Dec 2023 14:23:05 +0100 Subject: [PATCH] Don't increment overrides reload failed counter when request was cancelled (#3202) --- modules/overrides/user_configurable_overrides.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/overrides/user_configurable_overrides.go b/modules/overrides/user_configurable_overrides.go index 58c953059b1..13e4493cf81 100644 --- a/modules/overrides/user_configurable_overrides.go +++ b/modules/overrides/user_configurable_overrides.go @@ -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) }