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
Pull JSON from GitHub into Grafana for persistent existance of a dashboard #1447
Comments
you can specify a URL to fetch the dashboard json from, we have an example for this: https://github.com/grafana/grafana-operator/blob/master/examples/dashboard_from_url/resources.yaml |
@pb82 You mean do i need to create a separate dashboard under All instances which would be managed by If so, I have created a GrafanaDashboard object however it is still not persistant
Any grafana documentation link for reference. |
@vsomwanshi a Kubernets deployment isn't persistent. I wouldn't suggest doing this for production, though. Instead, I would use a separate postgres instance as documented here: https://grafana.com/docs/grafana/latest/setup-grafana/installation/#supported-databases |
@NissesSenap We have operator based grafana installation in our Since, it's operator based it is not allowed to modify the [1] I may need to look for an option to customize this grafana instance https://grafana.github.io/grafana-operator/docs/grafana/ [2] I was trying to execute below steps to create a dashboard using URL https://grafana.github.io/grafana-operator/docs/examples/dashboard_from_url/readme/ however, when i am trying to apply it is automatically removing the
Any suggestions please |
@vsomwanshi we have designed the operator to allow for any changes to the deployment. If you are having issues I would suggest trying the exact examples, don't do any changes to it and first see that those work. |
This issue hasn't been updated for a while, marking as stale, please respond within the next 7 days to remove this label |
In our environment we have operator based Grafana installation.
Whenever
grafana-deployment-*
pods restarts grafana dashboard is getting vanished, so upon investigating we found that there are few below steps we can execute for the persistent existance of the dashboard.create a repo and push your json
open the json file and click on raw button which will generate a URL
copy the URL and create a configmap or secret using that URL :
kubectl create configmap grafana-dashboard --from-literal=dashboard.json="$(curl -sSL https://raw.github.ibm.com/vishavjeet-somwanshi/xxxxxxxxx)"
mount this configmap/secret as volume and volume mount in grafana dashboard deployment yaml configuration
While modifying the grafana deployment getting below error warning, as grafana installation is operator based so unable to modify the objects.
Can anyone help on this issue.
The text was updated successfully, but these errors were encountered: