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.
| Phase | Measured from |
|---|---|
| preflight | Checks before the first hook (first service of a run) |
| git pull | The automatic git pull (git_pull.enabled) |
| hook | The deploy hook, wall time |
| build | Docker build steps in the hook log (BuildKit, uncached steps; the whole hook with the legacy builder) |
| image pull | kubelet “Successfully pulled image … in Xs” lines |
| pod wait | The k8s templates' “N/M pods ready” progress |
| rollout | Blue-green / canary engine time: scaling, gates, bakes, traffic shifts |
| health | The 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.
| Rule | Catches |
|---|---|
docker_cache_miss | Under half the build steps hit the layer cache, often because COPY . . runs before the dependency install |
build_context | Build context of 50 MB+, no .dockerignore, or another service's directory inside the context |
no_buildkit | Builds use the legacy Docker builder instead of BuildKit |
unchanged_rebuild | Deploys that shipped the same commit as the deploy before |
infra_redeploy | An infra service (redis, postgres…) deployed 3+ times in the period |
slow_health | Health check averages 10s+ and 20%+ of the deploy |
slow_git_pull | The automatic git pull averages 8s+ |
image_pull_slow | Pods spend 15s+ pulling the image, or pod wait dominates the deploy |
repeated_failures | A service failed 2+ times in the same phase |
canary_long_pauses | Canary bakes of 5 min+ that never caught anything |
slower_trend | Median 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.