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 querier metrics for requests executed #3524

Merged
merged 4 commits into from
Mar 27, 2024

Conversation

electron0zero
Copy link
Member

@electron0zero electron0zero commented Mar 27, 2024

What this PR does:

Adds two metrics to provide observability into read path and query processing

  1. tempo_querier_worker_request_executed_total is a counter, measuring the requests executed by the querier
  2. log the concurrency of a querier

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]

@electron0zero electron0zero changed the title Add metrics for concurrency and querier requests executed Add querier metrics for concurrency and requests executed Mar 27, 2024
modules/querier/worker/worker.go Outdated Show resolved Hide resolved
@@ -27,6 +29,12 @@ var processorBackoffConfig = backoff.Config{
MaxBackoff: 1 * time.Second,
}

var metricWorkerRequests = promauto.NewCounter(prometheus.CounterOpts{
Copy link
Member

Choose a reason for hiding this comment

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

i don't mind this but do you expect it to be significantly different than the querier request rates?

Copy link
Member Author

Choose a reason for hiding this comment

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

yup, I think request rate is for batches, and this is at job level (single request). we can rate the counter to capture how much work each querier is doing...

@electron0zero electron0zero changed the title Add querier metrics for concurrency and requests executed Add querier metrics for requests executed Mar 27, 2024
@electron0zero electron0zero merged commit 6cafca9 into grafana:main Mar 27, 2024
14 checks passed
@electron0zero electron0zero deleted the add_querier_metrics branch March 27, 2024 15:15
@electron0zero electron0zero self-assigned this Mar 27, 2024
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