Skip to content

Commit

Permalink
fix duplicated counting
Browse files Browse the repository at this point in the history
Signed-off-by: Yi Jin <[email protected]>
  • Loading branch information
jnyi committed Jun 4, 2024
1 parent aad22e0 commit 49b78fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/receive/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,10 @@ func (h *Handler) gatherWriteStats(writes ...map[endpointReplica]map[string]trac

for _, write := range writes {
for er := range write {
if er.replica != 0 {
// TODO: this is a temporary solution to avoid duplicated counting
continue
}
for tenant, series := range write[er] {
samples := 0

Expand Down

0 comments on commit 49b78fc

Please sign in to comment.