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

[tempo-distributed] Querier.queryRangeRecent: empty ring error with rate function #3566

Open
vaibhhavv opened this issue Feb 11, 2025 · 1 comment

Comments

@vaibhhavv
Copy link

vaibhhavv commented Feb 11, 2025

Hi Team,
I'm using Tempo Version: 2.6.0, Tempo-Distributed Helm Chart Version: 1.21.1

When I query traces on grafana, I get the output.

Image

But when I run some queries with the rate and count_over_time function, it shows a weird error. The errors tell it's the ring issue, but it's not because when you run the query without these functions, it works perfectly.

Image

Image

Is it the intended behaviour, or am I doing it wrong?

From here, I got to know we have to enable the metrics-generator and enable a few configurations. But we are generating metrics from traces from open telemetry processors and do not want to use metrics-generator but want to use functions like rate() etc to find how many spans are success and how many are failed.

Do we have any suggestions for this use case?

@meSATYA
Copy link

meSATYA commented Feb 21, 2025

From the documentation, it appears like to run the rate or count_over_time or any TraceQL metric functions, metrics generator should be enabled.

https://grafana.com/docs/tempo/latest/traceql/metrics-queries/solve-problems-metrics-queries/#how-the-query-looks-in-promql
https://grafana.com/docs/tempo/latest/traceql/metrics-queries/solve-problems-metrics-queries/#how-the-query-looks-in-traceql

From the above links, it can be inferred that the TraceQL metric function uses "traces_spanmetrics_calls_total" metric in the backend when we use this functions in TraceQL.

The developers can share more insights on this.

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

No branches or pull requests

2 participants