Skip to content

Commit 35f216c

Browse files
committed
wip
1 parent 9d14915 commit 35f216c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cmd/thanos/receive.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ func runReceive(
419419
}
420420
}
421421

422-
level.Debug(logger).Log("msg", "setting up periodic tenant pruning")
422+
level.Error(logger).Log("msg", "setting up periodic tenant pruning")
423423
{
424424
ctx, cancel := context.WithCancel(context.Background())
425425
g.Add(func() error {
@@ -440,10 +440,10 @@ func runReceive(
440440
})
441441
}
442442

443-
level.Debug(logger).Log("msg", "setting up periodic top metrics collection")
444-
topMetricsSeriesCount := promauto.With(reg).NewGaugeVec(prometheus.GaugeOpts{
445-
Name: "thanos_receive_top_metrics_series_count",
446-
Help: "Number of series in top metrics.",
443+
level.Error(logger).Log("msg", "setting up periodic top metrics collection")
444+
topMetricNumSeries := promauto.With(reg).NewGaugeVec(prometheus.GaugeOpts{
445+
Name: "thanos_receive_top_metric_num_series",
446+
Help: "Number of series in top metric.",
447447
}, []string{"tenant", "metric_name"})
448448
{
449449
ctx, cancel := context.WithCancel(context.Background())
@@ -453,7 +453,7 @@ func runReceive(
453453
for _, ts := range dbs.TenantStats(10, labels.MetricName) {
454454
for _, ms := range ts.Stats.IndexPostingStats.CardinalityMetricsStats {
455455
level.Error(logger).Log("msg", "tenant", ts.Tenant, "metric_name", ms.Name, "count", ms.Count)
456-
topMetricsSeriesCount.WithLabelValues(ts.Tenant, ms.Name).Set(float64(ms.Count))
456+
topMetricNumSeries.WithLabelValues(ts.Tenant, ms.Name).Set(float64(ms.Count))
457457
}
458458
}
459459
return nil

0 commit comments

Comments
 (0)