Ability to have Backup Alerts based on PBM backups (not PMM backups)

Description

This will help many have Backup Alerting in place, in the intermediate time needed to move to PMM Backups.

How to test

  • Set up a MongoDB instance (or cluster) with PBM configured for the same instance/cluster.

  • Take at least one backup with PBM.

  • Add MongoDB instance to PMM.

  • Check for PBM-related metrics in PMM Explore tab. Specifically, we want the following metrics:

    • mongodb_pbm_cluster_pitr_backup_enabled

    • mongodb_pbm_backup_duration_seconds

    • mongodb_pbm_backup_size

    • mongodb_pbm_cluster_backup_configured

    • mongodb_pbm_agent_status

How to document

A new collector introduced in Mongo DB exporter

AFFECTED CS IDs

CS0043894

Smart Checklist

hide

Activity

Show:

Michael Okoko August 26, 2024 at 9:58 PM

Hi Santo, yeah exactly, mongodb_pbm_agent_status is one of the added metrics and can be used to alert when pbm agent is down.

Santo Leto August 21, 2024 at 10:38 PM

Hi! Can you clarify if there is also a metric regarding the status of the Agent?

I ask because I do not see it listed in the “How to test” section of this ticket. However, I do see a “mongodb_pbm_agent_status“ in pmb_collector_test.go in .

If we have a new metric for the agent status, can this metric be used to have the alert described in ?

Just trying to understand. Thank you.

Michael Okoko August 21, 2024 at 10:02 AM

So far, we’ve conducted all our tests with the PBM v2.5.0 docker image (so v2.5.0 works). We are still working with the PBM team to establish the minimum versions (if it will be lower than 2.5).

Santo Leto August 21, 2024 at 9:47 AM

Hi!
Thanks for working on this. Will PBM v2.6.0 be needed, or will the new metrics work with old PBM versions as well? In other words, which is the min PBM version (if any) that one has to have for this to work?

Thank you!

Done

Details

Assignee

Reporter

Priority

Components

Needs QA

Yes

Needs Doc

Yes

Planned Version/s

Fix versions

Story Points

Affects versions

Smart Checklist Progress

Smart Checklist

Created February 21, 2024 at 2:27 PM
Updated September 24, 2024 at 9:51 AM
Resolved August 27, 2024 at 9:28 AM