grafana / athena-datasource

Apache License 2.0
38 stars 12 forks source link

Add default interval and interval_ms macros from sqlds #325

Closed kevinwcyu closed 2 weeks ago

kevinwcyu commented 4 months ago

Updates to sqlds and plugin-sdk-go to allow usage of the interval and interval_ms macros in the backend. Currently they're only executed on the frontend so it doesn't work for alerts. Example query: select '$__interval', $__interval_ms. You can change the Interval in the Options button when creating an alerting query.

kevinwcyu commented 2 weeks ago

Done as part of https://github.com/grafana/athena-datasource/pull/369