Frontend Dashboard Metrics Not Displaying Due to Timezone Issue
TLDR James experienced missing metric graphs on their dashboard. Srikanth helped troubleshoot, discovering a timezone discrepancy that caused the issue.
Apr 11, 2023 (8 months ago)
James
03:35 AMRestarting the service doesnt help, any idea on how to troubleshoot this?
Some info:
signoz version: v0.15.0
running via docker-compose
vishal-signoz
05:11 AMBy default retention is set to 7 days for logs and traces, and 30 days for metrics.
James
11:15 AMvishal-signoz
11:31 AMJames
11:33 AMApr 13, 2023 (8 months ago)
James
08:59 PM{
"start": 1681421689000,
"end": 1681422589000,
"step": 60,
"variables": {
"SIGNOZ_START_TIME": 1681421689000,
"SIGNOZ_END_TIME": 1681422589000
},
"dataSource": 1,
"compositeMetricQuery": {
"queryType": 1,
"panelType": 1,
"builderQueries": {
"A": {
"queryName": "A",
"aggregateOperator": 18,
"metricName": "scalper_service_down",
"tagFilters": {
"items": [],
"op": "AND"
},
"groupBy": [
"profile"
],
"expression": "A",
"disabled": false
}
}
}
}
resp:
{
"status": "success",
"data": {
"resultType": "matrix",
"result": null
}
}
query service logs from request:
2023-04-13T20:52:16.269Z INFO app/server.go:236 /api/v1/version timeTaken: 155.978µs
2023-04-13T20:52:16.271Z INFO app/server.go:236 /api/v1/featureFlags timeTaken: 269.238µs
2023-04-13T20:52:16.323Z INFO app/server.go:236 /api/v1/configs timeTaken: 45.034907ms
2023-04-13T20:52:16.449Z INFO app/server.go:236 /api/v1/dashboards/{uuid} timeTaken: 1.375588ms
2023-04-13T20:52:16.640Z INFO api/metrics.go:21 CustomMetricsFunction feature is not enabled in this plan
2023-04-13T20:52:16.640Z INFO clickhouseReader/reader.go:3071 Executing metric result query: SELECT profile, ts, sum(value) as value FROM (SELECT profile, ts, runningDifference(value)/runningDifference(ts) as value FROM(SELECT fingerprint, profile, toStartOfInterval(toDateTime(intDiv(timestamp_ms, 1000)), INTERVAL 60 SECOND) as ts, max(value) as value FROM signoz_metrics.distributed_samples_v2 GLOBAL INNER JOIN (SELECT JSONExtractString(labels, 'profile') as profile, fingerprint FROM signoz_metrics.distributed_time_series_v2 WHERE metric_name = 'scalper_service_down') as filtered_time_series USING fingerprint WHERE metric_name = 'scalper_service_down' AND timestamp_ms >= 1681421689000 AND timestamp_ms <= 1681422540000 GROUP BY fingerprint, profile,ts ORDER BY fingerprint, profile, ts) OFFSET 1) GROUP BY profile,ts ORDER BY profile, ts
so im noticing the following: "CustomMetricsFunction feature is not enabled in this plan"
Looking at the plans, nothing about this is mentioned that posting custom metrics premium feature. Did something recently change?
James
09:00 PMApr 14, 2023 (8 months ago)
vishal-signoz
04:19 AMSrikanth
04:41 AMJames
07:38 AMSrikanth
07:40 AMAre these alerts on the same data or different metrics?
James
07:40 AMSrikanth
07:44 AMJames
07:49 AMJames
07:49 AMSrikanth
07:54 AMYou mentioned metrics are being stored. So by that statement I assumed you have confirmed that data exists in DB.
> My frontend dashboard stopped displaying all metric graphs / trace graphs after a certain point in time
You mentioned this in your original post. I suspect your applications have stopped sending data or there is some issue from SDK when sending data.
> I am not sure how alerts can be triggered properly on all the metrics I am posting without being stored properly (edited)
Alerts use the exact same queries and database. It would be very surprising for me if the same kind of query works in an alert but not in the dashboard. Alerts don’t break if the query returns no data. Can you share some of these alerts where dashboard doesn’t work but alert works.
James
08:06 AM2023-04-14T08:00:10.196Z DEBUG rules/thresholdRule.go:625 ruleid:%!(EXTRA string=14, string= runQueries:, map[string]string=map[A:SELECT profile, ts, sum(value) as value FROM (SELECT profile, ts, runningDifference(value)/runningDifference(ts) as value FROM(SELECT fingerprint, profile, toStartOfInterval(toDateTime(intDiv(timestamp_ms, 1000)), INTERVAL 30 SECOND) as ts, max(value) as value FROM signoz_metrics.distributed_samples_v2 GLOBAL INNER JOIN (SELECT JSONExtractString(labels, 'profile') as profile, fingerprint FROM signoz_metrics.distributed_time_series_v2 WHERE metric_name = 'scalper_service_down' AND JSONExtractString(labels, 'profile') NOT IN ['gerald']) as filtered_time_series USING fingerprint WHERE metric_name = 'scalper_service_down' AND timestamp_ms >= 1681458310194 AND timestamp_ms <= 1681459210194 GROUP BY fingerprint, profile,ts ORDER BY fingerprint, profile, ts) OFFSET 1) GROUP BY profile,ts ORDER BY profile, ts])
2023-04-14T08:00:10.196Z DEBUG rules/thresholdRule.go:643 ruleId: %!(EXTRA string=14, string= result query label:, string=A)
2023-04-14T08:00:10.229Z DEBUG rules/thresholdRule.go:525 ruleid:%!(EXTRA string=14, string= resultmap(potential alerts):, int=5)
2023-04-14T08:00:10.229Z DEBUG rules/thresholdRule.go:326 target:%!(EXTRA float64=0, float64=0.001)
2023-04-14T08:00:10.229Z DEBUG rules/thresholdRule.go:326 target:%!(EXTRA float64=0, float64=0.001)
2023-04-14T08:00:10.229Z DEBUG rules/thresholdRule.go:326 target:%!(EXTRA float64=0, float64=0.001)
2023-04-14T08:00:10.229Z DEBUG rules/thresholdRule.go:326 target:%!(EXTRA float64=1, float64=0.001)
2023-04-14T08:00:10.229Z DEBUG rules/thresholdRule.go:326 target:%!(EXTRA float64=0, float64=0.001)
2023-04-14T08:00:10.229Z DEBUG rules/thresholdRule.go:534 ruleid:%!(EXTRA string=14, string= result (found alerts):, int=1)
2023-04-14T08:00:10.229Z INFO rules/thresholdRule.go:740 rule:Gerald Scalper Service Down alerts found: 1
2023-04-14T08:00:10.229Z INFO rules/thresholdRule.go:295 msg:sending alerts rule:Gerald Scalper Service Down
And correct, I did not verify directly as I'm not too comfortable with clickhouse. It was just a strong assumption based on alert behaviour.
Srikanth
08:09 AMYou are not seeing data because the service is down and not sending any data?
James
08:11 AMSrikanth
08:13 AMI was asking for a microservice which has alerts setup and working but the dashboard not working? Is there a such service you can share? How are you confirming the metrics are being sent from these microserivices?
James
08:20 AMI am checking both that the application is emitting looking at opentelemetry debug information, and that the otel collector service is healthy (not much logs here that I can see).
Srikanth
08:25 AMAre you seeing any traces under the
Traces
tab for the service?James
08:28 AMThat service in specific isnt posting any metrics so theres no data that can be missing.
James
08:28 AMSrikanth
08:30 AMThis is high likely because there is some issue sending data to SigNoz as you mentioned collector is healthy and has no error logs. Can you select longer time range and check if it shows the services? Can you exec into ClickHouse and run some queries that I can share to confirm if there is any data received in the last X minutes/hours/days?
James
08:34 AMBefore this was not the case and I could see data for intervals 5, 15 and 30. And yes I can run some queries if we still need to
Srikanth
08:37 AMJames
08:42 AMSorry for the trouble and this being a pretty dumb mistake, thanks for helping out
SigNoz Community
Indexed 1023 threads (61% resolved)
Similar Threads
Headers in Monitoring HTTP Endpoints & Otel-Collector Error
Rohit asks about providing headers in monitoring HTTP endpoints and reports errors in otel-collector logs. Srikanth mentions headers are unsupported and requires more investigation for errors.
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.
Incorrect Alert Firing Issue in Threshold Condition
Harshith.R.S is experiencing an issue with alerts firing when the value is above the threshold. The issue remains unresolved after trying different query modifications suggested by Amol.
Unable to Monitor jdbc_connections_active Metrics in SigNoz
Ragulraj is unable to monitor jdbc_connections_active metrics with SigNoz despite modifying configurations and adding dependencies. Srikanth provided troubleshooting steps and info on alternatives, but the issue remains unresolved.
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.