Support monitoring of MongoDB Atlas instances

Description

MongoDB Atlas doesn’t allow direct connections. mongodb_exporter already supports using a --direct (true/false) argument:

but there is no way to pass that argument to pmm-admin.

Proposed fix: implement a --direct argument on pmm-admin that passes on the option to mongodb_exporter.

How to test

None

How to document

None

Smart Checklist

Activity

Show:

Artem Gavrilov April 21, 2025 at 12:40 PM

Some context: `-direct` parameter was added to MongoDB connections for backups feature needs.

daniel.almeida April 8, 2025 at 7:44 PM

I came across this ticket while working on an audit for a customer, and I believe this feature would be a valuable addition—especially for customers running on Atlas who are considering migrating away from it. This capability would allow us to set up PMM and collect the usual metrics, enabling us to make more informed decisions and recommendations for these types of environments, without requiring to have the customer grants us access to their Atlas UI.

Artem Gavrilov May 9, 2023 at 1:29 PM

in https://jira.percona.com/browse/PMM-11849 we made all DSNs for mongo db `direct` by default.

Michal March 1, 2023 at 4:12 PM

I briefly looked at this.

It's not a CLI task. It's related to exporters. The flag needs to be passed across several layers.

Michal February 27, 2023 at 12:21 PM

Not at the moment.

If it's only about passing a flag to the exporter, it's 3.

If not, we need to first take a look what this entails. It could be a bigger change.

Details

Assignee

Reporter

Priority

Components

Needs QA

Needs Doc

Affects versions

Smart Checklist

Created July 21, 2022 at 3:31 PM
Updated April 21, 2025 at 12:40 PM