Skip to content
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

Grafana query for chaos mesh gives "Object(...) is not a function" #60

Open
Rafouf69 opened this issue Jan 2, 2024 · 0 comments
Open

Comments

@Rafouf69
Copy link

Rafouf69 commented Jan 2, 2024

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.

image
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant