TLDR Romario requested help with a graph for GraphQL queries. vishal-signoz provided a sample query and additional resources, while Ankit suggested potential improvements to the documentation and integrations.
vishal-signoz can you help here? Also 2 takeaways:
1. Add the gap in docs
Romario Here’s a sample query for aggregating over avg `duration` grouped by `http.method` You can replace `http.method` with any other attribute. Also remember to use legend and y axis units as shared in screenshot. ```SELECT toStartOfInterval(timestamp, INTERVAL 60 SECOND) AS ts, stringTagMap['http.method'] as `http.method`, avg(durationNano) as value from signoz_traces.distributed_signoz_index_v2 where timestamp > now() - INTERVAL 30 MINUTE AND has(stringTagMap, 'http.method') group by http.method,ts order by http.method ASC,ts```
Also we can connect over a call to help you in creating more charts for graphQL.
Thank you! How can I use the variable from the time select? Use this in my query:
You can find reserved variables for timestamp here:
thanks!
Romario
Fri, 21 Apr 2023 20:02:10 UTCHello, I want to show a graph similar to the traces tab for my graphql queries. I followed the example but it shows me this. Someone have an idea how to achieve this?