Can TiDB and DM share the same monitoring setup (Grafana, Prometheus, Alert Manager)?

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

Original topic: tidb和dm可以共用一套监控(Grafana、Prometheus、Alert Manager)?

| username: Jaimyjie

Can TiDB and DM share the same monitoring setup (Grafana, Prometheus, Alert Manager)?

| username: BraveChen | Original post link

Sure, I understand what you mean. You are saying that you can view DM’s monitoring within the existing monitoring dashboard, right?

| username: Jaimyjie | Original post link

Your understanding is correct, but your screenshot does not solve this problem. In other words, when deploying DM, can the hosts specified in the monitoring_servers, grafana_servers, and alertmanager_servers parameters be the same as the component IPs specified when deploying TiDB?

| username: h5n1 | Original post link

Currently, TiDB DM does not support using the same monitoring system. You can refer to the article on integrating multiple TiDB monitoring systems on TUG:

| username: buchuitoudegou | Original post link

You can manually start a Prometheus monitoring and add the DM data output port in the configuration:

scrape_configs:
  - job_name: dm-test
    static_configs:
      - targets: ["x.x.x.x:8361", "x.x.x.x:8362"]

Then open TiDB’s Grafana, manually add a data source, and add the metrics you want to monitor (or find a DM dashboard configuration in the TiFlow repository, modify it, and import it).

The above is just a personal guess and has not been tested :disappointed_relieved:

| username: Jaimyjie | Original post link

Thank you, OP.

| username: system | Original post link

This topic was automatically closed 1 minute after the last reply. No new replies are allowed.