Does Grizzly remove dashboards from Grafana when removed from code? #490
-
Is it possible to use Grizzly to sync removals of dashboards? I mean, if I got a {
dashboards: [
grr.dashboard.new('example', (import 'dashboards/alerts.jsonnet')),
grr.dashboard.new('slo', (import 'dashboards/slo.jsonnet')),
],
}
and I later remove {
dashboards: [
grr.dashboard.new('example', (import 'dashboards/alerts.jsonnet')),
],
} ... and apply this, the
How can I instrument Grizzly to sync removals of dashboards? If Grizzly is not capable of doing this, what can I do to fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
No, Grizzly doesn't support this. Grizzly, in this case, was modelled upon Grafana Tanka. Tanka handles this with its "purge" functionality, where it stores an annotation against resources so they can be tracked back to originating in Tanka. Unfortunately, Grafana doesn't have any support for metadata such as these annotations, making it much harder to implement. How would we know if a dashboard (or other resource) was created manually, or has been removed from your jsonnet (or other) code? |
Beta Was this translation helpful? Give feedback.
No, Grizzly doesn't support this. Grizzly, in this case, was modelled upon Grafana Tanka. Tanka handles this with its "purge" functionality, where it stores an annotation against resources so they can be tracked back to originating in Tanka. Unfortunately, Grafana doesn't have any support for metadata such as these annotations, making it much harder to implement. How would we know if a dashboard (or other resource) was created manually, or has been removed from your jsonnet (or other) code?