Skip to content

Commit

Permalink
Fix a top metrics related error log
Browse files Browse the repository at this point in the history
  • Loading branch information
hczhu-db committed Sep 26, 2024
1 parent 478bc5b commit a60e9ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/thanos/receive.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ func runReceive(
ctx, cancel := context.WithCancel(context.Background())
g.Add(func() error {
return runutil.Repeat(conf.topMetricsUpdateInterval, ctx.Done(), func() error {
level.Error(logger).Log("msg", "getting top metrics")
level.Info(logger).Log("msg", "getting top metrics")
for _, ts := range dbs.TenantStats(conf.numTopMetricsPerTenant, labels.MetricName) {
for _, ms := range ts.Stats.IndexPostingStats.CardinalityMetricsStats {
if ms.Count >= conf.topMetricsMinimumCardinality {
Expand Down

0 comments on commit a60e9ad

Please sign in to comment.