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

Cannot create template variable on Grafana 2.0b1 dashboadrd with InfluxDB 0.9RC23 #1772

Closed
bergamasco opened this issue Apr 14, 2015 · 1 comment

Comments

@bergamasco
Copy link

Hi,

I'm trying to create a template variable as result from a query on InfluxDB tags as follows:

SHOW TAG VALUES WITH KEY=host

This query work fine on InfluxDB, but it generates the following error on Grafana:

Templating
Failed to run query for variable values: Cannot read property 'length' of undefined.

The JS console show the following:

metricFindQuery called with: SHOW TAG VALUES WITH KEY=host, _<----- !!!!_
datasource.js?bust=1428960998743:4 metric find query response Object {results: Array[1]}
app.8ae07506.js:10 TypeError: Cannot read property 'length' of undefined
at d.service.metricNamesToVariableValues (app.8ae07506.js:21)
at app.8ae07506.js:21
at i (app.8ae07506.js:10)
at app.8ae07506.js:10
at l.$get.l.$eval (app.8ae07506.js:12)
at l.$get.l.$digest (app.8ae07506.js:12)
at l.$get.l.$apply (app.8ae07506.js:12)
at h (app.8ae07506.js:10)
at q (app.8ae07506.js:10)
at XMLHttpRequest.u.onload (app.8ae07506.js:10)

Looks like the query type is missing from the call to metricFindQuery.

Thanks,

Davide

@torkelo
Copy link
Member

torkelo commented Apr 14, 2015

#1525

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants