Open yuanpenc opened 3 years ago
Hello @yuanpenc
Thank you for this issue! :)
Yes this issue is known, has been discussed here: https://grafadruid.slack.com/archives/C01EEPVTALW/p1621957357043800
We should replace the __from
and __to
variables from the backend, using those from
and to
fields from the alert query, and then apply the formaters over them (like date:iso
or so: https://grafana.com/docs/grafana/latest/variables/variable-types/global-variables/#__from-and-__to ).
If you feel it, feel free to join us on slack and maybe contribute this feature ?
For short-term workaround you could use something relative to now to select the data (like now - 5 minutes
or so) for your alerts.
Hello @yuanpenc Thank you for this issue! :) Yes this issue is known, has been discussed here: https://grafadruid.slack.com/archives/C01EEPVTALW/p1621957357043800 We should replace the
__from
and__to
variables from the backend, using thosefrom
andto
fields from the alert query, and then apply the formaters over them (likedate:iso
or so: https://grafana.com/docs/grafana/latest/variables/variable-types/global-variables/#__from-and-__to ). If you feel it, feel free to join us on slack and maybe contribute this feature ? For short-term workaround you could use something relative to now to select the data (likenow - 5 minutes
or so) for your alerts.
Of course! I am 100% willing to contribute this feature. But the thing is I don't have too much experience in Typescript project. So, Could you please add some instructions of how to compile and zip this project in the readme? Thank you for you help.
Hello @yuanpenc Awesome to read! This is more a contribution on the golang side of it. I'm fully available to help you with it, feel free to ping me on https://join.slack.com/t/grafadruid/shared_invite/zt-ryrcolyp-GQCiKcOF0WhnK~iqpkrqLA
Do we have any update on this? @jbguerraz / @yuanpenc
nope @saketbairoliya2 If you're willing to work on it, feel free to ping me, I'll be happy to help!
What happened:
When I was trying to create an alter and test rules, there seemed to be a bug. The request and response is as below.
As you can see, the parameter "intervals" seems not work properly. At lease, I think, It should not be something like "${from:date:iso}/${to:date:iso}".
However, When I specified a certain time range like the pic below, the problem was solved.
What you expected to happen: The alter works successfully without specifying the intervals.
For an instance, when I use official grafana-prometheus. The request of an alter is like this: The interval is "" (nothing here, only "from/to" specify the time range )
How to reproduce it: Build an timeseries query without specifying the intervals. Then, create an alter and test rule. The error message will come out.
Environment: