Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doc]: add curve monitor design. #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions docs/cn/CurveMonitor设计.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 背景
当前CurveBS和CurveFS监控功能通过各自CRD中`monitor.enable`字段控制开关。
这种方式监控和集群一对一绑定,不支持多集群集中监控的场景。

# 现状
当前问题总结如下:
- 监控不支持多集群。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个先不考虑了~

- 不支持监控相关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
```

Binary file added docs/images/curve-monitor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.