Insights

Insights

See how long deploys take, how that changes over time, and what would make them faster. Every muster deploy records its timing, so there is nothing to set up.

Quickstart

Terminal
muster insights                # whole project, last 30 days
muster insights web --days 7   # one service, last week
muster insights --fix          # apply safe fixes (asks first)

What is timed

Each deploy event in .muster/logs/deploy-events.log gets its duration, exit code, phases and Docker cache stats. Time spent in a menu after a failure isn't counted.

PhaseMeasured from
preflightChecks before the first hook (first service of a run)
git pullThe automatic git pull (git_pull.enabled)
hookThe deploy hook, wall time
buildDocker build steps in the hook log (BuildKit, uncached steps; the whole hook with the legacy builder)
image pullkubelet “Successfully pulled image … in Xs” lines
pod waitThe k8s templates' “N/M pods ready” progress
rolloutBlue-green / canary engine time: scaling, gates, bakes, traffic shifts
healthThe post-deploy health check

Older history without timing still counts toward deploy counts and success rates.

Read the report

  • Summary: deploys, success rate, median duration and its trend, total time spent deploying, rollbacks, fastest and slowest service, a weekly sparkline.
  • Per service: median and p95, trend, recent durations, a stacked phase bar, the slowest phase, success rate, deploy frequency, MTTR and rollback rate.
  • Speed-ups: ranked by estimated time saved per month, each with the numbers behind it and the exact fix.

80 columns at most. ASCII when the locale isn't UTF-8 (MUSTER_ASCII=1 forces it); NO_COLOR turns colour off. Use muster --minimal insights for plain text in CI logs.

Where else it shows up

  • After a slow deploy: one dim line when a deploy took 1.5× the service's median and 20s more, e.g. web took 3m12s (median 1m40s) — muster insights web.
  • Dashboard Next step: when a service's deploys got 30% slower this week.
  • muster doctor: a Performance category with the top suggestion.

Muster Pro

Shows the same data as charts at cloud.getmuster.dev/insights.

Speed-up rules

Suggestions come from an offline, deterministic rules table. Savings are estimates (saving per deploy × deploys per month) used to rank them, not promises.

RuleCatches
docker_cache_missUnder half the build steps hit the layer cache, often because COPY . . runs before the dependency install
build_contextBuild context of 50 MB+, no .dockerignore, or another service's directory inside the context
no_buildkitBuilds use the legacy Docker builder instead of BuildKit
unchanged_rebuildDeploys that shipped the same commit as the deploy before
infra_redeployAn infra service (redis, postgres…) deployed 3+ times in the period
slow_healthHealth check averages 10s+ and 20%+ of the deploy
slow_git_pullThe automatic git pull averages 8s+
image_pull_slowPods spend 15s+ pulling the image, or pod wait dominates the deploy
repeated_failuresA service failed 2+ times in the same phase
canary_long_pausesCanary bakes of 5 min+ that never caught anything
slower_trendMedian deploy got 25%+ slower than the previous period, and which phase grew
--fix only applies what's safe to automate: today, adding missing entries to .dockerignore. Everything else comes with a snippet or command to run.