Using jsonnet for grafana dashboard #716
Replies: 1 comment
-
I got this working by removing -m manifests. jsonnet -J vendor my-custom-grafana.jsonnet > grafana-test.json However it would be great if someone could validate the below steps..
So I have extracted only the ConfigMap related to "grafana-dashboard-cluster-autoscaler-dashboard" from grafana-test.yaml and deployed it. Cluster Autoscaler dashboard is now available in grafana. |
Beta Was this translation helpful? Give feedback.
-
I am trying jsonnet (my-custom-grafana.jsonnet) for grafana dashboard.I tried below code.
Then I executed,
jsonnet -J vendor -m manifests "my-custom-grafana.jsonnet" | xargs -I{} sh -c 'cat {} | gojsontoyaml > {}.yaml' -- {}
I dont have any error during this execution but I dont see any files under manifests getting updated with this grafana dashboard update.I had tried the same procedure with prometheus rules and I found manifests/prometheus-rules.yaml got updated and I was able to deploy the yaml file without issues.
But with the grafana dashboard I am not sure which file gets updated and how to deploy it.Could anyone help on this please?
Beta Was this translation helpful? Give feedback.
All reactions