Explorar o código

opt: ck:增加grafana dashboard

wjinan hai 9 meses
pai
achega
25a6be4dbc

+ 9 - 0
README.md

@@ -5,6 +5,7 @@ Monitor:
  - alertmanager: 9993
  - dingtalk: 9994
  - prometheusAlert: 9995
+ - grafana: 3000
 
 Exporter:
  port:
@@ -24,3 +25,11 @@ Clickhouse:
           <asynchronous_metrics>true</asynchronous_metrics>
           <status_info>true</status_info>
      </prometheus>
+
+Grafana:
+    Dashboards:
+        id: 14192
+    使用方法:
+        1:启动grafana后,登录localhost:3000,默认账号密码都为admin,登录后可设置密码
+        2:导入dashboard:在Dashboard的import下点击Upload Json file,选择grafana/dashboards/14192_rev4.json,所有配置选择默认即可(若Name重名,修改为任意名字)
+        3. 导入成功后即可看到ck数据指标。

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 11242 - 0
code/grafana/dashboards/14192_rev4.json


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 6595
code/grafana/dashboards/ResoDB-cluster_rev20.json


+ 2 - 2
code/restartAll.sh

@@ -8,8 +8,8 @@ ROOT=$(cd `dirname $0`; pwd)
 cd $ROOT/prometheus/
 ./restart.sh
 
-#cd $ROOT/grafana/
-#./restart.sh
+cd $ROOT/grafana/
+./restart.sh
 
 cd $ROOT/alert/
 ./restart.sh

+ 2 - 2
code/runAll.sh

@@ -8,8 +8,8 @@ ROOT=$(cd `dirname $0`; pwd)
 cd $ROOT/prometheus/
 ./run.sh
 
-#cd $ROOT/grafana/
-#./run.sh
+cd $ROOT/grafana/
+./run.sh
 
 cd $ROOT/alert/
 ./run.sh

+ 2 - 2
code/statusAll.sh

@@ -8,8 +8,8 @@ ROOT=$(cd `dirname $0`; pwd)
 cd $ROOT/prometheus
 ./status.sh
 
-#cd $ROOT/grafana
-#./status.sh
+cd $ROOT/grafana
+./status.sh
 
 cd $ROOT/alert/
 ./status.sh

+ 2 - 2
code/stopAll.sh

@@ -9,8 +9,8 @@ echo stop all
 cd $ROOT/prometheus
 ./stop.sh
 
-#cd $ROOT/grafana
-#./stop.sh
+cd $ROOT/grafana
+./stop.sh
 
 cd $ROOT/alert/
 ./stop.sh