Skip to content

Collect inspectedBytes from SearchMetrics#1975

Merged
joe-elliott merged 3 commits intografana:mainfrom
electron0zero:query_bytes
Jan 9, 2023
Merged

Collect inspectedBytes from SearchMetrics#1975
joe-elliott merged 3 commits intografana:mainfrom
electron0zero:query_bytes

Conversation

@electron0zero
Copy link
Copy Markdown
Member

What this PR does:

Which issue(s) this PR fixes:
Fixes #

Checklist

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

Copy link
Copy Markdown
Collaborator

@joe-elliott joe-elliott left a comment

Choose a reason for hiding this comment

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

do we need the metric? the changes to the log line will make it easy to calculate this metric using loki

Comment thread modules/frontend/searchsharding.go Outdated
var (
metricInspectedBytes = promauto.NewHistogram(prometheus.HistogramOpts{
Namespace: "tempo",
Name: "frontend_query_results_metrics_inspected_bytes",
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.

other metrics from this module are named "query_frontend...

e.g. https://github.com/grafana/tempo/blob/main/modules/frontend/retry.go#L18

Copy link
Copy Markdown
Member Author

@electron0zero electron0zero Jan 6, 2023

Choose a reason for hiding this comment

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

will rename the metric.

@electron0zero
Copy link
Copy Markdown
Member Author

do we need the metric? the changes to the log line will make it easy to calculate this metric using loki

I am leaning on the side of keeping the metric for now, and testing it out in dev. we can remove if it's not useful. also OSS users might not have Loki for logs.

@electron0zero electron0zero marked this pull request as ready for review January 6, 2023 17:27
@joe-elliott joe-elliott merged commit 68fa50d into grafana:main Jan 9, 2023
@electron0zero electron0zero deleted the query_bytes branch January 9, 2023 14:50
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.

2 participants