Server monitoring plugin for Hangfire
Switch branches/tags
Nothing to show
Clone or download
Latest commit 7a42077 Nov 6, 2018

README.md

Hangfire.Heartbeat

NuGet Build status

dashboard

A simple server monitoring plugin for Hangfire.

Read about hangfire here: https://github.com/HangfireIO/Hangfire#hangfire- and here: http://hangfire.io/

Instructions

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.

Credits

License

Authored by: Viktor Svyatokha (ahydrax)

This project is under MIT license. You can obtain the license copy here.