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

[TraceQL] Add topk/bottomk to TraceQL Metrics #4217

Open
joe-elliott opened this issue Oct 22, 2024 · 0 comments
Open

[TraceQL] Add topk/bottomk to TraceQL Metrics #4217

joe-elliott opened this issue Oct 22, 2024 · 0 comments
Assignees
Labels

Comments

@joe-elliott
Copy link
Member

TraceQL metrics brings the promise of querying infinite cardinality, but in a practical sense both Tempo and Grafana suffer once we start returning series in the 10s of thousands. It can also be quite difficult to parse this amount of information looking at a time series graph.

Add topk/bottomk style functionality to the language to give users control over cardinality and return the series they are most interested in. Syntax would look something like:

{} | rate() by (span.client_ip) | topk(10)
@ie-pham ie-pham self-assigned this Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Next
Development

No branches or pull requests

2 participants