2021-05-17 22:30:18 +00:00
|
|
|
--- charts-original/templates/grafana/dashboards-1.14/etcd.yaml
|
|
|
|
+++ charts/templates/grafana/dashboards-1.14/etcd.yaml
|
2021-06-10 03:52:17 +00:00
|
|
|
@@ -1,14 +1,15 @@
|
|
|
|
{{- /*
|
|
|
|
-Generated from 'etcd' from https://raw.githubusercontent.com/etcd-io/website/master/content/docs/current/op-guide/grafana.json
|
|
|
|
+Generated from 'etcd' from https://raw.githubusercontent.com/etcd-io/website/master/content/en/docs/v3.4/op-guide/grafana.json
|
|
|
|
Do not change in-place! In order to change this file first read following link:
|
2021-05-17 22:30:18 +00:00
|
|
|
https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack/hack
|
|
|
|
*/ -}}
|
|
|
|
{{- $kubeTargetVersion := default .Capabilities.KubeVersion.GitVersion .Values.kubeTargetVersionOverride }}
|
|
|
|
-{{- if and (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.grafana.enabled .Values.grafana.defaultDashboardsEnabled .Values.kubeEtcd.enabled }}
|
2021-06-10 03:52:17 +00:00
|
|
|
+{{- if and (or .Values.grafana.enabled .Values.grafana.forceDeployDashboards) (semverCompare ">=1.14.0-0" $kubeTargetVersion) (semverCompare "<9.9.9-9" $kubeTargetVersion) .Values.grafana.defaultDashboardsEnabled }}
|
2021-05-17 22:30:18 +00:00
|
|
|
+{{- if (include "exporter.kubeEtcd.enabled" .)}}
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
- namespace: {{ template "kube-prometheus-stack.namespace" . }}
|
|
|
|
+ namespace: {{ .Values.grafana.defaultDashboards.namespace }}
|
|
|
|
name: {{ printf "%s-%s" (include "kube-prometheus-stack.fullname" $) "etcd" | trunc 63 | trimSuffix "-" }}
|
|
|
|
annotations:
|
|
|
|
{{ toYaml .Values.grafana.sidecar.dashboards.annotations | indent 4 }}
|
2021-06-10 03:52:17 +00:00
|
|
|
@@ -28,6 +29,7 @@
|
|
|
|
"editable": true,
|
|
|
|
"gnetId": null,
|
|
|
|
"hideControls": false,
|
|
|
|
+ "id": 6,
|
|
|
|
"links": [],
|
|
|
|
"refresh": "10s",
|
|
|
|
"rows": [
|
|
|
|
@@ -1110,7 +1112,7 @@
|
|
|
|
},
|
|
|
|
"timezone": "browser",
|
|
|
|
"title": "etcd",
|
|
|
|
- "uid": "c2f4e12cdf69feb95caa41a5a1b423d9",
|
2021-05-17 22:30:18 +00:00
|
|
|
"version": 215
|
|
|
|
}
|
2021-06-10 03:52:17 +00:00
|
|
|
-{{- end }}
|
2021-05-17 22:30:18 +00:00
|
|
|
\ No newline at end of file
|
2021-06-10 03:52:17 +00:00
|
|
|
+{{- end }}
|
|
|
|
+{{- end }}
|