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:
+101
-101
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -8,7 +8,7 @@
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet" />
|
||||
<script type="module" crossorigin src="/assets/index-BFxN1zn5.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-Bf0gNYEi.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CU2pE4Ox.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user