GoshPosh / grafana-meta-queries

Grafana plugin for calculating time period metrics like week over week, month over month and year over year etc.
Apache License 2.0
284 stars 71 forks source link

meta queries javascript recursion crashes grafana browser tab #131

Open Dutchy- opened 3 years ago

Dutchy- commented 3 years ago

When we create a new panel (on a new dashboard), the grafana browser tab completely hangs. It's hard to debug because of this, but we can see this in the console:

image

It's output from grafana-meta-queries, and it very much seems like a recursion problem.

Deleting the data source fixed the problem. Re-adding it breaks it again.

This was the data source definition

  - name: MetaQueries
    type: goshposh-metaqueries-datasource
    isDefault: true
    version: 2
    editable: false

Changing it to not be default also fixes the problem! It may have something to do with being first in the data source list.

Grafana version: 7.5.4 (same problem on 7.5.x) meta queries version:

installing goshposh-metaqueries-datasource @ 0.0.5
from: https://grafana.com/api/plugins/goshposh-metaqueries-datasource/versions/0.0.5/download
into: /var/lib/grafana/plugins
Gauravshah commented 3 years ago

confirming able to reproduce the bug