grafana / grafana

The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
https://grafana.com
GNU Affero General Public License v3.0
65.3k stars 12.18k forks source link

KQL Azure Data Explorer queries broken in 11.3.1 #97044

Closed jarandmoen closed 2 days ago

jarandmoen commented 4 days ago

What happened?

11.3.1 breaks managing Azure Data Explorer/Kusto/KQL panel queries.

Get error:

An unexpected error happened
TypeError: t.languages.kusto is undefined

Lt@https://grafana.xyz.com/public/build/6556.3cb66428afda88cac3e1.js:11:5539
Ut@https://grafana.xyz.com/public/build/6556.3cb66428afda88cac3e1.js:11:9135
d@https://grafana.xyz.com/public/build/3719.c065b2e146c4c8347d51.js:1:141272
div
u@https://grafana.xyz.com/public/build/3719.c065b2e146c4c8347d51.js:1:138597
WithTheme(undefined)
div
div
sn@https://grafana.xyz.com/public/plugins/grafana-azure-data-explorer-datasource/module.js?_cache=4.8.0:1:115600
Ao@https://grafana.xyz.com/public/plugins/grafana-azure-data-explorer-datasource/module.js?_cache=4.8.0:1:160779
s@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:1:204
g@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:12:133441
i@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:12:133950
div
div
div
gf@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:102:22655
Ma@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:39:423228
sr@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:102:26941
ri@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:102:27043
y@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:258:57
div
H@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:1044:70
div
xd@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:102:34276
Ma@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:39:423228
Ve@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:43:522
zl@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:102:18342
Ft@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:49:788
Dl@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:102:19982
l@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:1045:6338
div
pe@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:275:234482
Jt@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:39:138771
div
d@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:31:33595
div
s@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:104:60763
div
div
st@https://grafana.xyz.com/public/build/4239.c2eca2b0222ddf40980b.js:52:13452
v@https://grafana.xyz.com/public/build/3719.c065b2e146c4c8347d51.js:1:123252
div
je@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:275:240289
Jt@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:39:138771
div
div
div
st@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:275:243785
div
div
Qe@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:275:242725
Jt@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:39:138771
div
X@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:194:22899
es@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:278:51406
Jt@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:39:138771
W0@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:39:352424
In@https://grafana.xyz.com/public/build/8779.3554bbccc2f934cb55f3.js:1:2514
Xo@https://grafana.xyz.com/public/build/8779.3554bbccc2f934cb55f3.js:51:32921
Suspense
g@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:12:133441
th@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:2378:39173
tt@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:295:25340
Re@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:295:4599
ot@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:295:12228
zt@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:286:18067
tt@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:295:27534
div
67061/h<@https://grafana.xyz.com/public/build/3719.c065b2e146c4c8347d51.js:1:135600
main
div
div
div
Pf@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:2380:4666
Af@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:2380:9995
Re@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:295:4599
ot@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:295:12228
Ke@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:295:11644
un@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:286:18361
v@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:5:188543
tt@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:295:21503
Kc@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:2380:11396
div
Xl@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:2378:18731
y@https://grafana.xyz.com/public/build/9636.b941a14f2c41910ad58c.js:151:9173
C@https://grafana.xyz.com/public/build/4239.c2eca2b0222ddf40980b.js:183:17539
d@https://grafana.xyz.com/public/build/3719.c065b2e146c4c8347d51.js:24:12160
g@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:12:133441
i@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:12:133950
pn@https://grafana.xyz.com/public/build/4239.c2eca2b0222ddf40980b.js:187:499
jf@https://grafana.xyz.com/public/build/322.5df7dbfcd22d85fc7794.js:2380:13056

Not able to see the query, modify it or add new. The error completly renders the query function in panels unusable.

Existing queries work just fine, but can't see or modify them.

What did you expect to happen?

Abillity to see, create and modify KQL queries as used be the Azure Data Explorer plugin.

Did this work before?

It works in pre-11.3 releases

How do we reproduce it?

1.Upgrade to 11.3.1 2.Create a Azure Data Explorer plugin 3.Try and create a new dashboard with a panel using the KQL plugin 4.Create a query or try the manual KQL option. This will give the error

Is the bug inside a dashboard panel?

Yes, It is inside a panel

Environment (with versions)?

Grafana:11.3.1 OS:Ubuntu 22.04.4 LTS Browser:Firefox 132.0.2 / Edge 131.0.2903.63

Grafana platform?

A package manager (APT, YUM, BREW, etc.)

Datasource(s)?

Azure Data Explorer

aangelisc commented 3 days ago

Hi @jarandmoen, thank you for opening this issue. What version of the plugin are you running?

jarandmoen commented 2 days ago

Hi @aangelisc and thanks for picking this up. I was running plugin version 4.8.0 and I was not aware of the plugin having an update available. Upgrading the plugin to 5.0.7 fixed the issue.