KubeZero/charts/kubezero-metrics/update.sh

25 lines
725 B
Bash
Raw Normal View History

#!/bin/bash
2021-12-15 22:19:52 +00:00
set -ex
2023-08-22 13:02:40 +00:00
. ../../scripts/lib-update.sh
2022-10-27 12:27:42 +00:00
2023-08-22 13:02:40 +00:00
#login_ecr_public
update_helm
2023-08-22 13:02:40 +00:00
patch_chart kube-prometheus-stack
# Create ZDT dashboard, alerts etc configmaps
cd jsonnet && make
../sync_grafana_dashboards.py metrics-dashboards.yaml ../templates/grafana-dashboards-metrics.yaml
../sync_grafana_dashboards.py k8s-dashboards.yaml ../templates/grafana-dashboards-k8s.yaml
../sync_grafana_dashboards.py zdt-dashboards.yaml ../templates/grafana-dashboards-zdt.yaml
../sync_prometheus_rules.py k8s-rules.yaml ../templates/rules
cd -
# Delete not used upstream dashboards or rules
rm -rf charts/kube-prometheus-stack/templates/grafana/dashboards-1.14 charts/kube-prometheus-stack/templates/prometheus/rules-1.14
2023-11-27 12:45:06 +00:00
update_docs