Skip to content

Commit 96a984f

Browse files
committed
fix duplicated counting
Signed-off-by: Yi Jin <[email protected]>
1 parent aad22e0 commit 96a984f

File tree

2 files changed

+105
-100
lines changed

2 files changed

+105
-100
lines changed

internal/cortex/querier/queryrange/queryrange.pb.go

Lines changed: 101 additions & 100 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/receive/handler.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,10 @@ func (h *Handler) gatherWriteStats(writes ...map[endpointReplica]map[string]trac
690690

691691
for _, write := range writes {
692692
for er := range write {
693+
if er.replica != 0 {
694+
// TODO: this is a temporary solution to avoid duplicated counting
695+
continue
696+
}
693697
for tenant, series := range write[er] {
694698
samples := 0
695699

0 commit comments

Comments
 (0)