Cloud
Operational Dashboard
Auto-refreshing monitoring dashboard with Prometheus metrics and health status.
Overview
The dashboard serves a responsive, self-contained HTML page that displays
real-time service health, uptime, and Prometheus metrics. It fetches data
from your existing /health and /metrics endpoints.
Usage
typescript
Options
| Option | Type | Default | Description |
|---|---|---|---|
title | string | 'AxilJS Cloud Dashboard' | Page title |
metricsEndpoint | string | '/metrics' | URL to fetch Prometheus metrics |
healthEndpoint | string | '/health' | URL to fetch health JSON |
refreshMs | number | 5000 | Auto-refresh interval (min 1000) |
Security
The dashboard includes built-in security headers:
Content-Security-Policy— restricts script and style sourcesX-Frame-Options: DENY— prevents clickjackingX-Content-Type-Options: nosniff— prevents MIME sniffing- All dynamic content is HTML-escaped to prevent XSS
Production Deployment
Mount the dashboard behind authentication in production:
typescript