Automatic monitoring for Hangfire background jobs. Track job execution, detect failures, and get alerts with zero configuration. Simply add UseCronRadar() to your Hangfire setup.
$ dotnet add package CronRadar.HangfireMonitor all Hangfire jobs automatically.
dotnet add package CronRadar.Hangfire
// Set API key via environment variable
// CRONRADAR_API_KEY=ck_app_xxxxx
services.AddHangfire(config =>
{
config
.UseSqlServerStorage("connection-string")
.MonitorAll(); // 👈 That's it!
});
All recurring jobs are now monitored automatically.
[SkipMonitor]
public void InternalTask()
{
// This job won't be monitored
}
API Key (required):
CRONRADAR_API_KEY=ck_app_xxxxx
Or pass directly:
config.MonitorAll(apiKey: "ck_app_xxxxx");
Debug logging (optional):
CRONRADAR_DEBUG=true
See also: CronRadar .NET SDK