Skip to content

Capture and update search metrics for TraceQL#2087

Merged
joe-elliott merged 12 commits intografana:mainfrom
electron0zero:traceql_metrics
Apr 11, 2023
Merged

Capture and update search metrics for TraceQL#2087
joe-elliott merged 12 commits intografana:mainfrom
electron0zero:traceql_metrics

Conversation

@electron0zero
Copy link
Copy Markdown
Member

@electron0zero electron0zero commented Feb 8, 2023

What this PR does:

This PR makes following changes:

why?
InspectedBytes metric from in SearchMetrics is used to compute throughput and SLO metrics (added in #2008 ), To accurately compute throughput, we need accurate size of data read.

Which issue(s) this PR fixes:
Fixes #2086

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@electron0zero electron0zero marked this pull request as ready for review February 9, 2023 08:47
Comment thread tempodb/encoding/vparquet/wal_block.go Outdated
Comment thread tempodb/encoding/vparquet/wal_block.go
Results: &mergeSpansetIterator{
iters: iters,
},
Bytes: func() uint64 {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

cc @stoewer because I am making same changes in vparquet2 format as well.

@electron0zero electron0zero requested a review from mdisibio April 6, 2023 19:58
Copy link
Copy Markdown
Contributor

@mdisibio mdisibio left a comment

Choose a reason for hiding this comment

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

The wal metrics lgtm, but I would like @stoewer to review the vparquet2 DurationNanos change.

Comment thread tempodb/encoding/vparquet2/block_search.go Outdated
Copy link
Copy Markdown
Contributor

@stoewer stoewer left a comment

Choose a reason for hiding this comment

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

The vParquet2 changes look good to me

I still added a couple of minor suggestions

Comment thread tempodb/encoding/vparquet/readers.go Outdated
Comment thread tempodb/encoding/vparquet/readers.go Outdated
Comment thread tempodb/encoding/vparquet/wal_block.go Outdated
Copy link
Copy Markdown
Contributor

@stoewer stoewer left a comment

Choose a reason for hiding this comment

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

LGTM

@joe-elliott joe-elliott merged commit c0a0d4b into grafana:main Apr 11, 2023
@electron0zero electron0zero deleted the traceql_metrics branch April 11, 2023 18:17
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.

SearchMetrics is always empty for TraceQL queries

4 participants