[Telemetry] MongoDB flavor tracking
Description
How to test
Use this FB for testing https://github.com/Percona-Lab/pmm-submodules/pull/2778
How to document
Attachments
- 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
relates to
Smart Checklist
Activity
Ihor Cherkasov October 17, 2022 at 3:37 PM
Verified on FB – https://github.com/Percona-Lab/pmm-submodules/pull/2778#issuecomment-1262416711
Server Docker – perconalab/pmm-server-fb:PR-2778-9b40f5b
Client Tarball – https://s3.us-east-2.amazonaws.com/pmm-build-cache/PR-BUILDS/pmm2-client/pmm2-client-PR-2778-9b40f5b.tar.gz
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
@jan.wieremjewicz 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
@Tetyana Butenko , yes panel on Library Dashboard - will be ok
Tetyana Butenko September 7, 2022 at 2:18 PM
@Roma Novikov we will add datapoint and create dashboard, ok?
Details
Details
Assignee
Reporter
Priority
Components
Needs QA
Needs Doc
Planned Version/s
Fix versions
Story Points
Smart Checklist
Open Smart Checklist
Smart Checklist

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.