21 lines
763 B
YAML
21 lines
763 B
YAML
{{- if (((.Values.grafana).sidecar).dashboards).enabled -}}
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: grafana-dashboard-node-utilization
|
|
{{- if $.Values.grafana.namespace_dashboards }}
|
|
namespace: {{ $.Values.grafana.namespace_dashboards }}
|
|
{{- end }}
|
|
labels:
|
|
{{ include "cost-analyzer.commonLabels" . | nindent 4 }}
|
|
{{- if $.Values.grafana.sidecar.dashboards.label }}
|
|
{{ $.Values.grafana.sidecar.dashboards.label }}: "{{ $.Values.grafana.sidecar.dashboards.labelValue }}"
|
|
{{- else }}
|
|
grafana_dashboard: "1"
|
|
{{- end }}
|
|
annotations:
|
|
{{- toYaml .Values.grafana.sidecar.dashboards.annotations | nindent 4 }}
|
|
data:
|
|
node-utilization.json: |-
|
|
{{- .Files.Get "grafana-dashboards/node-utilization.json" | nindent 4 }}
|
|
{{- end -}} |