Shaun Peusschers
09/16/2024, 11:43 AMShaun Peusschers
09/16/2024, 1:50 PMtimestamp BETWEEN {{.start_timestamp}} AND {{.start_timestamp}}
Shaun Peusschers
09/16/2024, 1:50 PMSrikanth Chekuri
09/17/2024, 5:14 AMShaun Peusschers
09/17/2024, 6:35 AMShaun Peusschers
09/17/2024, 6:35 AMSELECT DISTINCT JSONExtractString(labels, 'id') AS name
FROM signoz_metrics.distributed_time_series_v2
WHERE JSONExtractString(labels, 'id') IS NOT NULL
AND JSONExtractString(labels, 'id') != ''
AND (timestamp BETWEEN {{.start_timestamp}} AND {{.start_timestamp}})
Shaun Peusschers
09/17/2024, 9:46 AMSrikanth Chekuri
09/17/2024, 5:24 PMSELECT DISTINCT JSONExtractString(labels, 'id') AS name
FROM signoz_metrics.time_series_v4
WHERE metric_name IN [...]
AND (unix_milli >= intDiv({{.start_timestamp_ms}}, 3600000) * 3600000) AND (unix_milli <= intDiv({{.end_timestamp_ms}}, 3600000) * 3600000)
HAVING name != ''
Please make sure you add metric name, otherwise it will be slow.Shaun Peusschers
09/18/2024, 6:44 AM