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

Consistent chunk metrics #2534

Merged
merged 1 commit into from
Aug 21, 2020
Merged

Conversation

owen-d
Copy link
Member

@owen-d owen-d commented Aug 21, 2020

This refactors the initial implementation of chunk metrics and attempts to make them consistent and more usable by queries/dashboards wishing to show things like:

  • discarded refs %
  • discarded series %
  • discarded chunks %
  • discarded chunks per batch histograms
  • post-filter refs %
  • post-filter series %
  • post-filter chunks %
  • post-fillter chunks ber patch histograms (effective batch size)

Copy link
Collaborator

@slim-bean slim-bean left a comment

Choose a reason for hiding this comment

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

LGTM!

@codecov-commenter
Copy link

Codecov Report

Merging #2534 into master will decrease coverage by 0.10%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2534      +/-   ##
==========================================
- Coverage   63.68%   63.57%   -0.11%     
==========================================
  Files         163      163              
  Lines       14305    14310       +5     
==========================================
- Hits         9110     9098      -12     
- Misses       4481     4499      +18     
+ Partials      714      713       -1     
Impacted Files Coverage Δ
pkg/storage/batch.go 85.98% <100.00%> (+0.19%) ⬆️
pkg/storage/store.go 67.39% <100.00%> (ø)
pkg/promtail/positions/positions.go 46.49% <0.00%> (-13.16%) ⬇️
pkg/logql/evaluator.go 92.47% <0.00%> (-0.41%) ⬇️

@owen-d owen-d merged commit 6fe414e into grafana:master Aug 21, 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.

None yet

3 participants