Number of mongodb exoprters installed

Hello,
I have a mongodb replica set with one master node and two slave nodes. I want to install mongodb exoprter to collect mongodb indicators and configure it to send data to existing Prometheus. Do I only need to install mongodb exoprter on the master node of mongodb? Or do I need to install mongodb exoprter on every node?
Currently I only have mongodb exopter installed on the master node, but I can’t get information on the two slave nodes

Hi Liu,

Please install the exporter on each node.

1 Like

Thank you !!
That is to say, I should deploy Mongodb_exporter on all three nodes, and in this way, the MongoDB_ReplSet_Summary and MongoDB_Instances_Overview dashboards can display information about the three nodes?

1 Like

If dashboards would be used without a PMM please convert them by the next script.

1 Like

Hi,I have completed the deployment of three exporters. How do I set the label of target in Prometheus? Will this label affect the display of dashboard

1 Like

The script is replacing PMM2 labels by default Prometheus labels. So no additional labels are required.

1 Like

It worked, but there was another problem. How to obtain the PMM-Pt-summary-Panel plugin?

1 Like

It’s a part of PMM2. So please just remove this element from the dashboard.

1 Like

Okay, thank you so much. I have completed the deployment of mongoDB exporter and mongoDB dashboard, thank you for your guidance

1 Like

No matter which node I select in mongoDB Replset, this panel shows Primary. I checked that metrics all returned 1. Do you know why?
The last image shows details of mongoDB Replset.



1 Like