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

Collect inspectedBytes from SearchMetrics #1975

Merged
merged 3 commits into from Jan 9, 2023

Conversation

electron0zero
Copy link
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
Member

@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

var (
metricInspectedBytes = promauto.NewHistogram(prometheus.HistogramOpts{
Namespace: "tempo",
Name: "frontend_query_results_metrics_inspected_bytes",
Copy link
Member

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
Member Author

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
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.

None yet

2 participants