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

Template Var e.metricsFindQuery is Not a Function #20636

Closed
BrandonQDixon opened this issue Nov 25, 2019 · 6 comments
Closed

Template Var e.metricsFindQuery is Not a Function #20636

BrandonQDixon opened this issue Nov 25, 2019 · 6 comments

Comments

@BrandonQDixon
Copy link

BrandonQDixon commented Nov 25, 2019

What happened: When I imported a dashboard, the template var gives e.metricsFindQuery is not a function. The data is not loaded, and the request to the server is never actually sent. Note, this is not a problem in the dashboard I originally imported from.

What you expected to happen: Query would load as normal

How to reproduce it (as minimally and precisely as possible): Create a basic dashboard with JSON datasource. Then, create new installation of Grafana elsewhere, copy Grafana database, and load dashboard.

Anything else we need to know?:

Environment:

  • Grafana version: 6.2.5
  • Data source type & version: JSON Datasource – a generic backend datasource 0.1.5
  • OS Grafana is installed on: Windows 10
  • User OS & Browser: Windows, Chrome
  • Grafana plugins: JSON Datasource – a generic backend datasource
  • Others: Note that this does work on original dashboard (before importing)

EDIT: I should also mention, this seems to only affect dashboard parameters, not the panels themselves.

@torkelo
Copy link
Member

torkelo commented Nov 25, 2019

Make sure you have a datasource with the same name in the new instance

@torkelo torkelo closed this as completed Nov 25, 2019
@BrandonQDixon
Copy link
Author

I do

@torkelo
Copy link
Member

torkelo commented Nov 25, 2019

Can you show the dashboard json?

@BrandonQDixon
Copy link
Author

Yes, here is the dashboard json. I've removed the panels and the query itself from the template var definition to protect private data, but what you need should still be here. Note, MSSQLQuery is a JSON datasource I've created
{ "annotations": { "list": [{ "builtIn": 1, "datasource": "-- Grafana --", "enable": true, "hide": true, "iconColor": "rgba(0, 211, 255, 1)", "name": "Annotations & Alerts", "type": "dashboard" }] }, "editable": true, "gnetId": null, "graphTooltip": 0, "id": 42, "iteration": 1574692903955, "links": [], "panels": [], "schemaVersion": 18, "style": "dark", "tags": ["primary", "imported_enhanced"], "templating": { "list": [{ "allValue": null, "current": { "selected": true, "text": "2019-11-13", "value": "2019-11-13" }, "datasource": "MSSQLQuery", "definition": "", "hide": 0, "includeAll": false, "label": "Date", "multi": false, "name": "date", "options": [], "query": "", "refresh": 1, "regex": "", "skipUrlSync": false, "sort": 0, "tagValuesQuery": "", "tags": [], "tagsQuery": "", "type": "query", "useTags": false }] }, "time": { "from": "now-1s", "to": "now" }, "timepicker": { "refresh_intervals": ["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"], "time_options": ["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"] }, "timezone": "", "title": "Coverage Dashboard", "uid": "pG2yIg4Wz", "version": 50 }

@BrandonQDixon
Copy link
Author

BrandonQDixon commented Dec 2, 2019

@torkelo any updates on this issue?

Also, please re-open, as this has not been resolved.

@marefr
Copy link
Member

marefr commented Dec 5, 2019

https://grafana.com/grafana/plugins/simpod-json-datasource is a community plugin. Please report your problem at https://github.com/simPod/grafana-json-datasource or try and upgrade Grafana to later version.

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

3 participants