You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: