Debugging and Optimizing Slow Signoz Dashboard
TLDR Div reported slow Signoz dashboard and errors. Srikanth suggested creating a materialized column and adding filters to speed up queries. vishal-signoz confirmed the suggested approach.
1
1
May 10, 2023 (7 months ago)
Div
03:19 AMโข is there any documentation to debug slow issues or optimise the signoz dashboard ?
Div
03:20 AM0.18.3
Srikanth
03:24 AMDiv
03:29 AMDiv
03:34 AMDiv
03:34 AMdocker stats | grep container_id
Srikanth
04:05 AMDiv
04:09 AMnproc
it shows 2, and no specific cpu core setting is done on the docker container, so it has access to the 2 CPU cores from hostAnkit
04:09 AMAnkit
04:10 AMDiv
04:14 AMSrikanth
04:17 AMDiv
04:18 AMdocker stats | grep container_id
and while filtering traces for 1 DaySrikanth
04:19 AMDiv
04:20 AM1- network latency
2 - GC metrics
3- error rates
4- memory usage
Srikanth
04:24 AMstringTagMap
in traces which will get really slow and would lead to timeout for other panels since the gc query is not yet finished. Create a materialized column for it and check again.Div
04:28 AMSrikanth
04:38 AMDiv
04:42 AMwe are sending the GC events via collector tracing service to signoz.
Srikanth
05:03 AMSELECT toStartOfInterval(timestamp, INTERVAL 60 SECOND) AS ts,
avg(durationNano) as value
from signoz_traces.distributed_signoz_index_v2 where (timestamp >= (now() - toIntervalHour(6)))
AND stringTagMap['gc_type']='GC' group by ts order by ts
Ankit
09:06 AMAnkit
09:08 AMmapContains(stringTagMap, 'gc_type')
will make the query faster?vishal-signoz
09:09 AMYes, more filters means less DB rows scanned and it will be faster
vishal-signoz
09:10 AMmapContains(stringTagMap, 'gc_type')
will make the query faster?Yes if usecase is just to check if
gc_type
exists then this way it should be faster.Ankit
09:36 AMgc_type
exists then this way it should be faster.I meant adding
mapContains
along with AND stringTagMap['gc_type']='GC'
vishal-signoz
10:05 AMmapContains
along with AND stringTagMap['gc_type']='GC'
Tested this on a test environment. This doesnโt reduce number of rows scanned and no significant performance changes with
mapContains
filter1
1
SigNoz Community
Indexed 1023 threads (61% resolved)
Similar Threads
Issues with SigNoz Setup and Data Persistence in AKS
Vaibhavi experienced issues setting up SigNoz in AKS, and faced data persistence issues after installation. Srikanth provided guidance on ClickHouse version compatibility and resource requirements, helping Vaibhavi troubleshoot and resolve the issue.
Dashboard Load Issues and Possible Solutions
Al experiences dashboard loading issues since updating to `0.18.1`. Srikanth believes the issue is not version related and suggests examining queries, memory resources, and server distribution for improvements.
Creating Signoz Dashboard for GC Metrics
Div wanted to create a dashboard for GC events and metrics. Ankit and vishal-signoz provided help with Clickhouse queries and template variables.
Services UI Goes Blank Due to Retention Issue with S3 Bucket
oluchi reports issue with services UI going blank after a while. Conversation explores possible reasons, such as S3 connection problems and disk space, but no resolution is reached.
Clickhouse Query Timeout in SigNoz Dashboard
Daniel experienced query timeouts in SigNoz dashboard. vishal-signoz confirmed it's a non-configurable 60s limit, but created a GitHub issue for adding the feature.