Flow Metrics & Analytics
LumenFlow tracks flow metrics to help teams identify bottlenecks and improve delivery performance.
Overview
Section titled “Overview”The @lumenflow/metrics package provides:
- DORA Metrics – Industry-standard delivery performance indicators
- Flow Analysis – Bottleneck detection and critical path calculation
- Telemetry – Event tracking for observability
DORA Metrics
Section titled “DORA Metrics”LumenFlow tracks the DORA (DevOps Research and Assessment) metrics:
| Metric | Description | Target |
|---|---|---|
| Deployment Frequency | How often you deploy to production | Daily to weekly |
| Lead Time for Changes | Time from commit to production | Less than one day |
| Change Failure Rate (CFR) | Percentage of deployments causing failures | Less than 15% |
| Mean Time to Recovery (MTTR) | Time to restore service after failure | Less than one hour |
Viewing DORA Metrics
Section titled “Viewing DORA Metrics”Example output:
Flow Analysis
Section titled “Flow Analysis”Identifying Bottlenecks
Section titled “Identifying Bottlenecks”This analyzes your WU flow to identify:
- Lane Congestion – Lanes exceeding WIP limits
- Blocked WUs – Work units waiting on dependencies
- Stale WUs – WUs in progress for too long
- Critical Path – WUs blocking the most downstream work
Example output:
Metrics Snapshots
Section titled “Metrics Snapshots”Capture point-in-time metrics for dashboards or CI:
Telemetry Events
Section titled “Telemetry Events”LumenFlow emits telemetry events for observability:
| Event | Description |
|---|---|
wu.created | New WU created |
wu.claimed | WU claimed by agent |
wu.blocked | WU marked as blocked |
wu.completed | WU completed (done) |
gate.passed | Gate check passed |
gate.failed | Gate check failed |
deploy.started | Deployment started |
deploy.completed | Deployment completed |
Telemetry Integration
Section titled “Telemetry Integration”Events are written to .lumenflow/telemetry/ as JSONL files. Integrate with your observability stack:
Best Practices
Section titled “Best Practices”-
Review metrics weekly
Schedule a weekly review of flow metrics to identify trends before they become problems.
-
Set WIP limits appropriately
If a lane is consistently at 100%+ capacity, consider:
- Splitting the lane into sub-lanes
- Adding more capacity
- Reducing scope of WUs
-
Address blockers quickly
Blocked WUs create cascading delays. Prioritize unblocking over new work.
-
Track DORA trends, not absolutes
The goal is continuous improvement, not hitting specific numbers.
CLI Reference
Section titled “CLI Reference”| Command | Description |
|---|---|
pnpm flow:report | Generate DORA metrics report |
pnpm flow:bottlenecks | Identify workflow bottlenecks |
pnpm metrics:snapshot | Capture current metrics |
Next Steps
Section titled “Next Steps”- Initiatives – Multi-phase project coordination
- Team Workflow – Team practices and conventions
- Configuration – Configure metrics settings