NuGet ยท nuget

Redeon.SuperSiteEngineCore.Web.Eltheon.Core.Features.AdminDashboard

Core Feature for Admin Dashboard aggregation inside the Eltheon framework

Install

Install-Kommandos

dotnet add package Redeon.SuperSiteEngineCore.Web.Eltheon.Core.Features.AdminDashboard --version 0.9.0.3
<PackageReference Include="Redeon.SuperSiteEngineCore.Web.Eltheon.Core.Features.AdminDashboard" Version="0.9.0.3" />
paket add Redeon.SuperSiteEngineCore.Web.Eltheon.Core.Features.AdminDashboard --version 0.9.0.3
Install-Package Redeon.SuperSiteEngineCore.Web.Eltheon.Core.Features.AdminDashboard -Version 0.9.0.3

README

Vorschau

Redeon.SuperSiteEngineCore.Web.Eltheon.Core.Features.AdminDashboard

Overview

The Admin Dashboard feature aggregates operational telemetry for Eltheon based solutions. It samples process metrics, plugin activity, background services, request latency and user statistics, and streams dashboards over SignalR. The package ships with queue-friendly hosted services, SignalR hubs and middleware so that any host can light up the dashboard with minimal wiring.

Key Components

  • IAdminDashboardManager / AdminDashboardManager collect metrics from Identity, Plugin and Service components and publish snapshots for Razor pages or APIs.
  • RequestMetricsMiddleware tracks per-endpoint request volumes and latency without touching application logic.
  • AdminDashboardMetricService : BaseService integrates with the Service feature to periodically refresh metrics and write execution history.
  • Model types under v1/Models describe the payloads used by SignalR hubs and Razor pages, keeping UI projects free from implementation details.

Getting Started

// Program.cs
builder.Services.AddSingleton<IAdminDashboardManager, AdminDashboardManager>();
builder.Services.AddHostedService<AdminDashboardMetricService>();
app.UseMiddleware<RequestMetricsMiddleware>();

Ensure that ServiceManager is registered so AdminDashboardMetricService can be scheduled, and add the SignalR feature to broadcast updates (AdminHub is included via the SignalR package).

Configuration & Dependencies

  • Depends on the Plugins, Service and SignalR features to enumerate plugins, coordinate hosted services and push updates to connected clients.
  • Uses GlobalConfig paths for log, email and plugin directories. Call GlobalConfig.Initialize before building the host.
  • Metrics such as CPU and disk usage rely on System.Management on Windows and /proc/stat on Linux.

Diagnostics

Because RequestMetricsMiddleware keeps global counters, ensure it is registered once per process. The manager writes informational log messages when it is created; enable Redeon.SuperSiteEngineCore.Web.Eltheon.Core.Features.AdminDashboard logging to trace metric sampling or ingestion issues.