Skip to content
Open
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
26 changes: 19 additions & 7 deletions zh/monitor-a-tidb-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +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 &
```

在浏览器中打开 <http://localhost:3000>,默认用户名和密码都为 `admin`。

* 方法 2:设置 `spec.grafana.service.type` 为 `NodePort` 或者 `LoadBalancer`,通过 `NodePort` 或者 `LoadBalancer` 查看监控面板。

目前 Grafana Dashboard 分为以下几个面板:

然后在浏览器中打开 [http://localhost:3000](http://localhost:3000),默认用户名和密码都为 `admin`。
- 综合诊断面板:Overview
- 组件面板:

也可以设置 `spec.grafana.service.type` 为 `NodePort` 或者 `LoadBalancer`,通过 `NodePort` 或者 `LoadBalancer` 查看监控面板。
- Data TransferBinlog、Lightning、TiCDC
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

这里 TransferBinlog 是写错了吗,还是这个面板就叫这个名字?

- 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` 部分删除。这一情况下需要使用其他已有或新部署的数据可视化工具直接访问监控数据来完成可视化。

Expand Down