-
-
-
- Failed to load telemetry data
-
-
{error}
-
-
+
+
+
+
Loading telemetry data...
);
@@ -372,199 +287,82 @@ export function TelemetryPage() {
-
+
Telemetry Dashboard
-
- System metrics from Prometheus pipeline via ClickHouse.
- {error && (
-
- (partial data — {error})
-
- )}
+
+ Real-time metrics from Prometheus
+ {error && (partial — {error})}
-
- {/* Stat Cards */}
- {stats && (
-
-
-
-
- 0
- ? `${stats.health.errors} errors`
- : "All healthy"
- }
- color={stats.health.errors > 0 ? "text-red-600" : "text-green-600"}
- />
-
- )}
-
- {/* CPU, Memory, Disk charts */}
-
-
-
-
+ {/* ===== SYSTEM ===== */}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- {/* Application Metrics */}
- {(chartMap.has("zeavis_api_http_requests_total") || chartMap.has("zeavis_api_http_requests_active")) && (
-
- Application Metrics
-
- {chartMap.has("zeavis_api_http_requests_total") && (
-
- )}
- {chartMap.has("zeavis_api_http_requests_active") && (
-
- )}
-
-
- )}
+ {/* ===== APPLICATION ===== */}
+
+
+
+
+
+
+
+
+
+
+
+
+
- {/* Top Metrics */}
-
-
-
-
- Top Metrics
-
-
-
- {topMetrics.length === 0 ? (
-
- No metrics discovered yet
-
- ) : (
-
-
-
-
- |
- Metric
- |
-
- Service
- |
-
- Samples
- |
-
- Latest Value
- |
-
-
-
- {topMetrics.map((m) => (
-
- |
- {m.metric_name}
- |
-
-
- {m.service}
-
- |
-
- {fmt(m.sample_count)}
- |
-
- {typeof m.latest_value === "number"
- ? m.latest_value.toFixed(4)
- : String(m.latest_value)}
- |
-
- ))}
-
-
-
- )}
-
-
+ {/* ===== ML SERVICE ===== */}
+
+
+
+
+
+
+
- {/* Service Distribution */}
-
-
-
-
- Services
-
-
-
- {serviceCounts.length === 0 ? (
-
- No services discovered
-
- ) : (
-
- ({ name, count }))}>
-
-
-
-
-
-
-
- )}
-
-
+ {/* ===== NODEJS DETAIL ===== */}
+
+
+
+
+
+
+
+
+
+
+ (v / 1024 / 1024).toFixed(1) + " MiB"} />
+ (v * 1000).toFixed(2) + " ms"} />
+
);
}