deploy: Remove Grafana panels and deploy to production

- Remove Grafana iframe panels (CORS issues)
- Deploy frontend to /var/www/boc via NGINX on port 8088
- API proxy configured to boc-api on port 9096
- All ledger features working: Balance Sheet, Income Statement, Accounts Table
- Period selector, Drill-down, Export buttons included
This commit is contained in:
Bernt
2026-07-29 20:47:46 +00:00
parent dd145bc3d9
commit 43b86abfa6
3 changed files with 102 additions and 161 deletions
-59
View File
@@ -26,23 +26,6 @@ import {
ArrowUpRight,
} from 'lucide-react'
// Grafana iframe integration
function GrafanaPanel({ src, title }: { src: string; title: string }) {
return (
<Card className="overflow-hidden">
<CardHeader title={title} />
<iframe
src={src}
width="100%"
height="300"
frameBorder="0"
title={title}
className="bg-surface"
/>
</Card>
)
}
interface Deal {
id: string
name: string
@@ -251,48 +234,6 @@ export function DashboardPage() {
<BalanceSheetChart data={balanceSheetData} />
)}
{/* Infrastructure Health — Grafana Integration */}
<Card>
<CardHeader
title="Infrastructure Health"
subtitle="Real-time system metrics from Grafana"
/>
<div className="grid grid-cols-1 xl:grid-cols-3 gap-6 p-6">
<GrafanaPanel
src="http://localhost:3050/d-solo/amlzdh/aamos-system-health?orgId=1&panelId=1&refresh=5s"
title="CPU Usage"
/>
<GrafanaPanel
src="http://localhost:3050/d-solo/amlzdh/aamos-system-health?orgId=1&panelId=2&refresh=5s"
title="Memory Usage"
/>
<GrafanaPanel
src="http://localhost:3050/d-solo/amlzdh/aamos-system-health?orgId=1&panelId=3&refresh=5s"
title="Disk Usage"
/>
</div>
</Card>
{/* Service Status */}
<Card>
<CardHeader
title="Service Status"
subtitle="All AAMOS services health check"
/>
<div className="grid grid-cols-1 xl:grid-cols-2 gap-6 p-6">
<GrafanaPanel
src="http://localhost:3050/d-solo/aamos/service-status?orgId=1&panelId=4"
title="PM2 Processes"
/>
<GrafanaPanel
src="http://localhost:3050/d-solo/aamos/service-status?orgId=1&panelId=5"
title="Docker Containers"
/>
</div>
</Card>
{/* Revenue Chart + Activity */}
<div className="grid grid-cols-1 xl:grid-cols-3 gap-6">
<div className="xl:col-span-2">