# Configuring `Grafana` Data Source

__*TiDB monitoring access*__
__*TiDB Prometheus+ Grafana Access*__
__*Access the TiDB Dashboard*__

+ Customization is also available:
  + On the `Data Source` tab under `Configuration`, add or ensure the cluster `Prometheus` as the data source 
+ Import dashboards for `TiDB`, `TiKV` or `PD` respectively:
[`https://github.com/pingcap/tidb/tree/master/metrics/grafana`](https://github.com/pingcap/tidb/tree/master/metrics/grafana)
[`https://github.com/tikv/tikv/tree/master/metrics/grafana`](https://github.com/tikv/tikv/tree/master/metrics/grafana)
[`https://github.com/tikv/pd/tree/master/metrics/grafana`](https://github.com/tikv/pd/tree/master/metrics/grafana)

![`smart`](GrafanaDataSource_aa_001_20221122.png)

----------------------------------------------------------------------------------------------------------------------------
If you deploy the `TiDB` cluster using `TiUP`, the monitoring and alert services are automatically deployed, and no manual deployment and configuration are needed.

For manual deployment, please refer to the documentation for detail - `https://docs.pingcap.com/zh/tidb/stable/deploy-monitoring-services`.

On `Dashboard Import` page, click `Upload JSON file` to upload the `Grafana` dashboard configuration for:
- `TiDB` servers: `https://github.com/pingcap/tidb/tree/master/metrics/grafana` 
- `TiKV` servers: `https://github.com/tikv/tikv/tree/master/metrics/grafana`
- `PD` servers: `https://github.com/tikv/pd/tree/master/metrics/grafana`
