-
Hi all, For my BitTorrent tracker, I have a trace for every HTTP request, which contains a top level span with attributes such as:
I was wondering if via TraceQL it is possible to do some query like I'm able to use TraceQL get something like the following:
If I had this data now in SQL, I could trivially do some interesting queries to get stats I want. What is the recommended way to do this kinda stuff from TraceQL? I am using Grafana + Tempo. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @ckcr4lyf. You should be able to get this information with TraceQL metrics. Example: For the SQL query you've shared, something like |
Beta Was this translation helpful? Give feedback.
It's a limitation of the explore view for Tempo, yes.
With a panel you'll be able to get a table view. I was able to get this with a few transformations:
and the query
{} | count_over_time() by (resource.k8s.container.name)
.TraceQL metrics is not purposely designed to be used like this, so you may encounter a few rough edges. It's great to see Tempo being used in more ways we initially thought of when building it :)