Skip to content

Commit

Permalink
k8s-stack: allow manage default dashboards independently (#1852)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewChubatiuk authored Dec 4, 2024
1 parent 95f0f9c commit 48ebc7a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/victoria-metrics-k8s-stack/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Next release

- TODO
- Set higher priority for `defaultDashboards.dashboards.<name>.enabled` flag comparing to default dashboard conditions to allow install or ignore dashboards regardless of whether component it's for is installed or monitored. See [this issue](https://github.com/VictoriaMetrics/helm-charts/issues/1851).

## 0.30.2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ Get dashboard data from file
{{- /*
Save condition for a dashboard from file
*/}}
{{- $dashboardCondition := or $dashboardData.condition (dig $dashboardName "enabled" false $.Values.defaultDashboards.dashboards) -}}
{{- $dashboardCondition := $dashboardData.condition }}
{{- if hasKey (index ((($.Values).defaultDashboards).dashboards) $dashboardName) "enabled" }}
{{- $dashboardCondition = index $.Values.defaultDashboards.dashboards $dashboardName "enabled" }}
{{- end }}

{{- /*
Delete condition from dashboard
Expand Down

0 comments on commit 48ebc7a

Please sign in to comment.