Commit Graph
9 Commits
Author SHA1 Message Date
asepharyana a90d0c4333 fix(dashboard): real error rate from llm_api_errors_total
- errors now = rate(llm_api_errors_total) instead of network TX bytes
- rps = rate(llm_api_requests_total) + rate(http_server_request_count_total)
- Latency card → Load Average (was misleading: showed node load as 'ms')
- Overview 'Errors' StatBox was hardcoded 0 → real llm err/s
- rename hasTraffik → hasTraffic (Traefik removed 2026-08-02)
2026-08-03 13:06:27 +07:00
asepharyana 62966fd7cf feat(dashboard): LLM Inference card with live llm-api metrics
- /api/dashboard now queries llm-api Prometheus metrics: req/s, tok/s, gen tok/s, uptime, sparklines
- new LLM Inference card shows gen throughput + uptime badge + traffic sparkline
- fmtUptime helper (human-readable duration)
2026-08-03 12:45:19 +07:00
asepharyana f35edb00d7 fix(dashboard): replace Docker/Jaeger with systemd + local Prometheus
- systemd list-units instead of /var/run/docker.sock (Docker removed)
- PROMETHEUS http://127.0.0.1:9090 (was http://prometheus:9090 Docker DNS)
- remove Jaeger trace fetch (Jaeger decommissioned)
- monitored units: caddy, gmw, 9router, lidm, teleuploader, zeavis, etc.
- web links from monitored units with Caddy sites
2026-08-02 20:54:47 +07:00
asepharyana e528b6a726 feat: update linter rules and improve code structure
- Added overrides in biome.json to disable specific linter rules for UI components.
- Reorganized imports and improved code readability in various UI components.
- Refactored components to use fieldset instead of div for better semantics.
- Enhanced accessibility by updating roles and aria attributes in components.
- Fixed minor issues with key props in map functions for better performance.
- Updated focus styles and improved CSS for better visual feedback.
2026-07-23 17:05:08 +07:00
asepharyanaandClaude Opus 4.8 d94524b70d refactor(hub): migrate dashboard to shadcn components
Replace manual CSS classes with shadcn Card, CardHeader, CardTitle,
CardContent, and Badge components. Remove inline <style> block —
use Tailwind utility classes via shadcn theme tokens. Add Biome
formatting across all components.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-23 12:19:43 +07:00
asepharyana d793ebf9b4 fix: correct Traefik latency metric name 2026-07-23 07:57:54 +07:00
asepharyana f0bbd13be9 fix: promRange type error — optional chaining 2026-07-23 07:52:18 +07:00
asepharyanaandClaude Opus 4.8 d14ed70240 feat: add Traefik metrics to dashboard API and sparkline charts
- Add promRange() for time-series data from Prometheus
- Query Traefik metrics: RPS, latency, error rate
- Dashboard page shows 4 sparkline charts (RPS, latency, errors, traces)
- Charts render inline SVG with auto-refresh every 15s

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-23 07:44:52 +07:00
asepharyanaandClaude Opus 4.8 72f4759f8b feat: rewrite dashboard as Next.js pages
- Remove Go dashboard (replaced by Next.js)
- Add API route /api/dashboard: Docker container list, Jaeger
  traces, Prometheus metrics, node resources
- Add /dashboard page: React client component with inline SVG
  charts (donut, sparkline, gauge), auto-refresh every 15s
- Same dark theme as original Go dashboard

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-23 06:55:25 +07:00