Skip to content

Commit aa0e491

Browse files
committed
revert "dump metrics only in RouterOnly"
1 parent a4f1063 commit aa0e491

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pkg/receive/handler.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -627,9 +627,6 @@ func (h *Handler) receiveHTTP(w http.ResponseWriter, r *http.Request) {
627627
h.writeTimeseriesTotal.WithLabelValues(strconv.Itoa(responseStatusCode), tenant).Observe(float64(stats.timeseries))
628628
h.writeSamplesTotal.WithLabelValues(strconv.Itoa(responseStatusCode), tenant).Observe(float64(stats.totalSamples))
629629
}
630-
if h.receiverMode != RouterOnly {
631-
return
632-
}
633630
for _, ts := range wreq.Timeseries {
634631
if lat := secondsSinceOldestSample(ts); lat > 0 {
635632
h.writeE2eLatency.WithLabelValues(strconv.Itoa(responseStatusCode), tenantHTTP).Observe(secondsSinceOldestSample(ts))

0 commit comments

Comments
 (0)