Skip to content
Discussion options

You must be logged in to vote

@yosiasz - $__timeFilter is not a macro in infinity. Typically, SQL datasources in grafana uses that macro and they are aware how to expand that. But infinity is a generic plugin and doesn't aware how to expand that macro.

In your case, I would prefer something like this

parse-json
| jsonata "*[date>=${__from:date:seconds} and date<=${__to:date:seconds}]"
| extend "date"=unixtime_seconds_todatetime("date")
| order by "date" asc

Let me know if this solves your issue or if you find any bug with the implementation.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@gdiana
Comment options

@yosiasz
Comment options

@gdiana
Comment options

@yesoreyeram
Comment options

@yosiasz
Comment options

Answer selected by yosiasz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants