README ¶
Use for v1.21.x update to v1.22.x
v1.22.0-beta.2 to v1.22.0
- upgrate prometheus operator CRDs
kubectl apply --server-side --force-conflicts -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.60.1/example/prometheus-operator-crd/monitoring.coreos.com_alertmanagerconfigs.yaml
kubectl apply --server-side --force-conflicts -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.60.1/example/prometheus-operator-crd/monitoring.coreos.com_alertmanagers.yaml
kubectl apply --server-side --force-conflicts -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.60.1/example/prometheus-operator-crd/monitoring.coreos.com_podmonitors.yaml
kubectl apply --server-side --force-conflicts -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.60.1/example/prometheus-operator-crd/monitoring.coreos.com_probes.yaml
kubectl apply --server-side --force-conflicts -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.60.1/example/prometheus-operator-crd/monitoring.coreos.com_prometheuses.yaml
kubectl apply --server-side --force-conflicts -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.60.1/example/prometheus-operator-crd/monitoring.coreos.com_prometheusrules.yaml
kubectl apply --server-side --force-conflicts -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.60.1/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml
kubectl apply --server-side --force-conflicts -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.60.1/example/prometheus-operator-crd/monitoring.coreos.com_thanosrulers.yaml
- all cluster getChannels
- config mysql connection and saveChannels
- all cluster updateReceivers
- check configmap email template. if not exist
kubectl apply --server-side -f deploy/plugins/monitoring/templates/kubegems-email-template.yaml
- restart alertmanager
kubectl delete pod -n kubegems-monitoring -l app.kubernetes.io/name=alertmanager
- update monitor_dashboards and monitor_dashboard_tpls of consul
use kubegems;
SET SQL_SAFE_UPDATES=0;
update monitor_dashboards set graphs = json_replace(graphs, "$[0].promqlGenerator.resource", "consul") where template = "Consul";
update monitor_dashboards set graphs = json_replace(graphs, "$[1].promqlGenerator.resource", "consul") where template = "Consul";
update monitor_dashboards set graphs = json_replace(graphs, "$[2].promqlGenerator.resource", "consul") where template = "Consul";
update monitor_dashboards set graphs = json_replace(graphs, "$[3].promqlGenerator.resource", "consul") where template = "Consul";
update monitor_dashboards set graphs = json_replace(graphs, "$[4].promqlGenerator.resource", "consul") where template = "Consul";
update monitor_dashboard_tpls set graphs = json_replace(graphs, "$[0].promqlGenerator.resource", "consul") where name = "Consul";
update monitor_dashboard_tpls set graphs = json_replace(graphs, "$[1].promqlGenerator.resource", "consul") where name = "Consul";
update monitor_dashboard_tpls set graphs = json_replace(graphs, "$[2].promqlGenerator.resource", "consul") where name = "Consul";
update monitor_dashboard_tpls set graphs = json_replace(graphs, "$[3].promqlGenerator.resource", "consul") where name = "Consul";
update monitor_dashboard_tpls set graphs = json_replace(graphs, "$[4].promqlGenerator.resource", "consul") where name = "Consul";
- dashboard tpl
Container Memory Use Percent
Documentation ¶
There is no documentation for this package.
Click to show internal directories.
Click to hide internal directories.