From b97cd552c2528b92ec06c4cdffc2c459efb59548 Mon Sep 17 00:00:00 2001 From: Lux Date: Sun, 31 Jul 2022 15:08:38 +0800 Subject: [PATCH 1/4] Update monitor-a-tidb-cluster.md --- zh/monitor-a-tidb-cluster.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/zh/monitor-a-tidb-cluster.md b/zh/monitor-a-tidb-cluster.md index 5682db53c..370bce51b 100644 --- a/zh/monitor-a-tidb-cluster.md +++ b/zh/monitor-a-tidb-cluster.md @@ -117,6 +117,16 @@ kubectl port-forward -n ${namespace} svc/${cluster_name}-grafana 3000:3000 &>/tm 也可以设置 `spec.grafana.service.type` 为 `NodePort` 或者 `LoadBalancer`,通过 `NodePort` 或者 `LoadBalancer` 查看监控面板。 +目前 Grafana Dashboard 分为: +- 综合诊断面板:Overview、Performance\_Overview。 +- 组件面板: + - Data TransferBinlog、Lightning、TiCDC。 + - PD:PD。 + - TiDB:TiDB。 + - TiKV:TiKV\_Summary、TiKV\_Details、TiKV\_Trouble\_Shooting。 + - TiFlash:TiFlash\_Summary、TiFlash\_Proxy\_Summary、TiFlash\_Proxy\_Details。 + - Other:Nodes\_Info、Pods\_Info。 + 如果不需要使用 Grafana,可以在部署时将 `TidbMonitor` 中的 `spec.grafana` 部分删除。这一情况下需要使用其他已有或新部署的数据可视化工具直接访问监控数据来完成可视化。 ### 访问 Prometheus 监控数据 From ecd08f519538cde975877cc047554514376d4e87 Mon Sep 17 00:00:00 2001 From: Lux Date: Sun, 31 Jul 2022 15:15:04 +0800 Subject: [PATCH 2/4] Update monitor-a-tidb-cluster.md --- zh/monitor-a-tidb-cluster.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh/monitor-a-tidb-cluster.md b/zh/monitor-a-tidb-cluster.md index 370bce51b..fbcf5920e 100644 --- a/zh/monitor-a-tidb-cluster.md +++ b/zh/monitor-a-tidb-cluster.md @@ -118,7 +118,7 @@ kubectl port-forward -n ${namespace} svc/${cluster_name}-grafana 3000:3000 &>/tm 也可以设置 `spec.grafana.service.type` 为 `NodePort` 或者 `LoadBalancer`,通过 `NodePort` 或者 `LoadBalancer` 查看监控面板。 目前 Grafana Dashboard 分为: -- 综合诊断面板:Overview、Performance\_Overview。 +- 综合诊断面板:Overview。 - 组件面板: - Data TransferBinlog、Lightning、TiCDC。 - PD:PD。 From ab6676e9b3b0288a9d9ae6aba9a187caded62695 Mon Sep 17 00:00:00 2001 From: Lux Date: Mon, 1 Aug 2022 09:39:41 +0800 Subject: [PATCH 3/4] Update monitor-a-tidb-cluster.md --- zh/monitor-a-tidb-cluster.md | 1 + 1 file changed, 1 insertion(+) diff --git a/zh/monitor-a-tidb-cluster.md b/zh/monitor-a-tidb-cluster.md index fbcf5920e..f78046dd7 100644 --- a/zh/monitor-a-tidb-cluster.md +++ b/zh/monitor-a-tidb-cluster.md @@ -120,6 +120,7 @@ kubectl port-forward -n ${namespace} svc/${cluster_name}-grafana 3000:3000 &>/tm 目前 Grafana Dashboard 分为: - 综合诊断面板:Overview。 - 组件面板: + - Data TransferBinlog、Lightning、TiCDC。 - PD:PD。 - TiDB:TiDB。 From 7e2e6508c31f99dd5b2a81572cab4e8323da9cee Mon Sep 17 00:00:00 2001 From: Ran Date: Thu, 17 Nov 2022 11:07:00 +0800 Subject: [PATCH 4/4] update format --- zh/monitor-a-tidb-cluster.md | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/zh/monitor-a-tidb-cluster.md b/zh/monitor-a-tidb-cluster.md index f78046dd7..1c805b6ad 100644 --- a/zh/monitor-a-tidb-cluster.md +++ b/zh/monitor-a-tidb-cluster.md @@ -105,28 +105,29 @@ basic-monitor Bound pvc-6db79253-cc9e-4730-bbba-ba987c29db6f 5G R ### 访问 Grafana 监控面板 -可以通过 `kubectl port-forward` 访问 Grafana 监控面板: +你可以通过以下两种方式访问 Grafana 监控面板: -{{< copyable "shell-regular" >}} +* 方法 1:通过 `kubectl port-forward` 访问: -```shell -kubectl port-forward -n ${namespace} svc/${cluster_name}-grafana 3000:3000 &>/tmp/portforward-grafana.log & -``` + ```shell + kubectl port-forward -n ${namespace} svc/${cluster_name}-grafana 3000:3000 &>/tmp/portforward-grafana.log & + ``` + + 在浏览器中打开 ,默认用户名和密码都为 `admin`。 -然后在浏览器中打开 [http://localhost:3000](http://localhost:3000),默认用户名和密码都为 `admin`。 +* 方法 2:设置 `spec.grafana.service.type` 为 `NodePort` 或者 `LoadBalancer`,通过 `NodePort` 或者 `LoadBalancer` 查看监控面板。 -也可以设置 `spec.grafana.service.type` 为 `NodePort` 或者 `LoadBalancer`,通过 `NodePort` 或者 `LoadBalancer` 查看监控面板。 +目前 Grafana Dashboard 分为以下几个面板: -目前 Grafana Dashboard 分为: -- 综合诊断面板:Overview。 +- 综合诊断面板:Overview - 组件面板: - - Data TransferBinlog、Lightning、TiCDC。 - - PD:PD。 - - TiDB:TiDB。 - - TiKV:TiKV\_Summary、TiKV\_Details、TiKV\_Trouble\_Shooting。 - - TiFlash:TiFlash\_Summary、TiFlash\_Proxy\_Summary、TiFlash\_Proxy\_Details。 - - Other:Nodes\_Info、Pods\_Info。 + - Data TransferBinlog、Lightning、TiCDC + - PD + - TiDB + - TiKV:TiKV\_Summary、TiKV\_Details、TiKV\_Trouble\_Shooting + - TiFlash:TiFlash\_Summary、TiFlash\_Proxy\_Summary、TiFlash\_Proxy\_Details + - 其他:Nodes\_Info、Pods\_Info 如果不需要使用 Grafana,可以在部署时将 `TidbMonitor` 中的 `spec.grafana` 部分删除。这一情况下需要使用其他已有或新部署的数据可视化工具直接访问监控数据来完成可视化。