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

Dashboard variable with type prometheus without $dashboard is not flagged by linter #100

Open
alex-vinnik-sp opened this issue Oct 17, 2022 · 0 comments

Comments

@alex-vinnik-sp
Copy link

Dashboard variable like below is not flagged by linter. You can see that UID is assigned specific value pjNv0fYGz. Such dashboard is not portable across different grafana environments. It would be nice for a linter to flag such case.

      {¬
        "current": {¬
          "selected": false,¬
          "text": "X",¬
          "value": "X"¬
        },¬
        "datasource": {¬
          "type": "prometheus",¬
          "uid": "pjNv0fYGz"¬
        },¬
        "definition": "definition",¬
        "hide": 0,¬
        "includeAll": false,¬
        "label": "Customer ID",¬
        "multi": false,¬
        "name": "customerid",¬
        "options": [],¬
        "query": {¬
          "query": "PromQL",¬
          "refId": "StandardVariableQuery"¬
        },¬
        "refresh": 2,¬
        "regex": "",¬
        "skipUrlSync": false,¬
        "sort": 0,¬
        "type": "query"¬
      }
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

1 participant