Overview
Nekotopia operates a comprehensive monitoring infrastructure to ensure service reliability, performance optimisation, and proactive issue detection. Our telemetry stack is built on industry-standard open-source tools,tools.
What visibilityWe intoMonitor
We continuously monitor the health and VPNperformance serviceof performance.the Torus network:
Monitoring Stack
Core Components
ArchitectureAlerting
TheAutomated monitoringalerts systemnotify followsadministrators a pull-based collection model with centralised storage and visualisation.
Data Collection Flow
1. Data Sources generate metrics:of:
MikroTikServiceRouterdegradation(networkorstats, queues, firewall)outagesLinuxCapacityHoststhresholds(systemapproachingresources)limitsDockerSecurity-relevantContainersevents- Infrastructure
metrics)component failures
Dashboards
Real-time dashboards provide visibility into:
- Overall network health status
- Active VPN connections
- Bandwidth consumption by tier
- Historical performance trends
User-Facing Metrics
Some metrics are exposed to users through the dashboard:
- Your connection status and uptime
- Your bandwidth usage
- Network latency to the hub
2.For Exportersmore expose metrics in Prometheus format:
MKTXP→ MikroTik metricsdetails on:9436Node Exporter→ Host metrics on:9100cAdvisor→ Container metrics on:8080
3. Prometheus scrapes all exporters every 15 seconds and stores 30 days of time-series data.
4. Grafana queries Prometheus and displays dashboards for operators.
Visual Flow
╔═══════════════════════════════════════════════════════════════════╗
║ DATA SOURCES ║
╠═══════════════════════════════════════════════════════════════════╣
║ ║
║ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ║
║ │ MikroTik │ │ Linux │ │ Docker │ ║
║ │ Router │ │ Hosts │ │ Containers │ ║
║ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ ║
║ │ │ │ ║
║ ▼ ▼ ▼ ║
║ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ║
║ │ MKTXP │ │ Node │ │ cAdvisor │ ║
║ │ :9436 │ │ :9100 │ │ :8080 │ ║
║ └──────┬──────┘ └──────┬──────┘ └──────┬──────┘ ║
╚══════════╪══════════════════╪══════════════════╪══════════════════╝
│ │ │
└──────────────────┼──────────────────┘
│
▼
╔═══════════════════════════════╗
║ PROMETHEUS ║
║ (Metrics Database) ║
║ ║
║ • Scrapes every 15 sec ║
║ • 30 day retention ║
║ • Alerting rules ║
╚═══════════════╤═══════════════╝
│
▼
╔═══════════════════════════════╗
║ GRAFANA ║
║ (Dashboards) ║
║ ║
║ • VPN Statistics ║
║ • Bandwidth Graphs ║
║ • System Health ║
╚═══════════════════════════════╝
NetFlow Traffic Analysis
For detailed traffic analysis, NetFlowwhat data followswe acollect separateabout path:users, see Data Collection.
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ MikroTik │ NetFlow │ pmacct │ metrics │ Prometheus │
│ Router │ ──────▶ │ Collector │ ──────▶ │ │
│ │ v9 │ │ │ │
└─────────────┘ └──────┬──────┘ └─────────────┘
│
▼
┌─────────────┐
│ Grafana │
│ Traffic │
│ Analysis │
└─────────────┘
Key Metrics Collected
Network Metrics
System Metrics
Traffic Analysis
Access
Grafana dashboards are available to administrators at the internal monitoring endpoint. User-facing statistics are exposed through the Nekotopia dashboard where appropriate.