-
Notifications
You must be signed in to change notification settings - Fork 525
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
curvefs/monitor: promethus #1237
Conversation
recheck |
14bdd8a
to
9347623
Compare
curvefs/monitor/README.md
Outdated
@@ -0,0 +1,159 @@ | |||
## 目录结构介绍 | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improve the document format like output of command tree.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Improve the document format like output of command tree.
fix
curvefs/monitor/README.md
Outdated
|
||
##### target_json.py | ||
|
||
用于生成prometheus监控对象的python脚本,每隔一段时间用curve_ops_tool拉取监控目标并更新。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curve_ops_tool or curvefs_tool ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curve_ops_tool or curvefs_tool ?
fix
curvefs/monitor/README.md
Outdated
|
||
grafana的启动配置文件,将映射到容器的 `/etc/grafana/grafana.ini` 上 | ||
|
||
##### grafana/report: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is an empty dir, delete it if don't need now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is an empty dir, delete it if don't need now.
it use for daily report.
|
||
```curve-monitor.sh start ``` | ||
|
||
* 部署grafana每日报表 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file report.py not exist. grafana-report.py?
Kepp this README file and monitor dir consistent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file report.py not exist. grafana-report.py?
Kepp this README file and monitor dir consistent.
From the project point of view, it should be grafana-report.py
] | ||
}, | ||
"time": { | ||
"from": "now-6h", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default 30min is ok.
32a3579
to
8cd649e
Compare
├── grafana # grafana相关目录 | ||
│ ├── dashboards # grafana所有dashboards的json文件存放目录,grafana将从该目录加载文件来创建dashboards; | ||
| | | # 通过update_dashboard.sh脚本来更新最新的dashboards。 | ||
│ │ ├── etcd.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forget client.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forget client.json
ok
curvefs/monitor/curve-monitor.sh
Outdated
#!/bin/sh | ||
|
||
# | ||
# Copyright (c) 2020 NetEase Inc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2022
fix
8cd649e
to
73b5fc3
Compare
1. add curvefs monitor 2. curvefs_tool status-mds show dummy port for dummy mds 3. add port in mountpoints, change mountpoint from {hostname}:{mountpoint} to {hostname}:{port}:{mountpath}
73b5fc3
to
552fbfb
Compare
What problem does this PR solve?
Issue Number: close #1236
Problem Summary:
What is changed and how it works?
What's Changed:
How it Works:
Side effects(Breaking backward compatibility? Performance regression?):
Check List