Grafana query for chaos mesh gives "Object(...) is not a function"
Opened this issue · 0 comments
Rafouf69 commented
What version of Chaos Mesh Datasource are you using?
2.2.3
What version of Chaos Mesh are you using?
2.6.2
What version of Grafana are you using?
7.5.15
What did you do?
I installed Chaos Mesh v2.6.2 using the tutorial there. I created some experiments and workflows that worked fine.
I tried to follow the manual part of this tutorial to install the Grafana plugin. It worked well until the Query section.
What did you expect to see?
I expect to be able to run queries as explained in the tutorial.
What did you see instead?
Grafana is producing an error when running a query.
runRequest.catchError TypeError: Object(...) is not a function
at c.value (datasource.ts:64:41)
at c.value (datasource.ts:36:1)
at c.eval (datasource.ts:114:38)
at c (runtime.js:63:40)
at Generator._invoke (runtime.js:293:22)
at Generator.next (runtime.js:118:21)
at eval (module.js:1:9839)
at new Promise (<anonymous>)
at Q (tslib.es6.js:70:37)
at eval (datasource.ts:96:41)
When I try to create an Annotation I also get an error.
AnnotationSrv.query error TypeError: Object(...) is not a function
at c.value (datasource.ts:64:41)
at c.value (datasource.ts:36:1)
at c.eval (datasource.ts:168:28)
at c (runtime.js:63:40)
at Generator._invoke (runtime.js:293:22)
at Generator.next (runtime.js:118:21)
at eval (module.js:1:9839)
at new Promise (<anonymous>)
at Q (tslib.es6.js:70:37)
at c.value (module.js:1:15071)