Tharga.MongoDB.Monitor.Client
2.11.2
dotnet add package Tharga.MongoDB.Monitor.Client --version 2.11.2
NuGet\Install-Package Tharga.MongoDB.Monitor.Client -Version 2.11.2
<PackageReference Include="Tharga.MongoDB.Monitor.Client" Version="2.11.2" />
<PackageVersion Include="Tharga.MongoDB.Monitor.Client" Version="2.11.2" />
<PackageReference Include="Tharga.MongoDB.Monitor.Client" />
paket add Tharga.MongoDB.Monitor.Client --version 2.11.2
#r "nuget: Tharga.MongoDB.Monitor.Client, 2.11.2"
#:package Tharga.MongoDB.Monitor.Client@2.11.2
#addin nuget:?package=Tharga.MongoDB.Monitor.Client&version=2.11.2
#tool nuget:?package=Tharga.MongoDB.Monitor.Client&version=2.11.2
Tharga.MongoDB.Monitor.Client
Forwards Tharga.MongoDB monitoring data — calls, collection info, queue metrics — from a running app (the agent) to a central Tharga.MongoDB.Monitor.Server over Tharga.Communication (SignalR-backed). Use this when you want a single dashboard pane covering many MongoDB-talking services without each one shipping its own admin UI.
Install
dotnet add package Tharga.MongoDB.Monitor.Client
builder.AddMongoDB(); // the agent's normal MongoDB usage
builder.AddMongoDbMonitorClient(
sendTo: "https://monitor.example.com/", // monitor server URL
apiKey: builder.Configuration["MongoMonitor:ApiKey"]); // optional, must match one of the server's primary/secondary keys
For hosts that only expose IServiceCollection at registration time — for example a Tharga.Wpf-based agent whose App.Register(HostBuilderContext context, IServiceCollection services) callback has no builder in scope — use the IServiceCollection overload instead:
services.AddMongoDbMonitorClient(
configuration: context.Configuration,
sendTo: "https://monitor.example.com/",
apiKey: context.Configuration["MongoMonitor:ApiKey"]);
If sendTo is null/empty the client is a no-op — convenient for local dev. Both overloads behave identically once sendTo is set.
What it sends
- Collection info — registered collections, document counts, index status. Always forwarded (small).
- Queue & connection metrics — per-pool execute-limiter depth/throughput and actual open-connection counts. Forwarded only while someone is viewing the live tab on the server, at
Monitor.QueueMetricInterval(default 1s). - Calls — every completed database operation (filter, sort, latency, exception, explain plan). Opt-in, off by default — set
Monitor.ForwardCompletedCalls = true. This is a large, continuous stream proportional to database activity, so enable it only when you want full per-call history on the central server.
These are configured on the agent's Monitor options (same MongoDB:Monitor section as the core package):
"MongoDB": {
"Monitor": {
"ForwardCompletedCalls": false,
"QueueMetricInterval": "00:00:01"
}
}
The agent appears as a connected client on the server side — its forwarding configuration (call forwarding on/off, queue interval, storage mode) is shown on the server's Clients page — and it can be inspected, addressed, and acted upon from there (e.g. "rebuild index on agent X" via remote action delegation).
Documentation
Full docs, the matching server 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.2.1)
- Tharga.MongoDB (>= 2.11.2)
-
net8.0
- Tharga.Communication (>= 0.2.1)
- Tharga.MongoDB (>= 2.11.2)
-
net9.0
- Tharga.Communication (>= 0.2.1)
- Tharga.MongoDB (>= 2.11.2)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Tharga.MongoDB.Monitor.Client:
| Package | Downloads |
|---|---|
|
Tharga.MongoDB.Monitor.Server
Receives MongoDB monitoring data from remote agents via Tharga.Communication and aggregates it into the local IDatabaseMonitor. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 2.11.2 | 29 | 6/26/2026 | |
| 2.11.1 | 123 | 6/24/2026 | |
| 2.11.0 | 121 | 6/11/2026 | |
| 2.10.15 | 185 | 6/10/2026 | |
| 2.10.14 | 127 | 6/6/2026 | |
| 2.10.13 | 127 | 5/31/2026 | |
| 2.10.12 | 138 | 5/18/2026 | |
| 2.10.11 | 123 | 5/12/2026 | |
| 2.10.10 | 127 | 5/10/2026 | |
| 2.10.9 | 115 | 5/5/2026 | |
| 2.10.8 | 125 | 5/5/2026 | |
| 2.10.7 | 129 | 5/5/2026 | |
| 2.10.6 | 121 | 5/3/2026 | |
| 2.10.5 | 121 | 4/29/2026 | |
| 2.10.4 | 121 | 4/20/2026 | |
| 2.10.3 | 132 | 4/16/2026 | |
| 2.10.2 | 124 | 4/8/2026 | |
| 2.10.1 | 130 | 4/5/2026 | |
| 2.10.0 | 132 | 4/3/2026 |