|
|
@ -60,6 +60,27 @@ http://localhost:9090/targets
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Grafana
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 安装启动
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Docker安装
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
|
|
|
|
# 启动grafana
|
|
|
|
|
|
|
|
docker run -d -p 3000:3000 --name=grafana \
|
|
|
|
|
|
|
|
-v /home/soft/monitor/grafana/Grafana-storage:/var/lib/Grafana \
|
|
|
|
|
|
|
|
-v /etc/localtime:/etc/localtime:ro \
|
|
|
|
|
|
|
|
grafana/grafana
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**使用方式**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- 第一步:添加数据源prometheus
|
|
|
|
|
|
|
|
- 第二步:导入或创建Dashboard
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Node Exporter
|
|
|
|
## Node Exporter
|
|
|
|
|
|
|
|
|
|
|
|
据说最好安装在linux上。
|
|
|
|
据说最好安装在linux上。
|
|
|
@ -176,26 +197,11 @@ https://grafana.com/grafana/dashboards/12900
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Grafana
|
|
|
|
## MySQL
|
|
|
|
|
|
|
|
|
|
|
|
## 安装启动
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Docker安装
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```shell
|
|
|
|
### 监控模板
|
|
|
|
# 启动grafana
|
|
|
|
|
|
|
|
docker run -d -p 3000:3000 --name=grafana \
|
|
|
|
|
|
|
|
-v /home/soft/monitor/grafana/Grafana-storage:/var/lib/Grafana \
|
|
|
|
|
|
|
|
-v /etc/localtime:/etc/localtime:ro \
|
|
|
|
|
|
|
|
grafana/grafana
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 使用方式
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- 第一步:添加数据源prometheus
|
|
|
|
https://grafana.com/grafana/dashboards/7362
|
|
|
|
- 第二步:导入或创建Dashboard
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|