Percona pmm-admin query to add mongodb with authservice.

Description

Hi,

 

We used pmm-admin (Version - 1.17) where we use to have --uri option something like below,

pmm-admin mongodb --uri "mongodb://user:pass@mongo_ip:port/?authSource=admin&replicaSet=Cluster_name"

 

Not finding this option in pmm-admin (Version - 2.2). Can you tell me how to pass the authSource in the query and we tried the below query but my mongodb is not getting listed in Pmm-server-grafana. 

 

pmm-admin add mongodb --username=user --password=pass --replication-set=azuga --debug mongo host_ip:port

 

Can you please me to identify where i am going wrong?? As i am new to percona.

 

Any help will be much appreciated.

 

Thanks,

Saravana.

 

How to test

None

How to document

None

Smart Checklist

Activity

Lalit Choudhary January 30, 2020 at 10:15 AM

Hi

Thank you for the report.

This not a bug. Please post such a question to our percona forum.

 

https://www.percona.com/forums/questions-discussions/percona-monitoring-and-management

following is an example to add MongoDB service in PMM 2  version.

https://www.percona.com/doc/percona-monitoring-and-management/2.x/manage/client-mongodb-metrics.html

find more option  by running  " pmm-admin add mongodb  --help "

 

Not a Bug

Details

Assignee

Reporter

Priority

Components

Affects versions

Smart Checklist

Created January 10, 2020 at 3:22 PM
Updated March 6, 2024 at 4:59 AM
Resolved January 30, 2020 at 10:15 AM