Juju inspect is intended to analyse engine reports from a Juju controller. You can feed it multiple engine reports, and it will tell you various information about the state of the controllers.
Running it is extremely simple:
make install
juju-inspect report_1 report_2 report_3
The output should look like:
Analysis of Engine Report:
Raft Leader:
machine-1 is the leader.
Mongo Primary:
machine-2 is the primary.
Pubsub Forwarder:
machine-2 is connected to the following: [machine-0 machine-1]
machine-0 is connected to the following: [machine-1 machine-2]
machine-1 is connected to the following: [machine-0 machine-2]
Manifolds:
machine-0 has 69 manifolds
machine-1 has 69 manifolds
machine-2 has 69 manifolds
Start Counts:
machine-0 start-count: 516
- max: "is-primary-controller-flag" with: 189
machine-1 start-count: 421
- max: "is-primary-controller-flag" with: 178
machine-2 start-count: 498
- max: "machine-action-runner" with: 274