Value Widget with ClickHouse Query #3610
Unanswered
sharpSteff
asked this question in
Q&A
Replies: 1 comment
-
|
Can you try adding a dummy timestamp to query like SELECT SUM(countValue) as value
now() as ts
FROM (
SELECT
interval,
COUNT(*) as countValue
FROM (
SELECT
toStartOfInterval(timestamp, toIntervalMinute(1)) AS interval,
t1.tagMap['service.instance.id'] as instance,
t1.tagMap['service.version'] AS version
FROM signoz_traces.signoz_index_v2 t1
WHERE t1.serviceName == 'myservice'
AND t1.name == 'mytrace'
AND t1.hasError == true
AND t1.timestamp BETWEEN {{.start_datetime}} AND {{.end_datetime}}
) AS subquery
GROUP BY
interval
ORDER BY interval ASC
) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a query which creates a time series:
I like to have a Value-Widget which sums all the values in the timeframe via ClickHouse Query:
However I do not find any docs what query the Value-Widget expects:
I tried following:
However its always "0" :(
Beta Was this translation helpful? Give feedback.
All reactions