Done
Details
Assignee
Michael OkokoMichael OkokoReporter
Roma NovikovRoma Novikov(Deactivated)Priority
CriticalLabels
Needs QA
NoNeeds Doc
NoStory Points
3
Details
Details
Assignee
Michael Okoko
Michael OkokoReporter
Roma Novikov
Roma Novikov(Deactivated)Priority

Labels
Needs QA
No
Needs Doc
No
Story Points
3
Smart Checklist
Smart Checklist
Smart Checklist
Created January 19, 2024 at 9:18 AM
Updated April 2, 2024 at 3:48 PM
Resolved March 25, 2024 at 9:50 AM
The goal of this POC is to verify the SDK implemented in https://perconadev.atlassian.net/browse/PBM-780 to be used in PMM for monitoring.
Goal: present PBM metrics and backup information in PMM using the existing connection to MongoDB. This will let us cover a lot of “Backup Alerting“ requests from https://perconadev.atlassian.net/browse/PMM-12728 by using already monitored MongoDB and cover different PBM deployment scenarios (manual pdb, Everest) w/o the need for PMM to be the manager of the PBM.
Original idea: extend MongoDB exporter with a new collector and use the SDK to get data from MongoDB and convert them to logical information.
Metrics to expose:
Is the backup configured for the cluster this instance belongs to?
Is the PITR on for the backup?
Existed backups and their size
Currently running backups and their statuses
Useful links:
https://docs.percona.com/percona-backup-mongodb/reference/pbm-commands.html#pbm-status
https://docs.percona.com/percona-backup-mongodb/troubleshoot/status.html
Details:
SDK is located in dev branch of https://github.com/percona/percona-backup-mongodb/tree/dev/sdk
To check documentation
git clone -b dev git@github.com:percona/percona-backup-mongodb.git
and then run
cd "percona-backup-mongodb" && godoc -http=:8080 -index -links
(edited)to install godoc use
go install golang.org/x/tools/cmd/godoc@latest
http://localhost:8080/pkg/github.com/percona/percona-backup-mongodb/sdk/