Analytics Overview
GuideMode provides comprehensive analytics through three interconnected flow cubes that track work from initial discovery through to production deployment.
The Three Flows
Section titled “The Three Flows”GuideMode organizes work tracking into three distinct flows, each optimized for different analytical needs:
| Flow | Purpose | Grain | Key Question |
|---|---|---|---|
| Discovery Flow | Research validation | One row per discovery | How effective is our research process? |
| Delivery Flow | Work item delivery | One row per issue | How efficiently do we deliver features? |
| Deployment Flow | Deployment analytics | One row per deployment | How reliable is our deployment pipeline? |
How Data Flows
Section titled “How Data Flows”Discovery Issues → Delivery Issues → Pull Requests → Deployments ↓ ↓ ↓ ↓ Discovery Flow Delivery Flow (via links) Deployment FlowDiscovery Flow tracks research and validation work before implementation begins. When a discovery is validated, it may generate feature issues.
Delivery Flow tracks the implementation of features, bugs, chores, and incidents from creation through to production.
Deployment Flow focuses specifically on the deployment pipeline, measuring deployment timing, reliability, and recovery metrics.
Architecture
Section titled “Architecture”Materialized Views
Section titled “Materialized Views”All flow analytics are powered by PostgreSQL materialized views (fact tables) that pre-compute metrics for fast dashboard performance:
- 5-10x faster queries compared to live table aggregations
- Consistent metrics across all dashboards
- Automatic refresh every 15-60 minutes via scheduled jobs
Refresh Schedule
Section titled “Refresh Schedule”| Fact Table | Refresh Interval |
|---|---|
discovery_flow_facts | Every 60 minutes |
delivery_flow_facts | Every 60 minutes |
deployment_flow_facts | Every 15 minutes |
Data Freshness
Section titled “Data Freshness”Metrics may lag behind real-time by up to one refresh interval. For the most critical operational dashboards (DORA metrics), deployment data refreshes more frequently.
Understanding Duration Metrics
Section titled “Understanding Duration Metrics”All flow cubes calculate duration metrics in a consistent way:
- Duration stored in seconds - Raw durations are calculated using PostgreSQL’s
EXTRACT(EPOCH FROM ...)function - Displayed in human-readable units - Cubes convert to days, hours, or minutes as appropriate
- Statistical aggregations - Most durations offer average, median, and P90 measures
- NULL handling - Durations are NULL when the end event hasn’t occurred yet
Time Points vs Durations
Section titled “Time Points vs Durations”Each flow tracks specific timestamps and calculates durations between them:
Discovery Flow timestamps:
discoveryCreatedAt- When the discovery issue was createddiscoveryClosedAt- When the discovery was closedfirstPrCreatedAt- When the first implementation PR was createdfirstProductionDeployedAt- When code first reached production
Delivery Flow timestamps:
issueCreatedAt- When the work item was createdissueClosedAt- When the work item was closedfirstPrCreatedAt- When the first PR was createdfirstPrMergedAt- When the first PR was mergedfirstProductionSuccessAt- When the code successfully deployed to production
Deployment Flow timestamps:
deploymentCreatedAt- When the deployment was triggeredfirstFailureAt- When the first failure occurred (if any)firstSuccessAt- When the deployment first succeeded
Choosing the Right Flow
Section titled “Choosing the Right Flow”Use Discovery Flow When…
Section titled “Use Discovery Flow When…”- Evaluating research effectiveness
- Measuring validation rates (discoveries → features)
- Analyzing the pipeline from research to production
- Identifying bottlenecks between discovery and implementation
Use Delivery Flow When…
Section titled “Use Delivery Flow When…”- Tracking sprint/cycle performance
- Measuring team velocity and throughput
- Analyzing code review efficiency
- Understanding planned vs unplanned work ratios
Use Deployment Flow When…
Section titled “Use Deployment Flow When…”- Measuring DORA metrics (deployment frequency, change failure rate, MTTR)
- Analyzing deployment pipeline reliability
- Identifying production stability issues
- Benchmarking against industry standards
Common Questions
Section titled “Common Questions”Q: Why are some metrics NULL? A: Duration metrics require both start and end timestamps. If work hasn’t reached a stage (e.g., no PR created yet), the duration to that stage will be NULL.
Q: How often do metrics update? A: Fact tables refresh on a schedule (15-60 minutes). Real-time data requires querying the live tables directly.
Q: Can I filter by team? A: Yes, all flow cubes support filtering by team via the Teams dimension. Issues and deployments are associated with teams through their projects.
Q: Why do average and median differ significantly? A: A few outliers can skew averages dramatically. Median is often more representative of “typical” performance. We recommend using median for most analyses.
Next Steps
Section titled “Next Steps”- Discovery Flow - Complete discovery metrics reference
- Delivery Flow - Complete delivery metrics reference
- Deployment Flow - Complete deployment metrics reference