Thank you for your interest in contributing to the Claude Code Observability Stack! This project helps developers monitor and analyze their Claude Code usage through comprehensive dashboards and metrics.
- Docker and Docker Compose
- Basic understanding of OpenTelemetry, Prometheus, and Grafana
- Familiarity with Claude Code and its telemetry features
- Fork the repository
- Clone your fork:
git clone https://github.com/your-username/claude-code-otel.git- Original repository:
git clone https://github.com/ColeMurray/claude-code-otel.git
- Original repository:
- Start the development stack:
make up - Access Grafana at http://localhost:3000 (admin/admin)
- Add new panels for additional Claude Code metrics
- Improve existing visualizations for better insights
- Optimize queries for better performance
- Enhance color schemes and layouts
- Improve OpenTelemetry collector configurations
- Add new Prometheus recording rules
- Optimize data retention and storage
- Improve setup instructions
- Add troubleshooting guides
- Create usage examples
- Update metric documentation
├── claude-code-dashboard.json # Main Grafana dashboard
├── collector-config.yaml # OpenTelemetry collector config
├── docker-compose.yml # Main stack configuration
├── prometheus.yml # Prometheus configuration
├── grafana-*.yml # Grafana configuration files
├── Makefile # Management commands
└── README.md # Project documentation
- Follow OpenTelemetry Standards: Use proper metric naming conventions as defined in the Claude Code documentation
- Test Your Changes: Verify that new configurations work with actual Claude Code telemetry data
- Documentation: Update relevant documentation for any changes
- Security: Never commit sensitive information (API keys, credentials, etc.)
- Consistent Styling: Follow the existing color schemes and layout patterns
- Performance: Optimize queries to avoid excessive resource usage
- Accessibility: Use clear labels and legends for all visualizations
- Mobile-Friendly: Ensure dashboards work well on different screen sizes
Use clear, descriptive commit messages:
feat: add API request count panel to cost analysisfix: correct token usage query in performance dashboarddocs: update setup instructions for macOSrefactor: optimize Prometheus queries for better performance
- Start the Stack:
make up - Generate Test Data: Use Claude Code with telemetry enabled
- Verify Dashboards: Check that all panels display data correctly
- Test Configuration: Ensure
make validate-configpasses - Check Documentation: Verify all links and instructions work
# Validate all configurations
make validate-config
# Test individual components
docker compose config # Validate docker-compose.yml
curl -f http://localhost:9090/-/healthy # Test Prometheus
curl -f http://localhost:3000/api/health # Test Grafana- New Metric Panels: Add visualizations for additional Claude Code metrics
- Improved Layouts: Better organization of dashboard sections
- Enhanced Queries: More efficient or insightful Prometheus/LogQL queries
- Visual Improvements: Better color schemes, legends, and formatting
- Performance Optimization: Faster queries and reduced resource usage
- Configuration Management: Better default configurations
- Documentation: Clearer setup and troubleshooting guides
- Compatibility: Support for different environments and setups
- New Metrics: Support for additional Claude Code telemetry data
- Export Options: Additional data export formats or integrations
- Monitoring Enhancements: Better health checks and status monitoring
When reporting issues, please include:
- Environment Details: OS, Docker version, Claude Code version
- Steps to Reproduce: Clear instructions to replicate the issue
- Expected vs Actual: What you expected to happen vs what actually happened
- Logs: Relevant logs from the observability stack
- Configuration: Any custom configurations you're using
- Claude Code Observability Documentation
- OpenTelemetry Documentation
- Prometheus Query Language
- Grafana Dashboard Best Practices
- LogQL Documentation
- Issues: Open a GitHub issue for bugs or feature requests
- Discussions: Use GitHub Discussions for questions and ideas
- Documentation: Check the README and CLAUDE_OBSERVABILITY.md first
- Fork & Branch: Create a feature branch from
main - Develop: Make your changes following the guidelines above
- Test: Verify your changes work as expected
- Document: Update documentation if needed
- Submit: Create a pull request with a clear description
## Summary
Brief description of changes
## Type of Change
- [ ] Dashboard improvement
- [ ] Configuration enhancement
- [ ] Documentation update
- [ ] Bug fix
- [ ] New feature
## Testing
- [ ] Tested with actual Claude Code telemetry data
- [ ] Verified all dashboard panels work correctly
- [ ] Configuration validation passes
- [ ] Documentation is accurate
## Screenshots (if applicable)
Include screenshots of dashboard changesThank you for contributing to the Claude Code Observability Stack! 🚀