A simple server monitoring plugin for Hangfire.
Read about hangfire here: https://github.com/HangfireIO/Hangfire#hangfire- and here: http://hangfire.io/
Install a package from Nuget.
Then add this in your code:
for service side:
app.UseHangfireServer(additionalProcesses: new[] { new SystemMonitor(checkInterval: Timespan.FromSeconds(1)) });
for dashboard:
services.AddHangfire(configuration => configuration.UseHeartbeatPage(checkInterval: Timespan.FromSeconds(1)));
It's not recommended to specify checkInterval
less than 1 second as it can cause additional load on db server. Also I recommend to use the same interval as for server and dashboard.
- Victoria Popova
- Maria Gretskih
- @pieceofsummer
Authored by: Viktor Svyatokha (ahydrax)
This project is under MIT license. You can obtain the license copy here.