jakubplichta / grafana-dashboard-builder

Generate Grafana dashboards with YAML
Apache License 2.0
147 stars 42 forks source link

Grafana 7+ have problem with "refresh": true #189

Closed Rohlik closed 3 years ago

Rohlik commented 3 years ago

Hey, We having a problem with your cool tool. Tool generate something like this (just a part of json):

"templating": {
    "enable": true,
    "list": [
      {
        "current": {
          "text": "usa",
          "value": "usa"
        },
        "name": "datacenter",
        "query": "datacenter.*",
        "refresh": true,
        "refresh_on_load": true,
        "type": "query"
      },
      {
        "current": {
          "text": "prod",
          "value": "prod"
        },
        "name": "cluster",
        "query": "datacenter.$datacenter.*",
        "refresh": true,
        "refresh_on_load": true,
        "type": "query"
      }
    ]
  }

When we import this to Grafana 7 instance then variables are without values: image

I figure out that this is caused by "refresh": true. This true value is accepted in Grafana 6 without problem, but in Grafana 7 it cause problem above. When I changed value to 1, then problem is solved and it is also supported by version 6.

Can you look at it?

Thank you.