Skip to content

Pair your machines

One machine is the host: it collects everyone’s metrics and keeps their history. The others are agents that report to it. A machine can be both. Pick a machine that’s always on as the host; a small server is ideal.

  1. On the host, give it the host role and open a pairing window:

    Terminal window
    mm-core role host
    mm-core pairing code

    That prints a 6-digit code. It works for 5 minutes, for one machine.

  2. On each other machine, find the host and pair with it:

    Terminal window
    mm-core hosts
    mm-core pair <host> <code>

    Use the host’s name from mm-core hosts, or its address. Metrics start arriving within seconds.

  3. Check from the host, or from any agent paired with it:

    Terminal window
    mm-core machines

You can also pair from the dashboard: Pairing shows a code and the command to run on the new machine.

Two hosts can pair with each other both ways. Then one pairing code joins a new machine to both, and each has the whole fleet.

On any machine with a screen:

Terminal window
mm-core open

That opens the dashboard in your browser, already logged in. Or install the desktop app. On a machine without a screen, see remote access.

Terminal window
mm-core peers
mm-core revoke <peer>

Revoking removes the pairing on this machine and closes its connection. Revoke it on the other machine too, to tidy up there.