[Spike] poc: SDK usage for Backup metrics

Description

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:

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/

How to test

None

How to document

None

Activity

Nurlan Moldomurov March 13, 2024 at 12:03 PM

let’s close this task since we have required output. What do you think?

Done

Details

Assignee

Reporter

Priority

Labels

Needs QA

No

Needs Doc

No

Planned Version/s

Story Points

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

Flag notifications