.NET 服务实时监控DotNetify-Pulse

DotNetify-Pulse

DotNetify-Pulse 是一个基于 .NET 开发的轻量级实时监控项目,通过 Nuget 安装后可以监控服务的日志活动和资源使用情况,

DotNetify-Pulse 使用了 SignalR 进行前后端数据交互, 监控页面支持实时刷新。.

如何使用?

1.安装nuget包

dotnet add package DotNetify.Pulse

2.配置 Startup.cs

using DotNetify;
using DotNetify.Pulse;
...

public void ConfigureServices(IServiceCollection services)
{
   services.AddSignalR();
   services.AddDotNetify();
   services.AddDotNetifyPulse();
}

public void Configure(IApplicationBuilder app)
{
   app.UseWebSockets();
   app.UseDotNetify();
   app.UseDotNetifyPulse();   
    
   app.UseRouting();
   app.UseEndpoints(endpoints => endpoints.MapHub<DotNetifyHub>("/dotnetify"));
}

3. 启动应用, 打开浏览器, 访问 localhost:5000/pulse

.NET 服务实时监控DotNetify-Pulse

DotNetify-Pulse 还支持高度定制化,你可以根据自己的需要配置数据源和 Dashboard。

.NET 服务实时监控DotNetify-Pulse
项目地址

https://github.com/dsuryd/dotNetify-Pulse