Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ingest storage: record latency in replaying records #8176

Merged
merged 2 commits into from
May 24, 2024

Conversation

dimitarvdimitrov
Copy link
Contributor

What this PR does

I'm scoping work related to improving the replay speed in the new ingest storage. This PR adds some metrics which show where time is spent between processing batches and fetching them from kafka.

Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
@dimitarvdimitrov dimitarvdimitrov merged commit 8727c7f into main May 24, 2024
31 checks passed
@dimitarvdimitrov dimitarvdimitrov deleted the dimitar/ingester/consume-latency branch May 24, 2024 12:30
}),
consumeLatency: promauto.With(reg).NewHistogram(prometheus.HistogramOpts{
Name: "cortex_ingest_storage_reader_consume_duration_seconds",
Help: "How long a request spent consuming a record batch from Kafka.",
Copy link
Collaborator

@pracucci pracucci May 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nit] Have you considered rename "request" to "batch" (or something similar) and maybe renaming the metric too? What we track here is the consumption of a batch of fetches.

Same comment applies to fetchWaitDuration metric

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I opened #8217

narqo pushed a commit to narqo/grafana-mimir that referenced this pull request Jun 6, 2024
Signed-off-by: Dimitar Dimitrov <dimitar.dimitrov@grafana.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants