A self-contained HTML/WebGL dashboard that renders a 3D globe showing real-time traffic connections from users worldwide to your AWS backend region.
assets/globe.html — Complete standalone dashboard (Three.js + custom shaders via CDN)Open assets/globe.html directly in a browser. It includes a mock data generator that simulates global traffic.
To connect real data, modify the generateConnections() function in the HTML to fetch from your data source. Expected data format per connection:
{
"lat": 51.5,
"lng": -0.12,
"latency": 85,
"country": "GB",
"requests": 1200
}
For production use, obtain MaxMind GeoLite2-City database:
| Config | Location | Description |
|---|---|---|
| -------- | ---------- | ------------- |
| Target region | TARGET_REGION const | AWS region coordinates (default: us-west-2) |
| Color thresholds | getArcColor() | Latency → color mapping |
| Alert threshold | ERROR_THRESHOLD | Error rate % to trigger alert mode |
| Panel layout | CSS .panel classes | Reposition info panels |
| Country names | CC_NAMES object | ISO code → display name mapping |
Serve as a static file behind any web server or embed in an internal dashboard (Grafana iframe, TV display, etc.). No backend required for the visualization itself — all rendering is client-side WebGL.
共 1 个版本