CrashLens Documentation Map - Find exactly what you need
→ QUICK_START.md - Get running in 5 minutes
→ docs/QUICKSTART.md - Detailed installation guide
→ docs/COMMAND-REFERENCE.md - All CLI commands
→ PHASE_2_SUMMARY.md - Quick overview
→ docs/OBSERVABILITY.md - Complete metrics guide
→ docs/GRAFANA_SETUP.md - Dashboard setup
→ dashboards/ - Pre-built Grafana dashboards
→ docs/POLICY_GUIDE.md - Policy writing guide
→ examples/policies/ - Example policies
→ policies/ - Built-in policy templates
→ examples/ci-workflows/ - GitHub Actions examples
→ docs/NON-INTERACTIVE-GUIDE.md - Automation guide
→ docs/SLACK_INTEGRATION.md - Slack webhook setup
→ docs/PII_REMOVAL_GUIDE.md - Privacy protection guide
→ tests/TEST_DOCUMENTATION.md - All 26 tests explained
→ docs/PHASE_2_COMPLETE_REPORT.md - Test results & benchmarks
→ CONTRIBUTING.md - Contribution guidelines
→ docs/PHASE_2_COMPLETE_REPORT.md - Technical architecture
→ docs/architecture-flow.md - System design
→ docs/TROUBLESHOOTING.md - Common problems & solutions
→ docs/WINDOWS_SETUP.md - Windows-specific issues
crashlens/
├── README.md # Project overview
├── QUICK_START.md # 5-minute getting started
├── PHASE_2_SUMMARY.md # 🆕 Metrics integration overview
├── CONTRIBUTING.md # How to contribute
├── SECURITY.md # Security policy
├── CHANGELOG.md # Version history
│
├── docs/ # 📖 Comprehensive documentation
│ ├── QUICKSTART.md # Detailed installation
│ ├── COMMAND-REFERENCE.md # All CLI commands
│ ├── OBSERVABILITY.md # 🆕 Prometheus metrics guide
│ ├── GRAFANA_SETUP.md # 🆕 Dashboard configuration
│ ├── HTTP_SERVER_SECURITY.md # 🆕 Security hardening
│ ├── PHASE_2_COMPLETE_REPORT.md # 🆕 Full technical report
│ ├── SLACK_INTEGRATION.md # Slack webhooks
│ ├── PII_REMOVAL_GUIDE.md # Privacy protection
│ ├── POLICY_GUIDE.md # Custom policy writing
│ ├── NON-INTERACTIVE-GUIDE.md # CI/CD automation
│ ├── architecture-flow.md # System architecture
│ ├── TROUBLESHOOTING.md # Problem solving
│ ├── WINDOWS_SETUP.md # Windows PATH setup
│ └── INDEX.md # Documentation index
│
├── tests/
│ └── TEST_DOCUMENTATION.md # 🆕 All 26 tests explained
│
├── examples/ # 💡 Working examples
│ ├── config/ # Configuration examples
│ ├── policies/ # Policy examples
│ ├── ci-workflows/ # GitHub Actions workflows
│ └── custom_reports/ # Custom report templates
│
├── dashboards/ # 📊 Grafana dashboards
│ ├── crashlens-policy-enforcement.json
│ ├── crashlens-alert-rules.yml
│ └── QUICK_REFERENCE.md
│
├── policies/ # 📋 Built-in policy templates
│ ├── retry-loop-detector.yaml
│ ├── fallback-chain-detector.yaml
│ └── max-cost-per-trace.yaml
│
└── archive/ # 🗄️ Historical documents
└── phase-2-development-logs/ # Development notes (archived)
Prometheus Metrics Integration - Production-ready observability
- ✅ Prometheus metrics collection (8 metrics)
- ✅ Pushgateway integration (fire-and-forget push)
- ✅ HTTP metrics server (alternative mode)
- ✅ Grafana dashboard templates
- ✅ Cardinality protection (prevent metrics explosion)
- ✅ Lazy loading (zero overhead when disabled)
- PHASE_2_SUMMARY.md - Quick overview
- docs/OBSERVABILITY.md - Complete guide
- docs/GRAFANA_SETUP.md - Dashboard setup
- docs/PHASE_2_COMPLETE_REPORT.md - Technical details
- tests/TEST_DOCUMENTATION.md - 26 tests explained
- 26 tests total (100% passing)
- 6 critical verification tests
- Real Docker E2E integration test
- 87% code coverage
See: PHASE_2_SUMMARY.md for details
| User Type | Start Here |
|---|---|
| First-time user | QUICK_START.md |
| DevOps engineer | docs/OBSERVABILITY.md |
| Security analyst | docs/PII_REMOVAL_GUIDE.md |
| Policy author | docs/POLICY_GUIDE.md |
| Developer | docs/PHASE_2_COMPLETE_REPORT.md |
| QA/Tester | tests/TEST_DOCUMENTATION.md |
| Use Case | Documentation |
|---|---|
| Scan logs for token waste | QUICK_START.md |
| Monitor AI costs | docs/OBSERVABILITY.md |
| Create Grafana dashboards | docs/GRAFANA_SETUP.md |
| Send alerts to Slack | docs/SLACK_INTEGRATION.md |
| Enforce cost policies in CI | examples/ci-workflows/ |
| Remove PII from logs | docs/PII_REMOVAL_GUIDE.md |
| Write custom detection rules | docs/POLICY_GUIDE.md |
| Troubleshoot errors | docs/TROUBLESHOOTING.md |
- GitHub: Crashlens/crashlens
- Issues: Report bugs or request features
- Discussions: Community Q&A
- Langfuse: langfuse.com - LLM observability platform
- Prometheus: prometheus.io - Monitoring system
- Grafana: grafana.com - Visualization platform
- Pushgateway: Prometheus Pushgateway
- Search - Use GitHub search or
Ctrl+Fin documents - Check examples - examples/ has working code
- Read tests - tests/TEST_DOCUMENTATION.md explains behavior
- Ask community - GitHub Discussions
- Report issue - GitHub Issues
Last Updated: 2025-01-24
Version: 2.0.0
Documentation Status: ✅ Complete