Skip to content

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

Merged
mdisibio merged 4 commits intografana:mainfrom
mdisibio:traceql-metrics
May 4, 2023
Merged

Arbitrary span duration metrics from any TraceQL-compatible block#2418
mdisibio merged 4 commits intografana:mainfrom
mdisibio:traceql-metrics

Conversation

@mdisibio
Copy link
Copy Markdown
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
Copy Markdown
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