feat: split Grafana logging dashboards into ES/Fluent and install accordingly
This commit is contained in:
parent
1de653f03e
commit
b87192bcc0
9
charts/kubezero-logging/dashboards-es.yaml
Normal file
9
charts/kubezero-logging/dashboards-es.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
configmap: grafana-dashboards-es
|
||||
gzip: true
|
||||
folder: Logging
|
||||
condition: '.Values.es.prometheus'
|
||||
dashboards:
|
||||
- name: elasticsearch-logging
|
||||
url: https://grafana.com/api/dashboards/266/revisions/4/download
|
||||
tags:
|
||||
- ElasticSearch
|
@ -1,14 +1,10 @@
|
||||
configmap: grafana-dashboards
|
||||
gzip: true
|
||||
folder: Logging
|
||||
condition: '.Values.es.prometheus'
|
||||
dashboards:
|
||||
- name: fluent-logging
|
||||
url: https://grafana.com/api/dashboards/7752/revisions/4/download
|
||||
#url: https://grafana.com/api/dashboards/13042/revisions/2/download
|
||||
tags:
|
||||
- Fluent
|
||||
- name: elasticsearch-logging
|
||||
url: https://grafana.com/api/dashboards/266/revisions/4/download
|
||||
tags:
|
||||
- ECK
|
||||
- fluentd
|
||||
- fluent-bit
|
||||
|
@ -0,0 +1,15 @@
|
||||
{{- if .Values.es.prometheus }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ printf "%s-%s" (include "kubezero-lib.fullname" $) "grafana-dashboards-es" | trunc 63 | trimSuffix "-" }}
|
||||
namespace: {{ .Release.Namespace }}
|
||||
labels:
|
||||
grafana_dashboard: "1"
|
||||
{{- include "kubezero-lib.labels" . | nindent 4 }}
|
||||
annotations:
|
||||
k8s-sidecar-target-directory: Logging
|
||||
binaryData:
|
||||
elasticsearch-logging.json.gz:
|
||||
H4sIAAAAAAAC/+2dbXObSBKAv/tXTFG7VXGd4ghJfruqfNg4TtZbcTYbe3N1t5tSYRhJnBGwDDj2qny//XpmQLwNCDlYluT+EEWmYV66Z3qeaRo02yFEGw5t149Cpv2T/AF/EzITnyBxjSmFo9rbi+Gnz7+en17+fPr7h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XA2cwzg8FaZyShos9Oamm3dvWV+1MudyIil6Gd9ili/JuBalbkV1Q4konPLjIoawwQgj0Hj8965az3ru6JjeFgA5YcDseeDghZbZb0kbtLy01Fh+TH1ybFrZm4wgYvRSFpRd1NfG5nkfl5r8IydPhb0L5yfmdgunL2trvqOL/IW7uHu5jcMh8IAh0Ft2CFzAhsoil7xXzQcC34VZckvVxtTnpSVvEugQXux22H4n4fh7CbK20F6MsCO5sYZJ9e3lfEGGvXF8TMtd5tuwfwzSi2OVDBO4y6KclgEyTc/wUg6esnCThQ9Y/KbZK7KSdCnXepnvydr6NekDn+BlxKyuJVvwQbbgbC29QfaPdB3WDq1se5O25NT3tyeCU1oUmvHGI9nX5PccQnYz37jIfYtFmRnYfryl0t6eMdiO3JHcleSa3hEZsmGEW5ZkZunO/f8BZCXhv9ATAQA=
|
||||
{{- end }}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -29,4 +29,5 @@ curl -L -s -o - https://github.com/fluent/helm-charts/releases/download/fluentd-
|
||||
patch -i fluentd.patch -p0 --no-backup-if-mismatch
|
||||
|
||||
# Fetch dashboards from Grafana.com and update ZDT CM
|
||||
../kubezero-metrics/sync_grafana_dashboards.py dashboards.yaml templates/grafana-dashboards.yaml
|
||||
../kubezero-metrics/sync_grafana_dashboards.py dashboards.yaml templates/fluent-bit/grafana-dashboards.yaml
|
||||
../kubezero-metrics/sync_grafana_dashboards.py dashboards-es.yaml templates/eck/grafana-dashboards.yaml
|
||||
|
Loading…
Reference in New Issue
Block a user