diff --git a/cmd/thanos/query.go b/cmd/thanos/query.go index e1d7be2e999..3bed633de32 100644 --- a/cmd/thanos/query.go +++ b/cmd/thanos/query.go @@ -556,7 +556,7 @@ func removeDuplicateStoreSpecs(logger log.Logger, duplicatedStores prometheus.Co for _, spec := range specs { addr := spec.Addr() if _, ok := set[addr]; ok { - level.Warn(logger).Log("msg", "Duplicate store address is provided - %v", addr) + level.Warn(logger).Log("msg", "Duplicate store address is provided", "addr", addr) duplicatedStores.Inc() } set[addr] = spec diff --git a/cmd/thanos/rule.go b/cmd/thanos/rule.go index 1078c49bd46..58916bd0a41 100644 --- a/cmd/thanos/rule.go +++ b/cmd/thanos/rule.go @@ -721,7 +721,7 @@ func removeDuplicateQueryEndpoints(logger log.Logger, duplicatedQueriers prometh deduplicated := make([]*url.URL, 0, len(urls)) for _, u := range urls { if _, ok := set[u.String()]; ok { - level.Warn(logger).Log("msg", "duplicate query address is provided - %v", u.String()) + level.Warn(logger).Log("msg", "duplicate query address is provided", "addr", u.String()) duplicatedQueriers.Inc() continue }