[go: nahoru, domu]

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

Add histogram for flush size in bytes #777

Merged
merged 1 commit into from
Jun 21, 2021
Merged

Add histogram for flush size in bytes #777

merged 1 commit into from
Jun 21, 2021

Conversation

bboreham
Copy link
Contributor

What this PR does:

Add a histogram for size paralleling tempo_ingester_flush_duration_seconds.
This improves the observability of the ingester write path.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated

This improves the observability of the ingester write path.
Copy link
Member
@mapno mapno left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -275,6 +281,7 @@ func (i *Ingester) handleFlush(userID string, blockID uuid.UUID) (retry bool, er
start := time.Now()
err = i.store.WriteBlock(ctx, block)
metricFlushDuration.Observe(time.Since(start).Seconds())
metricFlushSize.Observe(float64(block.BlockMeta().Size))
Copy link
Member

Choose a reason for hiding this comment

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

this is fine, but keep in mind that this is the trace data only. it does not take into account the bloom filters, meta or index.

these other objects are small in comparison, but non-zero.

@joe-elliott joe-elliott merged commit 8783474 into main Jun 21, 2021
@joe-elliott joe-elliott deleted the flush-size-histo branch June 21, 2021 15:24
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.

3 participants