Skip to content

MongoDB Ops Manager overview: monitoring, automation, and backup

Ops Manager is MongoDB's on-premises control plane — agents, project topology, automation, and continuous backup. What it actually gives you versus rolling your own.

MongoDB Ops Manager is the on-premises control plane for self-hosted MongoDB Enterprise — the box-and-arrow equivalent of Atlas for organizations that cannot or will not run MongoDB on a managed cloud service. It provides agent-based monitoring, deployment automation, continuous backup with point-in-time restore, and the upgrade orchestration that makes running a multi-shard cluster sustainable. This article is for operators deciding whether Ops Manager is worth the operational overhead versus rolling Prometheus, Ansible, and mongodump themselves.

How to verify

Confirm Ops Manager is reachable, agents are connected, and a project is collecting metrics:

curl -u "user:apikey" --digest "https://ops.example.internal:8443/api/public/v1.0/groups"
systemctl status mongodb-mms-monitoring-agent
systemctl status mongodb-mms-automation-agent
journalctl -u mongodb-mms-automation-agent --since "1 hour ago" | grep -i "deploy\|fail"

A 200 OK from the groups endpoint confirms the API is reachable and your key has access. Agent status should be active (running) with recent successful health checks in the journal.

What’s happening

Ops Manager has three layers. The application is a Java service backed by its own MongoDB instance (the “Ops Manager App DB”) that stores configuration, project metadata, automation state, and monitoring metrics. The backup daemon runs as a separate process and maintains continuous backup blocks. Agents — automation, monitoring, backup — run on each managed MongoDB host and communicate with the Ops Manager application over outbound HTTPS.

The automation model is declarative. You describe the desired cluster state via the UI or API (“a 3-node replica set with these versions, this config, these auth settings”), and the automation agents on each host reconcile the actual state toward the desired one — installing binaries, writing config files, starting mongod processes, and rolling restarts during version upgrades. This is the killer feature: a no-downtime version upgrade across a sharded cluster of 30 nodes becomes a one-click operation.

Continuous backup snapshots are taken from a hidden secondary, then deltas are streamed via oplog tailing to the backup daemon. Restores can be point-in-time to any second within the configured window. Queryable backups let you spin up a temporary replica from a point-in-time snapshot to investigate state without touching production.

The procedure

  1. Stand up the Ops Manager App DB — a small 3-node replica-set dedicated to Ops Manager state. Do not collocate it with the managed clusters; the control plane must survive failures in the data plane.

  2. Install the Ops Manager application on one or more nodes. Configure it to point at the App DB. Use TLS for the web interface and the agent endpoint.

    sudo systemctl start mongodb-mms
    curl -sk https://ops.example.internal:8443/health
  3. Deploy the automation agent to every managed host. The agent download and config token come from the Ops Manager UI per project.

    sudo dpkg -i mongodb-mms-automation-agent_*_amd64.deb
    sudo systemctl enable --now mongodb-mms-automation-agent
  4. Define the cluster declaratively. From the UI, add the hosts, pick the topology (replica-set or sharded), set the MongoDB version, and submit. The agents converge.

  5. Configure backup. Choose snapshot frequency (typically 6 hours) and oplog retention window (long enough to span the maximum tolerable RPO).

  6. Set monitoring alerts. Ops Manager exposes a deep set of cluster-aware alerts — replication lag, election storms, oplog window, page faults — that map to MongoDB internals more precisely than generic system monitoring.

    curl -u "user:apikey" --digest \
      "https://ops.example.internal:8443/api/public/v1.0/groups/$GROUP/alertConfigs"

Operational notes

  • Ops Manager is itself a MongoDB cluster you must operate. The App DB, the application servers, and the backup daemon each need monitoring, backup, and version upgrades. Plan for one engineer’s worth of ongoing work.
  • The backup daemon is IO-heavy. Snapshots and oplog tailing produce continuous write traffic. Size the backup daemon’s storage and IOPS against the total managed dataset, not a single cluster.
  • Agent versions track Ops Manager versions. Upgrade Ops Manager first, then push automation agent upgrades to the managed hosts. The automation agent is largely self-updating once attached.
  • API keys with whitelisted IPs. Every automation script that hits the Ops Manager API needs a key; lock keys to the source IPs that use them and rotate quarterly.
  • Atlas covers most of this in a managed form. If you can use cloud-hosted MongoDB, Atlas removes the need to operate Ops Manager entirely. Ops Manager exists for sovereignty, air-gap, or regulatory requirements that preclude managed cloud.

Stack Harbor operates Ops Manager deployments for clients with on-premises or sovereign-cloud MongoDB requirements — the App DB, the application tier, the backup daemon, agent fleet, alerting policies, and the upgrade cadence. We treat Ops Manager as part of the managed-operations scope rather than a separate add-on. See /en/services/managed-operations/ for the engagement model.