Giter Site home page Giter Site logo

Comments (3)

marcusolsson avatar marcusolsson commented on July 29, 2024

Hey, and thank you for using the plugin!

I tried to reproduce this, but it seems to be working for me:

CleanShot 2021-02-12 at 11 25 30@2x

What version of Grafana and the plugin are you currently running?

from grafana-json-datasource.

debardev avatar debardev commented on July 29, 2024

Grafana v7.3.6
Plugin v0.9.2

It seems to happen only when opening dashboard created for an older grafana-json-datasource (~0.7.0). Probably some backward compatibility issue. It works fine when I create a new dashboard with the latest plugin version.

from grafana-json-datasource.

marcusolsson avatar marcusolsson commented on July 29, 2024

Hm. The plugin should automatically migrate the old query model to the new format. You can inspect the query model in the panel JSON:

CleanShot 2021-02-12 at 11 54 23@2x

The old format uses the "queryString" property:

  "targets": [
    {
      // ...
      "queryString": "foo=bar-${__from}"
    }
  ],

The new format uses a "params" property

  "targets": [
    {
      // ...
      "params": [
        [
          "foo",
          "bar-${__from}"
        ]
      ]
    }
  ],

When you open an old dashboard and save it, the plugin reads from the queryString property and saves it as params. The old property will still be there, but ignored.

I understand if you decide to just create the dashboards afresh, but if you want to dig deeper. I'd be curious to what went wrong here.

from grafana-json-datasource.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.