Hi,
How can I pass a function as an argument to the function __timeGroup ?
I tried the following, but didn’t work for me:
SELECT
$__timeGroup(myFunc(duration_tb, 30),‘30s’, 0),
Getting the following error:
error parsing interval 30
Thanks,
Hi,
How can I pass a function as an argument to the function __timeGroup ?
I tried the following, but didn’t work for me:
SELECT
$__timeGroup(myFunc(duration_tb, 30),‘30s’, 0),
Getting the following error:
error parsing interval 30
Thanks,
That’s not a function, but Grafana macro. Check generated SQL (for example with query debugger) and develop Grafana query which generates correct SQL syntax.