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

chunk lifespan histogram #1958

Merged
merged 2 commits into from
Apr 17, 2020

Conversation

owen-d
Copy link
Member

@owen-d owen-d commented Apr 17, 2020

What

Adds a histogram reporting the average chunk lifespan (end-start) minutes.

Why

This allows us to track the bounds of flushed chunks. Currently we only track how long the reside in ingester memory. Understanding lifespans will help us parallelize more efficiently by reducing the likelihood of multiple queriers downloading the same chunks (with small interval configs). This should work very well with sharding, too.

Issue

closes #1902

Name: "ingester_chunk_bounds_minutes",
Help: "Distribution of chunk end-start durations.",
// 15m to 2h
Buckets: prometheus.LinearBuckets(15, 15, 8),
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if 2h is enough ?

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess if not we will change it let's try.

Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

@cyriltovena cyriltovena merged commit 8b924a5 into grafana:master Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chunk lifespan metric
2 participants