-
Notifications
You must be signed in to change notification settings - Fork 373
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
panels of type gauge and bar gauge lose their settings #99
Comments
example dashboard I can reproduce with
|
I'm assuming it has to do with the grafana-sdk library that we use to parse the dashboard json. I'll investigate further. |
Yeah. I tried to trace through the operator code to see how dashboard gets imported to see if I could isolate to whether it was something operator was doing or Grafana but I lost the thread when it called the grafana sdk. |
@itewk The problem lies somewhere with the grafana sdk. I'm currently working on removing it and just sending the raw json (after some validation). That seems to be working and the gauge in your example renders exactly the same operator imported vs. directly imported. |
@itewk This should be fixed now in this PR: #95 I've created a tag with those change Would you mind giving it a try? Please note that since your dashboard has inputs (depends on a datasource to be present) you will have to specify it in the dashboard CR with:
Docs for this are in the works: https://github.com/integr8ly/grafana-operator/pull/95/files#diff-87206ddedd4460f8733d5d3074b725adR90 |
@pb82 tested the |
@pb82 I also confirm that the |
@yogeek I'll aim for a release around the 10th of January. Unfortunately there is currently no automation for creating the |
The latest tag is up to date with master now. |
When I try to import dashboards via the CR with panels of type guage or bar gauge the settings for those pannels get lost.
I have tried using the
json
and theurl
form of theGrafanaDashboard
type. both have same experince.I can copy the exact same JSON direclty into the same Grafana dashboard import feature and the panels import fine. This only seems to happen when the board gets imported via the Operator and I can't for the life of me figure out what is causing it. I can only assume at this point since I can copy paste directly in that the operator has to be doing something or importing the board in such a way that something somewhere is going funky.
The text was updated successfully, but these errors were encountered: