diff --git "a/docs/cn/CurveMonitor\350\256\276\350\256\241.md" "b/docs/cn/CurveMonitor\350\256\276\350\256\241.md" new file mode 100644 index 00000000..8ae1d06d --- /dev/null +++ "b/docs/cn/CurveMonitor\350\256\276\350\256\241.md" @@ -0,0 +1,40 @@ +# 背景 +当前CurveBS和CurveFS监控功能通过各自CRD中`monitor.enable`字段控制开关。 +这种方式监控和集群一对一绑定,不支持多集群集中监控的场景。 + +# 现状 +当前问题总结如下: +- 监控不支持多集群。 +- 不支持监控相关WorkLoad配置更新 +- WorkLoad应该采用Sts代替Deployment. +- 一些高级功能不支持,如Prometheus配置动态更新,Thanos 生态集成等。 + +# 方案设计 +![设计思路图](../images/curve-monitor.png) + +CRD Yaml 示例: +``` +apiVersion: operator.curve.io/v1 +kind: CurveMonitor +metadata: + name: test + namespace: curve +spec: + replicas: 1 + clusters: + - name: basic + type: curvefs + - name: basic2 + type: curvebs + prometheus: + baseImage: prom/prometheus + version: v2.27.1 + grafana: + baseImage: grafana/grafana + version: 7.5.11 + prometheusReloader: + baseImage: quay.io/prometheus-operator/prometheus-config-reloader + version: v0.49.0 + imagePullPolicy: IfNotPresent +``` + diff --git a/docs/images/curve-monitor.png b/docs/images/curve-monitor.png new file mode 100644 index 00000000..a9238a6f Binary files /dev/null and b/docs/images/curve-monitor.png differ