feat: add mysql dashboard to kubezero-sql
This commit is contained in:
parent
b1a277c8d5
commit
d40dfea5f3
8
charts/kubezero-sql/dashboards-mariadb.yaml
Normal file
8
charts/kubezero-sql/dashboards-mariadb.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
configmap: grafana-dashboards-mariadb
|
||||||
|
condition: '.Values.mariadb-galera.metrics.enabled'
|
||||||
|
gzip: true
|
||||||
|
# folder:
|
||||||
|
dashboards:
|
||||||
|
- name: mariadb-galera
|
||||||
|
url: https://grafana.com/api/dashboards/13106/revisions/3/download
|
||||||
|
tags: ['MariaDB', 'MySQL']
|
@ -14,6 +14,7 @@ spec:
|
|||||||
mariadb-galera:
|
mariadb-galera:
|
||||||
enabled: true
|
enabled: true
|
||||||
metrics:
|
metrics:
|
||||||
|
enabled: true
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
{{- if index .Values "mariadb-galera" "metrics" "enabled" }}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: {{ printf "%s-%s" (include "kubezero-lib.fullname" $) "grafana-dashboards-mariadb" | trunc 63 | trimSuffix "-" }}
|
||||||
|
namespace: {{ .Release.Namespace }}
|
||||||
|
labels:
|
||||||
|
grafana_dashboard: "1"
|
||||||
|
{{ include "kubezero-lib.labels" . | indent 4 }}
|
||||||
|
binaryData:
|
||||||
|
mariadb-galera.json.gz:
|
||||||
|
H4sIAAAAAAAC/+2dWW/buBaA3/MrBGFw0QJuKrtZOn1r0kmnmGSSTtKZe1EEBi3RMicyqZJUErfIf79ctJNeszkpX1qYlEmehed8XGL92PA8v99HOM048995X8Vnz/uh/hU1GIyhKPU/nPZP/jo++u3s99++nPqdojoBA5jI+pSSMeQjmLGqMoIspCjliGD5SFXBJ6lqNAIcMJLREFZ1aZLFCH+KpjWq6//Mh3VSPaEeuBH/nne0SBR+yxCF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heJH3pi7yhlT989Dtn6MqXpBan7jlm41tb0E9yJupz6YLlH6hyekEhxbdFpMbRCMSTnslqpq2paDF2yoxuXrVLQJC/tJJUeY3vpYiERJoCbmq7DtRWdLP9V4EvY/qDauvc82LkH2cv2NVP5flb/L9b/w9+HbwMbda9Xbb3sbN/wH5nSdeM3oAAA==
|
||||||
|
{{- end }}
|
@ -5,3 +5,4 @@ set -ex
|
|||||||
|
|
||||||
|
|
||||||
# Fetch dashboards
|
# Fetch dashboards
|
||||||
|
../kubezero-metrics/sync_grafana_dashboards.py dashboards-mariadb.yaml templates/mariadb/grafana-dashboards.yaml
|
||||||
|
@ -13,6 +13,7 @@ mariadb-galera:
|
|||||||
password: 12345qwert
|
password: 12345qwert
|
||||||
|
|
||||||
metrics:
|
metrics:
|
||||||
|
enabled: false
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user