171 lines
3.6 KiB
Bash
Executable File
171 lines
3.6 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Load shared libraries
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
source "$SCRIPT_DIR/../lib/init.sh"
|
|
|
|
# Script to track success metrics for integration and streamlining
|
|
|
|
set -e
|
|
|
|
METRICS_FILE="docs/SUCCESS_METRICS.md"
|
|
|
|
echo "📊 Success Metrics Tracking"
|
|
echo ""
|
|
|
|
# Create metrics tracking file if it doesn't exist
|
|
if [ ! -f "$METRICS_FILE" ]; then
|
|
cat > "$METRICS_FILE" << 'EOF'
|
|
# Success Metrics Tracking
|
|
|
|
**Date**: 2025-01-27
|
|
**Purpose**: Track success metrics for integration and streamlining efforts
|
|
**Status**: Active
|
|
|
|
---
|
|
|
|
## Infrastructure Metrics
|
|
|
|
### Cost Reduction
|
|
- **Target**: 30-40% reduction in infrastructure costs
|
|
- **Current**: TBD
|
|
- **Status**: ⏳ Pending
|
|
- **Last Updated**: 2025-01-27
|
|
|
|
### Shared Infrastructure
|
|
- **Target**: Migrate 80% of projects to shared infrastructure
|
|
- **Current**: 0%
|
|
- **Status**: ⏳ Pending
|
|
- **Last Updated**: 2025-01-27
|
|
|
|
### Infrastructure as Code
|
|
- **Target**: 100% infrastructure as code coverage
|
|
- **Current**: TBD
|
|
- **Status**: ⏳ Pending
|
|
- **Last Updated**: 2025-01-27
|
|
|
|
---
|
|
|
|
## Code Metrics
|
|
|
|
### Shared Packages
|
|
- **Target**: Extract 10+ shared packages
|
|
- **Current**: 7 packages
|
|
- **Status**: ✅ 70% Complete
|
|
- **Last Updated**: 2025-01-27
|
|
|
|
### Duplicate Code Reduction
|
|
- **Target**: 50% reduction in duplicate code
|
|
- **Current**: TBD
|
|
- **Status**: ⏳ Pending
|
|
- **Last Updated**: 2025-01-27
|
|
|
|
### Projects Using Shared Packages
|
|
- **Target**: Migrate 80% of projects to use shared packages
|
|
- **Current**: 0%
|
|
- **Status**: ⏳ Pending
|
|
- **Last Updated**: 2025-01-27
|
|
|
|
---
|
|
|
|
## Deployment Metrics
|
|
|
|
### Deployment Time
|
|
- **Target**: 50% reduction in deployment time
|
|
- **Current**: TBD
|
|
- **Status**: ⏳ Pending
|
|
- **Last Updated**: 2025-01-27
|
|
|
|
### Unified CI/CD
|
|
- **Target**: Migrate 90% of projects to unified CI/CD
|
|
- **Current**: TBD
|
|
- **Status**: ⏳ Pending
|
|
- **Last Updated**: 2025-01-27
|
|
|
|
---
|
|
|
|
## Developer Experience Metrics
|
|
|
|
### Onboarding Time
|
|
- **Target**: 50% reduction in onboarding time
|
|
- **Current**: TBD
|
|
- **Status**: ⏳ Pending
|
|
- **Last Updated**: 2025-01-27
|
|
|
|
### Developer Satisfaction
|
|
- **Target**: 80% developer satisfaction
|
|
- **Current**: TBD
|
|
- **Status**: ⏳ Pending
|
|
- **Last Updated**: 2025-01-27
|
|
|
|
### Documentation Coverage
|
|
- **Target**: 90% documentation coverage
|
|
- **Current**: 100% (planning/docs complete)
|
|
- **Status**: ✅ Complete
|
|
- **Last Updated**: 2025-01-27
|
|
|
|
---
|
|
|
|
## Operational Metrics
|
|
|
|
### Uptime
|
|
- **Target**: 99.9% uptime for shared services
|
|
- **Current**: TBD
|
|
- **Status**: ⏳ Pending
|
|
- **Last Updated**: 2025-01-27
|
|
|
|
### Incident Reduction
|
|
- **Target**: 50% reduction in incidents
|
|
- **Current**: TBD
|
|
- **Status**: ⏳ Pending
|
|
- **Last Updated**: 2025-01-27
|
|
|
|
### Incident Resolution
|
|
- **Target**: 80% faster incident resolution
|
|
- **Current**: TBD
|
|
- **Status**: ⏳ Pending
|
|
- **Last Updated**: 2025-01-27
|
|
|
|
### Operational Overhead
|
|
- **Target**: 20% reduction in operational overhead
|
|
- **Current**: TBD
|
|
- **Status**: ⏳ Pending
|
|
- **Last Updated**: 2025-01-27
|
|
|
|
---
|
|
|
|
## Service Metrics
|
|
|
|
### Duplicate Services
|
|
- **Target**: 50% reduction in duplicate services
|
|
- **Current**: TBD
|
|
- **Status**: ⏳ Pending
|
|
- **Last Updated**: 2025-01-27
|
|
|
|
---
|
|
|
|
## Tracking Instructions
|
|
|
|
1. Update metrics monthly
|
|
2. Document changes and improvements
|
|
3. Track progress toward targets
|
|
4. Report to stakeholders
|
|
|
|
---
|
|
|
|
**Last Updated**: 2025-01-27
|
|
EOF
|
|
echo "✅ Created metrics tracking file: $METRICS_FILE"
|
|
else
|
|
echo "✅ Metrics tracking file exists: $METRICS_FILE"
|
|
fi
|
|
|
|
echo ""
|
|
echo "📝 To update metrics:"
|
|
echo " 1. Edit $METRICS_FILE"
|
|
echo " 2. Update current values"
|
|
echo " 3. Update status and date"
|
|
echo ""
|
|
echo "💡 Run this script monthly to track progress"
|
|
|