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

metrics: add native histogram definitions to histograms #108

Merged
merged 2 commits into from
Mar 4, 2024

Conversation

krajorama
Copy link
Contributor

@krajorama krajorama commented Mar 4, 2024

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Fixes: #107

Add exponential bucket native histograms for
objstore_bucket_operation_duration_seconds
objstore_bucket_operation_transferred_bytes
The resolution, maximum buckets, reset time can be changed later without migration as PromQL is able to handle those.

For transferred bytes, the exponential buckets align perfectly with the previous exponential bucket definitions.

Verification

Grafana Mimir depends on objstore, built Mimir from the PR branch and checked that the new metrics are scraped.

Metrics explorer:
image

Heatmap classic for objstore_bucket_operation_duration_seconds
image

Heatmap native for objstore_bucket_operation_duration_seconds
image

Heatmap classic for objstore_bucket_operation_transferred_bytes
image

Heatmap native for objstore_bucket_operation_transferred_bytes
image

Made with mimir@0d171f9f9e0643928c7e5b358d57ab6fa33e28d5 + patched objstore
Grafana v10.1.5 (849c612fcb). Using docker compose

Add exponential bucket native histograms for
objstore_bucket_operation_transferred_bytes
objstore_bucket_operation_duration_seconds
The resolution, maximum buckets, reset time can be changed later without
migration as PromQL is able to handle those.

For transferred bytes, the exponential buckets align perfectly with the
previous exponential bucket definitions.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
@krajorama krajorama marked this pull request as draft March 4, 2024 10:41
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
@krajorama krajorama marked this pull request as ready for review March 4, 2024 11:21
Copy link
Contributor

@fpetkovski fpetkovski left a comment

Choose a reason for hiding this comment

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

Thanks, lgtm 👍

@fpetkovski fpetkovski merged commit ab7ba39 into thanos-io:main Mar 4, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add native histogram version of objstore_bucket_operation_duration_seconds
2 participants