Team Analytics
Measure your teamâs performance with deep insights and metrics.
Available Metrics
Core Metrics
Team Members
Total number of active team members. Updated automatically when members join or leave.
Repositories
Number of connected repositories your team has access to.
Pull Requests Reviewed
Total PRs that have been analyzed by Mesraiâs AI reviewer.
Comments Generated
Total AI-generated review comments across all PRs.
Efficiency Metrics
The analytics dashboard calculates efficiency indicators:
- Average Comments per PR: Feedback density across reviews
- PRs per Member: Individual contribution tracking
- Review Velocity: PRs reviewed per day/week
Viewing Analytics
- Go to Teams in your dashboard
- Hover over a team card
- Click the Analytics icon
- View real-time metrics
Recalculating Analytics
If you notice discrepancies, you can manually recalculate:
- Click the âRecalculateâ button in the analytics page
- Wait for the recalculation to complete
- Refresh the page to see updated metrics
Understanding the Dashboard
Metrics Grid
The analytics page displays metrics in an organized grid:
| Metric | Description | Purpose |
|---|---|---|
| Member Count | Active team members | Team size tracking |
| Repository Count | Connected repos | Scope of coverage |
| PRs Reviewed | Total analyzed PRs | Activity volume |
| Comments Generated | AI review comments | Feedback quantity |
Activity Timeline
View team activity over time:
- Daily PR review counts
- Peak usage periods
- Member contribution patterns
- Weekly trends
Performance Indicators
Key performance indicators (KPIs) help assess team efficiency:
- Review Velocity: PRs reviewed per day
- Comment Density: Average comments per PR
- Member Productivity: PRs per member
Exporting Analytics
Export team analytics for reporting:
- Click âExportâ button
- Select date range
- Choose format (CSV, JSON, or PDF)
- Download report
Export Formats
CSV Export
Comma-separated values for spreadsheet analysis:
Date,PRs Reviewed,Comments,Members
2025-01-01,45,234,8
2025-01-02,52,287,8JSON Export
Structured data for analysis:
{
"team": "Engineering",
"period": "2025-01",
"metrics": {
"prsReviewed": 450,
"comments": 2340
}
}Setting Up Alerts
Configure alerts for metric thresholds:
- Go to Team Settings â Alerts
- Set threshold values
- Choose notification channels (email, Slack)
- Save alert configuration
Alert Examples
Low Activity Alert
- Trigger: Less than 10 PRs reviewed in 7 days
- Action: Email notification to team owner
High Volume Alert
- Trigger: More than 100 PRs in a day
- Action: Slack notification to team channel
Analytics Best Practices
1. Regular Monitoring
Check analytics weekly to track:
- Team productivity trends
- Review activity patterns
- Potential bottlenecks
2. Set Baselines
Establish baseline metrics for:
- Expected PRs per week
- Target comment density
- Review velocity goals
3. Review Anomalies
Investigate unusual patterns:
- Drop in PR reviews
- Unusual activity spikes
- Member inactivity
4. Share with Team
Use analytics to:
- Celebrate milestones
- Identify improvement areas
- Track progress over time
Troubleshooting
Metrics Not Updating
Problem: Analytics showing stale data
Solutions:
- Refresh the page
- Click âRecalculate Analyticsâ
- Check webhook status
- Verify repository connections
Missing PR Data
Problem: Some PRs not showing in analytics
Solutions:
- Verify PR was reviewed by Mesrai
- Check date range filters
- Ensure repository is connected
- Refresh analytics data