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

Arbitrary span duration metrics from any TraceQL-compatible block #2418

Merged
merged 4 commits into from
May 4, 2023

Conversation

mdisibio
Copy link
Contributor

@mdisibio mdisibio commented May 1, 2023

What this PR does:
This PR is part of a wider initiative to perform on-demand metrics calculations. It adds a new package traceqlmetrics which can get the metrics from any SpansetFetcher given a traceql query and an identifier to group on. I.e. calculate the duration p90 for the query { .service.name="a" && .cluster="prod"} grouped by span.customer_id. API and integration with #2368 will follow in a separate PR.

Which issue(s) this PR fixes:
Fixes n/a

Checklist

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

@mdisibio mdisibio requested a review from electron0zero as a code owner May 3, 2023 19:25
Copy link
Contributor

@zalegrala zalegrala left a comment

Choose a reason for hiding this comment

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

Looks like a great start.

@mdisibio mdisibio merged commit 3f562c6 into grafana:main May 4, 2023
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