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

Remove problematic nulls from Grafana dashboard #952

Merged
merged 1 commit into from
Jul 9, 2021

Conversation

bellkev
Copy link

@bellkev bellkev commented Jul 9, 2021

Newer Grafana (tested with version 7.5.5) produce errors like this when importing or opening (when passed in through a config file) the current dashboard JSON:
error1
This stack trace is subsequently shown in the UI:
error2

I confirmed that the problem exists in Grafana installed by the Helm chart in this project with --set image.tag=7.5.5 as well as Amazon Managed Service for Grafana (AMG) with Grafana version 7.5.5.

Simply removing the offending "current": null pairs seems to make things work okay. I confirmed that the code from this PR can be imported successfully into the Helm-installed Grafana with both versions 7.3.4 (current default) as well as 7.5.5. I also tested that it works as expected in AMG with Grafana version 7.5.5.

Newer versions of Grafana complain when loading
dashboard JSON with nulls in these "current" fields.

Signed-off-by: Kevin Bell <kebel@amazon.com>
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @bellkev

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

Successfully merging this pull request may close these issues.

2 participants