Monitoring suite for Twingate, ZeroTier, IPFS, IPv6 ingress, BGP, and general network health across the FlatRacoon Network Stack.
Built with Phoenix LiveView for real-time updates and poly-observability-mcp for metrics collection.
Part of the FlatRacoon Network Stack.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Network Dashboard β
β (Phoenix LiveView) β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β βββββββββββ βββββββββββ βββββββββββ βββββββββββ β β
β β βTwingate β βZeroTier β β IPFS β β IPv6 β β β
β β β Panel β β Panel β β Panel β β Panel β β β
β β ββββββ¬βββββ ββββββ¬βββββ ββββββ¬βββββ ββββββ¬βββββ β β
β β β β β β β β
β β ββββββΌββββββββββββΌββββββββββββΌββββββββββββΌβββββ β β
β β β Real-Time Metrics Engine β β β
β β β (GenServer + ETS) β β β
β β ββββββββββββββββββββββ¬ββββββββββββββββββββββββββ β β
β βββββββββββββββββββββββββΌββββββββββββββββββββββββββββββ β
ββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββββββββ
β
ββββββββββββββΌβββββββββββββ
β β β
ββββββββββΌβββββββββ β ββββββββββΌβββββββββ
β Prometheus β β β Loki β
β (metrics) β β β (logs) β
ββββββββββ¬βββββββββ β ββββββββββ¬βββββββββ
β β β
ββββββββββββββΌβββββββββββββ
β
βββββββββββββββββββββΌββββββββββββββββββββ
β β β
ββββββββΌβββββββ ββββββββΌβββββββ ββββββββΌβββββββ
β Twingate β β ZeroTier β β IPFS β
β Connector β β Agents β β Nodes β
βββββββββββββββ βββββββββββββββ βββββββββββββββ-
Phoenix LiveView dashboard - Real-time web interface
-
Prometheus integration - Metrics collection and alerting
-
Loki integration - Log aggregation and search
-
Grafana dashboards - Pre-built visualization templates
-
Alert manager - Notification routing
network-dashboard/
βββ lib/
β βββ network_dashboard/
β β βββ application.ex
β β βββ metrics/
β β β βββ twingate.ex
β β β βββ zerotier.ex
β β β βββ ipfs.ex
β β β βββ ipv6.ex
β β β βββ bgp.ex
β β βββ alerts/
β βββ network_dashboard_web/
β βββ live/
β β βββ dashboard_live.ex
β β βββ twingate_live.ex
β β βββ zerotier_live.ex
β β βββ ipfs_live.ex
β β βββ network_live.ex
β βββ components/
βββ assets/
β βββ js/ # ReScript compiled JS
βββ grafana/
β βββ dashboards/
β β βββ overview.json
β β βββ twingate.json
β β βββ zerotier.json
β β βββ ipfs.json
β βββ provisioning/
βββ prometheus/
β βββ rules/
β βββ alerts/
βββ configs/
β βββ dashboard.ncl
β βββ alerts.ncl
β βββ retention.ncl
βββ mix.exs
βββ Justfile
βββ README.adoc
βββ STATE.scm
βββ META.scm
βββ ECOSYSTEM.scm-
Total connected nodes
-
Active Twingate sessions
-
ZeroTier mesh health
-
IPFS cluster status
-
IPv6 traffic volume
-
BGP session states
-
Active connections
-
Authentication events
-
Bandwidth usage
-
Access policy violations
-
Connector health
-
Peer count and status
-
Network latency matrix
-
NAT traversal success rate
-
Bandwidth per node
-
Route convergence time
-
Swarm peer count
-
Pinned content size
-
Gateway request rate
-
Bandwidth in/out
-
Block store metrics
| Input | Description | Source |
|---|---|---|
Prometheus endpoint |
Metrics scrape target |
poly-observability-mcp |
Loki endpoint |
Log aggregation target |
poly-observability-mcp |
Module health endpoints |
Per-module health checks |
Each FlatRacoon module |
Alert rules |
Alerting configuration |
configs/alerts.ncl |
| Output | Description |
|---|---|
Web dashboard |
Real-time Phoenix LiveView UI |
Grafana dashboards |
Pre-configured visualizations |
Prometheus alerts |
Configured alerting rules |
API endpoints |
Programmatic access to metrics |
-
All modules - Metrics collection endpoints
-
poly-observability-mcp - Prometheus/Loki integration
-
flatracoon-netstack orchestrator - Health status feed
{
"module": "network-dashboard",
"version": "0.1.0",
"layer": "observability",
"requires": ["prometheus", "loki", "elixir"],
"provides": ["dashboard", "alerting", "visualization"],
"config_schema": "configs/schema.ncl",
"health_endpoint": "/health",
"metrics_endpoint": "/metrics"
}# 1. Install dependencies
just deps
# 2. Configure endpoints
cp configs/dashboard.ncl.example configs/dashboard.ncl
# Edit configs/dashboard.ncl
# 3. Start dashboard
just server
# 4. Access at http://localhost:4000
# 5. Import Grafana dashboards
just grafana-import| Component | Technology |
|---|---|
Backend |
Elixir / Phoenix 1.7+ |
Frontend |
Phoenix LiveView + ReScript |
Real-time |
Phoenix Channels / WebSocket |
Metrics |
Prometheus / VictoriaMetrics |
Logs |
Loki / Grafana |
Visualization |
Grafana dashboards |
Configuration |
Nickel |