quickwit-oss / quickwit-oss/quickwit

metrics ingested_num_bytes double counting?

Open
#2,961 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Rust
Stars
11.7k
Forks
597
Avg merge
2d 22h
Merged PRs (30d)
37

Description

I think we are currently counting ingestion via the ingest api twice, once in quickwit/quickwit-serve/src/ingest_api/rest_handler.rs and once in quickwit/quickwit-ingest-api/src/queue.rs when dequeuing. With changes in #2950 , it's possible we also start double counting documents ingested via otlp

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Trace ingested_num_bytes through quickwit/quickwit-serve/src/ingest_api/rest_handler.rs and quickwit/quickwit-ingest-api/src/queue.rs, then review the ingestion changes in #2950. Confirm whether the ingest API and dequeue paths both count the same bytes, including documents received through OTLP. Done means the metric counts each ingested payload once.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
observability
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.