Interactive visualization tool for analyzing incident patterns and service impacts using Sankey diagrams and network graphs.
- Upload and analyze incident data and service impact relationships
- Interactive Sankey diagram showing incident flow across multiple dimensions
- Force-directed network graph displaying service dependencies
- Duration-based filtering with visual feedback
- Dark/light theme support
- Responsive design
- Filter data by Area, Shift, Team, and Service
- AI-powered incident analysis and recommendations
- Service Chainflow visualization for understanding service relationships
- Upload incidents and service impact CSV files. Authorized users can download a sample here.
- Use the filters to narrow down the data
- Use the Sankey diagram to understand incident flow
- Use the network graph to understand service dependencies
- Use the AI-powered analysis and recommendations to guide improvements
Required columns:
Service
: Service nameShift
: Shift nameArea
: Geographic/functional areaTeam
: Team nameCount
: Number of incidentsHours
: Resolution time in hours
Required columns:
Source
: Source service nameTarget
: Target service name
Required columns for nodes:
Service
: Service nameStage
: Stage number (0-4)Position
: Vertical position within stageValue
: Node size value
Required columns for links:
Source
: Source service nameTarget
: Target service nameValue
: Link weight value
- Modern web browser with ES Modules support
- Web server for local development
- Clone this repository:
git clone https://github.com/gramener/incidents.git
cd incidents
- Serve the files using any static web server. For example, using Python:
python -m http.server
- Open
http://localhost:8000
in your web browser
On Cloudflare DNS,
proxy CNAME incidents.straive.app
to gramener.github.io
.
On this repository's page settings, set
- Source:
Deploy from a branch
- Branch:
main
- Folder:
/
- Frontend: Vanilla JavaScript with lit-html for rendering
- LLM Integration: LLM Foundry API for query processing, specifically the
/openai/v1/chat/completions
endpoint withgpt-4o-mini
model - Styling: Bootstrap 5.3.3 with dark mode support
- Data Processing: D3.js for data transformation and analysis
All dependencies are loaded via CDN:
- D3.js v7 - Visualization
- Bootstrap v5.3.3 - UI components
- @gramex/sankey v1 - Sankey diagram
- @gramex/network v2 - Network visualization
- @gramex/ui v0.3 - Utilities
- marked v13 - Markdown parsing
- asyncllm v1 - AI integration
- PapaParse v5.3 - CSV parsing