Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: dm任务 怎么添加到tidb实例已经部署好的监控
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?
TiDB clusters and DM clusters are currently two separate clusters, each managed independently by tiup, so their monitoring cannot be merged together.
The DM cluster has monitoring.
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.
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.
The DM cluster and the TiDB cluster are independent.
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.
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.
Indeed, Prometheus needs to retrieve data from two clusters.
DM’s standalone monitoring deployment can independently collect and merge monitoring information.
DM will have its own monitoring.