LuLiMingAmos
不建议放弃内置的监控服务,这样可能会影响依赖组件和后续升级,请知悉。
如果确有需求,可以按如下方式操作。首先需要把 kubesphere-monitoring-system 项目下的 Prometheus Operator CRD 迁移或 merge 到你的 Prometheus 下。KubeSphere v3.0.0 使用的 Prometheus Operator CRD 详见:
https://github.com/kubesphere/kube-prometheus
调整完后请更新 kubesphere-config 配置文件,将 monitoring 的 endpoint 调整为你的 Prometheus Service,并重启 kubesphere-system 命名空间下的 ks-apiserver 组件:
kubectl get cm -n kubesphere-system kubesphere-config