Hi, is there any way to convert epoch time to DateTime in signoz value panel?
If I am changing units from none to DateTime ISO, it is sowing the wrong data. If I add the DateTime function in the query, it is showing a value of 0.
Alok Singh
09/10/2024, 2:04 PM
@nitya-signoz please help me to resolve it
n
nitya-signoz
09/10/2024, 4:11 PM
Please share the query you are using.
a
Alok Singh
09/11/2024, 5:13 AM
SELECT *toStartOfInterval*(*toDateTime*(*intDiv*(timestamp_ms, 1000)), INTERVAL 60 SECOND) asts, *toInt64*(value) asvalueFROM signoz_metrics.distributed_samples_v2 INNERJOIN (SELECT fingerprint FROM signoz_metrics.time_series_v2 WHERE metric_name = 'process_start_time_seconds'AND temporality IN ['Cumulative', 'Unspecified'] AND *JSONExtractString*(labels, 'job_name') = {{.service_name}}) as filtered_time_series USING fingerprint WHERE metric_name = 'process_start_time_seconds'AND timestamp_ms >= {{.start_timestamp_ms}} AND timestamp_ms < {{.end_timestamp_ms}} ORDERBY timestamp_ms descLIMIT 1
HI @nitya-signoz, This is the query
SigNoz is an open-source APM. It helps developers monitor their applications & troubleshoot problems, an open-source alternative to DataDog, NewRelic, etc.