Skip to content

Add histogram for flush size in bytes#777

Merged
joe-elliott merged 1 commit intomainfrom
flush-size-histo
Jun 21, 2021
Merged

Add histogram for flush size in bytes#777
joe-elliott merged 1 commit intomainfrom
flush-size-histo

Conversation

@bboreham
Copy link
Copy Markdown
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
Copy Markdown
Contributor

@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!

Comment thread modules/ingester/flush.go
start := time.Now()
err = i.store.WriteBlock(ctx, block)
metricFlushDuration.Observe(time.Since(start).Seconds())
metricFlushSize.Observe(float64(block.BlockMeta().Size))
Copy link
Copy Markdown
Collaborator

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