Commit 62dca57
committed
Add interactive ClickHouse cluster topology visualization
Features:
- Backend: New /api/clusters/topology endpoint with comprehensive topology data
- Queries system.clusters, system.replicas, system.tables, and system.parts
- Returns cluster structure, replication status, and table metadata
- Frontend: Interactive graph visualization using @antv/graphin
- Three view modes: Cluster Topology, Tables & Databases, Combined View
- Hierarchical graph showing clusters → shards → replicas
- Database and table visualization with replication indicators
- Color-coded health status (green: healthy, yellow: slowdowns, red: errors)
- Click-to-expand node details in sidebar drawer
- Supports multiple clusters with dropdown selector
- Dependencies: Added @antv/g6 (5.0.50) and @antv/graphin (3.0.5) for graph rendering
This view enables ops teams to quickly understand their ClickHouse cluster
architecture, identify unhealthy nodes, and visualize data distribution.1 parent 9b126c0 commit 62dca57
File tree
6 files changed
+1230
-2
lines changed- frontend
- src
- pages/Topology
- housewatch
- api
- clickhouse/queries
6 files changed
+1230
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
0 commit comments