MongoDB Backup Details dashboard¶
This dashboard helps you monitor your Percona Backup for MongoDB (PBM) environment directly within PMM.
It brings together backup configuration, agent health, and backup history in one place, so you don’t need to switch between tools.
The dashboard works with both replica sets and sharded clusters.
Use the filters at the top to narrow down to specific environments, clusters, or replica sets.

Note
This dashboard requires MongoDB services to be added with the --cluster parameter. If panels show no data, see Add MongoDB service to PMM.
Overview¶
Backup Configured¶
Shows whether PBM has a remote storage location configured. A green YES means backup storage is set up while a red NO means it isn’t.
Check this first when opening the dashboard. If it shows NO, no backups are running regardless of what other panels show. Configure a remote storage location (S3, Azure Blob, or filesystem) in PBM before relying on this dashboard for backup monitoring.
PITR Status¶
Shows whether Point-in-Time Recovery (PITR) oplog streaming is enabled. A green ON means PITR is active; a red OFF means it isn’t.
PITR lets you restore to any moment in time, not just to the nearest backup snapshot. If your recovery objectives require granular restores, and this shows OFF, enable PITR in your PBM configuration.
Backup Agents¶
Shows the total number of PBM agents currently monitored by PMM.
Compare this against the number of nodes you expect to be covered. A lower count means some agents have gone offline or failed to register. Any node without a running agent won’t be backed up, so investigate immediately if the count doesn’t match.
Last Successful Backup¶
Shows the name of the most recent backup that completed successfully.
Use this as your quick recovery point check: it tells you exactly how far back you’d need to restore if something went wrong right now.
If it shows an old backup or N/A, investigate why backups stopped completing.
Status¶
Backup Agent Summary¶
Shows the distribution of PBM agent statuses across your environment as a donut chart. Green represents agents with OK status; red represents agents that need attention (CHECK).
A predominantly green chart means your backup infrastructure is healthy. Any red segments mean some agents have issues and backups on those nodes are at risk.
When you see red, move to the Backup Agent Status panel to find out which specific hosts are affected.
Backup Agent Status¶
Shows the current status of each individual PBM agent as a hexagon grid, with one hexagon per host. Green means OK; red means CHECK.
Use this to pinpoint exactly which nodes have agent problems after the Backup Agent Summary flags an issue. Hover over a hexagon to see the hostname.
Arbiter nodes always show CHECK here. This is expected, because the PBM agent can’t run on arbiters.
Backup Agent Status Over Time¶
Shows each agent’s status history over the selected time range as a color-coded timeline. Green bars indicate OK; red bars indicate FAIL or DOWN.
Use this to tell the difference between a one-off failure and a recurring problem. Repeated red bars on the same node point to an underlying issue rather than a transient blip.
You can also use the timeline to correlate failures with events like deployments, network changes, or maintenance windows, and to confirm that a previously failing agent has fully recovered.
Failing Backup Agents¶
Shows only the PBM agents that are failing right now, one row per agent, with the agent’s host, replica set, cluster, and environment. Available starting with PMM 3.11.0.
Use this to find the agents that need attention without scanning hundreds of healthy ones. Arbiters aren’t listed, because the PBM agent can’t run on arbiters.
The Status column shows why each agent is listed:
- FAIL: The PBM agent can’t connect to PBM,
mongod, or the backup storage, or no PBM agent is registered on the node. - DOWN: PBM hasn’t had a heartbeat from the agent for more than 30 seconds, usually because the agent is stopped or unreachable.
To see the exact reason for a failure, run pbm status on the affected node.
Failing for shows how long the agent has been failing, within the last 24 hours:
- the time since the agent last reported OK
- the time since PMM first saw the agent, if the agent has never reported OK
- > 24h if the agent has been failing for the whole 24 hours
- N/A if PMM doesn’t monitor the node itself
To look into a failing node, open its MongoDB Instance Summary dashboard from the PMM service column. If the column is empty, PMM can’t match the agent to its node’s own service. This happens when the node is down, when PMM doesn’t monitor it, or when it runs PMM Client older than 3.1.
After you fix an agent, check that its row disappears from the table. When all your agents are back to OK, the table shows No failing backup agents.
Details¶
Backup History¶
Shows a record of backup operations across your MongoDB infrastructure, including environment, cluster, backup name, size, and duration.
Use this to verify your backup schedule is running and to catch failures before they affect your recovery options.
Watch for two things: unusually small backups can mean data wasn’t fully captured, and longer-than-normal durations can point to storage or network problems.
Note that status reporting here may not cover all PBM error states, such as “stuck” or “incompatible” backups. Use PBM’s native tools for a complete picture until this is improved in a future release.
Backup Sizes¶
Shows the size of each backup as a bar chart.
Use this to track storage consumption over time and plan capacity. A sudden drop in size can mean a backup didn’t capture all your data; a sudden increase may signal unexpected data growth that needs storage planning.
Backup Duration¶
Shows how long each backup operation took to complete, in seconds.
Use this to catch performance problems early. If a backup that normally takes a few minutes suddenly takes much longer, something changed: your dataset may have grown, storage may be slower, or there may be a network issue worth investigating.
Tracking duration trends also helps you schedule maintenance windows accurately.
PBM metrics for custom dashboards and alerts¶
The panels on this dashboard cover backup configuration, PITR status, agent status, backup sizes, and backup durations. You might want to go beyond them with your own dashboards and alert rules, for example to catch a failed restore, a PITR recovery point that falls behind, or PBM agents that run different versions.
To build your own dashboards and alert rules, find the metric you need in the following table, then use its labels to filter and group your queries.
The table lists every mongodb_pbm_* metric with its labels and values, including the ones that no panel shows. The Available in column shows the PMM Client version that collects each metric. You can also query the metrics in Explore.
PMM Client reads the metrics from the collections that PBM keeps in the admin database of your cluster.
List of PBM metrics
| Metric | Labels | Available in | Description |
|---|---|---|---|
mongodb_pbm_cluster_backup_configured |
None | 3.0.0 and later | 1 if PBM has a configuration, 0 if it doesn’t. |
mongodb_pbm_cluster_pitr_backup_enabled |
None | 3.0.0 and later | 1 if PITR is enabled, 0 if it isn’t. No series if PBM has no configuration, so check mongodb_pbm_cluster_backup_configured first. |
mongodb_pbm_agent_status |
host, replica_set, role, and from 3.1.0 self |
3.0.0 and later | Status of the PBM agent of each replica set member: 0 is OK, 1 is failing or not registered, 2 is lost, which means no heartbeat for more than 30 seconds. |
mongodb_pbm_backup_size_bytes |
name, status, opid, and from 3.5.0 type, host, replica_set, self |
3.0.0 and later | Size of each backup. |
mongodb_pbm_backup_duration_seconds |
name, status, opid, and from 3.5.0 type, host, replica_set, self |
3.0.0 and later | Duration of each backup. For a backup in progress, the time since it started. |
mongodb_pbm_backup_last_transition_ts |
name, status, opid, and from 3.5.0 type, host, replica_set, self |
3.4.0 and later | Time when each backup last changed its status, in seconds since the epoch. |
mongodb_pbm_cluster_backup_failures_since_last_success |
type |
3.11.0 and later | Number of backups of this type that failed after the last successful one. It counts the backups that PBM marked as failed and the unfinished backups whose agents stopped. It returns to 0 with the next successful backup of this type. |
mongodb_pbm_cluster_pitr_recovery_point_ts |
None | 3.11.0 and later | Latest time that you can restore to with PITR, in seconds since the epoch. It is the oldest of the mongodb_pbm_pitr_last_write_ts values and matches the end of the PITR range in pbm list. A replica set without PITR chunks is left out, so check mongodb_pbm_pitr_last_write_ts for each replica_set to confirm that all of them are covered. |
mongodb_pbm_pitr_last_write_ts |
replica_set |
3.11.0 and later | Time of the last oplog write that PBM saved for the replica set, in seconds since the epoch. |
mongodb_pbm_restore_status |
None | 3.11.0 and later | Status of the most recent restore: 0 is no restore recorded, 1 is running, 2 is failed, 3 is completed. |
mongodb_pbm_restore_duration_seconds |
name, backup, type, status, opid |
3.11.0 and later | Duration of each of the 10 most recent restores. |
mongodb_pbm_restore_last_transition_ts |
name, backup, type, status, opid |
3.11.0 and later | Time when each of the 10 most recent restores last changed its status, in seconds since the epoch. |
mongodb_pbm_agent_version_info |
host, replica_set, self, version |
3.11.0 and later | Reports the PBM agent version in the version label, one series for each agent. The sample value is always 1 and carries no information, so read or group by the version label. A monitored node reports its own agent, and mongos reports every agent in the cluster. |
Build reliable queries¶
When you build a dashboard or an alert on these metrics, account for how they behave:
- To alert on PITR lag, expect no series while PITR is disabled. The PITR metrics advance once per oplog slice, every 10 minutes by default (
pitr.oplogSpanMin), and pause while PBM runs a logical backup or a restore, so set a threshold that allows for these pauses. - To alert on failed restores, use
mongodb_pbm_restore_statusfor logical restores, which it covers as they run. A physical, incremental, or external restore appears only after you runpbm config --force-resync, and a restore that failed on some nodes counts as failed. A restore that fails before PBM writes its metadata never appears, even after a resync, so check the PBM restore status and logs for such restores. - To get one series for each cluster, aggregate the backup failure, PITR, and restore metrics, for example with
max by (cluster). Every monitored node of a cluster reports the same cluster-wide values for them.
Required privileges¶
The restore and PITR metrics need the find action on the admin.pbmRestores and admin.pbmPITRChunks collections. The pmmMonitor role from Set up MongoDB monitoring permissions already grants it.
If your monitoring user has a custom role that grants find only on specific PBM collections, add these two collections to the role. Without them, the restore and PITR metrics are missing and mongodb_exporter logs a warning. The other PBM metrics aren’t affected.
Example queries¶
The queries in this section group by the cluster label, which you set with the --cluster option when you add the service. To turn a query into an alert, define a custom template with it as the expression. Use the following queries as a starting point for your own panels and alert rules:
- Backups that keep failing:
max by (cluster, type) (mongodb_pbm_cluster_backup_failures_since_last_success) > 0 - PITR recovery point more than 30 minutes behind:
time() - max by (cluster) (mongodb_pbm_cluster_pitr_recovery_point_ts) > 1800 - PITR enabled, but no recovery point:
mongodb_pbm_cluster_pitr_backup_enabled == 1 unless on (cluster) mongodb_pbm_cluster_pitr_recovery_point_ts - Most recent restore failed:
max by (cluster) (mongodb_pbm_restore_status) == 2 - PBM agents of different versions in one cluster:
count by (cluster) (count by (cluster, version) (mongodb_pbm_agent_version_info)) > 1