[Telemetry] MongoDB flavor tracking

Description

Problem:

We cannot see a difference between MongoDB  Inc (community/enterprise) and Percona versions  (PSMBD) of  MongoDB. This information is crucial for our decisions and adoption tracking.

Acceptance Criteria:

  • Information about MongoDB flavor exposed and tracked in PMM

  • flavor value/field passed to telemetry 

  • Telemetry has a basic panel in Library to present this distribution (Mongo Inc x2 vs  PSMDB)

Possible solution:

function mongodb_edition() {
let info = db.runCommand(

{buildInfo: 1}

)
return "psmdbVersion" in info
? "PSMDB"
: info.modules.find(elem => elem === "enterprise")
? "enterprise"
: "community";
}

 

 

 

We already use `mongodb_version_info` metric from mongodb_exporter to expose the mongoDB version.  Additional filed with psmdb version here  (to not break compatibility) can help with tracking. 

 

How to document

None

Attachments

5
  • 17 Oct 2022, 03:37 PM
  • 17 Oct 2022, 03:36 PM
  • 17 Oct 2022, 03:35 PM
  • 19 Sep 2022, 09:31 PM
  • 19 Sep 2022, 09:29 PM

Confluence content

mentioned on

Smart Checklist

Activity

Show:

Ihor Cherkasov October 17, 2022 at 3:37 PM

Verified on FB – https://github.com/Percona-Lab/pmm-submodules/pull/2778#issuecomment-1262416711

Now I see the vendor and edition of database in PMM ManageD logs:

Also I see the data on Experimental / PMM telemetry panels library dashboards:

Dmytro Liakhov September 8, 2022 at 3:02 PM

Yes, we can. I will create a separate ticket for this.

jan.wieremjewicz September 8, 2022 at 6:10 AM

Can we have the pillars OS chart updated as well for MongoDB?

Roma Novikov September 7, 2022 at 2:45 PM

, yes panel on Library Dashboard - will be ok

Tetyana Butenko September 7, 2022 at 2:18 PM

we will add datapoint and create dashboard, ok?

Done

Details

Assignee

Reporter

Priority

Needs QA

Yes

Needs Doc

No

Planned Version/s

Fix versions

Story Points

Smart Checklist

Created August 26, 2022 at 11:36 AM
Updated November 10, 2022 at 10:14 AM
Resolved November 9, 2022 at 8:11 AM

Flag notifications