https://blog.csdn.net/qq_35550345/article/details/107044028 ,优化方向如下:
- 数据持久化到influxdb详细操作
- prometheus组件按需保留
- grafana面板优化
1- 数据持久化到influxdb
- 删除 Prometheus
kubectl delete Prometheus k8s -n monitoring
- 编辑 prometheus-prometheus.yaml
apiVersion: monitoring.coreos.com/v1
kind: Prometheus
metadata:
labels:
app.kubernetes.io/component: prometheus