Tharga.MongoDB.Monitor.Server
2.10.9
dotnet add package Tharga.MongoDB.Monitor.Server --version 2.10.9
NuGet\Install-Package Tharga.MongoDB.Monitor.Server -Version 2.10.9
<PackageReference Include="Tharga.MongoDB.Monitor.Server" Version="2.10.9" />
<PackageVersion Include="Tharga.MongoDB.Monitor.Server" Version="2.10.9" />
<PackageReference Include="Tharga.MongoDB.Monitor.Server" />
paket add Tharga.MongoDB.Monitor.Server --version 2.10.9
#r "nuget: Tharga.MongoDB.Monitor.Server, 2.10.9"
#:package Tharga.MongoDB.Monitor.Server@2.10.9
#addin nuget:?package=Tharga.MongoDB.Monitor.Server&version=2.10.9
#tool nuget:?package=Tharga.MongoDB.Monitor.Server&version=2.10.9
Tharga.MongoDB.Monitor.Server
Receives MongoDB monitoring data from one or more remote agents running Tharga.MongoDB.Monitor.Client and aggregates it into the local IDatabaseMonitor — so the host app's Tharga.MongoDB.Blazor admin UI can show calls, collections, and clients across every connected service from a single pane. Built on Tharga.Communication (SignalR-backed).
Install
dotnet add package Tharga.MongoDB.Monitor.Server
builder.AddMongoDB(); // local MongoDB usage (and the IDatabaseMonitor everything aggregates into)
builder.AddMongoDbMonitorServer(
primaryApiKey: cfg["MongoMonitor:PrimaryApiKey"], // optional — when set, agents must match
secondaryApiKey: cfg["MongoMonitor:SecondaryApiKey"]); // optional — for zero-downtime key rotation
var app = builder.Build();
app.UseMongoDbMonitorServer(); // maps the SignalR hub at "/hub" by default
Drop the Blazor admin components onto a page (see Tharga.MongoDB.Blazor) and remote agents show up alongside the local app's own data.
What it does
- Receives call, collection-info, and queue-metric messages from connected agents.
- Tracks each agent's connection state via
MonitorClientStateServiceandMonitorClientRepository— the admin UI's<ClientsView />lists them. - Bridges agent connections into
IDatabaseMonitorviaMonitorClientBridge, so the calls/collections views render remote data alongside local data. - Delegates remote actions — admin tools can target a specific agent (e.g. touch this collection on agent X, rebuild this index on agent Y) through
IRemoteActionDispatcher. - Live monitoring subscriptions — push live updates to subscribed clients via
ILiveMonitoringSubscription.
Documentation
Full docs, the matching client package, and the centralised-monitoring topology overview: github.com/Tharga/MongoDB.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Tharga.Communication (>= 0.1.5)
- Tharga.MongoDB.Monitor.Client (>= 2.10.9)
-
net8.0
- Tharga.Communication (>= 0.1.5)
- Tharga.MongoDB.Monitor.Client (>= 2.10.9)
-
net9.0
- Tharga.Communication (>= 0.1.5)
- Tharga.MongoDB.Monitor.Client (>= 2.10.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.