Unable to add replica node1 to PMM monitoring

unable to add replica node for monitoring in PMM

pmm-admin list
Service type Service name Address and port Service ID
MongoDB xxxxxxx xxxxxxxxxxxx

Step1: add cluster → pmm-admin add mongodb --username=pmm --password=xxxx --cluster mongodev0 mongodev

on node1:

Step2: add replica cluster → pmm-admin add mongodb:metrics --uri “mongodb://xxxxxx:27017/admin?replicaSet=mongodev0” mongonode1 --cluster mongodev0 mongodev

Error at step2 : pmm-admin: error: expected command but got “mongodb:metrics”, try --help

Please advise

You should add each service for monitoring. Used replication set is fetched by exporter from instances and used on dashboards.

1 Like