Skip to content

Load the demo

The scripts in scripts/demo/ fill an evaluation install with a fictional retail bank, and play the incident described in From alert to fix. They use only Python’s standard library.

  1. The bank. Alerts, incidents, saved views, dashboards, a service topology and a few providers on every page:

    Terminal window
    python scripts/demo/seed.py --api http://127.0.0.1:8080

    Add --live to go on sending alerts. Add --api-key <key> on an install with sign-in (an admin key). It is safe to run again: what already exists is left alone.

  2. MSN’s logs, with MSN running and MSN_ADMIN_KEY in your environment:

    Terminal window
    python scripts/demo/seed_msn.py
    python scripts/demo/seed_msn.py --connect --avacom http://127.0.0.1:8080

    The first command sends the bank’s audit events and syslog lines. The second installs the MSN provider in AVACOM and prints the two settings (MSN_AVACOM_URL, MSN_AVACOM_API_KEY) that make MSN forward its critical events. Running the first one again adds the events again, since logs are append-only.

  3. The incident. SolarWinds, Dynatrace, AppDynamics and the database host send their performance and event logs into MSN, including a normal day the day before, which the correlation uses as its baseline. Their alerts go to AVACOM, and the story’s services go into the service topology:

    Terminal window
    docker compose --profile demo up -d rca-inbox
    python scripts/demo/seed_rca_story.py --env-file .env --avacom http://127.0.0.1:8080 --analyze-now --send --fix
    • --analyze-now analyzes the incident at once instead of after a minute.
    • --send sends the RCA to the demo inbox at http://127.0.0.1:8099, which stands in for a Slack channel.
    • --fix prepares, approves and runs the fix. The commands are simulated, and the steps for a person are marked done.
    • --setup-audit also gives the MSN provider an audit key, so every fix decision lands in MSN.

The RCA needs an AI key (AI model and key). Without one, the incident still gets its evidence and cause chains.

Deploy on a server loads all of this, plus demo users for each role, on its own.