-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New [Unified Alerts] API is broken #380
Comments
Sorry for the late reply if your query just
|
@jmpdt could you check your query again and please press to "Generated SQL" in panel |
@jmpdt thanks a lot for reporting. I need time to think how to change code editor logic to allow us to change |
I suggest to maybe have a similar solution as the default (my)sql datasource handles it:
I guess this would solve most of the client side query building, right? |
@Slach thanks for looking into this! |
@derN3rd And we have many client macros, which we can't be resolved on client side before pass to backend. Only one approach will work, try to implement full compatible with |
# 2.4.0 (2021-11-29) ## Enhancement: * Add support for Grafana 8.x unified alerts, fix Altinity/clickhouse-grafana#380 * Add TLS support for backend alerts part of plugin Altinity/clickhouse-grafana#356 (comment) * Add $naturalTimeSeries macro, look details in https://github.com/Vertamedia/clickhouse-grafana/pull/89/files#diff-cd9133eda7b58ef9c9264190db4534a1be53216edbda9ac57256fbd800368c03R383-R412 * Update golang-plugin-sdk-go to latest version * Properly format Value in Table format, look details Altinity/clickhouse-grafana#379 * Remove toDateTime64 casting for column when time column is already DateTime64 to improve performance. Change test to ensure the casting is removed from the query, fix Altinity/clickhouse-grafana#360 * implements `$timeFilter64ByColumn(column_name)` macro, fix Altinity/clickhouse-grafana#343 ## Fixes: * implements properly GET and POST support for alert queries, fix Altinity/clickhouse-grafana#353 * SQL syntax highlight now works always, fix Altinity/clickhouse-grafana#174, fix Altinity/clickhouse-grafana#381 * fix Altinity/clickhouse-grafana#376, * fix negative behavior for $perSecondColumns Altinity/clickhouse-grafana#337 * fix Altinity/clickhouse-grafana#374, ignore `--` inside quotas as comment
For any alert created through the Grafana 8 alerting API, I am getting this error in the Grafana server logs:
My alert query is
SELECT 1
. I get the same error regardless of which table I choose as the data source. I can trigger this error message by clickingReformat Query
orRun Queries
. In theGenerated SQL
dropdown, all that is displayed istrue
.Grafana v8.2.2 and ClickHouse-Grafana v2.3.1
The text was updated successfully, but these errors were encountered: