Search before asking
Version
Environment
- Doris Version: 4.0.2
- Deployment Mode: Compute-storage decoupled
- Operator: Doris Disaggregated Operator on Kubernetes (EKS)
- Compute Groups: Multiple (confirmed on all BE pods across all compute groups)
- Prometheus Version: [3.9.1]
What's Wrong?
The BE /metrics endpoint emits doris_be_compaction_task_state_total twice
for each label combination (type="base" and type="cumulative") in a single
scrape, resulting in 4 duplicate samples per scrape cycle.
This causes Prometheus to log the following warning on every scrape interval:
level=WARN source=scrape.go:1949
msg="Error on ingesting samples with different value but same timestamp"
component="scrape manager"
num_dropped=4
What You Expected?
Expected output:
# TYPE doris_be_compaction_task_state_total counter
doris_be_compaction_task_state_total{type="cumulative"} 0
doris_be_compaction_task_state_total{type="base"} 0
### How to Reproduce?
Curl any BE pod metrics endpoint directly:
```bash
curl -s http://<be-pod-ip>:8040/metrics | grep compaction_task_state_total
Actual output (all BE pods):
# TYPE doris_be_compaction_task_state_total counter
doris_be_compaction_task_state_total{type="cumulative"} 0
doris_be_compaction_task_state_total{type="cumulative"} 0
doris_be_compaction_task_state_total{type="base"} 0
doris_be_compaction_task_state_total{type="base"} 0
Anything Else?
Additional Notes
The metric appears to be registered twice in the BE metrics registry.
Likely caused by duplicate registration of the same counter in the compaction
subsystem. Worth checking whether CompactionTaskState is registered in
multiple places during BE initialization.
Are you willing to submit PR?
Code of Conduct
Search before asking
Version
Environment
What's Wrong?
The BE
/metricsendpoint emitsdoris_be_compaction_task_state_totaltwicefor each label combination (
type="base"andtype="cumulative") in a singlescrape, resulting in 4 duplicate samples per scrape cycle.
This causes Prometheus to log the following warning on every scrape interval:
What You Expected?
Expected output:
Actual output (all BE pods):
Anything Else?
Additional Notes
The metric appears to be registered twice in the BE metrics registry.
Likely caused by duplicate registration of the same counter in the compaction
subsystem. Worth checking whether
CompactionTaskStateis registered inmultiple places during BE initialization.
Are you willing to submit PR?
Code of Conduct