How to Add a DM Task to the Monitoring of an Already Deployed TiDB Instance

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: dm任务 怎么添加到tidb实例已经部署好的监控

| username: 付先生Mr

How can I add the later deployed DM to the previously deployed TiDB monitoring component if I have already deployed the TiDB cluster and then deployed DM without deploying the monitoring component?

| username: 小龙虾爱大龙虾 | Original post link

TiDB clusters and DM clusters are currently two separate clusters, each managed independently by tiup, so their monitoring cannot be merged together.

| username: zhaokede | Original post link

The DM cluster has monitoring.

| username: zhaokede | Original post link

The DM cluster and the TiDB cluster are completely separate entities. Having two TiDB clusters means having multiple Prometheus and Grafana instances, each monitoring its own cluster. The same applies to the DM cluster.

| username: TiDBer_QYr0vohO | Original post link

You now start a set of Prometheus on the DM side, then copy the DM-related configuration of Prometheus to the Prometheus on the TiDB cluster side, and then remove the one from DM.

| username: zhh_912 | Original post link

  1. Configure Prometheus
  2. Restart Prometheus
  3. Configure Grafana
| username: yytest | Original post link

The DM cluster and the TiDB cluster are independent.

| username: 小于同学 | Original post link

This won’t work, right?

| username: Sword | Original post link

I understand that it should be monitoring merging. You can set up a common Prometheus to retrieve data from both clusters and write it all into the common cluster.

| username: 这里介绍不了我 | Original post link

:thinking: If you don’t mind the trouble, you can set up your own. Just move the DM and TiDB data sources and related dashboards over.

| username: yytest | Original post link

Indeed, Prometheus needs to retrieve data from two clusters.

| username: paulli | Original post link

DM’s standalone monitoring deployment can independently collect and merge monitoring information.

| username: TiDBer_RjzUpGDL | Original post link

DM has monitoring

| username: Jack-li | Original post link

DM will have its own monitoring.

| username: YuchongXU | Original post link

This is not supported.