2020-12-18 00:46:15 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-09-08 14:10:36 +00:00
|
|
|
VERSION=$(yq r Chart.yaml dependencies.name==kube-prometheus-stack.version)
|
|
|
|
PG_VER=$(yq r Chart.yaml dependencies.name==prometheus-pushgateway.version)
|
2020-12-18 00:46:15 +00:00
|
|
|
|
|
|
|
rm -rf charts/kube-prometheus-stack
|
2021-07-21 13:06:40 +00:00
|
|
|
helm pull prometheus-community/kube-prometheus-stack --untar --untardir charts --version $VERSION
|
|
|
|
|
|
|
|
rm -rf charts/prometheus-pushgateway
|
|
|
|
helm pull prometheus-community/prometheus-pushgateway --untar --untardir charts --version $PG_VER
|
2020-12-18 00:46:15 +00:00
|
|
|
|
2021-04-15 13:03:52 +00:00
|
|
|
# The grpc alerts could be re-enabled with etcd 3.5
|
|
|
|
# https://github.com/etcd-io/etcd/pull/12196
|
2021-07-01 11:36:35 +00:00
|
|
|
patch -p0 -i zdt.patch --no-backup-if-mismatch
|
2021-04-26 14:27:19 +00:00
|
|
|
|
2021-07-21 13:06:40 +00:00
|
|
|
patch -p0 -i zdt-pushgateway.patch --no-backup-if-mismatch
|
|
|
|
|
2021-04-26 14:27:19 +00:00
|
|
|
# Create ZDT dashboard configmap
|
2021-04-27 09:17:50 +00:00
|
|
|
cd dashboards
|
2021-07-01 11:36:35 +00:00
|
|
|
./build.sh
|
2021-07-01 13:09:51 +00:00
|
|
|
|
|
|
|
# Patch for the apiserver dashboard
|
|
|
|
patch -p1 -i ../zdt-apiserver-dashboard.patch --no-backup-if-mismatch
|
|
|
|
|
2021-06-01 16:40:34 +00:00
|
|
|
../sync_grafana_dashboards.py metrics-dashboards.yaml ../templates/grafana-dashboards-metrics.yaml
|
2021-04-27 09:17:50 +00:00
|
|
|
../sync_grafana_dashboards.py k8s-dashboards.yaml ../templates/grafana-dashboards-k8s.yaml
|
|
|
|
../sync_grafana_dashboards.py zdt-dashboards.yaml ../templates/grafana-dashboards-zdt.yaml
|
|
|
|
cd -
|