-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[helm] GrafanaDashboard configuration (#441)
* feat(helm): GrafanaDashboard configuration Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com> * fix(helm): typo Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com> --------- Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
- Loading branch information
1 parent
7642175
commit d09888d
Showing
5 changed files
with
70 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...s/policy-reporter/charts/monitoring/templates/clusterpolicy-details.grafanadashboard.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{- if and $.Values.grafana.dashboards.enabled $.Values.grafana.dashboards.enable.clusterPolicyReportDetails $.Values.grafana.grafanaDashboard.enabled }} | ||
--- | ||
apiVersion: grafana.integreatly.org/v1beta1 | ||
kind: GrafanaDashboard | ||
metadata: | ||
labels: | ||
{{ .Values.grafana.dashboards.label }}: {{ .Values.grafana.dashboards.value | quote }} | ||
{{- include "monitoring.labels" . | nindent 4 }} | ||
name: {{ include "monitoring.fullname" . }}-clusterpolicy-details-dashboard | ||
namespace: {{ include "monitoring.namespace" . }} | ||
spec: | ||
allowCrossNamespaceImport: {{ $.Values.grafana.grafanaDashboard.allowCrossNamespaceImport }} | ||
folder: {{ $.Values.grafana.grafanaDashboard.folder }} | ||
instanceSelector: | ||
matchLabels: | ||
{{- toYaml $.Values.grafana.grafanaDashboard.matchLabels | nindent 6 }} | ||
configMapRef: | ||
name: {{ include "monitoring.fullname" . }}-clusterpolicy-details-dashboard | ||
key: cluster-policy-reporter-details-dashboard.json | ||
{{- end }} |
20 changes: 20 additions & 0 deletions
20
charts/policy-reporter/charts/monitoring/templates/overview.grafanadashboard.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{- if and $.Values.grafana.dashboards.enabled $.Values.grafana.dashboards.enable.overview $.Values.grafana.grafanaDashboard.enabled }} | ||
--- | ||
apiVersion: grafana.integreatly.org/v1beta1 | ||
kind: GrafanaDashboard | ||
metadata: | ||
labels: | ||
{{ .Values.grafana.dashboards.label }}: {{ .Values.grafana.dashboards.value | quote }} | ||
{{- include "monitoring.labels" . | nindent 4 }} | ||
name: {{ include "monitoring.fullname" . }}-overview-dashboard | ||
namespace: {{ include "monitoring.namespace" . }} | ||
spec: | ||
allowCrossNamespaceImport: {{ $.Values.grafana.grafanaDashboard.allowCrossNamespaceImport }} | ||
folder: {{ $.Values.grafana.grafanaDashboard.folder }} | ||
instanceSelector: | ||
matchLabels: | ||
{{- toYaml $.Values.grafana.grafanaDashboard.matchLabels | nindent 6 }} | ||
configMapRef: | ||
name: {{ include "monitoring.fullname" . }}-overview-dashboard | ||
key: policy-reporter-dashboard.json | ||
{{- end }} |
20 changes: 20 additions & 0 deletions
20
charts/policy-reporter/charts/monitoring/templates/policy-details.grafanadashboard.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{{- if and $.Values.grafana.dashboards.enabled $.Values.grafana.dashboards.enable.policyReportDetails $.Values.grafana.grafanaDashboard.enabled }} | ||
--- | ||
apiVersion: grafana.integreatly.org/v1beta1 | ||
kind: GrafanaDashboard | ||
metadata: | ||
labels: | ||
{{ .Values.grafana.dashboards.label }}: {{ .Values.grafana.dashboards.value | quote }} | ||
{{- include "monitoring.labels" . | nindent 4 }} | ||
name: {{ include "monitoring.fullname" . }}-policy-details-dashboard | ||
namespace: {{ include "monitoring.namespace" . }} | ||
spec: | ||
allowCrossNamespaceImport: {{ $.Values.grafana.grafanaDashboard.allowCrossNamespaceImport }} | ||
folder: {{ $.Values.grafana.grafanaDashboard.folder }} | ||
instanceSelector: | ||
matchLabels: | ||
{{- toYaml $.Values.grafana.grafanaDashboard.matchLabels | nindent 6 }} | ||
configMapRef: | ||
name: {{ include "monitoring.fullname" . }}-policy-details-dashboard | ||
key: policy-reporter-details-dashboard.json | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters