Skip to content

Commit f1b1919

Browse files
authored
only do top metric in db (#101)
2 parents efe1c52 + 3ab5c83 commit f1b1919

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/thanos/receive.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,8 +456,8 @@ func runReceive(
456456
})
457457
}
458458

459-
level.Debug(logger).Log("msg", "setting up periodic top metrics collection")
460-
{
459+
if receiveMode == receive.IngestorOnly {
460+
level.Debug(logger).Log("msg", "setting up periodic top metrics collection")
461461
topMetricNumSeries := promauto.With(reg).NewGaugeVec(prometheus.GaugeOpts{
462462
Name: "thanos_receive_top_metric_num_series",
463463
Help: "Number of series in top metric.",

0 commit comments

Comments
 (0)