{
  "version": "https://jsonfeed.org/version/1.1",
  "title": "Drumbeats.io Blog",
  "home_page_url": "https://drumbeats.io/blog",
  "feed_url": "https://drumbeats.io/feed.json",
  "description": "Product thinking, reliability guides, and practical cron job monitoring advice from Drumbeats.io.",
  "items": [
    {
      "id": "https://drumbeats.io/blog/monitor-bullmq-workers-heartbeat",
      "url": "https://drumbeats.io/blog/monitor-bullmq-workers-heartbeat",
      "title": "Monitoring BullMQ workers on a toy crypto exchange",
      "summary": "I flushed the Redis behind a small exchange's BullMQ queues while the worker was running. It logged nothing, and the minutely balance check stopped. Three Node processes, four queues, an outbox relay, seven Drumbeats monitors created from one prompt, and four timed drills on BullMQ 6.4.2.",
      "content_html": "<p>On 24 October at 21:20:11 UTC I ran <code>FLUSHALL</code> against the Redis behind a small exchange&#39;s job queues. The worker process stayed up. It logged nothing. The balance check that runs every minute did not run again until 21:24:00, after I restarted the API, and the only component that noticed was a monitor outside the system, at 21:22:00.</p>\n<p>The exchange is a toy I built for this post. It takes euro and bitcoin deposits and withdrawals, sends a confirmation email after each one, and reconciles its ledger against a fake hot wallet once a minute. Everything a user does returns within a second; everything that touches money or a third party happens later, in a worker, through BullMQ. This post builds that system from the request handler outward, shows five ways it goes quiet without an error, and adds the forty lines that make each of them page someone. The timings are from the run above.</p>\n<h2 id=\"prerequisites\">Prerequisites</h2>\n<p>Node 22, Postgres 16, Redis 7 started with <code>--maxmemory-policy noeviction --appendonly yes</code>, and <code>bullmq@6.4.2</code> (published the day I ran this). BullMQ 6 no longer depends on <code>ioredis</code>; install <code>ioredis@5</code> yourself and pass a client, or the Worker refuses to start with &quot;BullMQ could not load the optional &#39;ioredis&#39; package&quot;. The HTTP layer is Fastify 5, the database driver is <code>pg</code>, and Mailpit stands in for an SMTP provider. The custodian, the bank and the chain watcher are stubs that sleep for two or three seconds. You also need a free Drumbeats project. The repository is linked at the end if you would rather read than type.</p>\n<h2 id=\"three-processes-and-four-queues\">Three processes and four queues</h2>\n<p>The exchange is one Docker image started three ways.</p>\n<p><code>api</code> answers HTTP. <code>POST /withdrawals</code> reserves the amount on the user&#39;s balance, inserts a <code>transactions</code> row and returns <code>202</code>. It never talks to the custodian, because the custodian takes three seconds and sometimes fails, and a request handler is the wrong place to retry.</p>\n<p><code>worker</code> is a second Node process. It opens a BullMQ <code>Worker</code> on each queue and runs one function per job name. A queue, in this context, is a named set of Redis structures that BullMQ manages; a job is a name, a JSON payload and an id.</p>\n<p><code>relay</code> is the third process and the subject of the next section.</p>\n<p>The queues are <code>deposits</code> (jobs <code>deposit-fiat-confirm</code>, <code>deposit-crypto-confirm</code>), <code>withdrawals</code> (<code>withdrawal-fiat</code>, <code>withdrawal-crypto</code>), <code>emails</code> (<code>email-transaction</code>) and <code>balance-checks</code>, which has no producer. Its single job, <code>balance-check</code>, comes from a Job Scheduler:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"typescript\" data-title=\"\" data-code=\"Ly8gc3JjL3F1ZXVlcy50cwppbXBvcnQgeyBRdWV1ZSwgV29ya2VyLCB0eXBlIFByb2Nlc3NvciB9IGZyb20gJ2J1bGxtcSc7CmltcG9ydCB7IFJlZGlzIH0gZnJvbSAnaW9yZWRpcyc7CmV4cG9ydCBjb25zdCBjb25uZWN0aW9uID0gbmV3IFJlZGlzKHsgaG9zdDogcHJvY2Vzcy5lbnYuUkVESVNfSE9TVCA/PyAnbG9jYWxob3N0JywgcG9ydDogNjM3OSwgbWF4UmV0cmllc1BlclJlcXVlc3Q6IG51bGwgfSk7CgpleHBvcnQgY29uc3Qgd2l0aGRyYXdhbHMgICA9IG5ldyBRdWV1ZSgnd2l0aGRyYXdhbHMnLCAgICB7IGNvbm5lY3Rpb24gfSk7CmV4cG9ydCBjb25zdCBiYWxhbmNlQ2hlY2tzID0gbmV3IFF1ZXVlKCdiYWxhbmNlLWNoZWNrcycsIHsgY29ubmVjdGlvbiB9KTsKLy8gZGVwb3NpdHMgYW5kIGVtYWlscyBhcmUgZGVjbGFyZWQgdGhlIHNhbWUgd2F5CgpleHBvcnQgZnVuY3Rpb24gc3RhcnRXb3JrZXIocXVldWVOYW1lOiBzdHJpbmcsIHByb2Nlc3NvcnM6IFJlY29yZDxzdHJpbmcsIFByb2Nlc3Nvcj4sIGNvbmN1cnJlbmN5ID0gNSkgewogIGNvbnN0IHdvcmtlciA9IG5ldyBXb3JrZXIocXVldWVOYW1lLCBhc3luYyAoam9iKSA9PiB7CiAgICBjb25zdCBydW4gPSBwcm9jZXNzb3JzW2pvYi5uYW1lXTsKICAgIGlmICghcnVuKSB0aHJvdyBuZXcgRXJyb3IoYG5vIHByb2Nlc3NvciBmb3IgJHtqb2IubmFtZX1gKTsKICAgIHJldHVybiBydW4oam9iKTsKICB9LCB7IGNvbm5lY3Rpb24sIGNvbmN1cnJlbmN5IH0pOwogIHdvcmtlci5vbignZXJyb3InLCAoZXJyKSA9PiBjb25zb2xlLmVycm9yKGBbJHtxdWV1ZU5hbWV9XWAsIGVycikpOwogIGNvbnN0IHN0b3AgPSBhc3luYyAoKSA9PiB7IGF3YWl0IHdvcmtlci5jbG9zZSgpOyBwcm9jZXNzLmV4aXQoMCk7IH07CiAgcHJvY2Vzcy5vbmNlKCdTSUdJTlQnLCBzdG9wKTsgcHJvY2Vzcy5vbmNlKCdTSUdURVJNJywgc3RvcCk7CiAgcmV0dXJuIHdvcmtlcjsKfQoKLy8gc3JjL3NjaGVkdWxlci50cywgY2FsbGVkIG9uY2Ugd2hlbiBhcGkgYm9vdHM7IGNhbGxpbmcgaXQgYWdhaW4gaXMgYSBuby1vcApleHBvcnQgYXN5bmMgZnVuY3Rpb24gZW5zdXJlU2NoZWR1bGVyKGJhbGFuY2VDaGVja3M6IFF1ZXVlKSB7CiAgYXdhaXQgYmFsYW5jZUNoZWNrcy51cHNlcnRKb2JTY2hlZHVsZXIoCiAgICAnYmFsYW5jZS1jaGVjay1taW51dGVseScsCiAgICB7IHBhdHRlcm46ICcqICogKiAqIConLCB0ejogJ1VUQycgfSwKICAgIHsgbmFtZTogJ2JhbGFuY2UtY2hlY2snLCBkYXRhOiB7fSwgb3B0czogeyByZW1vdmVPbkNvbXBsZXRlOiA2MCwgcmVtb3ZlT25GYWlsOiAxMDAgfSB9LAogICk7Cn0=\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6A737D\">// src/queues.ts</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">import</span><span style=\"color:#24292E\"> { Queue, Worker, </span><span style=\"color:#D73A49\">type</span><span style=\"color:#24292E\"> Processor } </span><span style=\"color:#D73A49\">from</span><span style=\"color:#032F62\"> 'bullmq'</span><span style=\"color:#24292E\">;</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">import</span><span style=\"color:#24292E\"> { Redis } </span><span style=\"color:#D73A49\">from</span><span style=\"color:#032F62\"> 'ioredis'</span><span style=\"color:#24292E\">;</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">export</span><span style=\"color:#D73A49\"> const</span><span style=\"color:#005CC5\"> connection</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#D73A49\"> new</span><span style=\"color:#6F42C1\"> Redis</span><span style=\"color:#24292E\">({ host: process.env.</span><span style=\"color:#005CC5\">REDIS_HOST</span><span style=\"color:#D73A49\"> ??</span><span style=\"color:#032F62\"> 'localhost'</span><span style=\"color:#24292E\">, port: </span><span style=\"color:#005CC5\">6379</span><span style=\"color:#24292E\">, maxRetriesPerRequest: </span><span style=\"color:#005CC5\">null</span><span style=\"color:#24292E\"> });</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#D73A49\">export</span><span style=\"color:#D73A49\"> const</span><span style=\"color:#005CC5\"> withdrawals</span><span style=\"color:#D73A49\">   =</span><span style=\"color:#D73A49\"> new</span><span style=\"color:#6F42C1\"> Queue</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">'withdrawals'</span><span style=\"color:#24292E\">,    { connection });</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">export</span><span style=\"color:#D73A49\"> const</span><span style=\"color:#005CC5\"> balanceChecks</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#D73A49\"> new</span><span style=\"color:#6F42C1\"> Queue</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">'balance-checks'</span><span style=\"color:#24292E\">, { connection });</span></span>\n<span class=\"line\"><span style=\"color:#6A737D\">// deposits and emails are declared the same way</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#D73A49\">export</span><span style=\"color:#D73A49\"> function</span><span style=\"color:#6F42C1\"> startWorker</span><span style=\"color:#24292E\">(</span><span style=\"color:#E36209\">queueName</span><span style=\"color:#D73A49\">:</span><span style=\"color:#005CC5\"> string</span><span style=\"color:#24292E\">, </span><span style=\"color:#E36209\">processors</span><span style=\"color:#D73A49\">:</span><span style=\"color:#6F42C1\"> Record</span><span style=\"color:#24292E\">&#x3C;</span><span style=\"color:#005CC5\">string</span><span style=\"color:#24292E\">, </span><span style=\"color:#6F42C1\">Processor</span><span style=\"color:#24292E\">>, </span><span style=\"color:#E36209\">concurrency</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#005CC5\"> 5</span><span style=\"color:#24292E\">) {</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  const</span><span style=\"color:#005CC5\"> worker</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#D73A49\"> new</span><span style=\"color:#6F42C1\"> Worker</span><span style=\"color:#24292E\">(queueName, </span><span style=\"color:#D73A49\">async</span><span style=\"color:#24292E\"> (</span><span style=\"color:#E36209\">job</span><span style=\"color:#24292E\">) </span><span style=\"color:#D73A49\">=></span><span style=\"color:#24292E\"> {</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    const</span><span style=\"color:#005CC5\"> run</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#24292E\"> processors[job.name];</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    if</span><span style=\"color:#24292E\"> (</span><span style=\"color:#D73A49\">!</span><span style=\"color:#24292E\">run) </span><span style=\"color:#D73A49\">throw</span><span style=\"color:#D73A49\"> new</span><span style=\"color:#6F42C1\"> Error</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">`no processor for ${</span><span style=\"color:#24292E\">job</span><span style=\"color:#032F62\">.</span><span style=\"color:#24292E\">name</span><span style=\"color:#032F62\">}`</span><span style=\"color:#24292E\">);</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    return</span><span style=\"color:#6F42C1\"> run</span><span style=\"color:#24292E\">(job);</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  }, { connection, concurrency });</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  worker.</span><span style=\"color:#6F42C1\">on</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">'error'</span><span style=\"color:#24292E\">, (</span><span style=\"color:#E36209\">err</span><span style=\"color:#24292E\">) </span><span style=\"color:#D73A49\">=></span><span style=\"color:#24292E\"> console.</span><span style=\"color:#6F42C1\">error</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">`[${</span><span style=\"color:#24292E\">queueName</span><span style=\"color:#032F62\">}]`</span><span style=\"color:#24292E\">, err));</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  const</span><span style=\"color:#6F42C1\"> stop</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#D73A49\"> async</span><span style=\"color:#24292E\"> () </span><span style=\"color:#D73A49\">=></span><span style=\"color:#24292E\"> { </span><span style=\"color:#D73A49\">await</span><span style=\"color:#24292E\"> worker.</span><span style=\"color:#6F42C1\">close</span><span style=\"color:#24292E\">(); process.</span><span style=\"color:#6F42C1\">exit</span><span style=\"color:#24292E\">(</span><span style=\"color:#005CC5\">0</span><span style=\"color:#24292E\">); };</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  process.</span><span style=\"color:#6F42C1\">once</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">'SIGINT'</span><span style=\"color:#24292E\">, stop); process.</span><span style=\"color:#6F42C1\">once</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">'SIGTERM'</span><span style=\"color:#24292E\">, stop);</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  return</span><span style=\"color:#24292E\"> worker;</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">}</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#6A737D\">// src/scheduler.ts, called once when api boots; calling it again is a no-op</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">export</span><span style=\"color:#D73A49\"> async</span><span style=\"color:#D73A49\"> function</span><span style=\"color:#6F42C1\"> ensureScheduler</span><span style=\"color:#24292E\">(</span><span style=\"color:#E36209\">balanceChecks</span><span style=\"color:#D73A49\">:</span><span style=\"color:#6F42C1\"> Queue</span><span style=\"color:#24292E\">) {</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  await</span><span style=\"color:#24292E\"> balanceChecks.</span><span style=\"color:#6F42C1\">upsertJobScheduler</span><span style=\"color:#24292E\">(</span></span>\n<span class=\"line\"><span style=\"color:#032F62\">    'balance-check-minutely'</span><span style=\"color:#24292E\">,</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">    { pattern: </span><span style=\"color:#032F62\">'* * * * *'</span><span style=\"color:#24292E\">, tz: </span><span style=\"color:#032F62\">'UTC'</span><span style=\"color:#24292E\"> },</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">    { name: </span><span style=\"color:#032F62\">'balance-check'</span><span style=\"color:#24292E\">, data: {}, opts: { removeOnComplete: </span><span style=\"color:#005CC5\">60</span><span style=\"color:#24292E\">, removeOnFail: </span><span style=\"color:#005CC5\">100</span><span style=\"color:#24292E\"> } },</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  );</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">}</span></span></code></pre></div></div>\n<p>The scheduler is the part worth reading the docs on. They say: &quot;The scheduler will only generate new jobs when the last job begins processing.&quot; There is no timer in any process. The scheduler is a Redis key plus one delayed job, and a worker promotes that delayed job when its time comes and creates the next one as it starts. Jobs produced this way get the id <code>repeat:balance-check-minutely:&lt;epoch ms&gt;</code>, which matters later.</p>\n<h2 id=\"why-the-api-cannot-call-queueadd-itself\">Why the API cannot call queue.add() itself</h2>\n<p>A withdrawal has to do two things: write a row in Postgres and tell a worker. Postgres and Redis do not share a transaction, so the order you pick decides which failure you get. Enqueue before <code>COMMIT</code> and a worker can pick up a job whose row does not exist yet, or the commit can fail after the custodian was already called. Enqueue after <code>COMMIT</code> and a crash or a Redis timeout in between leaves a committed withdrawal that nobody will ever process. With money, both are unacceptable.</p>\n<p>The transactional outbox pattern stores the intent to enqueue as a row in the same transaction as the withdrawal, and a separate process moves those rows to the queue. The topic column becomes the job name:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"typescript\" data-title=\"\" data-code=\"Ly8gc3JjL3dpdGhkcmF3YWxzLnRzCmV4cG9ydCBhc3luYyBmdW5jdGlvbiByZXF1ZXN0V2l0aGRyYXdhbChhY2NvdW50SWQ6IHN0cmluZywgYXNzZXQ6ICdCVEMnIHwgJ0VVUicsIGFtb3VudDogc3RyaW5nLCBkZXN0aW5hdGlvbjogc3RyaW5nKSB7CiAgY29uc3QgY2xpZW50ID0gYXdhaXQgcG9vbC5jb25uZWN0KCk7CiAgdHJ5IHsKICAgIGF3YWl0IGNsaWVudC5xdWVyeSgnQkVHSU4nKTsKICAgIGNvbnN0IHsgcm93Q291bnQgfSA9IGF3YWl0IGNsaWVudC5xdWVyeSgKICAgICAgYFVQREFURSBiYWxhbmNlcyBTRVQgYXZhaWxhYmxlID0gYXZhaWxhYmxlIC0gJDMsIHJlc2VydmVkID0gcmVzZXJ2ZWQgKyAkMwogICAgICAgV0hFUkUgYWNjb3VudF9pZCA9ICQxIEFORCBhc3NldCA9ICQyIEFORCBhdmFpbGFibGUgPj0gJDNgLCBbYWNjb3VudElkLCBhc3NldCwgYW1vdW50XSk7CiAgICBpZiAoIXJvd0NvdW50KSB0aHJvdyBuZXcgRXJyb3IoJ2luc3VmZmljaWVudCBiYWxhbmNlJyk7CiAgICBjb25zdCB7IHJvd3M6IFt0eF0gfSA9IGF3YWl0IGNsaWVudC5xdWVyeSgKICAgICAgYElOU0VSVCBJTlRPIHRyYW5zYWN0aW9ucyAoYWNjb3VudF9pZCwga2luZCwgYXNzZXQsIGFtb3VudCkgVkFMVUVTICgkMSwnd2l0aGRyYXdhbCcsJDIsJDMpIFJFVFVSTklORyBpZGAsCiAgICAgIFthY2NvdW50SWQsIGFzc2V0LCBhbW91bnRdKTsKICAgIGNvbnN0IHRvcGljID0gYXNzZXQgPT09ICdFVVInID8gJ3dpdGhkcmF3YWwtZmlhdCcgOiAnd2l0aGRyYXdhbC1jcnlwdG8nOwogICAgYXdhaXQgY2xpZW50LnF1ZXJ5KCdJTlNFUlQgSU5UTyBvdXRib3ggKHRvcGljLCBwYXlsb2FkKSBWQUxVRVMgKCQxLCQyKScsCiAgICAgIFt0b3BpYywgeyB3aXRoZHJhd2FsSWQ6IHR4LmlkLCBhY2NvdW50SWQsIGFzc2V0LCBhbW91bnQsIGRlc3RpbmF0aW9uIH1dKTsKICAgIGF3YWl0IGNsaWVudC5xdWVyeSgnQ09NTUlUJyk7CiAgICByZXR1cm4gdHguaWQgYXMgc3RyaW5nOwogIH0gY2F0Y2ggKGUpIHsKICAgIGF3YWl0IGNsaWVudC5xdWVyeSgnUk9MTEJBQ0snKTsKICAgIHRocm93IGU7CiAgfSBmaW5hbGx5IHsKICAgIGNsaWVudC5yZWxlYXNlKCk7CiAgfQp9\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6A737D\">// src/withdrawals.ts</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">export</span><span style=\"color:#D73A49\"> async</span><span style=\"color:#D73A49\"> function</span><span style=\"color:#6F42C1\"> requestWithdrawal</span><span style=\"color:#24292E\">(</span><span style=\"color:#E36209\">accountId</span><span style=\"color:#D73A49\">:</span><span style=\"color:#005CC5\"> string</span><span style=\"color:#24292E\">, </span><span style=\"color:#E36209\">asset</span><span style=\"color:#D73A49\">:</span><span style=\"color:#032F62\"> 'BTC'</span><span style=\"color:#D73A49\"> |</span><span style=\"color:#032F62\"> 'EUR'</span><span style=\"color:#24292E\">, </span><span style=\"color:#E36209\">amount</span><span style=\"color:#D73A49\">:</span><span style=\"color:#005CC5\"> string</span><span style=\"color:#24292E\">, </span><span style=\"color:#E36209\">destination</span><span style=\"color:#D73A49\">:</span><span style=\"color:#005CC5\"> string</span><span style=\"color:#24292E\">) {</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  const</span><span style=\"color:#005CC5\"> client</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#D73A49\"> await</span><span style=\"color:#24292E\"> pool.</span><span style=\"color:#6F42C1\">connect</span><span style=\"color:#24292E\">();</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  try</span><span style=\"color:#24292E\"> {</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    await</span><span style=\"color:#24292E\"> client.</span><span style=\"color:#6F42C1\">query</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">'BEGIN'</span><span style=\"color:#24292E\">);</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    const</span><span style=\"color:#24292E\"> { </span><span style=\"color:#005CC5\">rowCount</span><span style=\"color:#24292E\"> } </span><span style=\"color:#D73A49\">=</span><span style=\"color:#D73A49\"> await</span><span style=\"color:#24292E\"> client.</span><span style=\"color:#6F42C1\">query</span><span style=\"color:#24292E\">(</span></span>\n<span class=\"line\"><span style=\"color:#032F62\">      `UPDATE balances SET available = available - $3, reserved = reserved + $3</span></span>\n<span class=\"line\"><span style=\"color:#032F62\">       WHERE account_id = $1 AND asset = $2 AND available >= $3`</span><span style=\"color:#24292E\">, [accountId, asset, amount]);</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    if</span><span style=\"color:#24292E\"> (</span><span style=\"color:#D73A49\">!</span><span style=\"color:#24292E\">rowCount) </span><span style=\"color:#D73A49\">throw</span><span style=\"color:#D73A49\"> new</span><span style=\"color:#6F42C1\"> Error</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">'insufficient balance'</span><span style=\"color:#24292E\">);</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    const</span><span style=\"color:#24292E\"> { </span><span style=\"color:#E36209\">rows</span><span style=\"color:#24292E\">: [</span><span style=\"color:#005CC5\">tx</span><span style=\"color:#24292E\">] } </span><span style=\"color:#D73A49\">=</span><span style=\"color:#D73A49\"> await</span><span style=\"color:#24292E\"> client.</span><span style=\"color:#6F42C1\">query</span><span style=\"color:#24292E\">(</span></span>\n<span class=\"line\"><span style=\"color:#032F62\">      `INSERT INTO transactions (account_id, kind, asset, amount) VALUES ($1,'withdrawal',$2,$3) RETURNING id`</span><span style=\"color:#24292E\">,</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">      [accountId, asset, amount]);</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    const</span><span style=\"color:#005CC5\"> topic</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#24292E\"> asset </span><span style=\"color:#D73A49\">===</span><span style=\"color:#032F62\"> 'EUR'</span><span style=\"color:#D73A49\"> ?</span><span style=\"color:#032F62\"> 'withdrawal-fiat'</span><span style=\"color:#D73A49\"> :</span><span style=\"color:#032F62\"> 'withdrawal-crypto'</span><span style=\"color:#24292E\">;</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    await</span><span style=\"color:#24292E\"> client.</span><span style=\"color:#6F42C1\">query</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">'INSERT INTO outbox (topic, payload) VALUES ($1,$2)'</span><span style=\"color:#24292E\">,</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">      [topic, { withdrawalId: tx.id, accountId, asset, amount, destination }]);</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    await</span><span style=\"color:#24292E\"> client.</span><span style=\"color:#6F42C1\">query</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">'COMMIT'</span><span style=\"color:#24292E\">);</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    return</span><span style=\"color:#24292E\"> tx.id </span><span style=\"color:#D73A49\">as</span><span style=\"color:#005CC5\"> string</span><span style=\"color:#24292E\">;</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  } </span><span style=\"color:#D73A49\">catch</span><span style=\"color:#24292E\"> (e) {</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    await</span><span style=\"color:#24292E\"> client.</span><span style=\"color:#6F42C1\">query</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">'ROLLBACK'</span><span style=\"color:#24292E\">);</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    throw</span><span style=\"color:#24292E\"> e;</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  } </span><span style=\"color:#D73A49\">finally</span><span style=\"color:#24292E\"> {</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">    client.</span><span style=\"color:#6F42C1\">release</span><span style=\"color:#24292E\">();</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  }</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">}</span></span></code></pre></div></div>\n<p>The <code>outbox</code> table is <code>id uuid</code>, <code>topic text</code>, <code>payload jsonb</code>, <code>created_at</code>, <code>published_at</code> nullable, with a partial index on <code>created_at where published_at is null</code>.</p>\n<h2 id=\"the-relay\">The relay</h2>\n<p>The relay loops once a second, locks up to 100 unpublished rows, adds one job per row and marks the rows published in the same transaction. The job id is the outbox row id. BullMQ ignores an <code>add</code> whose id already exists, so if the relay crashes between <code>add</code> and <code>COMMIT</code> the retry is harmless:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"typescript\" data-title=\"\" data-code=\"Ly8gc3JjL3JlbGF5LnRzCmFzeW5jIGZ1bmN0aW9uIHJlbGF5T25jZSgpOiBQcm9taXNlPG51bWJlcj4gewogIGNvbnN0IGNsaWVudCA9IGF3YWl0IHBvb2wuY29ubmVjdCgpOwogIHRyeSB7CiAgICBhd2FpdCBjbGllbnQucXVlcnkoJ0JFR0lOJyk7CiAgICBjb25zdCB7IHJvd3MgfSA9IGF3YWl0IGNsaWVudC5xdWVyeSgKICAgICAgYFNFTEVDVCBpZCwgdG9waWMsIHBheWxvYWQgRlJPTSBvdXRib3ggV0hFUkUgcHVibGlzaGVkX2F0IElTIE5VTEwKICAgICAgIE9SREVSIEJZIGNyZWF0ZWRfYXQgTElNSVQgMTAwIEZPUiBVUERBVEUgU0tJUCBMT0NLRURgKTsKICAgIGZvciAoY29uc3QgciBvZiByb3dzKSB7CiAgICAgIGF3YWl0IHF1ZXVlRm9yKHIudG9waWMpLmFkZChyLnRvcGljLCByLnBheWxvYWQsIHsKICAgICAgICBqb2JJZDogci5pZCwgYXR0ZW1wdHM6IDUsIGJhY2tvZmY6IHsgdHlwZTogJ2V4cG9uZW50aWFsJywgZGVsYXk6IDEwMDAgfSwKICAgICAgICByZW1vdmVPbkNvbXBsZXRlOiB7IGFnZTogMzYwMCwgY291bnQ6IDEwMDAgfSwgcmVtb3ZlT25GYWlsOiB7IGFnZTogODY0MDAgfSwKICAgICAgfSk7CiAgICB9CiAgICBpZiAocm93cy5sZW5ndGgpIGF3YWl0IGNsaWVudC5xdWVyeSgKICAgICAgJ1VQREFURSBvdXRib3ggU0VUIHB1Ymxpc2hlZF9hdCA9IG5vdygpIFdIRVJFIGlkID0gQU5ZKCQxOjp1dWlkW10pJywgW3Jvd3MubWFwKHIgPT4gci5pZCldKTsKICAgIGF3YWl0IGNsaWVudC5xdWVyeSgnQ09NTUlUJyk7CiAgICByZXR1cm4gcm93cy5sZW5ndGg7CiAgfSBjYXRjaCAoZSkgeyBhd2FpdCBjbGllbnQucXVlcnkoJ1JPTExCQUNLJyk7IHRocm93IGU7IH0KICBmaW5hbGx5IHsgY2xpZW50LnJlbGVhc2UoKTsgfQp9CgpleHBvcnQgYXN5bmMgZnVuY3Rpb24gcnVuUmVsYXkob25UaWNrOiAoKSA9PiB2b2lkKSB7CiAgZm9yICg7OykgeyB0cnkgeyBhd2FpdCByZWxheU9uY2UoKTsgb25UaWNrKCk7IH0gY2F0Y2ggKGUpIHsgY29uc29sZS5lcnJvcigncmVsYXknLCBlKTsgfSBhd2FpdCBzbGVlcCgxMDAwKTsgfQp9\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6A737D\">// src/relay.ts</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">async</span><span style=\"color:#D73A49\"> function</span><span style=\"color:#6F42C1\"> relayOnce</span><span style=\"color:#24292E\">()</span><span style=\"color:#D73A49\">:</span><span style=\"color:#6F42C1\"> Promise</span><span style=\"color:#24292E\">&#x3C;</span><span style=\"color:#005CC5\">number</span><span style=\"color:#24292E\">> {</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  const</span><span style=\"color:#005CC5\"> client</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#D73A49\"> await</span><span style=\"color:#24292E\"> pool.</span><span style=\"color:#6F42C1\">connect</span><span style=\"color:#24292E\">();</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  try</span><span style=\"color:#24292E\"> {</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    await</span><span style=\"color:#24292E\"> client.</span><span style=\"color:#6F42C1\">query</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">'BEGIN'</span><span style=\"color:#24292E\">);</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    const</span><span style=\"color:#24292E\"> { </span><span style=\"color:#005CC5\">rows</span><span style=\"color:#24292E\"> } </span><span style=\"color:#D73A49\">=</span><span style=\"color:#D73A49\"> await</span><span style=\"color:#24292E\"> client.</span><span style=\"color:#6F42C1\">query</span><span style=\"color:#24292E\">(</span></span>\n<span class=\"line\"><span style=\"color:#032F62\">      `SELECT id, topic, payload FROM outbox WHERE published_at IS NULL</span></span>\n<span class=\"line\"><span style=\"color:#032F62\">       ORDER BY created_at LIMIT 100 FOR UPDATE SKIP LOCKED`</span><span style=\"color:#24292E\">);</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    for</span><span style=\"color:#24292E\"> (</span><span style=\"color:#D73A49\">const</span><span style=\"color:#005CC5\"> r</span><span style=\"color:#D73A49\"> of</span><span style=\"color:#24292E\"> rows) {</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">      await</span><span style=\"color:#6F42C1\"> queueFor</span><span style=\"color:#24292E\">(r.topic).</span><span style=\"color:#6F42C1\">add</span><span style=\"color:#24292E\">(r.topic, r.payload, {</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">        jobId: r.id, attempts: </span><span style=\"color:#005CC5\">5</span><span style=\"color:#24292E\">, backoff: { type: </span><span style=\"color:#032F62\">'exponential'</span><span style=\"color:#24292E\">, delay: </span><span style=\"color:#005CC5\">1000</span><span style=\"color:#24292E\"> },</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">        removeOnComplete: { age: </span><span style=\"color:#005CC5\">3600</span><span style=\"color:#24292E\">, count: </span><span style=\"color:#005CC5\">1000</span><span style=\"color:#24292E\"> }, removeOnFail: { age: </span><span style=\"color:#005CC5\">86400</span><span style=\"color:#24292E\"> },</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">      });</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">    }</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    if</span><span style=\"color:#24292E\"> (rows.</span><span style=\"color:#005CC5\">length</span><span style=\"color:#24292E\">) </span><span style=\"color:#D73A49\">await</span><span style=\"color:#24292E\"> client.</span><span style=\"color:#6F42C1\">query</span><span style=\"color:#24292E\">(</span></span>\n<span class=\"line\"><span style=\"color:#032F62\">      'UPDATE outbox SET published_at = now() WHERE id = ANY($1::uuid[])'</span><span style=\"color:#24292E\">, [rows.</span><span style=\"color:#6F42C1\">map</span><span style=\"color:#24292E\">(</span><span style=\"color:#E36209\">r</span><span style=\"color:#D73A49\"> =></span><span style=\"color:#24292E\"> r.id)]);</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    await</span><span style=\"color:#24292E\"> client.</span><span style=\"color:#6F42C1\">query</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">'COMMIT'</span><span style=\"color:#24292E\">);</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    return</span><span style=\"color:#24292E\"> rows.</span><span style=\"color:#005CC5\">length</span><span style=\"color:#24292E\">;</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  } </span><span style=\"color:#D73A49\">catch</span><span style=\"color:#24292E\"> (e) { </span><span style=\"color:#D73A49\">await</span><span style=\"color:#24292E\"> client.</span><span style=\"color:#6F42C1\">query</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">'ROLLBACK'</span><span style=\"color:#24292E\">); </span><span style=\"color:#D73A49\">throw</span><span style=\"color:#24292E\"> e; }</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  finally</span><span style=\"color:#24292E\"> { client.</span><span style=\"color:#6F42C1\">release</span><span style=\"color:#24292E\">(); }</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">}</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#D73A49\">export</span><span style=\"color:#D73A49\"> async</span><span style=\"color:#D73A49\"> function</span><span style=\"color:#6F42C1\"> runRelay</span><span style=\"color:#24292E\">(</span><span style=\"color:#6F42C1\">onTick</span><span style=\"color:#D73A49\">:</span><span style=\"color:#24292E\"> () </span><span style=\"color:#D73A49\">=></span><span style=\"color:#005CC5\"> void</span><span style=\"color:#24292E\">) {</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  for</span><span style=\"color:#24292E\"> (;;) { </span><span style=\"color:#D73A49\">try</span><span style=\"color:#24292E\"> { </span><span style=\"color:#D73A49\">await</span><span style=\"color:#6F42C1\"> relayOnce</span><span style=\"color:#24292E\">(); </span><span style=\"color:#6F42C1\">onTick</span><span style=\"color:#24292E\">(); } </span><span style=\"color:#D73A49\">catch</span><span style=\"color:#24292E\"> (e) { console.</span><span style=\"color:#6F42C1\">error</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">'relay'</span><span style=\"color:#24292E\">, e); } </span><span style=\"color:#D73A49\">await</span><span style=\"color:#6F42C1\"> sleep</span><span style=\"color:#24292E\">(</span><span style=\"color:#005CC5\">1000</span><span style=\"color:#24292E\">); }</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">}</span></span></code></pre></div></div>\n<p>I chose one second and 100 rows because the exchange is tiny; the shape is what matters. <code>FOR UPDATE SKIP LOCKED</code> lets a second relay run without the two fighting over rows. <code>attempts: 5</code> with exponential backoff retries a job at 1, 2, 4 and 8 seconds before it lands in the failed set.</p>\n<p>The worker&#39;s deposit and withdrawal processors call the stub custodian, mark the transaction settled, move the fake wallet balance, and insert another outbox row with topic <code>email-transaction</code>. The relay picks that up too, and the email worker sends through Mailpit.</p>\n<h2 id=\"where-this-goes-quiet\">Where this goes quiet</h2>\n<p>Each failure below ties to one of the three processes, and in none of them does anything throw.</p>\n<div class=\"blog-table-wrap\"><table><thead><tr><th>What stops</th><th>What the system shows</th><th>What BullMQ emits</th></tr></thead><tbody><tr><td><code>worker</code> exits</td><td>API still returns <code>202</code>; queues grow; the scheduler&#39;s one delayed job sits in Redis</td><td>nothing (no worker to emit)</td></tr><tr><td>Redis loses its keys (flush, eviction, a fresh instance)</td><td>worker idles on empty queues and logs nothing; the scheduler key is gone</td><td><code>drained</code></td></tr><tr><td><code>relay</code> exits or is left out of a deploy</td><td>queues empty and healthy; <code>outbox</code> rows pile up unpublished</td><td>nothing</td></tr><tr><td>worker killed mid-job</td><td>job stays locked; after <code>lockDuration</code> (30 s) another worker, if one exists, marks it stalled and retries; the only worker cannot notice its own death</td><td><code>stalled</code>, from a different worker</td></tr><tr><td>SMTP down</td><td>five retries over 15 seconds, then the job joins the failed set</td><td><code>failed</code>, five times</td></tr></tbody></table></div>\n<p>I ran the third one. With the relay stopped at 21:20:21 I submitted a withdrawal and a deposit; both returned <code>202</code>. Two minutes later:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"plaintext\" data-title=\"\" data-code=\"JCBwc3FsIC1jICJzZWxlY3QgY291bnQoKikgZnJvbSBvdXRib3ggd2hlcmUgcHVibGlzaGVkX2F0IGlzIG51bGwiCiAyCiQgcmVkaXMtY2xpIGxsZW4gYnVsbDp3aXRoZHJhd2Fsczp3YWl0IDsgcmVkaXMtY2xpIGxsZW4gYnVsbDp3aXRoZHJhd2FsczphY3RpdmUgOyByZWRpcy1jbGkgemNhcmQgYnVsbDp3aXRoZHJhd2FsczpmYWlsZWQKMAowCjAKJCBkb2NrZXIgY29tcG9zZSBsb2dzIC0tc2luY2UgM20gd29ya2VyCihub3RoaW5nKQ==\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span>$ psql -c \"select count(*) from outbox where published_at is null\"</span></span>\n<span class=\"line\"><span> 2</span></span>\n<span class=\"line\"><span>$ redis-cli llen bull:withdrawals:wait ; redis-cli llen bull:withdrawals:active ; redis-cli zcard bull:withdrawals:failed</span></span>\n<span class=\"line\"><span>0</span></span>\n<span class=\"line\"><span>0</span></span>\n<span class=\"line\"><span>0</span></span>\n<span class=\"line\"><span>$ docker compose logs --since 3m worker</span></span>\n<span class=\"line\"><span>(nothing)</span></span></code></pre></div></div>\n<p>Bull Board would have shown the same zeros. Its own documentation says it is a viewer and that alerting belongs in worker code. The docs page on repeatable jobs says the rest: &quot;If there are no workers running, repeatable jobs will not accumulate next time a worker is online.&quot;</p>\n<h2 id=\"seven-monitors-from-one-prompt\">Seven monitors from one prompt</h2>\n<p>A Drumbeats monitor is addressed by project id and slug, and a ping to a slug that does not exist returns &quot;Monitor not found&quot;. So the monitors come first. There are seven: one per job name, plus one for the relay, and I created them from Claude Code with the Drumbeats MCP server connected:</p>\n<blockquote><p>In Drumbeats, create a project called &quot;Tulip Exchange&quot; and these monitors in it, slug equal to the name: <code>balance-check</code> as a cron monitor on <code><em> </em> <em> </em> *</code> UTC with a 60 s grace; <code>outbox-relay</code> as a heartbeat every 1m with a 30 s grace; <code>deposit-crypto-confirm</code>, <code>deposit-fiat-confirm</code>, <code>withdrawal-crypto</code>, <code>withdrawal-fiat</code> and <code>email-transaction</code> as event-driven monitors, max duration 300 s for the withdrawals, 120 s for the deposits and 60 s for the email, failure tolerance 3 for the email and 1 for the rest. Tag them <code>tulip</code> and <code>bullmq</code>, then list the project&#39;s monitors.</p></blockquote>\n<p>Seven <code>create_monitor</code> calls and one <code>list_monitors</code> later I had the project id for the environment file. The types are the decision. <code>balance-check</code> is the only job with a schedule to miss, so it gets <a href=\"/cron-job-monitoring\">cron job monitoring</a>; everything else is a heartbeat or event-driven:</p>\n<div class=\"blog-table-wrap\"><table><thead><tr><th>Slug</th><th>Type</th><th>Why</th></tr></thead><tbody><tr><td><code>balance-check</code></td><td>Cron <code><em> </em> <em> </em> *</code>, grace 60 s</td><td>The scheduler promises a run every minute; a run that is 60 s late is a missed run.</td></tr><tr><td><code>outbox-relay</code></td><td>Heartbeat, every 1m, grace 30 s</td><td>The relay has no schedule and no jobs; it pings while its loop is alive.</td></tr><tr><td>the five job names</td><td>Event-driven, max duration 60 to 300 s</td><td>Silence is normal. A <code>start</code> with no finish inside the limit becomes a failure. <code>email-transaction</code> tolerates three failures because retries are expected; withdrawals page on the first.</td></tr></tbody></table></div>\n<p>The same server lists incidents and acknowledges them, which I used from the terminal during the drills instead of the dashboard.</p>\n<h2 id=\"what-the-worker-and-the-relay-report\">What the worker and the relay report</h2>\n<p>Every BullMQ <code>Worker</code> emits <code>active</code>, <code>completed</code>, <code>failed</code> and <code>stalled</code>, and the job object carries <code>name</code>, <code>id</code> and <code>processedOn</code>. That is enough to describe a run to Drumbeats without touching any processor:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"typescript\" data-title=\"\" data-code=\"Ly8gc3JjL2RydW1iZWF0cy50cwpjb25zdCBzbHVnT2YgPSAobmFtZTogc3RyaW5nKSA9PiBuYW1lLnRvTG93ZXJDYXNlKCkucmVwbGFjZSgvW15hLXowLTldKy9nLCAnLScpLnJlcGxhY2UoL14tK3wtKyQvZywgJycpLnNsaWNlKDAsIDUwKTsKCmV4cG9ydCBmdW5jdGlvbiBhdHRhY2hEcnVtYmVhdHMod29ya2VyOiBXb3JrZXIsIG9wdHM6IHsgcHJvamVjdElkOiBzdHJpbmc7IGJhc2VVcmw/OiBzdHJpbmcgfSkgewogIGNvbnN0IGJhc2UgPSBvcHRzLmJhc2VVcmwgPz8gJ2h0dHBzOi8vYXBpLmRydW1iZWF0cy5pbyc7CiAgY29uc3QgbmFtZXMgPSBuZXcgTWFwPHN0cmluZywgc3RyaW5nPigpOyAgICAgICAgICAgICAgICAgICAgICAgLy8gam9iSWQgLT4gam9iLm5hbWUgKGZvciAnc3RhbGxlZCcpCiAgY29uc3QgY2hhaW5zID0gbmV3IE1hcDxzdHJpbmcsIFByb21pc2U8dW5rbm93bj4+KCk7ICAgICAgICAgICAgLy8gam9iSWQgLT4gbGFzdCBwaW5nLCBzbyBzdGFydCBsYW5kcyBiZWZvcmUgZmluaXNoCiAgY29uc3Qgc2VuZCA9IChzbHVnOiBzdHJpbmcsIGV2ZW50OiBzdHJpbmcsIHJ1bklkOiBzdHJpbmcsIGJvZHk6IHsgZHVyYXRpb25fbXM/OiBudW1iZXI7IHBheWxvYWQ/OiB1bmtub3duIH0gPSB7fSkgPT4gewogICAgY29uc3QgdXJsID0gYCR7YmFzZX0vdjEvcy1waW5nLyR7b3B0cy5wcm9qZWN0SWR9LyR7c2x1Z30vJHtldmVudH0/cnVuX2lkPSR7ZW5jb2RlVVJJQ29tcG9uZW50KHJ1bklkKX1gOwogICAgY29uc3QgcGF5bG9hZCA9IGJvZHkucGF5bG9hZCA9PT0gdW5kZWZpbmVkID8gdW5kZWZpbmVkIDogSlNPTi5zdHJpbmdpZnkoYm9keS5wYXlsb2FkKTsgICAvLyBEcnVtYmVhdHMgc3RvcmVzIHBheWxvYWQgYXMgYSBzdHJpbmcKICAgIHJldHVybiBmZXRjaCh1cmwsIHsgbWV0aG9kOiAnUE9TVCcsIGhlYWRlcnM6IHsgJ2NvbnRlbnQtdHlwZSc6ICdhcHBsaWNhdGlvbi9qc29uJyB9LAogICAgICBib2R5OiBKU09OLnN0cmluZ2lmeSh7IGR1cmF0aW9uX21zOiBib2R5LmR1cmF0aW9uX21zLCBwYXlsb2FkIH0pLCBzaWduYWw6IEFib3J0U2lnbmFsLnRpbWVvdXQoMzAwMCkgfSkuY2F0Y2goKCkgPT4ge30pOwogIH07CiAgY29uc3QgcGluZyA9IChzbHVnOiBzdHJpbmcsIGV2ZW50OiBzdHJpbmcsIHJ1bklkOiBzdHJpbmcsIGJvZHk/OiB7IGR1cmF0aW9uX21zPzogbnVtYmVyOyBwYXlsb2FkPzogdW5rbm93biB9KSA9PiB7CiAgICBjb25zdCBuZXh0ID0gKGNoYWlucy5nZXQocnVuSWQpID8/IFByb21pc2UucmVzb2x2ZSgpKS50aGVuKCgpID0+IHNlbmQoc2x1ZywgZXZlbnQsIHJ1bklkLCBib2R5KSk7CiAgICBjaGFpbnMuc2V0KHJ1bklkLCBuZXh0KTsKICAgIGlmIChldmVudCAhPT0gJ3N0YXJ0Jykgdm9pZCBuZXh0LmZpbmFsbHkoKCkgPT4geyBpZiAoY2hhaW5zLmdldChydW5JZCkgPT09IG5leHQpIGNoYWlucy5kZWxldGUocnVuSWQpOyB9KTsKICB9OwogIGNvbnN0IGVsYXBzZWQgPSAoam9iOiBKb2IpID0+IChqb2IucHJvY2Vzc2VkT24gPyBEYXRlLm5vdygpIC0gam9iLnByb2Nlc3NlZE9uIDogdW5kZWZpbmVkKTsKCiAgd29ya2VyLm9uKCdhY3RpdmUnLCAoam9iKSA9PiB7IG5hbWVzLnNldChTdHJpbmcoam9iLmlkKSwgam9iLm5hbWUpOyBwaW5nKHNsdWdPZihqb2IubmFtZSksICdzdGFydCcsIFN0cmluZyhqb2IuaWQpKTsgfSk7CiAgd29ya2VyLm9uKCdjb21wbGV0ZWQnLCAoam9iKSA9PiB7IG5hbWVzLmRlbGV0ZShTdHJpbmcoam9iLmlkKSk7CiAgICBwaW5nKHNsdWdPZihqb2IubmFtZSksICdzdWNjZXNzJywgU3RyaW5nKGpvYi5pZCksIHsgZHVyYXRpb25fbXM6IGVsYXBzZWQoam9iKSwgcGF5bG9hZDogeyBuYW1lOiBqb2IubmFtZSwga2V5czogT2JqZWN0LmtleXMoam9iLmRhdGEgPz8ge30pIH0gfSk7IH0pOwogIHdvcmtlci5vbignZmFpbGVkJywgKGpvYiwgZXJyKSA9PiB7IGlmICgham9iKSByZXR1cm47IG5hbWVzLmRlbGV0ZShTdHJpbmcoam9iLmlkKSk7CiAgICBwaW5nKHNsdWdPZihqb2IubmFtZSksICdmYWlsdXJlJywgU3RyaW5nKGpvYi5pZCksIHsgZHVyYXRpb25fbXM6IGVsYXBzZWQoam9iKSwgcGF5bG9hZDogeyByZWFzb246IGVyci5tZXNzYWdlLCBhdHRlbXB0OiBqb2IuYXR0ZW1wdHNNYWRlIH0gfSk7IH0pOwogIHdvcmtlci5vbignc3RhbGxlZCcsIChqb2JJZCkgPT4geyBjb25zdCBuYW1lID0gbmFtZXMuZ2V0KGpvYklkKTsgaWYgKCFuYW1lKSByZXR1cm47CiAgICBwaW5nKHNsdWdPZihuYW1lKSwgJ2xvZycsIGpvYklkLCB7IHBheWxvYWQ6ICdzdGFsbGVkOiBsb2NrIGxvc3QsIHJlcXVldWVkIGJ5IEJ1bGxNUScgfSk7IH0pOwp9\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6A737D\">// src/drumbeats.ts</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">const</span><span style=\"color:#6F42C1\"> slugOf</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#24292E\"> (</span><span style=\"color:#E36209\">name</span><span style=\"color:#D73A49\">:</span><span style=\"color:#005CC5\"> string</span><span style=\"color:#24292E\">) </span><span style=\"color:#D73A49\">=></span><span style=\"color:#24292E\"> name.</span><span style=\"color:#6F42C1\">toLowerCase</span><span style=\"color:#24292E\">().</span><span style=\"color:#6F42C1\">replace</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">/</span><span style=\"color:#005CC5\">[</span><span style=\"color:#D73A49\">^</span><span style=\"color:#005CC5\">a-z0-9]</span><span style=\"color:#D73A49\">+</span><span style=\"color:#032F62\">/</span><span style=\"color:#D73A49\">g</span><span style=\"color:#24292E\">, </span><span style=\"color:#032F62\">'-'</span><span style=\"color:#24292E\">).</span><span style=\"color:#6F42C1\">replace</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">/</span><span style=\"color:#D73A49\">^</span><span style=\"color:#032F62\">-</span><span style=\"color:#D73A49\">+|</span><span style=\"color:#032F62\">-</span><span style=\"color:#D73A49\">+$</span><span style=\"color:#032F62\">/</span><span style=\"color:#D73A49\">g</span><span style=\"color:#24292E\">, </span><span style=\"color:#032F62\">''</span><span style=\"color:#24292E\">).</span><span style=\"color:#6F42C1\">slice</span><span style=\"color:#24292E\">(</span><span style=\"color:#005CC5\">0</span><span style=\"color:#24292E\">, </span><span style=\"color:#005CC5\">50</span><span style=\"color:#24292E\">);</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#D73A49\">export</span><span style=\"color:#D73A49\"> function</span><span style=\"color:#6F42C1\"> attachDrumbeats</span><span style=\"color:#24292E\">(</span><span style=\"color:#E36209\">worker</span><span style=\"color:#D73A49\">:</span><span style=\"color:#6F42C1\"> Worker</span><span style=\"color:#24292E\">, </span><span style=\"color:#E36209\">opts</span><span style=\"color:#D73A49\">:</span><span style=\"color:#24292E\"> { </span><span style=\"color:#E36209\">projectId</span><span style=\"color:#D73A49\">:</span><span style=\"color:#005CC5\"> string</span><span style=\"color:#24292E\">; </span><span style=\"color:#E36209\">baseUrl</span><span style=\"color:#D73A49\">?:</span><span style=\"color:#005CC5\"> string</span><span style=\"color:#24292E\"> }) {</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  const</span><span style=\"color:#005CC5\"> base</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#24292E\"> opts.baseUrl </span><span style=\"color:#D73A49\">??</span><span style=\"color:#032F62\"> 'https://api.drumbeats.io'</span><span style=\"color:#24292E\">;</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  const</span><span style=\"color:#005CC5\"> names</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#D73A49\"> new</span><span style=\"color:#6F42C1\"> Map</span><span style=\"color:#24292E\">&#x3C;</span><span style=\"color:#005CC5\">string</span><span style=\"color:#24292E\">, </span><span style=\"color:#005CC5\">string</span><span style=\"color:#24292E\">>();                       </span><span style=\"color:#6A737D\">// jobId -> job.name (for 'stalled')</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  const</span><span style=\"color:#005CC5\"> chains</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#D73A49\"> new</span><span style=\"color:#6F42C1\"> Map</span><span style=\"color:#24292E\">&#x3C;</span><span style=\"color:#005CC5\">string</span><span style=\"color:#24292E\">, </span><span style=\"color:#6F42C1\">Promise</span><span style=\"color:#24292E\">&#x3C;</span><span style=\"color:#005CC5\">unknown</span><span style=\"color:#24292E\">>>();            </span><span style=\"color:#6A737D\">// jobId -> last ping, so start lands before finish</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  const</span><span style=\"color:#6F42C1\"> send</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#24292E\"> (</span><span style=\"color:#E36209\">slug</span><span style=\"color:#D73A49\">:</span><span style=\"color:#005CC5\"> string</span><span style=\"color:#24292E\">, </span><span style=\"color:#E36209\">event</span><span style=\"color:#D73A49\">:</span><span style=\"color:#005CC5\"> string</span><span style=\"color:#24292E\">, </span><span style=\"color:#E36209\">runId</span><span style=\"color:#D73A49\">:</span><span style=\"color:#005CC5\"> string</span><span style=\"color:#24292E\">, </span><span style=\"color:#E36209\">body</span><span style=\"color:#D73A49\">:</span><span style=\"color:#24292E\"> { </span><span style=\"color:#E36209\">duration_ms</span><span style=\"color:#D73A49\">?:</span><span style=\"color:#005CC5\"> number</span><span style=\"color:#24292E\">; </span><span style=\"color:#E36209\">payload</span><span style=\"color:#D73A49\">?:</span><span style=\"color:#005CC5\"> unknown</span><span style=\"color:#24292E\"> } </span><span style=\"color:#D73A49\">=</span><span style=\"color:#24292E\"> {}) </span><span style=\"color:#D73A49\">=></span><span style=\"color:#24292E\"> {</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    const</span><span style=\"color:#005CC5\"> url</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#032F62\"> `${</span><span style=\"color:#24292E\">base</span><span style=\"color:#032F62\">}/v1/s-ping/${</span><span style=\"color:#24292E\">opts</span><span style=\"color:#032F62\">.</span><span style=\"color:#24292E\">projectId</span><span style=\"color:#032F62\">}/${</span><span style=\"color:#24292E\">slug</span><span style=\"color:#032F62\">}/${</span><span style=\"color:#24292E\">event</span><span style=\"color:#032F62\">}?run_id=${</span><span style=\"color:#6F42C1\">encodeURIComponent</span><span style=\"color:#032F62\">(</span><span style=\"color:#24292E\">runId</span><span style=\"color:#032F62\">)</span><span style=\"color:#032F62\">}`</span><span style=\"color:#24292E\">;</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    const</span><span style=\"color:#005CC5\"> payload</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#24292E\"> body.payload </span><span style=\"color:#D73A49\">===</span><span style=\"color:#005CC5\"> undefined</span><span style=\"color:#D73A49\"> ?</span><span style=\"color:#005CC5\"> undefined</span><span style=\"color:#D73A49\"> :</span><span style=\"color:#005CC5\"> JSON</span><span style=\"color:#24292E\">.</span><span style=\"color:#6F42C1\">stringify</span><span style=\"color:#24292E\">(body.payload);   </span><span style=\"color:#6A737D\">// Drumbeats stores payload as a string</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    return</span><span style=\"color:#6F42C1\"> fetch</span><span style=\"color:#24292E\">(url, { method: </span><span style=\"color:#032F62\">'POST'</span><span style=\"color:#24292E\">, headers: { </span><span style=\"color:#032F62\">'content-type'</span><span style=\"color:#24292E\">: </span><span style=\"color:#032F62\">'application/json'</span><span style=\"color:#24292E\"> },</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">      body: </span><span style=\"color:#005CC5\">JSON</span><span style=\"color:#24292E\">.</span><span style=\"color:#6F42C1\">stringify</span><span style=\"color:#24292E\">({ duration_ms: body.duration_ms, payload }), signal: AbortSignal.</span><span style=\"color:#6F42C1\">timeout</span><span style=\"color:#24292E\">(</span><span style=\"color:#005CC5\">3000</span><span style=\"color:#24292E\">) }).</span><span style=\"color:#6F42C1\">catch</span><span style=\"color:#24292E\">(() </span><span style=\"color:#D73A49\">=></span><span style=\"color:#24292E\"> {});</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  };</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  const</span><span style=\"color:#6F42C1\"> ping</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#24292E\"> (</span><span style=\"color:#E36209\">slug</span><span style=\"color:#D73A49\">:</span><span style=\"color:#005CC5\"> string</span><span style=\"color:#24292E\">, </span><span style=\"color:#E36209\">event</span><span style=\"color:#D73A49\">:</span><span style=\"color:#005CC5\"> string</span><span style=\"color:#24292E\">, </span><span style=\"color:#E36209\">runId</span><span style=\"color:#D73A49\">:</span><span style=\"color:#005CC5\"> string</span><span style=\"color:#24292E\">, </span><span style=\"color:#E36209\">body</span><span style=\"color:#D73A49\">?:</span><span style=\"color:#24292E\"> { </span><span style=\"color:#E36209\">duration_ms</span><span style=\"color:#D73A49\">?:</span><span style=\"color:#005CC5\"> number</span><span style=\"color:#24292E\">; </span><span style=\"color:#E36209\">payload</span><span style=\"color:#D73A49\">?:</span><span style=\"color:#005CC5\"> unknown</span><span style=\"color:#24292E\"> }) </span><span style=\"color:#D73A49\">=></span><span style=\"color:#24292E\"> {</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    const</span><span style=\"color:#005CC5\"> next</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#24292E\"> (chains.</span><span style=\"color:#6F42C1\">get</span><span style=\"color:#24292E\">(runId) </span><span style=\"color:#D73A49\">??</span><span style=\"color:#005CC5\"> Promise</span><span style=\"color:#24292E\">.</span><span style=\"color:#6F42C1\">resolve</span><span style=\"color:#24292E\">()).</span><span style=\"color:#6F42C1\">then</span><span style=\"color:#24292E\">(() </span><span style=\"color:#D73A49\">=></span><span style=\"color:#6F42C1\"> send</span><span style=\"color:#24292E\">(slug, event, runId, body));</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">    chains.</span><span style=\"color:#6F42C1\">set</span><span style=\"color:#24292E\">(runId, next);</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    if</span><span style=\"color:#24292E\"> (event </span><span style=\"color:#D73A49\">!==</span><span style=\"color:#032F62\"> 'start'</span><span style=\"color:#24292E\">) </span><span style=\"color:#D73A49\">void</span><span style=\"color:#24292E\"> next.</span><span style=\"color:#6F42C1\">finally</span><span style=\"color:#24292E\">(() </span><span style=\"color:#D73A49\">=></span><span style=\"color:#24292E\"> { </span><span style=\"color:#D73A49\">if</span><span style=\"color:#24292E\"> (chains.</span><span style=\"color:#6F42C1\">get</span><span style=\"color:#24292E\">(runId) </span><span style=\"color:#D73A49\">===</span><span style=\"color:#24292E\"> next) chains.</span><span style=\"color:#6F42C1\">delete</span><span style=\"color:#24292E\">(runId); });</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  };</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  const</span><span style=\"color:#6F42C1\"> elapsed</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#24292E\"> (</span><span style=\"color:#E36209\">job</span><span style=\"color:#D73A49\">:</span><span style=\"color:#6F42C1\"> Job</span><span style=\"color:#24292E\">) </span><span style=\"color:#D73A49\">=></span><span style=\"color:#24292E\"> (job.processedOn </span><span style=\"color:#D73A49\">?</span><span style=\"color:#24292E\"> Date.</span><span style=\"color:#6F42C1\">now</span><span style=\"color:#24292E\">() </span><span style=\"color:#D73A49\">-</span><span style=\"color:#24292E\"> job.processedOn </span><span style=\"color:#D73A49\">:</span><span style=\"color:#005CC5\"> undefined</span><span style=\"color:#24292E\">);</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#24292E\">  worker.</span><span style=\"color:#6F42C1\">on</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">'active'</span><span style=\"color:#24292E\">, (</span><span style=\"color:#E36209\">job</span><span style=\"color:#24292E\">) </span><span style=\"color:#D73A49\">=></span><span style=\"color:#24292E\"> { names.</span><span style=\"color:#6F42C1\">set</span><span style=\"color:#24292E\">(</span><span style=\"color:#6F42C1\">String</span><span style=\"color:#24292E\">(job.id), job.name); </span><span style=\"color:#6F42C1\">ping</span><span style=\"color:#24292E\">(</span><span style=\"color:#6F42C1\">slugOf</span><span style=\"color:#24292E\">(job.name), </span><span style=\"color:#032F62\">'start'</span><span style=\"color:#24292E\">, </span><span style=\"color:#6F42C1\">String</span><span style=\"color:#24292E\">(job.id)); });</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  worker.</span><span style=\"color:#6F42C1\">on</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">'completed'</span><span style=\"color:#24292E\">, (</span><span style=\"color:#E36209\">job</span><span style=\"color:#24292E\">) </span><span style=\"color:#D73A49\">=></span><span style=\"color:#24292E\"> { names.</span><span style=\"color:#6F42C1\">delete</span><span style=\"color:#24292E\">(</span><span style=\"color:#6F42C1\">String</span><span style=\"color:#24292E\">(job.id));</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">    ping</span><span style=\"color:#24292E\">(</span><span style=\"color:#6F42C1\">slugOf</span><span style=\"color:#24292E\">(job.name), </span><span style=\"color:#032F62\">'success'</span><span style=\"color:#24292E\">, </span><span style=\"color:#6F42C1\">String</span><span style=\"color:#24292E\">(job.id), { duration_ms: </span><span style=\"color:#6F42C1\">elapsed</span><span style=\"color:#24292E\">(job), payload: { name: job.name, keys: Object.</span><span style=\"color:#6F42C1\">keys</span><span style=\"color:#24292E\">(job.data </span><span style=\"color:#D73A49\">??</span><span style=\"color:#24292E\"> {}) } }); });</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  worker.</span><span style=\"color:#6F42C1\">on</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">'failed'</span><span style=\"color:#24292E\">, (</span><span style=\"color:#E36209\">job</span><span style=\"color:#24292E\">, </span><span style=\"color:#E36209\">err</span><span style=\"color:#24292E\">) </span><span style=\"color:#D73A49\">=></span><span style=\"color:#24292E\"> { </span><span style=\"color:#D73A49\">if</span><span style=\"color:#24292E\"> (</span><span style=\"color:#D73A49\">!</span><span style=\"color:#24292E\">job) </span><span style=\"color:#D73A49\">return</span><span style=\"color:#24292E\">; names.</span><span style=\"color:#6F42C1\">delete</span><span style=\"color:#24292E\">(</span><span style=\"color:#6F42C1\">String</span><span style=\"color:#24292E\">(job.id));</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">    ping</span><span style=\"color:#24292E\">(</span><span style=\"color:#6F42C1\">slugOf</span><span style=\"color:#24292E\">(job.name), </span><span style=\"color:#032F62\">'failure'</span><span style=\"color:#24292E\">, </span><span style=\"color:#6F42C1\">String</span><span style=\"color:#24292E\">(job.id), { duration_ms: </span><span style=\"color:#6F42C1\">elapsed</span><span style=\"color:#24292E\">(job), payload: { reason: err.message, attempt: job.attemptsMade } }); });</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  worker.</span><span style=\"color:#6F42C1\">on</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">'stalled'</span><span style=\"color:#24292E\">, (</span><span style=\"color:#E36209\">jobId</span><span style=\"color:#24292E\">) </span><span style=\"color:#D73A49\">=></span><span style=\"color:#24292E\"> { </span><span style=\"color:#D73A49\">const</span><span style=\"color:#005CC5\"> name</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#24292E\"> names.</span><span style=\"color:#6F42C1\">get</span><span style=\"color:#24292E\">(jobId); </span><span style=\"color:#D73A49\">if</span><span style=\"color:#24292E\"> (</span><span style=\"color:#D73A49\">!</span><span style=\"color:#24292E\">name) </span><span style=\"color:#D73A49\">return</span><span style=\"color:#24292E\">;</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">    ping</span><span style=\"color:#24292E\">(</span><span style=\"color:#6F42C1\">slugOf</span><span style=\"color:#24292E\">(name), </span><span style=\"color:#032F62\">'log'</span><span style=\"color:#24292E\">, jobId, { payload: </span><span style=\"color:#032F62\">'stalled: lock lost, requeued by BullMQ'</span><span style=\"color:#24292E\"> }); });</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">}</span></span></code></pre></div></div>\n<p>Call <code>attachDrumbeats(worker, { projectId })</code> once per worker. The job name becomes the slug, so one listener covers every queue, and the job id becomes <code>run_id</code>. For relayed jobs that id is the outbox row id, so an incident links back to the database row and from there to the transaction. For scheduler jobs it is <code>repeat:balance-check-minutely:1792877040000</code>, which Drumbeats stores as given.</p>\n<p>Two details cost me an hour each. Drumbeats keeps <code>payload</code> only when it is a string, so the adapter stringifies the object. And a 20 ms job sends <code>completed</code> before its <code>start</code> request has left the socket; in my first version the success ping arrived 6 ms before the start ping, Drumbeats saw a start with no finish and, 120 s later, opened a failure on a job that had succeeded. The per-job promise chain fixes the order. A stall is reported as a <code>log</code> entry rather than a failure, because BullMQ is about to retry the job; if the retry also stalls, <code>failed</code> fires with &quot;job stalled more than allowable limit&quot; and the failure handler reports it.</p>\n<p>The relay is not a worker, so it gets one line in its loop: a throttled <code>GET</code> to <code>/v1/s-ping/&lt;project&gt;/outbox-relay/success</code> at most every 30 seconds. If the loop dies, the pings stop by construction.</p>\n<h2 id=\"the-drills\">The drills</h2>\n<p>Four drills, each run once, with Drumbeats&#39; own incident timestamps.</p>\n<div class=\"blog-table-wrap\"><table><thead><tr><th>Drill</th><th>Action (UTC)</th><th>Drumbeats</th><th>Recovery</th></tr></thead><tbody><tr><td>Worker stopped</td><td><code>docker compose stop worker</code> at 21:16:10, right after the 21:16:00 tick</td><td><code>balance-check</code> MISSED at 21:18:00.3</td><td>worker started 21:18:54; incident resolved 21:18:54.8</td></tr><tr><td>Redis flushed, worker running</td><td><code>FLUSHALL</code> at 21:20:11</td><td><code>balance-check</code> MISSED at 21:22:00.3; worker log empty throughout</td><td><code>api</code> restarted 21:23:15, which re-ran <code>upsertJobScheduler</code>; resolved on the next tick, 21:24:00.5</td></tr><tr><td>Relay stopped</td><td><code>docker compose stop relay</code> at 21:20:21</td><td><code>outbox-relay</code> MISSED at 21:22:00.5</td><td>relay started 21:23:15; resolved 21:23:16.6</td></tr><tr><td>SMTP down during a deposit</td><td><code>docker compose stop mailpit</code> at 21:23:52</td><td>one failure ping after 11.25 s with <code>connect ECONNREFUSED 172.21.0.4:1025</code>, attempt 1; no incident, tolerance is 3</td><td>Mailpit back at 21:24:04; attempt 2 succeeded at 21:24:06</td></tr></tbody></table></div>\n<figure><img src=\"/blog/images/2026/monitor-bullmq-workers-heartbeat/drumbeats-incidents-list.jpg\" alt=\"Drumbeats incident list for the Tulip Exchange project after the drills: three missed check-ins and three job failures, all resolved\" loading=\"lazy\" /><figcaption>Drumbeats incident list for the Tulip Exchange project after the drills: three missed check-ins and three job failures, all resolved</figcaption></figure>\n<p>After the first drill the Redis <code>completed</code> set held the 21:16 and 21:19 jobs and the 21:17 job, which ran at 21:18:54 when the worker came back. There was never a 21:18 job. That is the sentence from the docs, observed.</p>\n<p>The second drill is the one I built the exchange to show. Nothing restarted, nothing crashed, no log line was written, and Bull Board would have shown four idle queues. The first signal anywhere was the missed check-in, one minute and forty-nine seconds after the flush.</p>\n<p>One failure I did not plan. My first version of the worker had a Postgres statement with two untyped parameters, <code>amount + $1 <em> $2</code>, and every deposit and withdrawal failed five times with <code>operator is not unique: unknown </em> unknown</code>. Drumbeats opened a FAILED incident on <code>deposit-fiat-confirm</code> at 21:11:21.3, about 100 ms after the first failure ping and before I had opened a log. The payload on each ping carried the error and the attempt number.</p>\n<figure><img src=\"/blog/images/2026/monitor-bullmq-workers-heartbeat/drumbeats-balance-check-history.jpg\" alt=\"Ping history of the balance-check monitor: start and success pairs each minute with repeat:balance-check-minutely run ids and 66 to 145 ms durations\" loading=\"lazy\" /><figcaption>Ping history of the balance-check monitor: start and success pairs each minute with repeat:balance-check-minutely run ids and 66 to 145 ms durations</figcaption></figure>\n<h2 id=\"letting-drumbeats-fix-the-easy-one\">Letting Drumbeats fix the easy one</h2>\n<p>The Redis case has a one-call fix, so Drumbeats can apply it. A webhook notification channel posts the incident to the API, and the API re-upserts the scheduler:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"typescript\" data-title=\"\" data-code=\"Ly8gc3JjL2FwaS50cwphcHAucG9zdDx7IEJvZHk6IHsgZXZlbnQ6IHN0cmluZzsgaW5jaWRlbnRJZD86IHN0cmluZzsgbW9uaXRvcjogeyBzbHVnOiBzdHJpbmcgfTsgaW5jaWRlbnQ/OiB7IGV2ZW50OiBzdHJpbmcgfSB9IH0+KAogICcvaG9va3MvZHJ1bWJlYXRzJywgYXN5bmMgKHJlcSwgcmVwbHkpID0+IHsKICAgIGlmIChyZXEuaGVhZGVyc1sneC1ob29rLXNlY3JldCddICE9PSBwcm9jZXNzLmVudi5IT09LX1NFQ1JFVCkgcmV0dXJuIHJlcGx5LmNvZGUoNDAxKS5zZW5kKCk7CiAgICBjb25zdCB7IGV2ZW50LCBtb25pdG9yLCBpbmNpZGVudCB9ID0gcmVxLmJvZHk7CiAgICBpZiAoZXZlbnQgIT09ICdET1dOJykgcmV0dXJuIHsgb2s6IHRydWUsIGlnbm9yZWQ6IHRydWUgfTsKICAgIGlmIChtb25pdG9yLnNsdWcgPT09ICdiYWxhbmNlLWNoZWNrJyAmJiBpbmNpZGVudD8uZXZlbnQgPT09ICdNSVNTRUQnKSB7CiAgICAgIGF3YWl0IGVuc3VyZVNjaGVkdWxlcihiYWxhbmNlQ2hlY2tzKTsgICAgICAgICAgICAgICAgIC8vIHJlY3JlYXRlcyB0aGUgc2NoZWR1bGVyIFJlZGlzIGxvc3Q7IGEgbm8tb3Agb3RoZXJ3aXNlCiAgICAgIHJldHVybiB7IG9rOiB0cnVlLCBhY3Rpb246ICdzY2hlZHVsZXItdXBzZXJ0ZWQnIH07CiAgICB9CiAgICByZXR1cm4geyBvazogdHJ1ZSB9OwogIH0pOw==\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6A737D\">// src/api.ts</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">app.</span><span style=\"color:#6F42C1\">post</span><span style=\"color:#24292E\">&#x3C;{ </span><span style=\"color:#E36209\">Body</span><span style=\"color:#D73A49\">:</span><span style=\"color:#24292E\"> { </span><span style=\"color:#E36209\">event</span><span style=\"color:#D73A49\">:</span><span style=\"color:#005CC5\"> string</span><span style=\"color:#24292E\">; </span><span style=\"color:#E36209\">incidentId</span><span style=\"color:#D73A49\">?:</span><span style=\"color:#005CC5\"> string</span><span style=\"color:#24292E\">; </span><span style=\"color:#E36209\">monitor</span><span style=\"color:#D73A49\">:</span><span style=\"color:#24292E\"> { </span><span style=\"color:#E36209\">slug</span><span style=\"color:#D73A49\">:</span><span style=\"color:#005CC5\"> string</span><span style=\"color:#24292E\"> }; </span><span style=\"color:#E36209\">incident</span><span style=\"color:#D73A49\">?:</span><span style=\"color:#24292E\"> { </span><span style=\"color:#E36209\">event</span><span style=\"color:#D73A49\">:</span><span style=\"color:#005CC5\"> string</span><span style=\"color:#24292E\"> } } }>(</span></span>\n<span class=\"line\"><span style=\"color:#032F62\">  '/hooks/drumbeats'</span><span style=\"color:#24292E\">, </span><span style=\"color:#D73A49\">async</span><span style=\"color:#24292E\"> (</span><span style=\"color:#E36209\">req</span><span style=\"color:#24292E\">, </span><span style=\"color:#E36209\">reply</span><span style=\"color:#24292E\">) </span><span style=\"color:#D73A49\">=></span><span style=\"color:#24292E\"> {</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    if</span><span style=\"color:#24292E\"> (req.headers[</span><span style=\"color:#032F62\">'x-hook-secret'</span><span style=\"color:#24292E\">] </span><span style=\"color:#D73A49\">!==</span><span style=\"color:#24292E\"> process.env.</span><span style=\"color:#005CC5\">HOOK_SECRET</span><span style=\"color:#24292E\">) </span><span style=\"color:#D73A49\">return</span><span style=\"color:#24292E\"> reply.</span><span style=\"color:#6F42C1\">code</span><span style=\"color:#24292E\">(</span><span style=\"color:#005CC5\">401</span><span style=\"color:#24292E\">).</span><span style=\"color:#6F42C1\">send</span><span style=\"color:#24292E\">();</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    const</span><span style=\"color:#24292E\"> { </span><span style=\"color:#005CC5\">event</span><span style=\"color:#24292E\">, </span><span style=\"color:#005CC5\">monitor</span><span style=\"color:#24292E\">, </span><span style=\"color:#005CC5\">incident</span><span style=\"color:#24292E\"> } </span><span style=\"color:#D73A49\">=</span><span style=\"color:#24292E\"> req.body;</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    if</span><span style=\"color:#24292E\"> (event </span><span style=\"color:#D73A49\">!==</span><span style=\"color:#032F62\"> 'DOWN'</span><span style=\"color:#24292E\">) </span><span style=\"color:#D73A49\">return</span><span style=\"color:#24292E\"> { ok: </span><span style=\"color:#005CC5\">true</span><span style=\"color:#24292E\">, ignored: </span><span style=\"color:#005CC5\">true</span><span style=\"color:#24292E\"> };</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    if</span><span style=\"color:#24292E\"> (monitor.slug </span><span style=\"color:#D73A49\">===</span><span style=\"color:#032F62\"> 'balance-check'</span><span style=\"color:#D73A49\"> &#x26;&#x26;</span><span style=\"color:#24292E\"> incident?.event </span><span style=\"color:#D73A49\">===</span><span style=\"color:#032F62\"> 'MISSED'</span><span style=\"color:#24292E\">) {</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">      await</span><span style=\"color:#6F42C1\"> ensureScheduler</span><span style=\"color:#24292E\">(balanceChecks);                 </span><span style=\"color:#6A737D\">// recreates the scheduler Redis lost; a no-op otherwise</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">      return</span><span style=\"color:#24292E\"> { ok: </span><span style=\"color:#005CC5\">true</span><span style=\"color:#24292E\">, action: </span><span style=\"color:#032F62\">'scheduler-upserted'</span><span style=\"color:#24292E\"> };</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">    }</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    return</span><span style=\"color:#24292E\"> { ok: </span><span style=\"color:#005CC5\">true</span><span style=\"color:#24292E\"> };</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  });</span></span></code></pre></div></div>\n<p>Act once per <code>incidentId</code>, or an API that crashes on start will loop. A stopped relay or worker needs the platform to restart a container (Coolify, for example, exposes <code>POST /api/v1/applications/{uuid}/restart</code>), and that belongs in the receiver rather than in the exchange. I did not run this route from a real webhook: the demo ran on my laptop, which Drumbeats cannot reach.</p>\n<h2 id=\"what-the-pings-do-not-tell-you\">What the pings do not tell you</h2>\n<p>Queue depth and the failed set need polling. <code>queue.getJobCounts()</code> on a schedule, or an uptime check against a small <code>/queue-health</code> route that returns 503 above a threshold, covers that. The pings describe runs; they say nothing about jobs that were never enqueued because a producer has a bug, and nothing about a worker that is alive but too slow for the backlog.</p>\n<p>I did not test Redis Cluster, sandboxed processors, BullMQ Pro groups, or more than one worker replica, so the stalled path in the table above is from the docs and the source defaults, not from a drill.</p>\n<h2 id=\"where-the-code-is\">Where the code is</h2>\n<p>The exchange, the adapter and the compose file are at <code>github.com/drumbeats-io/tulip-jobs</code>, pinned to BullMQ 6.4.2, Node 22 and Postgres 16. The drill logs and the Drumbeats ping history they produced are in the repository under <code>docs/run-2026-10-24.md</code>.</p>",
      "image": "https://drumbeats.io/blog/og/monitor-bullmq-workers-heartbeat.png?v=47e2cd40",
      "date_published": "2026-11-03T09:00:00.000Z",
      "date_modified": "2026-11-03T09:00:00.000Z",
      "tags": [
        "bullmq",
        "node.js",
        "background jobs",
        "heartbeat monitoring",
        "outbox pattern"
      ]
    },
    {
      "id": "https://drumbeats.io/blog/monitor-n8n-workflows-ai-agents",
      "url": "https://drumbeats.io/blog/monitor-n8n-workflows-ai-agents",
      "title": "How to Monitor n8n Workflows and AI Agents with Drumbeats (Heartbeats, Not Just Error Triggers)",
      "summary": "n8n's Error Trigger only fires when a workflow runs and throws. The failures that cost you days, a schedule that stopped, a webhook that 404s, a crashed execution, a green run that processed nothing, an agent that answered nothing, never get that far. Four setups, tested on n8n 2.44, from one HTTP Request node to Drumbeats paging n8n back.",
      "content_html": "<blockquote><p><strong>The short answer:</strong> n8n&#39;s Error Trigger fires when a workflow runs and throws. The failures that cost you days create no execution at all: a schedule that stopped, a draft nobody published, a webhook that answers 404, an execution that crashed, a green run that processed nothing, an agent that answered with nothing. You need a watcher outside n8n that expects a signal and pages you when the signal stops.</p></blockquote>\n<p>Your lead sync runs every 15 minutes. On Tuesday at 14:02 it runs for the last time. The scheduler stalls, or someone edited the workflow and forgot to publish, or the instance restarted and the trigger did not come back. No node throws. The execution list has no new rows, and you do not look at the execution list. You find out on Friday, from the client.</p>\n<p>The second version looks healthier and costs more. The workflow keeps running, every node stays green, and zero records land. A 35-reply thread in the n8n community opened with that sentence in August 2026, and the replies describe runs that stayed green for eleven days while writing nothing.</p>\n<p>This guide builds the fix in four levels and asks one question at each: with this in place, by when would you have known about Tuesday? We built and drilled every level on a self-hosted n8n 2.44.6 instance on 23 October 2026, so the screenshots and timings below come from real runs. If you know the cron version of this problem, <a href=\"/blog/cron-job-failed-silently\">why your cron job failed silently</a> is the same story one layer down.</p>\n<h2 id=\"what-n8n-gives-you-and-where-it-goes-blind\">What n8n gives you, and where it goes blind</h2>\n<p>n8n ships real monitoring. All of it lives inside the thing you are monitoring, and the useful parts are gated by plan.</p>\n<div class=\"blog-table-wrap\"><table><thead><tr><th>Feature</th><th>Tells you</th><th>Available on</th></tr></thead><tbody><tr><td>Error Trigger / error workflow</td><td>A production execution threw, with node, message and execution URL</td><td>All plans</td></tr><tr><td>Insights</td><td>Production executions, failures, failure rate, average run time</td><td>Summary everywhere; the dashboard needs Cloud Pro or self-hosted Business</td></tr><tr><td>Log streaming</td><td><code>workflow.started</code>, <code>success</code> and <code>failed</code> events to syslog, a webhook or Sentry</td><td>Enterprise</td></tr><tr><td><code>/healthz</code></td><td>The process answers. The docs add: &quot;doesn&#39;t indicate DB status&quot;</td><td>Always on</td></tr><tr><td><code>/healthz/readiness</code></td><td>The database is connected and migrated</td><td>Always on</td></tr><tr><td><code>/metrics</code></td><td>Prometheus counters per process, none per workflow</td><td>Self-hosted, off by default</td></tr></tbody></table></div>\n<p>The scheduler got better in 2026 too. Version 2.36 added a missed-execution grace period to the Schedule Trigger, and 2.45.0 on 20 October made the durable scheduler the default. The default policy still skips missed executions, and no setting pages you when that happens.</p>\n<p>The Error Trigger docs draw its boundary in one sentence: it &quot;only runs when an automatic workflow errors&quot;. Read that against the ways a workflow goes quiet, as reported in the community forum and the GitHub tracker during 2025 and 2026:</p>\n<ol><li><strong>The Schedule Trigger stops firing.</strong> Cloud tenants and Kubernetes queue-mode setups both report it. No execution exists, so nothing throws.</li><li><strong>The workflow is unpublished.</strong> n8n 2.0 replaced the Active toggle with Publish. An unpublished draft runs on demand and never on schedule.</li><li><strong>n8n deactivated it for you.</strong> The message reads &quot;automatically deactivated due to multiple crashed executions&quot;. The error workflow did not run.</li><li><strong>The production webhook answers 404.</strong> The workflow shows as active. The caller sees the error and you do not.</li><li><strong>The execution crashed.</strong> A Redis drop or a restart leaves executions marked crashed with no error data saved.</li><li><strong>The run was green and did nothing.</strong> Zero items, an IF branch that ends in silence, a 200 response with a failure in the body.</li><li><strong>The agent swallowed a tool error.</strong> n8n treats tool errors as part of the agent&#39;s reasoning, so the run succeeds.</li></ol>\n<p>Self-hosters add an eighth. One VPS froze for eight hours and the Error Trigger froze with it. Thread numbers for all of these sit in the references at the end.</p>\n<p>On Tuesday, the Error Trigger would have told you nothing, because nothing ran.</p>\n<h2 id=\"the-n8n-dead-mans-switch-in-60-seconds\">The n8n dead man&#39;s switch in 60 seconds</h2>\n<p>Turn the direction of monitoring around. The workflow reports that it finished, and a service outside n8n alerts when that report fails to arrive on time. A missing report covers the first five failures above, because they all produce silence, and the watcher keeps working when n8n itself is down.</p>\n<p>Drumbeats offers four <a href=\"/docs/monitor-types\">monitor types</a> for this. A <strong>Cron</strong> monitor expects a ping on a cron schedule. A <strong>Heartbeat</strong> monitor expects one every interval. An <strong>Event-driven</strong> monitor has no schedule and tracks each run from start to finish. An <strong>Uptime</strong> monitor polls a URL from outside.</p>\n<figure><img src=\"/blog/images/2026/monitor-n8n-workflows-ai-agents/n8n-drumbeats-levels.svg\" alt=\"Four levels of n8n monitoring with Drumbeats: success pings, a shared error workflow, start and finish tracking, and alerts sent back into n8n\" loading=\"lazy\" /><figcaption>Four levels of n8n monitoring with Drumbeats: success pings, a shared error workflow, start and finish tracking, and alerts sent back into n8n</figcaption></figure>\n<p>Level 1 alone would have caught Tuesday.</p>\n<h2 id=\"level-1-one-node-at-the-end-of-the-workflow\">Level 1: one node at the end of the workflow</h2>\n<p>Add one HTTP Request node as the last step of the lead sync:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"plaintext\" data-title=\"\" data-code=\"TWV0aG9kOiAgIEdFVApVUkw6ICAgICAgaHR0cHM6Ly9hcGkuZHJ1bWJlYXRzLmlvL3YxL3Bpbmcve3sgJCgnRHJ1bWJlYXRzIGNvbmZpZycpLml0ZW0uanNvbi5tb25pdG9ySWQgfX0vc3VjY2VzcwpPcHRpb25zOiAgVGltZW91dCA1MDAwIG1zClNldHRpbmdzOiBSZXRyeSBPbiBGYWlsICgzIHRyaWVzKSwgT24gRXJyb3I6IENvbnRpbnVl\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span>Method:   GET</span></span>\n<span class=\"line\"><span>URL:      https://api.drumbeats.io/v1/ping/{{ $('Drumbeats config').item.json.monitorId }}/success</span></span>\n<span class=\"line\"><span>Options:  Timeout 5000 ms</span></span>\n<span class=\"line\"><span>Settings: Retry On Fail (3 tries), On Error: Continue</span></span></code></pre></div></div>\n<p>A Set node at the top of the workflow holds the monitor ID, so the URL is one expression you paste once. The ping node retries and then continues, because a monitoring hiccup must never fail the job it watches.</p>\n<figure><img src=\"/blog/images/2026/monitor-n8n-workflows-ai-agents/n8n-demo-1-heartbeat-canvas.jpg\" alt=\"Demo 1 in the n8n editor: Schedule Trigger every 15 minutes, a Set node with the monitor ID, the real work, and a final HTTP Request node pinging Drumbeats\" loading=\"lazy\" /><figcaption>Demo 1 in the n8n editor: Schedule Trigger every 15 minutes, a Set node with the monitor ID, the real work, and a final HTTP Request node pinging Drumbeats</figcaption></figure>\n<p>Now create the matching monitor in Drumbeats. Pick the type from the Schedule Trigger mode:</p>\n<div class=\"blog-table-wrap\"><table><thead><tr><th>Schedule Trigger mode</th><th>Drumbeats monitor</th><th>Schedule to enter</th></tr></thead><tbody><tr><td>Cron expression</td><td><a href=\"/cron-job-monitoring\">Cron</a></td><td>The same expression and timezone. Drop the seconds field if n8n has six.</td></tr><tr><td>Interval, &quot;every 15 minutes&quot;</td><td><a href=\"/heartbeat-monitoring\">Heartbeat</a></td><td><code>15m</code></td></tr><tr><td>Polling trigger that often finds nothing</td><td>Heartbeat on the poll cadence</td><td>Ping on every poll, even an empty one, and put the item count in the payload</td></tr></tbody></table></div>\n<p>One setting deserves thought: <code>grace_period_seconds</code>, how long Drumbeats waits past the expected time before declaring the run MISSED. Set it above your worst-case run time plus scheduler jitter. The default of 300 seconds fits cadences of 15 minutes and up. A grace period that is too short is the usual source of false alerts.</p>\n<p>Back to Tuesday. The 14:15 run does not happen. At 14:20 the grace period ends, Drumbeats opens a MISSED incident, and your phone buzzes. You lost 18 minutes instead of three days.</p>\n<p>In our drill we unpublished Demo 1 at 13:49 UTC. Its 14:00 run never happened, and at 14:05:00 Drumbeats opened the incident. We will come back to what happened five seconds later.</p>\n<p>Level 1 tells you the job went quiet. It cannot tell you why: a thrown error shows up as the same MISSED incident, after the same grace period, with no message attached. That is the job of Level 2.</p>\n<h2 id=\"level-2-one-error-workflow-for-every-workflow\">Level 2: one error workflow for every workflow</h2>\n<p>n8n lets any workflow name an error workflow in its settings, and one error workflow can serve all of them. The Error Trigger hands it this:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"json\" data-title=\"\" data-code=\"ewogICJleGVjdXRpb24iOiB7CiAgICAiaWQiOiAiMzM2NzgiLAogICAgInVybCI6ICI8bGluayB0byB0aGUgc2F2ZWQgZXhlY3V0aW9uPiIsCiAgICAibGFzdE5vZGVFeGVjdXRlZCI6ICJGYWlsIG9uIHB1cnBvc2UiLAogICAgIm1vZGUiOiAid2ViaG9vayIsCiAgICAiZXJyb3IiOiB7ICJtZXNzYWdlIjogIi4uLiIsICJzdGFjayI6ICIuLi4iIH0KICB9LAogICJ3b3JrZmxvdyI6IHsgImlkIjogIi4uLiIsICJuYW1lIjogIkRydW1iZWF0cyAtIERlbW8gMyAtIEV2ZW50LWRyaXZlbiBydW4gdHJhY2tpbmciIH0KfQ==\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#24292E\">{</span></span>\n<span class=\"line\"><span style=\"color:#005CC5\">  \"execution\"</span><span style=\"color:#24292E\">: {</span></span>\n<span class=\"line\"><span style=\"color:#005CC5\">    \"id\"</span><span style=\"color:#24292E\">: </span><span style=\"color:#032F62\">\"33678\"</span><span style=\"color:#24292E\">,</span></span>\n<span class=\"line\"><span style=\"color:#005CC5\">    \"url\"</span><span style=\"color:#24292E\">: </span><span style=\"color:#032F62\">\"&#x3C;link to the saved execution>\"</span><span style=\"color:#24292E\">,</span></span>\n<span class=\"line\"><span style=\"color:#005CC5\">    \"lastNodeExecuted\"</span><span style=\"color:#24292E\">: </span><span style=\"color:#032F62\">\"Fail on purpose\"</span><span style=\"color:#24292E\">,</span></span>\n<span class=\"line\"><span style=\"color:#005CC5\">    \"mode\"</span><span style=\"color:#24292E\">: </span><span style=\"color:#032F62\">\"webhook\"</span><span style=\"color:#24292E\">,</span></span>\n<span class=\"line\"><span style=\"color:#005CC5\">    \"error\"</span><span style=\"color:#24292E\">: { </span><span style=\"color:#005CC5\">\"message\"</span><span style=\"color:#24292E\">: </span><span style=\"color:#032F62\">\"...\"</span><span style=\"color:#24292E\">, </span><span style=\"color:#005CC5\">\"stack\"</span><span style=\"color:#24292E\">: </span><span style=\"color:#032F62\">\"...\"</span><span style=\"color:#24292E\"> }</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  },</span></span>\n<span class=\"line\"><span style=\"color:#005CC5\">  \"workflow\"</span><span style=\"color:#24292E\">: { </span><span style=\"color:#005CC5\">\"id\"</span><span style=\"color:#24292E\">: </span><span style=\"color:#032F62\">\"...\"</span><span style=\"color:#24292E\">, </span><span style=\"color:#005CC5\">\"name\"</span><span style=\"color:#24292E\">: </span><span style=\"color:#032F62\">\"Drumbeats - Demo 3 - Event-driven run tracking\"</span><span style=\"color:#24292E\"> }</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">}</span></span></code></pre></div></div>\n<p>Our shared error workflow turns that into Drumbeats pings in three nodes, without touching the workflow that failed:</p>\n<ol><li><strong>Build failure report.</strong> A Set node derives a slug from the workflow name, so <code>Drumbeats - Demo 1 - Heartbeat on success</code> becomes <code>drumbeats-demo-1-heartbeat-on-success</code>, and takes <code>execution.id</code> as the run ID.</li><li><strong>Ping monitor by slug.</strong> A <code>failure</code> ping to <code>/v1/s-ping/&lt;project-id&gt;/&lt;slug&gt;/failure</code>. The <a href=\"/docs/ping-api/status-signals\">slug endpoint</a> addresses a monitor by project and slug, so you never copy a UUID into a workflow. This monitor is the one that pages people.</li><li><strong>Ping the catch-all monitor.</strong> The full report, with workflow, failed node, error message, execution URL and mode, goes to one Event-driven monitor called &quot;n8n failures&quot;. If Drumbeats answered the slug ping with 404, no monitor exists for that workflow, and this ping is a <code>failure</code> so someone still gets paged. Otherwise it is a <code>log</code> ping, which changes no status and leaves one searchable timeline of every failure on the instance.</li></ol>\n<figure><img src=\"/blog/images/2026/monitor-n8n-workflows-ai-agents/n8n-error-workflow-canvas.jpg\" alt=\"The shared error workflow: Error Trigger, a Set node that builds the failure report, a slug-addressed failure ping and a catch-all ping\" loading=\"lazy\" /><figcaption>The shared error workflow: Error Trigger, a Set node that builds the failure report, a slug-addressed failure ping and a catch-all ping</figcaption></figure>\n<p>Three caveats come straight from the n8n docs. The error workflow fires for production runs, so the editor&#39;s run button cannot test it. <code>execution.url</code> stays empty when &quot;Save failed production executions&quot; is off. Errors thrown by the trigger node itself arrive in a different shape, with a <code>trigger</code> object instead of a full <code>execution</code>, so give those a fallback run ID.</p>\n<p>One more, from our own drill. On 23 October the slug endpoint recorded the failure and closed the right run but stored no POST body, while the identical request to the ID endpoint kept its payload. We fixed that in Drumbeats on 24 October and it ships with the next release. The catch-all ping by ID stays in the design on purpose, because it is the audit log and the fallback pager.</p>\n<figure><img src=\"/blog/images/2026/monitor-n8n-workflows-ai-agents/drumbeats-demo-3-incidents.jpg\" alt=\"Drumbeats incidents tab for the Demo 3 monitor: two drill failures, each opened on the first failure ping and resolved by the next success ping, with their durations\" loading=\"lazy\" /><figcaption>Drumbeats incidents tab for the Demo 3 monitor: two drill failures, each opened on the first failure ping and resolved by the next success ping, with their durations</figcaption></figure>\n<p>Tuesday with Levels 1 and 2: if the sync had thrown instead of going quiet, the page would have arrived within seconds and named the node and the error. Most teams can stop here. One node per workflow, one setting per workflow, one shared error workflow.</p>\n<h2 id=\"level-3-start-success-and-failure-with-a-run-id\">Level 3: start, success and failure with a run ID</h2>\n<p>Webhook, form, chat and queue-triggered workflows have no schedule. Silence is normal for them, and a heartbeat would page you on every quiet night. Give these an <a href=\"/docs/ping-api/event-driven-pings\">Event-driven monitor</a> and report each run from both ends, keyed by n8n&#39;s own execution ID:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"plaintext\" data-title=\"\" data-code=\"QWZ0ZXIgdGhlIHRyaWdnZXI6ICAgR0VUICAvdjEvcGluZy88bW9uaXRvci1pZD4vc3RhcnQ/cnVuX2lkPXt7ICRleGVjdXRpb24uaWQgfX0KRXZlcnkgc3VjY2VzcyBwYXRoOiAgUE9TVCAvdjEvcGluZy88bW9uaXRvci1pZD4vc3VjY2VzcyAgeyJydW5faWQiOiAiLi4uIiwgInBheWxvYWQiOiB7Iml0ZW1zX3Byb2Nlc3NlZCI6IDEyfX0KRXZlcnkgZmFpbHVyZSBwYXRoOiAgUE9TVCAvdjEvcGluZy88bW9uaXRvci1pZD4vZmFpbHVyZSAgeyJydW5faWQiOiAiLi4uIiwgInBheWxvYWQiOiB7InJlYXNvbiI6ICIuLi4ifX0=\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span>After the trigger:   GET  /v1/ping/&#x3C;monitor-id>/start?run_id={{ $execution.id }}</span></span>\n<span class=\"line\"><span>Every success path:  POST /v1/ping/&#x3C;monitor-id>/success  {\"run_id\": \"...\", \"payload\": {\"items_processed\": 12}}</span></span>\n<span class=\"line\"><span>Every failure path:  POST /v1/ping/&#x3C;monitor-id>/failure  {\"run_id\": \"...\", \"payload\": {\"reason\": \"...\"}}</span></span></code></pre></div></div>\n<p>The Error Trigger payload carries the same execution ID, so a failure reported by the Level 2 workflow lands on the run that this <code>start</code> opened.</p>\n<figure><img src=\"/blog/images/2026/monitor-n8n-workflows-ai-agents/n8n-demo-3-event-driven-canvas.jpg\" alt=\"Demo 3: a webhook trigger, a start ping, simulated work, an IF node for forced failures, and an IF node that sends success or a zero-output failure\" loading=\"lazy\" /><figcaption>Demo 3: a webhook trigger, a start ping, simulated work, an IF node for forced failures, and an IF node that sends success or a zero-output failure</figcaption></figure>\n<p>Two monitor settings do the work from here. <code>max_duration_seconds</code>, 120 in the demo, turns a run that started and never finished into a hung run, and a hung run counts as a failure. That is the crashed, killed or Redis-dropped execution n8n never reports. <code>min_duration_seconds</code> flags runs that finish too fast to have done the work.</p>\n<p>The green-but-empty run needs one IF node, &quot;Produced any items?&quot;, on the success path. If the count is zero, send <code>failure</code> with the count in the payload instead of <code>success</code>. Drumbeats has no expected-item-count rule on the monitor, so this check belongs in the workflow.</p>\n<figure><img src=\"/blog/images/2026/monitor-n8n-workflows-ai-agents/run-lifecycle.svg\" alt=\"The run lifecycle: start opens a run, success or failure closes it, no finish within the maximum duration marks it hung\" loading=\"lazy\" /><figcaption>The run lifecycle: start opens a run, success or failure closes it, no finish within the maximum duration marks it hung</figcaption></figure>\n<p>We sent three requests to the published demo and watched both sides:</p>\n<div class=\"blog-table-wrap\"><table><thead><tr><th>Request body</th><th>n8n says</th><th>Drumbeats recorded</th></tr></thead><tbody><tr><td><code>{&quot;items&quot;: 5}</code></td><td>Success</td><td>Start, then success after 2,147 ms, payload kept</td></tr><tr><td><code>{&quot;items&quot;: 0}</code></td><td>Success, all nodes green</td><td>Start, then <strong>failure</strong>: zero output, FAILED incident opened</td></tr><tr><td><code>{&quot;fail&quot;: true}</code></td><td>Error, error workflow fired</td><td>Start, then <strong>failure</strong> through the slug ping, full error on the catch-all monitor</td></tr></tbody></table></div>\n<p>The middle row is the whole reason for Level 3. The same run reads as success in n8n and as an incident in Drumbeats. The next successful request resolved that incident on its own, four minutes later.</p>\n<figure><img src=\"/blog/images/2026/monitor-n8n-workflows-ai-agents/drumbeats-demo-3-ping-history.jpg\" alt=\"Drumbeats ping history for the Demo 3 monitor: START and SUCCESS rows share a run ID, the zero-output and forced-failure runs end in FAILURE rows, and the successful runs carry their payload\" loading=\"lazy\" /><figcaption>Drumbeats ping history for the Demo 3 monitor: START and SUCCESS rows share a run ID, the zero-output and forced-failure runs end in FAILURE rows, and the successful runs carry their payload</figcaption></figure>\n<p>Queue consumers follow the same pattern; see <a href=\"/background-job-monitoring\">background job monitoring</a> and <a href=\"/queue-worker-monitoring\">queue worker monitoring</a> for those.</p>\n<h2 id=\"ai-agents-are-still-jobs\">AI agents are still jobs</h2>\n<p>An AI Agent node calls a model, maybe calls tools, and returns text. Wrap it like any other job: <code>start</code> before the model runs, <code>success</code> or <code>failure</code> after.</p>\n<figure><img src=\"/blog/images/2026/monitor-n8n-workflows-ai-agents/n8n-demo-4-ai-agent-canvas.jpg\" alt=\"Demo 4: a 6-hourly schedule, a start ping, an AI Agent node summarising n8n release notes, and an IF node that checks for a real answer before pinging success or failure\" loading=\"lazy\" /><figcaption>Demo 4: a 6-hourly schedule, a start ping, an AI Agent node summarising n8n release notes, and an IF node that checks for a real answer before pinging success or failure</figcaption></figure>\n<p>Agents fail in their own way. n8n folds tool errors into the agent&#39;s reasoning, so the run stays green. An open issue describes tool observations that come back empty and an agent that &quot;invents plausible values&quot;. A loop shows up as nothing but time and token spend.</p>\n<p>We watched the inventing happen. In Level 4 below, a triage agent runs with Drumbeats tools attached. During one drill the tool was disabled, and the agent wrote &quot;Fetching recent history and failure payload... Acknowledging incident...&quot; and then blamed &quot;a timeout error connecting to the event source&quot;. It fetched nothing, acknowledged nothing, and the real cause was a Stop and Error node we had placed on purpose. Nothing in n8n flagged the run.</p>\n<p>So the checks for an agent sit on the output and on the clock:</p>\n<div class=\"blog-table-wrap\"><table><thead><tr><th>Check</th><th>Where</th><th>Catches</th></tr></thead><tbody><tr><td>Answer of at least 40 characters, or structured output that parses</td><td>IF node after the agent, <code>failure</code> ping with the output</td><td>Empty, refused or truncated answers that n8n marks green</td></tr><tr><td><code>min_duration_seconds: 2</code></td><td>Monitor</td><td>The model was skipped, or a disabled node passed its input through</td></tr><tr><td><code>max_duration_seconds: 300</code></td><td>Monitor</td><td>Loops, max-iteration stalls, a provider that hangs</td></tr><tr><td>Release, summary and model name in the <code>success</code> payload</td><td>Success ping</td><td>A per-run record of what the agent said</td></tr><tr><td><code>maxIterations: 5</code>, model timeout 60 s, 1 retry</td><td>Agent and model options</td><td>Bounds the cost; hard failures reach the Level 2 error workflow</td></tr></tbody></table></div>\n<p>The demo agent&#39;s run took 2,093 ms and the success ping stored the release tag, the two-sentence summary and the model name.</p>\n<figure><img src=\"/blog/images/2026/monitor-n8n-workflows-ai-agents/drumbeats-demo-4-agent-ping-history.jpg\" alt=\"Drumbeats ping history for the agent monitor: one run, START then SUCCESS two seconds later, exit code 0, the summary stored as the payload\" loading=\"lazy\" /><figcaption>Drumbeats ping history for the agent monitor: one run, START then SUCCESS two seconds later, exit code 0, the summary stored as the payload</figcaption></figure>\n<p>Token spend stays out of scope here; a tracing tool such as Langfuse does that job. You can create these monitors by conversation from Claude or Cursor through the <a href=\"/mcp\">Drumbeats MCP server</a>; the <a href=\"/docs/integrations/ai-agent\">AI agent integration guide</a> shows the setup.</p>\n<h2 id=\"level-4-let-drumbeats-page-n8n-back\">Level 4: let Drumbeats page n8n back</h2>\n<p>Most alerts end with a person doing the same thing: open n8n, find the workflow, publish it again. Drumbeats can send every alert to a <a href=\"/docs/notifications/webhooks\">webhook channel</a>, and that webhook can be an n8n workflow that does the publishing.</p>\n<figure><img src=\"/blog/images/2026/monitor-n8n-workflows-ai-agents/n8n-demo-5-alert-remediation-canvas.jpg\" alt=\"Demo 5: a webhook receives Drumbeats alerts, routes by event, re-publishes an unpublished workflow on a missed run, and asks an AI agent with Drumbeats MCP tools to triage other failures\" loading=\"lazy\" /><figcaption>Demo 5: a webhook receives Drumbeats alerts, routes by event, re-publishes an unpublished workflow on a missed run, and asks an AI agent with Drumbeats MCP tools to triage other failures</figcaption></figure>\n<p>The alert body carries <code>event</code> (<code>DOWN</code> or <code>RECOVERY</code>), <code>incident.event</code> (<code>MISSED</code>, <code>FAILED</code>, <code>DURATION_HIGH</code> or <code>DURATION_LOW</code>), <code>incidentId</code> and <code>monitor.slug</code>. Demo 5 routes on those:</p>\n<ul><li><strong>MISSED.</strong> List workflows through the n8n API, match the monitor slug to a workflow name, and if that workflow is unpublished, publish it. If it is already published, send a message with the likely causes instead.</li><li><strong>Any other DOWN.</strong> An AI agent with the Drumbeats MCP tools reads the monitor&#39;s history and the failure payload, acknowledges the incident and posts a three-line triage note.</li><li><strong>RECOVERY.</strong> Confirm in the team chat.</li></ul>\n<p>Now finish the drill from Level 1. Drumbeats opened the MISSED incident on Demo 1 at 14:05:00. The webhook reached n8n at 14:05:05. Demo 5 listed the workflows, found Demo 1 unpublished, published it through the n8n API and posted &quot;Auto-remediation&quot; to Telegram, all before 14:05:06. Demo 1&#39;s next run at 14:15 sent its success ping and resolved the incident. Nobody opened n8n.</p>\n<p>Two guards. Drumbeats does not sign webhook payloads, so put header auth on the n8n Webhook trigger and set the same header on the Drumbeats channel. And publish at most once per <code>incidentId</code>, or a workflow that crashes on start will loop.</p>\n<h2 id=\"self-hosted-extras-watch-the-instance-and-the-webhook-url\">Self-hosted extras: watch the instance and the webhook URL</h2>\n<p>Two <a href=\"/uptime-monitoring\">Uptime monitors</a> cover the cases no workflow can report:</p>\n<ul><li><strong>The instance.</strong> Poll <code>/healthz/readiness</code> every 60 seconds and expect <code>ok</code>. Plain <code>/healthz</code> says the process answers; readiness says the database is connected. A Kubernetes operator noted in the forum that a liveness probe cannot see a wedged scheduler either, so this monitor sits beside Level 1 rather than replacing it.</li><li><strong>A production webhook.</strong> Poll its URL with GET. On n8n 2.44.6 a published POST-only webhook answers 404 with &quot;This webhook is not registered for GET requests. Did you mean to make a POST request?&quot;, and an unregistered one answers 404 with &quot;The requested webhook ... is not registered.&quot; Expect 404 and require the &quot;Did you mean to make a POST request&quot; text. The check fails the moment the webhook drops off.</li></ul>\n<p>Confirm those response texts on your own n8n version before you rely on them.</p>\n<h2 id=\"alert-routing-without-3-am-noise\">Alert routing without 3 a.m. noise</h2>\n<p>Four <a href=\"/docs/notifications/alert-logic\">alert logic</a> settings keep this useful instead of loud.</p>\n<p><strong>Tolerances.</strong> <code>schedule_tolerance</code> and <code>failure_tolerance</code> set how many consecutive misses or failures it takes to go DOWN. One suits most jobs. Two or three suit a flaky upstream API.</p>\n<p><strong>Surge protection.</strong> After 10 consecutive alerts, Drumbeats pauses paging for an hour while incidents keep updating, so the catch-all monitor cannot flood a channel during an outage.</p>\n<p><strong>Groups per client.</strong> Route each client&#39;s monitors to their own Slack channel, Teams, Telegram, email or PagerDuty, and give each client a status page if you run an agency.</p>\n<p><strong>Automatic recovery.</strong> The next success resolves the incident and reports the outage duration, so nobody closes tickets by hand.</p>\n<h2 id=\"cloud-vs-self-hosted-and-vs-healthchecksio-or-cronitor\">Cloud vs self-hosted, and vs Healthchecks.io or Cronitor</h2>\n<div class=\"blog-table-wrap\"><table><thead><tr><th></th><th>n8n Cloud</th><th>Self-hosted n8n</th></tr></thead><tbody><tr><td>Levels 1 to 3</td><td>Yes, with the HTTP Request node</td><td>Yes</td></tr><tr><td>Level 4 auto-remediation</td><td>Yes, with an n8n API key</td><td>Yes</td></tr><tr><td>Instance and webhook uptime</td><td>Webhook URL only, n8n runs the instance</td><td>Both</td></tr><tr><td>Native alternatives</td><td>Insights dashboard on Pro and above</td><td><code>/metrics</code>, log streaming on Enterprise</td></tr></tbody></table></div>\n<p>Healthchecks.io is the tool the 2026 forum threads recommend most. Its free tier covers 20 checks and its Business plan costs $20 for 100; community n8n nodes exist and it supports start and fail pings. Cronitor&#39;s free tier covers 5 monitors, and paid monitors cost $2 each plus $5 per user. Either one handles Level 1. Drumbeats adds run correlation by run ID, duration assertions, the payload in the alert and the webhook back into n8n. <a href=\"/blog/best-cron-job-monitoring-tools-2026\">The best cron job monitoring tools in 2026</a> compares the wider field.</p>\n<h2 id=\"test-the-pager\">Test the pager</h2>\n<p>Run three drills after setup, and read both sides each time:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"bash\" data-title=\"\" data-code=\"IyBTdWNjZXNzOiBleHBlY3QgYSBjbG9zZWQgcnVuIHdpdGggYSBwYXlsb2FkCmN1cmwgLVggUE9TVCBodHRwczovLzx5b3VyLW44bj4vd2ViaG9vay9kcnVtYmVhdHMvZGVtby1vcmRlciAtSCAiQ29udGVudC1UeXBlOiBhcHBsaWNhdGlvbi9qc29uIiAtZCAneyJpdGVtcyI6IDV9JwojIEdyZWVuIGJ1dCBlbXB0eTogZXhwZWN0IGEgRkFJTEVEIGluY2lkZW50IGFsdGhvdWdoIG44biBzYXlzIHN1Y2Nlc3MKY3VybCAtWCBQT1NUIGh0dHBzOi8vPHlvdXItbjhuPi93ZWJob29rL2RydW1iZWF0cy9kZW1vLW9yZGVyIC1IICJDb250ZW50LVR5cGU6IGFwcGxpY2F0aW9uL2pzb24iIC1kICd7Iml0ZW1zIjogMH0nCiMgVGhyb3duIGVycm9yOiBleHBlY3QgdGhlIGVycm9yIHdvcmtmbG93IHRvIHJlcG9ydCB0aGUgZmFpbGVkIG5vZGUgYW5kIG1lc3NhZ2UKY3VybCAtWCBQT1NUIGh0dHBzOi8vPHlvdXItbjhuPi93ZWJob29rL2RydW1iZWF0cy9kZW1vLW9yZGVyIC1IICJDb250ZW50LVR5cGU6IGFwcGxpY2F0aW9uL2pzb24iIC1kICd7ImZhaWwiOiB0cnVlfSc=\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6A737D\"># Success: expect a closed run with a payload</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">curl</span><span style=\"color:#005CC5\"> -X</span><span style=\"color:#032F62\"> POST</span><span style=\"color:#032F62\"> https://</span><span style=\"color:#D73A49\">&#x3C;</span><span style=\"color:#032F62\">your-n8</span><span style=\"color:#24292E\">n</span><span style=\"color:#D73A49\">></span><span style=\"color:#032F62\">/webhook/drumbeats/demo-order</span><span style=\"color:#005CC5\"> -H</span><span style=\"color:#032F62\"> \"Content-Type: application/json\"</span><span style=\"color:#005CC5\"> -d</span><span style=\"color:#032F62\"> '{\"items\": 5}'</span></span>\n<span class=\"line\"><span style=\"color:#6A737D\"># Green but empty: expect a FAILED incident although n8n says success</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">curl</span><span style=\"color:#005CC5\"> -X</span><span style=\"color:#032F62\"> POST</span><span style=\"color:#032F62\"> https://</span><span style=\"color:#D73A49\">&#x3C;</span><span style=\"color:#032F62\">your-n8</span><span style=\"color:#24292E\">n</span><span style=\"color:#D73A49\">></span><span style=\"color:#032F62\">/webhook/drumbeats/demo-order</span><span style=\"color:#005CC5\"> -H</span><span style=\"color:#032F62\"> \"Content-Type: application/json\"</span><span style=\"color:#005CC5\"> -d</span><span style=\"color:#032F62\"> '{\"items\": 0}'</span></span>\n<span class=\"line\"><span style=\"color:#6A737D\"># Thrown error: expect the error workflow to report the failed node and message</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">curl</span><span style=\"color:#005CC5\"> -X</span><span style=\"color:#032F62\"> POST</span><span style=\"color:#032F62\"> https://</span><span style=\"color:#D73A49\">&#x3C;</span><span style=\"color:#032F62\">your-n8</span><span style=\"color:#24292E\">n</span><span style=\"color:#D73A49\">></span><span style=\"color:#032F62\">/webhook/drumbeats/demo-order</span><span style=\"color:#005CC5\"> -H</span><span style=\"color:#032F62\"> \"Content-Type: application/json\"</span><span style=\"color:#005CC5\"> -d</span><span style=\"color:#032F62\"> '{\"fail\": true}'</span></span></code></pre></div></div>\n<p>Once a month, unpublish one scheduled workflow on purpose and wait for the MISSED alert. If Level 4 is in place, watch it publish the workflow back.</p>\n<h2 id=\"get-started\">Get started</h2>\n<p>You need a Drumbeats project, one monitor per workflow you care about, and the nodes above. The free plan includes 200,000 beats a month and each ping costs one beat; Pro raises the payload limit for larger agent outputs. Start with Level 1 on the scheduled workflow you would miss first, then add the shared error workflow. Prefer to create the monitors by conversation? <a href=\"/connect\">Connect Drumbeats to your AI assistant</a>.</p>\n<h2 id=\"frequently-asked-questions\">Frequently asked questions</h2>\n<p><strong>How is this different from n8n&#39;s Error Trigger?</strong> The Error Trigger reacts to an execution that threw. A heartbeat reacts to a signal that did not arrive, which covers runs that never started or never finished.</p>\n<p><strong>Why doesn&#39;t my Error Trigger fire?</strong> Manual runs do not trigger it, a failure before an execution exists cannot reach it, and crashed executions save no error data.</p>\n<p><strong>Why does my Schedule Trigger stop firing?</strong> The reported causes are scheduler stalls, drafts left unpublished after the 2.0 Publish change, auto-deactivation after crashes, and imported triggers with missing fields.</p>\n<p><strong>Does this work on n8n Cloud?</strong> Yes. It needs the HTTP Request node and the Error Trigger, both available on Cloud.</p>\n<p><strong>Do I need an SDK or a custom node?</strong> No. Each ping is one HTTP request.</p>\n<p><strong>Can Drumbeats detect a workflow that ran but did nothing?</strong> Yes, with one IF node that sends a failure ping when the item count is zero.</p>\n<p><strong>How do I monitor an n8n AI agent?</strong> Start and finish pings around the agent, an output check, and minimum and maximum durations on the monitor.</p>\n<h2 id=\"references\">References</h2>\n<ol><li>n8n docs. <a href=\"https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.errortrigger/\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>Error Trigger node</em></a> and <a href=\"https://docs.n8n.io/flow-logic/error-handling/\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>Error handling</em></a></li><li>n8n docs. <a href=\"https://docs.n8n.io/insights/\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>Insights</em></a>, <a href=\"https://docs.n8n.io/log-streaming/\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>Log streaming</em></a>, <a href=\"https://docs.n8n.io/deploy/host-n8n/keep-n8n-running/monitor-n8n/\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>Monitor n8n</em></a></li><li>n8n docs. <a href=\"https://docs.n8n.io/deploy/host-n8n/configure-n8n/durable-scheduler\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>Durable scheduler</em></a> and <a href=\"https://docs.n8n.io/release-notes/\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>release notes</em></a> (2.36, 2.45)</li><li>n8n community. <a href=\"https://community.n8n.io/t/how-do-you-catch-workflows-that-run-fine-but-do-nothing/308708\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>How do you catch workflows that run fine but do nothing?</em></a> (308708), <a href=\"https://community.n8n.io/t/the-silent-failure-when-your-n8n-workflow-succeeds-but-does-nothing/307116\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>The silent failure: when your workflow succeeds but does nothing</em></a> (307116), <a href=\"https://community.n8n.io/t/schedule-trigger-silently-stops-firing-after-several-days-kubernetes-queue-mode/303072\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>Schedule Trigger silently stops firing</em></a> (303072), <a href=\"https://community.n8n.io/t/setting-up-error-workflow-upon-ai-agent-tool-failure/252743\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>Error workflow upon AI agent tool failure</em></a> (252743)</li><li>n8n community. <a href=\"https://community.n8n.io/t/production-webhooks-404-not-registered-despite-active-workflows/306925\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>Production webhooks 404 not registered</em></a> (306925), <a href=\"https://community.n8n.io/t/workflow-executions-marked-as-crashed-no-error-data-saved-error-workflow-not-triggered-auto-deactivated-after-upgrade-to-v2-1-4/241318\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>Auto-deactivated after crashed executions</em></a> (241318), <a href=\"https://community.n8n.io/t/n8n-queue-mode-how-to-determine-the-last-successfully-executed-node-when-redis-disconnects/298882\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>Redis disconnect leaves executions running</em></a> (298882), <a href=\"https://community.n8n.io/t/n8n-crashed-silently-last-night-lost-data-need-advice-on-monitoring/264666\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>n8n crashed silently</em></a> (264666)</li><li>n8n on GitHub. <a href=\"https://github.com/n8n-io/n8n/issues/31326\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>Issue #31326</em></a> (schedule stopped on Cloud), <a href=\"https://github.com/n8n-io/n8n/issues/38870\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>Issue #38870</em></a> (empty tool observations)</li><li>Drumbeats docs. <a href=\"/docs/monitor-types\"><em>Monitor types</em></a>, <a href=\"/docs/ping-api/event-driven-pings\"><em>Event-driven pings</em></a>, <a href=\"/docs/ping-api/payloads\"><em>Payloads</em></a>, <a href=\"/docs/notifications/webhooks\"><em>Webhooks</em></a></li><li>Pricing pages. <a href=\"https://healthchecks.io/pricing/\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">Healthchecks.io</a>, <a href=\"https://cronitor.io/pricing\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">Cronitor</a></li></ol>",
      "image": "https://drumbeats.io/blog/og/monitor-n8n-workflows-ai-agents.png?v=cbe747da",
      "date_published": "2026-10-29T09:00:00.000Z",
      "date_modified": "2026-10-29T09:00:00.000Z",
      "tags": [
        "n8n",
        "ai agents",
        "heartbeat monitoring",
        "silent failure",
        "dead man's switch"
      ]
    },
    {
      "id": "https://drumbeats.io/blog/cron-job-failed-silently",
      "url": "https://drumbeats.io/blog/cron-job-failed-silently",
      "title": "Why Your Cron Job Failed Silently (and How to Actually Catch It)",
      "summary": "Cron does not read your exit code, does not retry, and does not warn you when it does not run. It mails output only if a mail transfer agent happens to exist on the host. This is a sourced walkthrough of the ten ways a cron job fails without a trace, why Kubernetes CronJobs fixed the scheduling problems but not the reporting one, and the one mechanism that answers whether it succeeded.",
      "content_html": "<blockquote><p><strong>The short answer:</strong> a cron job fails silently when it never runs, exits before finishing, or errors without anyone seeing the output. Cron only emails output if a mail transfer agent is configured and <code>MAILTO</code> is set. Otherwise, errors vanish. The only reliable fix is push-based monitoring: the job pings an external service on success, and you are alerted when the ping does not arrive.</p></blockquote>\n<p>There is a kind of outage with no alert attached to it. The dashboard is green, the host is up, nothing paged anyone, and the nightly export has not produced a file in eleven days. Nobody broke anything. Cron did exactly what it was designed to do, which is considerably less than most people assume.</p>\n<p>Here is the full chain, traced to the cron source tree rather than folklore.</p>\n<h2 id=\"the-quick-checklist\">The quick checklist</h2>\n<p>Most silent failures are one of these:</p>\n<ol><li><strong>Cron never reads your exit code.</strong> It runs the command and discards the status.</li><li><strong>No mail server is installed.</strong> Cron hands output to a mailer that is not there.</li><li><strong><code>MAILTO</code> is unset or empty.</strong> Even with a mail server, mail lands in a mailbox nobody reads.</li><li><strong>Cron searches different folders than you do.</strong> A command that works in your terminal is not found.</li><li><strong>Output goes to <code>/dev/null</code>.</strong> <code>&gt;/dev/null 2&gt;&amp;1</code> silences errors along with everything else.</li><li><strong>The machine was off.</strong> Cron does not run missed jobs. It skips them permanently.</li><li><strong>The cron service was not running.</strong> A stopped daemon produces no errors at all.</li><li><strong>The script exited <code>0</code> despite a real failure.</strong> An early command failed and it carried on.</li><li><strong>The job hung and never finished.</strong> Cron has no built-in timeout.</li><li><strong>Two runs overlapped.</strong> A slow job on a tight schedule stacks on top of itself.</li></ol>\n<p>The first three turn a <em>failure</em> into a <em>silent</em> failure. The rest are ordinary bugs with no reporting channel attached.</p>\n<h2 id=\"cron-does-not-read-your-exit-code\">Cron does not read your exit code</h2>\n<p>Standard cron does not act on a non-zero exit status. It does not log a failure, does not retry, and has no concept of a bad run. It mails whatever the command wrote to stdout and stderr: output, not status.</p>\n<p>Thus, your job&#39;s exit code is read, printed in a debug trace, and then discarded (in <a href=\"https://github.com/vixie/cron/blob/master/do_command.c\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><code>do_command.c</code></a> it is used in exactly one place, inside a <code>Debug()</code> macro). That is not an oversight, it is the contract. The Symfony team&#39;s <code>croncape</code> wrapper puts it this way:</p>\n<blockquote><p>Checking the exit code would be better, but that&#39;s not how crontab was standardized.</p></blockquote>\n<p><em><a href=\"https://github.com/symfonycorp/croncape\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">croncape</a>, SymfonyCorp</em></p>\n<p>So cron&#39;s failure signal is <em>chattiness</em>, not <em>status</em>. A job that fails loudly gets mailed. One that fails quietly produces nothing. This means that you cannot catch the cases when system was down due to an OOM issue or the job had not produced a loud error.</p>\n<p>The best you can do at this layer is set the environment explicitly and use absolute paths:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"plaintext\" data-title=\"\" data-code=\"TUFJTFRPPW9wc0BleGFtcGxlLmNvbQpQQVRIPS91c3IvbG9jYWwvYmluOi91c3IvYmluOi9iaW4KCjAgMyAqICogKiAvdXNyL2Jpbi9weXRob24zIC9zcnYvYXBwL25pZ2h0bHkucHk=\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span>MAILTO=ops@example.com</span></span>\n<span class=\"line\"><span>PATH=/usr/local/bin:/usr/bin:/bin</span></span>\n<span class=\"line\"><span></span></span>\n<span class=\"line\"><span>0 3 * * * /usr/bin/python3 /srv/app/nightly.py</span></span></code></pre></div></div>\n<p>Better than nothing, but not detection.</p>\n<h2 id=\"mailto-only-works-if-you-have-a-mail-server\"><code>MAILTO</code> only works if you have a mail server</h2>\n<p><code>crontab(5)</code> is precise about the mail rules:</p>\n<blockquote><p>If <code>MAILTO</code> is defined (and non-empty), mail is sent to the user so named. If <code>MAILTO</code> is defined but empty (<code>MAILTO=&quot;&quot;</code>), no mail will be sent. Otherwise mail is sent to the owner of the crontab.</p></blockquote>\n<p><em><a href=\"https://man7.org/linux/man-pages/man5/crontab.5.html\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">crontab(5)</a>, Vixie cron</em></p>\n<p>Note what it does not say. Cron will <em>look at</em> <code>MAILTO</code>; nothing promises delivery. That is somebody else&#39;s job, <code>cron(8)</code>: &quot;The default mailer command is <code>/usr/sbin/sendmail</code>.&quot;</p>\n<p>On a stock Ubuntu, Debian, or Amazon Linux cloud image, <code>/usr/sbin/sendmail</code> is not there. Minimal images have shipped without a mail transfer agent (MTA) for years. Thus, the message is composed and dropped.</p>\n<p>Where an MTA <em>does</em> exist, the outcome is slightly better: mail goes to <code>/var/mail/$USER</code>, an mbox nobody has opened in years. If you have ever inherited a server, you may know how it feels to open that file and see years of cron output no one has read.</p>\n<p>Even if you have an MTA on your server and everything is configured perfectly, there is still a major gap. Mail only arrives when the job <em>produced output</em>. A job that never ran produces none, so it generates no mail. You cannot tell &quot;ran fine&quot; from &quot;never ran&quot; by looking at an empty inbox.</p>\n<h2 id=\"it-works-when-you-run-it-but-not-from-cron\">It works when you run it, but not from cron</h2>\n<p>You log in, run the command by hand, it works. Cron runs the same line at 3am and nothing happens.</p>\n<p>Cron gives your job a far emptier environment than you get when you log in. Opening a terminal loads your setup files (<code>.bashrc</code>, <code>.profile</code>) and those are what put tools like <code>nvm</code>, <code>pyenv</code>, or an activated virtualenv within reach. Cron reads none of them.</p>\n<p>The biggest troublemaker is <code>PATH</code>: the list of folders searched when you type a command name. Cron does set it, just not to yours. In the cron source it is fixed at <a href=\"https://github.com/vixie/cron/blob/master/pathnames.h\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><code>/usr/bin:/bin</code></a>.</p>\n<p>Two folders. Not <code>/usr/local/bin</code>, where Homebrew and most hand-installed tools live, and not the folders <code>nvm</code> or <code>pyenv</code> add. So <code>node</code>, <code>python3</code>, or <code>psql</code> can work when you type it and fail under cron with <code>command not found</code>.</p>\n<p>Then it compounds. That error goes to stderr, cron tries to mail it, there is no mail server, the message is dropped. The job &quot;ran&quot; nightly for a month and did nothing.</p>\n<p>So do not rely on the environment: give every program its full path (<code>/usr/bin/python3</code>, not <code>python3</code>), set <code>PATH=</code> at the top of the crontab, and <code>cd</code> into the directory your script expects.</p>\n<h2 id=\"you-redirected-your-own-errors-away\">You redirected your own errors away</h2>\n<p>The most-copied line in cron tutorials guarantees silence:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"plaintext\" data-title=\"\" data-code=\"MCAzICogKiAqIC9zcnYvYXBwL25pZ2h0bHkuc2ggPi9kZXYvbnVsbCAyPiYx\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span>0 3 * * * /srv/app/nightly.sh >/dev/null 2>&#x26;1</span></span></code></pre></div></div>\n<p><code>&gt;/dev/null</code> discards stdout; <code>2&gt;&amp;1</code> then sends stderr to the same place. Every stack trace and disk-full error is deleted before anything can act on it.</p>\n<p>People write it for a reason that is not stupid: a chatty job otherwise mails you on every successful run, and a mailbox that alerts you 365 times a year is one you filter away. It trades a useless signal for none.</p>\n<p>The narrower fix is <code>&gt;/dev/null</code> alone, letting stderr through. Wrappers like croncape and <a href=\"https://habilis.net/cronic/\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">cronic</a> emit output only on a non-zero exit. Both still route into a mail system that may not exist, and neither helps when the job never ran.</p>\n<h2 id=\"the-machine-was-off-or-the-daemon-was-not-running\">The machine was off, or the daemon was not running</h2>\n<p>Cron assumes the machine is always on. If the host was down at 03:00, that job did not run, will not be made up, and nothing records that it was skipped.</p>\n<p><code>anacron</code> exists for this gap, catching up overdue jobs on reboot (at daily granularity, so it is no help hourly). On systemd it is one line:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"ini\" data-title=\"\" data-code=\"W1RpbWVyXQpPbkNhbGVuZGFyPWRhaWx5ClBlcnNpc3RlbnQ9dHJ1ZQ==\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6F42C1\">[Timer]</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">OnCalendar</span><span style=\"color:#24292E\">=daily</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">Persistent</span><span style=\"color:#24292E\">=true</span></span></code></pre></div></div>\n<p><code>Persistent=true</code> makes it store the last trigger time on disk, which the systemd docs describe as useful &quot;to catch up on missed runs of the service when the system was powered down.&quot;</p>\n<p>Also, check separately that the scheduler is running at all: <code>systemctl status cron</code> on Debian and Ubuntu, <code>crond</code> on RHEL and Fedora. A stopped daemon is invisible from the job&#39;s side, no process, no error.</p>\n<h2 id=\"the-script-succeeded-and-did-nothing\">The script &quot;succeeded&quot; and did nothing</h2>\n<p>A script without <code>set -e</code> continues past a failed command and exits with the status of whatever ran last, usually something trivial that succeeded. In a pipeline the shell reports only the <em>last</em> command&#39;s status, so a failed <code>curl</code> feeding a working <code>gzip</code> gives a clean <code>0</code> and an archive full of error page.</p>\n<p><code>set -euo pipefail</code> fixes the common cases, and <code>${PIPESTATUS[@]}</code> tells you which stage broke. Do not treat <code>set -e</code> as complete, though: it is suppressed inside conditionals and <code>||</code> chains and behaves differently in subshells. And every language has the same bug in its own dialect: a bare <code>except:</code> in Python, a swallowed promise rejection in Node. No scheduler sees through any of them, because from the outside the process exited zero.</p>\n<h2 id=\"the-run-hung-or-two-runs-overlapped\">The run hung, or two runs overlapped</h2>\n<p>Cron has no built-in timeout, so a job blocking on a network call sits there indefinitely while the next run starts on top of it. This can happen if you have an infinite loop that never terminates or when your cron job takes more time than its frequency. <code>timeout</code> &quot;runs the given command and kills it if it is still running after the specified time interval,&quot; exiting <code>124</code>. <code>flock -n</code> makes runs mutually exclusive, failing &quot;rather than wait if the lock cannot be immediately acquired&quot;:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"plaintext\" data-title=\"\" data-code=\"Ki81ICogKiAqICogL3Vzci9iaW4vZmxvY2sgLW4gL3RtcC9zeW5jLmxvY2sgL3Vzci9iaW4vdGltZW91dCAyNDAgL3Nydi9hcHAvc3luYy5zaA==\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span>*/5 * * * * /usr/bin/flock -n /tmp/sync.lock /usr/bin/timeout 240 /srv/app/sync.sh</span></span></code></pre></div></div>\n<p>Both are first-class configuration on newer schedulers. A systemd service takes <code>RuntimeMaxSec=</code> and will not start twice concurrently. A Kubernetes CronJob takes both directly:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"yaml\" data-title=\"\" data-code=\"c3BlYzoKICBzY2hlZHVsZTogIiovNSAqICogKiAqIgogIGNvbmN1cnJlbmN5UG9saWN5OiBGb3JiaWQKICBqb2JUZW1wbGF0ZToKICAgIHNwZWM6CiAgICAgIGFjdGl2ZURlYWRsaW5lU2Vjb25kczogMjQw\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#22863A\">spec</span><span style=\"color:#24292E\">:</span></span>\n<span class=\"line\"><span style=\"color:#22863A\">  schedule</span><span style=\"color:#24292E\">: </span><span style=\"color:#032F62\">\"*/5 * * * *\"</span></span>\n<span class=\"line\"><span style=\"color:#22863A\">  concurrencyPolicy</span><span style=\"color:#24292E\">: </span><span style=\"color:#032F62\">Forbid</span></span>\n<span class=\"line\"><span style=\"color:#22863A\">  jobTemplate</span><span style=\"color:#24292E\">:</span></span>\n<span class=\"line\"><span style=\"color:#22863A\">    spec</span><span style=\"color:#24292E\">:</span></span>\n<span class=\"line\"><span style=\"color:#22863A\">      activeDeadlineSeconds</span><span style=\"color:#24292E\">: </span><span style=\"color:#005CC5\">240</span></span></code></pre></div></div>\n<h2 id=\"modern-schedulers-fixed-the-scheduling-not-the-reporting\">Modern schedulers fixed the scheduling, not the reporting</h2>\n<p>Half of the above reads as an argument for replacing cron, and it is one. systemd timers and Kubernetes CronJobs solve what cron leaves to you: catch-up, deadlines, concurrency, retries, real logs instead of mail. If you are writing defensive bash for behaviour your scheduler offers as configuration, move.</p>\n<p>It still does not close the gap, and the Kubernetes docs are honest about why:</p>\n<blockquote><p>The scheduling is approximate because there are certain circumstances where two Jobs might be created, or no Job might be created.</p></blockquote>\n<p><em><a href=\"https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">CronJob</a>, Kubernetes documentation</em></p>\n<p>&quot;No Job might be created&quot; is also a silent failure. Every scheduler shares the limitation: it knows whether it <em>started</em> something, not whether the thing worked, and it is not watching for the answer. A CronJob whose pod exits zero after skipping every record is a green CronJob.</p>\n<p>Uptime monitoring cannot cover for it either. An HTTP check proves an endpoint responded. Your API can serve <code>200</code> for weeks while your nightly export has not run once, because the two are unrelated and there is no endpoint that means &quot;the 03:00 job finished.&quot; The only thing that knows a run succeeded is the run itself. More on that in <a href=\"https://drumbeats.io/blog/background-job-monitoring-vs-apm\" rel=\"noopener noreferrer\" target=\"_blank\">why uptime monitoring isn&#39;t enough</a>.</p>\n<h2 id=\"the-fix-push-based-confirmation\">The fix: push-based confirmation</h2>\n<p>Invert the direction. The job reports in when it finishes, and the <em>absence</em> of that report is the alert. That is a dead man&#39;s switch, and it covers the whole checklist.</p>\n<p>Machine off, daemon dead, <code>command not found</code>, hung past its window: each is now a missing ping, and a missing ping is an alert. No mail server, no agent, no log pipeline.</p>\n<p>With <a href=\"https://drumbeats.io/cron-job-monitoring\" rel=\"noopener noreferrer\" target=\"_blank\">Drumbeats</a> that is one HTTP request:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"plaintext\" data-title=\"\" data-code=\"MCAzICogKiAqIGN1cmwgLXNmIGh0dHBzOi8vYXBpLmRydW1iZWF0cy5pby92MS9waW5nLzxpZD4vc3RhcnQgXAogICYmIC9zcnYvYXBwL25pZ2h0bHkuc2ggXAogICYmIGN1cmwgLXNmIGh0dHBzOi8vYXBpLmRydW1iZWF0cy5pby92MS9waW5nLzxpZD4vc3VjY2VzcyBcCiAgfHwgY3VybCAtc2YgaHR0cHM6Ly9hcGkuZHJ1bWJlYXRzLmlvL3YxL3BpbmcvPGlkPi9mYWlsdXJl\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span>0 3 * * * curl -sf https://api.drumbeats.io/v1/ping/&#x3C;id>/start \\</span></span>\n<span class=\"line\"><span>  &#x26;&#x26; /srv/app/nightly.sh \\</span></span>\n<span class=\"line\"><span>  &#x26;&#x26; curl -sf https://api.drumbeats.io/v1/ping/&#x3C;id>/success \\</span></span>\n<span class=\"line\"><span>  || curl -sf https://api.drumbeats.io/v1/ping/&#x3C;id>/failure</span></span></code></pre></div></div>\n<p><code>-s</code> suppresses the progress meter cron would otherwise mail every run; <code>-f</code> makes an HTTP error exit non-zero. The <code>start</code> ping buys duration tracking and hung-run detection, and the failure branch means you hear about a bad run immediately, not at the next missed window.</p>\n<p>Most things called cron jobs in 2026 are not shell scripts, and the ping need not be one either:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"python\" data-title=\"\" data-code=\"aW1wb3J0IGh0dHB4CgpQSU5HID0gImh0dHBzOi8vYXBpLmRydW1iZWF0cy5pby92MS9waW5nLzxtb25pdG9yLWlkPiIKCmRlZiBuaWdodGx5KCkgLT4gTm9uZToKICAgIGh0dHB4LmdldChmIntQSU5HfS9zdGFydCIsIHRpbWVvdXQ9MTApCiAgICB0cnk6CiAgICAgICAgcm93cyA9IGV4cG9ydF95ZXN0ZXJkYXkoKQogICAgZXhjZXB0IEV4Y2VwdGlvbiBhcyBleGM6CiAgICAgICAgaHR0cHgucG9zdChmIntQSU5HfS9mYWlsdXJlIiwganNvbj17InBheWxvYWQiOiBzdHIoZXhjKVs6MjAwMF19LCB0aW1lb3V0PTEwKQogICAgICAgIHJhaXNlCiAgICBodHRweC5wb3N0KGYie1BJTkd9L3N1Y2Nlc3MiLCBqc29uPXsicGF5bG9hZCI6IGYiZXhwb3J0ZWQge3Jvd3N9IHJvd3MifSwgdGltZW91dD0xMCk=\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#D73A49\">import</span><span style=\"color:#24292E\"> httpx</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#005CC5\">PING</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#032F62\"> \"https://api.drumbeats.io/v1/ping/&#x3C;monitor-id>\"</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#D73A49\">def</span><span style=\"color:#6F42C1\"> nightly</span><span style=\"color:#24292E\">() -> </span><span style=\"color:#005CC5\">None</span><span style=\"color:#24292E\">:</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">    httpx.get(</span><span style=\"color:#D73A49\">f</span><span style=\"color:#032F62\">\"</span><span style=\"color:#005CC5\">{PING}</span><span style=\"color:#032F62\">/start\"</span><span style=\"color:#24292E\">, </span><span style=\"color:#E36209\">timeout</span><span style=\"color:#D73A49\">=</span><span style=\"color:#005CC5\">10</span><span style=\"color:#24292E\">)</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    try</span><span style=\"color:#24292E\">:</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">        rows </span><span style=\"color:#D73A49\">=</span><span style=\"color:#24292E\"> export_yesterday()</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    except</span><span style=\"color:#005CC5\"> Exception</span><span style=\"color:#D73A49\"> as</span><span style=\"color:#24292E\"> exc:</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">        httpx.post(</span><span style=\"color:#D73A49\">f</span><span style=\"color:#032F62\">\"</span><span style=\"color:#005CC5\">{PING}</span><span style=\"color:#032F62\">/failure\"</span><span style=\"color:#24292E\">, </span><span style=\"color:#E36209\">json</span><span style=\"color:#D73A49\">=</span><span style=\"color:#24292E\">{</span><span style=\"color:#032F62\">\"payload\"</span><span style=\"color:#24292E\">: </span><span style=\"color:#005CC5\">str</span><span style=\"color:#24292E\">(exc)[:</span><span style=\"color:#005CC5\">2000</span><span style=\"color:#24292E\">]}, </span><span style=\"color:#E36209\">timeout</span><span style=\"color:#D73A49\">=</span><span style=\"color:#005CC5\">10</span><span style=\"color:#24292E\">)</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">        raise</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">    httpx.post(</span><span style=\"color:#D73A49\">f</span><span style=\"color:#032F62\">\"</span><span style=\"color:#005CC5\">{PING}</span><span style=\"color:#032F62\">/success\"</span><span style=\"color:#24292E\">, </span><span style=\"color:#E36209\">json</span><span style=\"color:#D73A49\">=</span><span style=\"color:#24292E\">{</span><span style=\"color:#032F62\">\"payload\"</span><span style=\"color:#24292E\">: </span><span style=\"color:#D73A49\">f</span><span style=\"color:#032F62\">\"exported </span><span style=\"color:#005CC5\">{</span><span style=\"color:#24292E\">rows</span><span style=\"color:#005CC5\">}</span><span style=\"color:#032F62\"> rows\"</span><span style=\"color:#24292E\">}, </span><span style=\"color:#E36209\">timeout</span><span style=\"color:#D73A49\">=</span><span style=\"color:#005CC5\">10</span><span style=\"color:#24292E\">)</span></span></code></pre></div></div>\n<p>Pings can include payloads that carry useful detail, telling you whether a job is actually healthy or only looks healthy. For example, this version also closes the exit-zero case, because the success ping fires from the branch that knows the export produced rows.</p>\n<p>Failing or missing cron jobs are one of the things that have broad adverse effects on businesses because by nature they go unnoticed for a very long time if they are not monitored. With Drumbeats, you can create monitors for your cron jobs and get alerted when they do not run or fail.</p>\n<p>The free tier covers 50 monitors and 200,000 pings a month with unlimited team seats. The <a href=\"https://drumbeats.io/docs/ping-api/scheduled-pings\" rel=\"noopener noreferrer\" target=\"_blank\">scheduled pings guide</a> has the rest of the patterns, and the <a href=\"https://drumbeats.io/tools/cron\" rel=\"noopener noreferrer\" target=\"_blank\">cron expression generator</a> is free if you need to build the schedule itself.</p>\n<h2 id=\"frequently-asked-questions\">Frequently asked questions</h2>\n<p><strong>Why did my cron job run but not do anything?</strong> Cron does not load your shell setup, and only searches <code>/usr/bin:/bin</code>. The command was not found, or a relative path pointed somewhere else.</p>\n<p><strong>Why am I not getting cron emails?</strong> No mail server installed, or <code>MAILTO</code> unset or empty. Even with one, mail goes to a local mailbox.</p>\n<p><strong>How do I know a cron job failed?</strong> Cron will not tell you. Add an external monitor that alerts on a missing success signal.</p>\n<p><strong>Does cron retry failed jobs?</strong> No. No retry, no backoff, no dead-letter behaviour.</p>\n<p><strong>How do I stop cron jobs overlapping?</strong> <code>flock -n</code> on a lock file, or <code>concurrencyPolicy: Forbid</code> on a Kubernetes CronJob.</p>\n<p><strong>What is the difference between cron and anacron?</strong> Cron skips jobs entirely if the machine was off; anacron runs them once it is back up, at daily granularity. <code>Persistent=true</code> does the same for systemd timers.</p>\n<h2 id=\"references\">References</h2>\n<ol><li>Vixie, P. <a href=\"https://man7.org/linux/man-pages/man5/crontab.5.html\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>crontab(5): tables for driving cron</em></a></li><li>Vixie, P. <a href=\"https://man7.org/linux/man-pages/man8/cron.8.html\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>cron(8), daemon to execute scheduled commands</em></a></li><li>Vixie cron source: <a href=\"https://github.com/vixie/cron/blob/master/do_command.c\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><code>do_command.c</code></a> for exit-status handling, <a href=\"https://github.com/vixie/cron/blob/master/pathnames.h\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><code>pathnames.h</code></a> for the <code>_PATH_DEFPATH</code> default.</li><li>SymfonyCorp. <a href=\"https://github.com/symfonycorp/croncape\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>croncape</em></a>, exit-code-aware cron wrapper</li><li>GNU coreutils manual. <a href=\"https://www.gnu.org/software/coreutils/manual/html_node/timeout-invocation.html\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>timeout: Run a command with a time limit</em></a></li><li>util-linux. <a href=\"https://man7.org/linux/man-pages/man1/flock.1.html\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>flock(1): manage locks from shell scripts</em></a></li><li>systemd project. <a href=\"https://www.freedesktop.org/software/systemd/man/latest/systemd.timer.html\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>systemd.timer(5)</em></a>, <code>Persistent=</code> and timer catch-up</li><li>Kubernetes documentation. <a href=\"https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><em>CronJob</em></a>: <code>concurrencyPolicy</code>, scheduling guarantees</li></ol>",
      "image": "https://drumbeats.io/blog/og/cron-job-failed-silently.png?v=b6dde151",
      "date_published": "2026-09-01T09:00:00.000Z",
      "date_modified": "2026-09-01T09:00:00.000Z",
      "tags": [
        "cron",
        "silent failure",
        "heartbeat monitoring",
        "linux",
        "troubleshooting"
      ]
    },
    {
      "id": "https://drumbeats.io/blog/how-to-build-an-mcp-server-for-your-saas",
      "url": "https://drumbeats.io/blog/how-to-build-an-mcp-server-for-your-saas",
      "title": "How to Build an MCP Server for Your SaaS: What Shipping Ours Taught Me",
      "summary": "The stdio server took one day to code. Everything that made it good took three weeks. A development story about API prep, tool design, OAuth surprises, and why agents read schemas, not READMEs.",
      "content_html": "<p>Last month I shipped an MCP server for Drumbeats. The code for the first working version took one day. The three weeks around that day are where everything useful happened, and that&#39;s what this post is about.</p>\n<p>This is not a feature announcement. The <a href=\"https://github.com/drumbeats-io/mcp\" rel=\"noopener noreferrer\" target=\"_blank\">repo is public</a> if you want the details, and the <a href=\"/mcp\">Drumbeats MCP page</a> lists every tool the server offers. This is the part I wish someone had written before I started: what to do before you write MCP code, how to design tools that agents can actually use, what your OAuth setup is almost certainly missing, and why a registry quality score jumped from 87 to 98 for reasons that had nothing to do with adding features.</p>\n<p>If you run a SaaS and you&#39;re thinking about an MCP server, this is the playbook I&#39;d hand you.</p>\n<h2 id=\"start-with-the-verb-not-the-transport\">Start with the verb, not the transport</h2>\n<p>The first note in our design doc says:</p>\n<blockquote><p>An MCP that cannot create monitors is pointless.</p></blockquote>\n<p>Drumbeats is a monitoring product. The whole reason to connect it to an AI agent is being able to say <em>&quot;set up monitoring for my nightly backup job&quot;</em> and have it happen. If the MCP could only <em>read</em> data, it would be a demo, not a product.</p>\n<p>So before any talk of transports, SDKs, or OAuth, I picked the flagship verb: <code>create_monitor</code>. Every later decision (which endpoints to expose, which scopes to require, what to cut) got tested against whether it served that verb.</p>\n<p>Your product has its own verb. For an invoicing tool it&#39;s &quot;send an invoice&quot;, for a CI product it&#39;s &quot;run the pipeline&quot;. Name it first. If your MCP can&#39;t do it, the rest doesn&#39;t matter.</p>\n<h2 id=\"prepare-your-api-before-you-write-a-line-of-mcp-code\">Prepare your API before you write a line of MCP code</h2>\n<p>Here&#39;s the unglamorous part nobody talks about: the MCP server is a thin client. Almost all of the real work happens in your existing API, and your existing API was probably designed for humans with sessions, not agents with keys.</p>\n<p>Ours was. Two things were missing, and I fixed both in the core API <em>before</em> the MCP repo existed:</p>\n<p><strong>Account-scoped API keys.</strong> Our keys were per-project. An agent acting for a user needs to see what the user sees: every project, one key. If your keys are scoped narrower than a user&#39;s actual identity, agents will constantly hit walls that make your MCP feel broken.</p>\n<p><strong>Per-key permission scopes.</strong> One key with <code>read</code> can look but not touch. Add <code>manage_monitors</code> and it can create and edit. Deletes sit behind a scope nobody gets by default. This matters more for MCP than for classic API usage, because the caller is a language model: you want least-privilege to be enforced by the backend, not by hoping the agent behaves.</p>\n<p>The key property of this prep: it was <strong>transport-agnostic</strong>. Nothing in it knew or cared whether an MCP would talk stdio or HTTP. That neutrality paid for itself later.</p>\n<h2 id=\"tools-are-not-endpoints\">Tools are not endpoints</h2>\n<p>My first instinct was to map REST endpoints to tools one-to-one. That instinct was wrong, and catching it early shaped the whole surface.</p>\n<p>I started by listing every single endpoint an API key could reach (the real routes, from the router files, not from documentation) in one big table. Then I cut, hard. Three patterns emerged:</p>\n<p><strong>Merge endpoints into task-shaped tools.</strong> We have four separate endpoints for a monitor&#39;s history: pings, warnings, check results, response-time stats. An agent doesn&#39;t want four tools; it wants one question answered:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"plaintext\" data-title=\"\" data-code=\"Z2V0X21vbml0b3JfaGlzdG9yeSh7IGlkLCBraW5kOiAicGluZ3MiIHwgIndhcm5pbmdzIiB8ICJjaGVja3MiIHwgInJlc3BvbnNlX3RpbWVzIiB9KQ==\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span>get_monitor_history({ id, kind: \"pings\" | \"warnings\" | \"checks\" | \"response_times\" })</span></span></code></pre></div></div>\n<p>Same story for incidents: get, acknowledge, and resolve collapsed into one <code>manage_incident</code> tool with an <code>action</code> argument. Fewer tools means less for the model to choose between, and choice is where models make mistakes.</p>\n<p><strong>Make invalid states unrepresentable.</strong> <code>create_monitor</code> handles four monitor types, and each type has fields the others must not have. Instead of one loose schema and a server that returns 400s, the schema is a discriminated union:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"plaintext\" data-title=\"\" data-code=\"Y3JlYXRlX21vbml0b3IoCiAgICB7IHR5cGU6ICJKT0JfQ1JPTiIsICAgIHNjaGVkdWxlOiAiMCAzICogKiAqIiwgZ3JhY2U6ICIxNW0iLCAuLi4gfQogIHwgeyB0eXBlOiAiVVBUSU1FX0hUVFAiLCB1cmw6ICJodHRwczovLy4uLiIsIGV4cGVjdGVkX3N0YXR1czogMjAwLCAuLi4gfQop\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span>create_monitor(</span></span>\n<span class=\"line\"><span>    { type: \"JOB_CRON\",    schedule: \"0 3 * * *\", grace: \"15m\", ... }</span></span>\n<span class=\"line\"><span>  | { type: \"UPTIME_HTTP\", url: \"https://...\", expected_status: 200, ... }</span></span>\n<span class=\"line\"><span>)</span></span></code></pre></div></div>\n<p>The model physically cannot send a cron schedule on an uptime check. Every invalid combination you make unrepresentable is an error message you never have to write and a retry loop the agent never enters.</p>\n<p><strong>Cut things that feel obligatory.</strong> There is no <code>delete_monitor</code> in v1. Not because it&#39;s hard (it&#39;s one endpoint) but because an agent misfiring a delete is a much worse failure than an agent not being able to delete. We also dropped a <code>list_channel_types</code> lookup tool entirely and baked the vocabulary into a tool description instead. Static data doesn&#39;t deserve a round-trip.</p>\n<h2 id=\"one-tool-layer-two-transports\">One tool layer, two transports</h2>\n<p>The architecture decision I&#39;d defend the hardest: tools are defined once, in a transport-blind layer, and both entrypoints consume it.</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"plaintext\" data-title=\"\" data-code=\"ICAgICAgICAgICAgICAgIOKUjOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUkAogICAgICAgICAgICAgICAg4pSCICAgIHNoYXJlZCB0b29sIGxheWVyICAgICDilIIKICAgICAgICAgICAgICAgIOKUgiAgb25lIGZpbGUgcGVyIHRvb2wsICAgICAg4pSCCiAgICAgICAgICAgICAgICDilIIgIGtub3dzIG5vdGhpbmcgYWJvdXQgICAgIOKUggogICAgICAgICAgICAgICAg4pSCICB0cmFuc3BvcnQgb3IgYXV0aCAgICAgICDilIIKICAgICAgICAgICAgICAgIOKUlOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUrOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUmAogICAgICAgICAgICAgIOKUjOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUtOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUkAogICAgICDilIzilIDilIDilIDilIDilIDilIDilIDilrzilIDilIDilIDilIDilIDilIDilIDilIDilJAgICAgICAgICAgIOKUjOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKWvOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUkAogICAgICDilIIgICAgc3RkaW8udHMgICAg4pSCICAgICAgICAgICDilIIgIHNlcnZlci1odHRwLnRzIOKUggogICAgICDilIIgIG5weCwgbG9jYWwsICAg4pSCICAgICAgICAgICDilIIgIGhvc3RlZCwgT0F1dGggIOKUggogICAgICDilIIgIHlvdXIgQVBJIGtleSAg4pSCICAgICAgICAgICDilIIgIDIuMSBpbiBmcm9udCAgIOKUggogICAgICDilJTilIDilIDilIDilIDilIDilIDilIDilKzilIDilIDilIDilIDilIDilIDilIDilIDilJggICAgICAgICAgIOKUlOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUrOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUmAogICAgICAgICAgICAgIOKUgiAgICAgICAgICAgICAgICAgICAgICAgICAgICAg4pSCCiAgICAgICAgICAgICAg4pSU4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pa6IFJFU1QgQVBJIOKXhOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUgOKUmAogICAgICAgICAgICAgICAgICAgKHRoZSBzYW1lIHB1YmxpYyBBUEkKICAgICAgICAgICAgICAgICAgICBldmVyeSBjdXN0b21lciB1c2VzKQ==\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span>                ┌──────────────────────────┐</span></span>\n<span class=\"line\"><span>                │    shared tool layer     │</span></span>\n<span class=\"line\"><span>                │  one file per tool,      │</span></span>\n<span class=\"line\"><span>                │  knows nothing about     │</span></span>\n<span class=\"line\"><span>                │  transport or auth       │</span></span>\n<span class=\"line\"><span>                └────────────┬─────────────┘</span></span>\n<span class=\"line\"><span>              ┌──────────────┴──────────────┐</span></span>\n<span class=\"line\"><span>      ┌───────▼────────┐           ┌────────▼────────┐</span></span>\n<span class=\"line\"><span>      │    stdio.ts    │           │  server-http.ts │</span></span>\n<span class=\"line\"><span>      │  npx, local,   │           │  hosted, OAuth  │</span></span>\n<span class=\"line\"><span>      │  your API key  │           │  2.1 in front   │</span></span>\n<span class=\"line\"><span>      └───────┬────────┘           └────────┬────────┘</span></span>\n<span class=\"line\"><span>              │                             │</span></span>\n<span class=\"line\"><span>              └────────► REST API ◄─────────┘</span></span>\n<span class=\"line\"><span>                   (the same public API</span></span>\n<span class=\"line\"><span>                    every customer uses)</span></span></code></pre></div></div>\n<p>The contract that makes it work is small. Every tool handler receives a context that carries an already-authenticated API client, and that is <em>all</em> it may touch:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"plaintext\" data-title=\"\" data-code=\"cmVnaXN0ZXJUb29scyhzZXJ2ZXIsIGN0eCkKLy8gY3R4ID0geyBhcGkgfSAg4oCUIGFuIGF1dGhlZCBSRVNUIGNsaWVudAoKLy8gc3RkaW8udHM6ICAgICAgIGN0eC5hcGkgYnVpbHQgZnJvbSBhIGxvY2FsIEFQSSBrZXkgKGVudiB2YXIpCi8vIHNlcnZlci1odHRwLnRzOiBjdHguYXBpIGJ1aWx0IHBlci1zZXNzaW9uIGZyb20gdGhlIE9BdXRoIHRva2Vu\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span>registerTools(server, ctx)</span></span>\n<span class=\"line\"><span>// ctx = { api }  — an authed REST client</span></span>\n<span class=\"line\"><span></span></span>\n<span class=\"line\"><span>// stdio.ts:       ctx.api built from a local API key (env var)</span></span>\n<span class=\"line\"><span>// server-http.ts: ctx.api built per-session from the OAuth token</span></span></code></pre></div></div>\n<p>A handler never knows how the request arrived or how the user proved who they are. Which means adding a tool is a one-file change that ships to both transports simultaneously, and the transports themselves stay boring, a few hundred lines each.</p>\n<p>Why two transports at all? Because they reach different people. stdio (<code>npx -y @drumbeats/mcp</code>) is for developers in IDEs and Claude Desktop. But stdio is invisible to claude.ai on the web, to mobile, to anything that can&#39;t spawn a local process. The hosted Streamable HTTP endpoint is the only way to reach those users. If you only ship stdio, you&#39;ve built a developer tool. Fine, but know you chose it.</p>\n<h2 id=\"leave-the-door-unlocked-for-strangers\">Leave the door unlocked for strangers</h2>\n<p>My favorite small decision: three of our tools require no account at all. <code>check_http</code>, <code>check_ssl</code>, and <code>check_dns</code> are live diagnostics: they run against any URL and need zero credentials.</p>\n<p>That means someone who has never heard of Drumbeats can <a href=\"/connect\">add the MCP server</a> and immediately ask:</p>\n<blockquote><p>&quot;Is example.com&#39;s SSL certificate about to expire?&quot;</p></blockquote>\n<p>...and get a real answer. No signup, no API key, no OAuth dance. The tool works, builds a little trust, and <em>then</em> the natural next question (&quot;okay, now alert me before it expires&quot;) is the one that needs an account.</p>\n<p>If your product has any capability that can safely run keyless, expose it. It&#39;s the difference between an MCP server that demands commitment upfront and one that introduces itself politely. Agents amplify this: an agent evaluating tools will actually <em>call</em> the free ones, and a successful first call is the best onboarding you&#39;ll ever write.</p>\n<h2 id=\"your-oauth-is-not-ready-mine-wasnt\">Your OAuth is not ready (mine wasn&#39;t)</h2>\n<p>If you ship the hosted transport, your MCP server becomes an <strong>OAuth 2.1 resource server</strong>, and MCP clients are demanding guests. Our identity service already had OAuth: authorization code flow, PKCE support, refresh token rotation, replay protection. Solid, I thought.</p>\n<p>It was solid <em>for our own first-party app</em>. For a public MCP client, five gaps showed up, and I&#39;d bet money most SaaS OAuth implementations share them:</p>\n<ol><li><strong>The token endpoint required a client secret.</strong> MCP clients are public clients: they have no secret. You need a PKCE-required, secret-free path.</li><li><strong>No discovery metadata.</strong> Clients find your authorization server via <code>/.well-known/</code> documents (RFC 8414 + 9728). We served none.</li><li><strong>Client registration required a login.</strong> MCP clients self-register dynamically (RFC 7591), anonymously, before any user exists.</li><li><strong>Tokens had no audience binding.</strong> Our JWTs carried no <code>aud</code> claim, so a token minted for the web app was indistinguishable from one minted for the MCP. That&#39;s a confused-deputy vulnerability waiting to happen. This one is non-negotiable.</li><li><strong>Token scopes weren&#39;t enforced by the REST layer.</strong> A bearer token was treated as a full-power human session, which would have made the MCP&#39;s least-privilege scoping decorative.</li></ol>\n<p>The happy-path flow, once it all works:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"plaintext\" data-title=\"\" data-code=\"Y2xpZW50IOKUgOKUgOKUgOKUgCBQT1NUIC9tY3AgKG5vIHRva2VuKSDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilIDilrogTUNQIHNlcnZlcgpjbGllbnQg4peE4pSA4pSA4pSAIDQwMSArICJoZXJlJ3Mgd2hlcmUgYXV0aCBsaXZlcyIg4pSA4pSYCmNsaWVudCDilIDilIDilIDilIAgZGlzY292ZXIg4oaSIHJlZ2lzdGVyIOKGkiBhdXRob3JpemUgKHVzZXIncyBicm93c2VyKSDihpIgdG9rZW4KY2xpZW50IOKUgOKUgOKUgOKUgCBQT1NUIC9tY3AgKyBCZWFyZXIgdG9rZW4g4pSA4pSA4pSA4pSA4pSA4pSA4pSA4pa6IHZlcmlmeSBzaWcgKyBleHAgKyBhdWQgKyBzY29wZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg4pSU4pSA4pa6IHRvb2wgY2FsbCBydW5zIGFzIHRoYXQgdXNlcg==\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span>client ──── POST /mcp (no token) ───────────► MCP server</span></span>\n<span class=\"line\"><span>client ◄─── 401 + \"here's where auth lives\" ─┘</span></span>\n<span class=\"line\"><span>client ──── discover → register → authorize (user's browser) → token</span></span>\n<span class=\"line\"><span>client ──── POST /mcp + Bearer token ───────► verify sig + exp + aud + scope</span></span>\n<span class=\"line\"><span>                                              └─► tool call runs as that user</span></span></code></pre></div></div>\n<p>One more lesson that only surfaced in live testing: <strong>real clients are stricter than the spec.</strong> The MCP SDK fetches discovery documents in a specific order and treats a 5xx on any candidate URL as fatal. The spec says dynamic registration is a &quot;SHOULD&quot;; real clients treat it as a MUST. I lost most of a day to gaps like these, watching an actual client&#39;s handshake fail: the spec document alone would never have shown them. Budget roughly a week for OAuth work, and verify with a real client, not with the RFC open in a tab.</p>\n<h2 id=\"agents-read-toolslist-not-your-readme\">Agents read <code>tools/list</code>, not your README</h2>\n<p>Here&#39;s the thing that reframed how I think about MCP quality. Your README is for humans. An agent connecting to your server sees exactly one thing: the <code>tools/list</code> response. Names, descriptions, schemas, annotations. That <em>is</em> your product&#39;s UI now.</p>\n<p>We shipped v0.1 with what I&#39;d call &quot;developer-complete&quot; schemas (correct, minimal). Then I went back and treated the schemas as product surface:</p>\n<ul><li><strong>Annotations</strong> on every tool (<code>readOnlyHint</code>, <code>openWorldHint</code>) so clients know what&#39;s safe to call freely.</li><li><strong>Server instructions</strong>, a short orientation string the client receives on connect: which tool to call first for context, which tools work without a key.</li><li><strong>Output schemas and structured content</strong> on every tool, so an agent knows the shape of what comes back <em>before</em> calling, and can chain tools without guessing.</li><li><strong>A description on every parameter</strong> of the flagship tools, including units, formats, and what happens when a field is omitted.</li></ul>\n<p>None of this added a feature. Smithery (which scans your server and scores its tool quality) moved us from <strong>87 to 98</strong> on that work alone, and Glama&#39;s letter grades came back straight A&#39;s for the same reason. The scores are nice; what they measure is real. Every ambiguity in a schema is a place an agent will eventually guess wrong, and an agent that guesses wrong blames your product, in front of your user.</p>\n<p>One more schema trick that earns its keep: when a user hits a plan limit, the tool doesn&#39;t return a bare error code. It returns a message written <em>for the agent to relay</em>:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"plaintext\" data-title=\"\" data-code=\"aWYgKGFwaUVycm9yID09PSBQTEFOX0xJTUlUKQogIHJldHVybiAiVGhpcyBhY2NvdW50IGhpdCB0aGUgZnJlZSBwbGFuJ3MgbW9uaXRvciBsaW1pdC4KICAgICAgICAgIFRvIGFkZCBtb3JlLCB1cGdyYWRlIGF0IGRydW1iZWF0cy5pby9wcmljaW5nLiI=\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span>if (apiError === PLAN_LIMIT)</span></span>\n<span class=\"line\"><span>  return \"This account hit the free plan's monitor limit.</span></span>\n<span class=\"line\"><span>          To add more, upgrade at drumbeats.io/pricing.\"</span></span></code></pre></div></div>\n<p>The agent turns that into a helpful sentence instead of a stack trace. Errors are UX too, more than ever, when the thing reading them writes prose.</p>\n<h2 id=\"the-meta-part\">The meta part</h2>\n<p>I&#39;ll admit the part that made this project fun: I built a tool <em>for</em> AI agents <em>with</em> an AI agent. Claude Code was alongside me the whole way, pressure-testing the tool surface while it was still a table in a design doc, and then, as the first real user, failing in exactly the ways the schemas deserved. There&#39;s no faster feedback loop than your user sitting inside your terminal.</p>\n<p>That&#39;s also why the schema-quality section above is the one I&#39;d underline twice. I watched an agent use this thing for three weeks. The difference between a vague parameter description and a precise one isn&#39;t cosmetic: it&#39;s visible within minutes, in what the agent does.</p>\n<h2 id=\"the-playbook\">The playbook</h2>\n<p>If you&#39;re building an MCP server for your own SaaS, the compressed version:</p>\n<ol><li><strong>Name your flagship verb first.</strong> An MCP that can&#39;t do your product&#39;s core action is a demo.</li><li><strong>Fix your API before writing MCP code</strong>: account-scoped keys, per-key scopes, enforced server-side.</li><li><strong>Design tools from your real routes, then cut hard.</strong> Merge endpoints into task-shaped tools. Make invalid inputs unrepresentable. Skip deletes in v1.</li><li><strong>One shared tool layer, thin transport entrypoints.</strong> Never fork the tool definitions.</li><li><strong>Expose whatever can run keyless.</strong> A free first call is your best onboarding.</li><li><strong>Audit your OAuth against the MCP profile early</strong>: public clients, discovery, dynamic registration, audience binding, scope enforcement. Then verify with a real client.</li><li><strong>Treat schemas as product surface.</strong> Descriptions, annotations, output schemas, instructions. Agents read <code>tools/list</code>, not your README.</li><li><strong>Write errors for the agent to relay</strong>, not for a log file.</li></ol>\n<p>The whole server is open source: <a href=\"https://github.com/drumbeats-io/mcp\" rel=\"noopener noreferrer\" target=\"_blank\">github.com/drumbeats-io/mcp</a>, Apache-2.0. Read it, fork it, or steal the structure for your own product. And if you just want to try the keyless bit: <a href=\"/connect\">add the server</a> to Claude, Cursor or VS Code, ask about any site&#39;s SSL cert, and see what an unlocked door feels like.</p>",
      "image": "https://drumbeats.io/blog/og/how-to-build-an-mcp-server-for-your-saas.png?v=668a04bd",
      "date_published": "2026-07-13T00:00:00.000Z",
      "date_modified": "2026-10-27T10:00:00.000Z",
      "tags": [
        "mcp",
        "ai agents",
        "developer tools",
        "open source"
      ]
    },
    {
      "id": "https://drumbeats.io/blog/background-job-monitoring-vs-apm",
      "url": "https://drumbeats.io/blog/background-job-monitoring-vs-apm",
      "title": "Background Job Monitoring vs APM: What Most Teams Actually Need",
      "summary": "Teams searching for APM tools to monitor background jobs and async workers are usually shopping in the wrong category. APM traces why code is slow; job monitoring confirms your crons, queues, and workers ran at all. We compare the two honestly: what Datadog, New Relic, and Sentry are genuinely great at, what a heartbeat monitor does instead, and the real June 2026 cost math for a 50-job workload on each path.",
      "content_html": "<blockquote><p><strong>The short answer:</strong> if you need to know that your scheduled jobs, queue workers, and async tasks ran (on time, successfully) and to get paged when they didn&#39;t, you need heartbeat-style job monitoring, not a full APM suite. APM tools like Datadog, New Relic, and Sentry earn their keep when you have to trace <em>why</em> a request is slow across services, profile code, or debug distributed latency. For a typical 50-job workload, the gap is $0-$20/month on a dedicated job monitor versus roughly $64 to $230+/month on the APM route (June 2026 pricing). Most teams buying APM for this are buying a tracing platform to answer a yes/no question.</p></blockquote>\n<p>Search for &quot;APM tools for monitoring background jobs&quot; and you&#39;ll get a wall of Datadog, New Relic, and Sentry pages. All three are excellent products. But for most teams typing that query, the category itself is the mistake, and the vendors&#39; own pricing pages, read closely, agree.</p>\n<p>Here&#39;s how the two approaches actually compare: what APM does and what it&#39;s great at, what heartbeat-style job monitoring does instead, a side-by-side table, the worked cost math on June 2026 pricing, and the cases where APM really is the right answer.</p>\n<hr />\n<h2 id=\"what-people-actually-mean-by-apm-for-background-jobs\">What people actually mean by &quot;APM for background jobs&quot;</h2>\n<p>The job-to-be-done behind that search is almost always detection, not diagnosis. You have cron jobs, Sidekiq or BullMQ or Celery workers, a Kubernetes CronJob or two, maybe some webhook handlers, and at some point one of them silently stopped running. Nothing crashed. No exception fired. The dashboard stayed green while the nightly backup quietly didn&#39;t happen for nine days.</p>\n<p>What you want is the answer to three questions: <strong>did the job run, did it run on time, and did it succeed?</strong> And you want a loud alert the moment any answer is &quot;no.&quot;</p>\n<p>&quot;APM&quot; is often the wrong search term for that need. APM (application performance monitoring) is a diagnostic category: it explains <em>why</em> code is slow or erroring once you know something is wrong. Teams reach for it because Datadog and New Relic are the monitoring names they know, the same way people say &quot;Kleenex&quot; when they mean tissues. The category that actually fits the silent-failure problem is <a href=\"https://drumbeats.io/background-job-monitoring\" rel=\"noopener noreferrer\" target=\"_blank\">background job monitoring</a>, sometimes called <a href=\"https://drumbeats.io/cron-job-monitoring\" rel=\"noopener noreferrer\" target=\"_blank\">cron job monitoring</a> or heartbeat monitoring, and it is dramatically simpler and cheaper.</p>\n<hr />\n<h2 id=\"what-apm-actually-does-and-what-its-genuinely-great-at\">What APM actually does, and what it&#39;s genuinely great at</h2>\n<p>APM platforms instrument your code, via an agent, an SDK, or both, and observe it from the inside. That buys you things a heartbeat ping can never see:</p>\n<ul><li><strong>Distributed tracing.</strong> Follow one request across services, queues, and databases, with per-span latency. When checkout is slow and the cause is three hops away, this is the tool.</li><li><strong>Code-level profiling.</strong> Which function, which query, which N+1 is burning the time.</li><li><strong>Error aggregation.</strong> Exceptions grouped by root cause, with stack traces, release tags, and affected-user counts.</li><li><strong>Correlated telemetry.</strong> Logs, metrics, and traces stitched together in one pane.</li></ul>\n<p>The big three each earn their reputation. <strong>Datadog</strong> is the broadest platform: infrastructure metrics, APM, logs, and security in one place, which is why it becomes the default pane of glass for ops-heavy organizations. <strong>New Relic</strong> does deep application profiling with a generous free tier (100 GB of telemetry ingest per month). <strong>Sentry</strong> is the developer favorite for error tracking (stack traces tied to releases and commits) with tracing and a dedicated Crons feature bolted on, and it&#39;s the most affordable of the three.</p>\n<p>If your problem is &quot;this code path is slow and I don&#39;t know why,&quot; an APM suite is the correct purchase: there&#39;s a <a href=\"#when-you-actually-need-apm\">whole section below</a> on the cases where it wins outright.</p>\n<p>The catch is what APM costs to deploy: in money, but also in machinery. Agents to install and update. SDKs to wire into every job. Sampling rates to tune. And pricing that scales with hosts, ingested gigabytes, or seats, because the platform is doing genuinely heavy work. That machinery is justified when you need the <em>why</em>. It&#39;s pure overhead when you need the <em>whether</em>.</p>\n<hr />\n<h2 id=\"what-heartbeat-style-job-monitoring-does\">What heartbeat-style job monitoring does</h2>\n<p>A heartbeat monitor watches the <em>outcome</em> of a job instead of the internals of the code. The whole integration is an HTTP request:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"bash\" data-title=\"\" data-code=\"IyBBdCB0aGUgZW5kIG9mIHlvdXIgY3JvbiBqb2IsIHF1ZXVlIHdvcmtlciwgb3Igc2NyaXB0OgpjdXJsIC1mc1MgaHR0cHM6Ly9hcGkuZHJ1bWJlYXRzLmlvL3YxL3BpbmcvWU9VUl9NT05JVE9SX0lE\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6A737D\"># At the end of your cron job, queue worker, or script:</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">curl</span><span style=\"color:#005CC5\"> -fsS</span><span style=\"color:#032F62\"> https://api.drumbeats.io/v1/ping/YOUR_MONITOR_ID</span></span></code></pre></div></div>\n<p>The monitor knows the job&#39;s expected schedule (or, for event-driven work, its expected lifecycle). If the ping doesn&#39;t arrive on time, arrives with an explicit failure signal, or a run starts and never finishes: you get alerted. No agent, no SDK, no trace pipeline, no sampling config. Any language that can make an HTTP request is fully instrumented in one line.</p>\n<p>Richer lifecycles are still one-liners: a <code>/start</code> ping begins the runtime clock (catching jobs that hang or finish suspiciously fast), a <code>/failure</code> ping reports an explicit error, and a log ping attaches mid-run progress like rows processed. That&#39;s the full depth of the model, deliberately. <a href=\"https://drumbeats.io/heartbeat-monitoring\" rel=\"noopener noreferrer\" target=\"_blank\">Heartbeat monitoring</a> answers &quot;did it run, on time, successfully?&quot; with near-zero setup, and refuses to be anything heavier.</p>\n<p>The same primitive stretches across the whole background-work spectrum: scheduled crons, interval-based daemons, event-driven queue workers, and uptime checks are just different expectations applied to the same ping. (If you want the conceptual breakdown, the <a href=\"https://drumbeats.io/docs/concepts/monitoring-modes\" rel=\"noopener noreferrer\" target=\"_blank\">monitoring modes</a> docs page explains how the four modes differ.)</p>\n<hr />\n<h2 id=\"side-by-side-job-monitoring-vs-full-apm\">Side by side: job monitoring vs full APM</h2>\n<div class=\"blog-table-wrap\"><table><thead><tr><th>Criterion</th><th>Heartbeat / job monitoring</th><th>Full APM (Datadog / New Relic / Sentry)</th></tr></thead><tbody><tr><td>Core question answered</td><td>&quot;Did the job run, on time, and succeed?&quot;</td><td>&quot;Why is this code/request slow or erroring?&quot;</td></tr><tr><td>Setup</td><td>One HTTP ping line; no agent, no SDK</td><td>Agent install + SDK/code instrumentation</td></tr><tr><td>Runtime overhead</td><td>None, an outbound ping</td><td>Agent runtime + trace sampling overhead</td></tr><tr><td>What it sees</td><td>Run start / finish / fail / hang / progress</td><td>Spans, traces, code profiles, errors, infra metrics</td></tr><tr><td>Time to first signal</td><td>Minutes</td><td>Hours to days (instrumentation rollout)</td></tr><tr><td>Typical monthly cost (small team)</td><td>$0-$20</td><td>~$64 to $230+ for the worked example below; host/usage-based, scales fast</td></tr><tr><td>Best for</td><td>Cron, scheduled tasks, queue workers, async/event jobs</td><td>Microservices, request-path latency, distributed debugging</td></tr><tr><td>Where it&#39;s the wrong tool</td><td>Explaining <em>why</em> a job is slow</td><td>Confirming a nightly job ran</td></tr></tbody></table></div>\n<p><em>Cost figures as of June 13, 2026, from each vendor&#39;s live pricing page; the worked example below shows the math. Pricing changes often: verify before purchase.</em></p>\n<hr />\n<h2 id=\"the-cost-math-worked\">The cost math, worked</h2>\n<p>Take a concrete team: <strong>50 background jobs</strong> (nightly backups, hourly syncs, a pile of queue workers) running across five hosts, and the question is &quot;did they run?&quot; Here is what each path costs on pricing pulled from the vendors&#39; live pages on June 13, 2026.</p>\n<p><strong>Drumbeats (heartbeat route): $0.</strong> The Free tier covers 50 monitors and 200,000 Beats (pings) per month. Fifty hourly jobs send about 36,000 pings a month, under a fifth of the free budget, and even the full start/success lifecycle on every run stays comfortably free. If you outgrow 50 monitors, <a href=\"https://drumbeats.io/pricing\" rel=\"noopener noreferrer\" target=\"_blank\">Pro is $20/month</a> with unlimited monitors and 1M Beats.</p>\n<p><strong>Sentry (cheapest APM route): ~$64/month.</strong> Sentry Crons is the APM side&#39;s most direct answer to this exact problem, and credit where due: it&#39;s priced for it. The Team plan is $26/month (billed annually), each plan includes one cron monitor, and additional cron monitors are $0.78/month each. Fifty jobs ≈ $26 + 49 × $0.78 ≈ <strong>$64/month</strong>, plus you get real error tracking in the same bill, which is genuinely valuable if you don&#39;t have it yet.</p>\n<p><strong>Datadog: ~$155-$230+/month.</strong> Datadog APM starts at $31 per host per month on annual billing ($36 standalone, $48 on-demand). Five hosts ≈ <strong>$155-$180/month</strong>, and APM presumes Infrastructure Monitoring underneath it (Pro is $15/host/month), which carries the realistic floor past $230. You get a world-class platform for that, but for &quot;did the backup run?&quot;, every dollar past the first is buying capability the question doesn&#39;t need.</p>\n<p><strong>New Relic: free to start, seats decide the bill.</strong> The free tier is real: 100 GB ingest/month and one full-platform user. The costs arrive with the team: additional full-platform users are $99/month each on the Standard plan (capped at five), and trace ingest beyond 100 GB bills at $0.40/GB. A three-engineer team needing full access lands around <strong>$208/month</strong> before ingest overage.</p>\n<p>The pattern is consistent: APM pricing scales with hosts, gigabytes, and seats because the platform does heavy diagnostic work. A yes/no question about 50 jobs doesn&#39;t generate hosts, gigabytes, or seats, which is why the dedicated tool is one to two orders of magnitude cheaper. You&#39;re not finding a discount; you&#39;re matching the tool to the question.</p>\n<hr />\n<h2 id=\"when-you-actually-need-apm\">When you actually need APM</h2>\n<p>A heartbeat monitor is the wrong primitive, or only half the answer, in all of these cases:</p>\n<ul><li>*<em>You need to know </em>why<em> a job is slow, not just </em>that<em> it failed.</em>* Code-level profiling is APM&#39;s home turf; no ping will ever tell you which query regressed.</li><li><strong>You&#39;re debugging latency across a distributed request path.</strong> Tracing one transaction through six services is exactly what Datadog and New Relic are built for.</li><li><strong>You need error aggregation with stack traces and release tracking.</strong> Knowing a job failed is step one; Sentry telling you it failed on the line your last deploy touched is step two.</li><li><strong>You want logs, metrics, and traces correlated in one pane.</strong> If your on-call workflow lives in Datadog, fragmenting it has a real cost.</li><li><strong>Your request-serving code is already instrumented in an APM.</strong> Adding jobs to the same view can be worth the incremental cost for the single pane alone.</li></ul>\n<p>If that&#39;s you, buy (or keep) the APM: a heartbeat monitor is a complement there, not a replacement. The mistake worth avoiding is narrower: paying APM prices and carrying APM machinery only to learn whether your crons ran.</p>\n<hr />\n<h2 id=\"where-drumbeats-fits\">Where Drumbeats fits</h2>\n<p>Drumbeats is the lightweight option built for exactly the detection problem: per-job heartbeats with no agent and no instrumentation, integrated with one curl line.</p>\n<p>What you get, mapped to the table above:</p>\n<ul><li><strong>Full run lifecycle</strong>: explicit start, success, failure, and log pings, so a job that hangs, dies silently, or finishes suspiciously fast is caught, not just one that misses its slot.</li><li><strong>A dedicated event-driven monitor type</strong> for async work with no fixed schedule. <a href=\"https://drumbeats.io/queue-worker-monitoring\" rel=\"noopener noreferrer\" target=\"_blank\">Queue workers</a> (Sidekiq, BullMQ, Celery), webhook handlers, and on-demand tasks alert on explicit failure or a start that never finishes: no fake schedule, no false alarms during quiet periods.</li><li><strong>Mid-run progress</strong> via log pings: attach rows processed or duration without changing the run&#39;s status.</li><li><strong>Every notification channel on the Free plan</strong>: email, Slack, Discord, Telegram, Microsoft Teams, PagerDuty, webhooks, and browser push, and unlimited team seats on every plan.</li><li><strong>Usage-based pricing</strong>: you pay for pings, not for the number of monitors you created. Fifty low-frequency jobs cost nothing; the bill tracks actual activity.</li><li><strong>Time to first signal: about a minute</strong>, create a monitor, paste the ping URL into your job, done.</li></ul>\n<p><a href=\"https://drumbeats.io/register\" rel=\"noopener noreferrer\" target=\"_blank\">Start free with 50 monitors</a>, no credit card, and the first monitor takes about 60 seconds.</p>\n<hr />\n<h2 id=\"can-you-use-both-often-yes\">Can you use both? (Often, yes)</h2>\n<p>Plenty of teams run an APM for their request-serving services <em>and</em> a heartbeat monitor for their cron, queue, and async work, because the two answer different questions at very different price points. The APM owns &quot;why is checkout slow&quot;; the job monitor owns &quot;did the invoice batch run last night.&quot; Neither does the other&#39;s job well, and together they cover the full surface without paying tracing prices to confirm the backups ran.</p>\n<p>If you&#39;re still mapping the broader tool landscape, our <a href=\"https://drumbeats.io/blog/best-cron-job-monitoring-tools-2026\" rel=\"noopener noreferrer\" target=\"_blank\">roundup of the best cron job monitoring tools in 2026</a> covers ten options across both categories, including where Datadog and Sentry land when scored purely as job monitors.</p>\n<hr />\n<h2 id=\"the-bottom-line\">The bottom line</h2>\n<p>Match the tool to the question. If the question is <em>why</em>, you need APM: Datadog, New Relic, and Sentry are excellent, and nothing lighter will substitute. If the question is <em>whether</em> (did the job run, on time, successfully), a heartbeat-style job monitor answers it in one curl line, at a price between free and the cost of a couple of coffees.</p>\n<p>Most teams searching &quot;APM for background jobs&quot; are asking <em>whether</em>. <a href=\"https://drumbeats.io/register\" rel=\"noopener noreferrer\" target=\"_blank\">Set up your first monitor free</a>: 50 monitors, 200,000 pings a month, every notification channel, no credit card.</p>",
      "image": "https://drumbeats.io/blog/og/background-job-monitoring-vs-apm.png?v=323457d4",
      "date_published": "2026-06-13T10:00:00.000Z",
      "date_modified": "2026-10-29T10:00:00.000Z",
      "tags": [
        "background jobs",
        "async workers",
        "APM",
        "heartbeat monitoring",
        "comparison"
      ]
    },
    {
      "id": "https://drumbeats.io/blog/drumbeats-vs-hyperping",
      "url": "https://drumbeats.io/blog/drumbeats-vs-hyperping",
      "title": "Drumbeats vs Hyperping: An Honest 2026 Comparison",
      "summary": "Hyperping bundles uptime, on-call scheduling, and status pages into one flat rate from $24/month. Drumbeats charges by activity, gives you 50 free monitors, and adds event-driven job monitoring Hyperping doesn't have. We break down the real pricing math, where each tool wins, and who should pick which, including where Hyperping is genuinely the better call.",
      "content_html": "<p>Hyperping and Drumbeats both watch the parts of your stack that fail quietly: the cron jobs, the background workers, the endpoints nobody is staring at. But they come at the problem from different directions. Hyperping is a mature, EU-hosted, flat-rate platform that bundles uptime monitoring, on-call scheduling, and status pages into one bill. Drumbeats is a usage-based tool built around the full spectrum of background work, with a generous free tier and event-driven monitoring as a first-class mode.</p>\n<p>We build Drumbeats, so we&#39;re biased, and this post says so upfront. It also says, plainly, where Hyperping is the better choice, because in several areas it genuinely is. Developers can smell a sales page disguised as a comparison. We&#39;d rather give you the honest version and let you pick the right tool.</p>\n<hr />\n<h2 id=\"tldr-drumbeats-vs-hyperping\">TL;DR: Drumbeats vs Hyperping</h2>\n<ul><li><strong>Choose Drumbeats if</strong> you run a mix of cron, heartbeat, event-driven (queue worker), and uptime work, want usage-based pricing that bills for activity instead of per monitor, and want a free tier you can actually ship on (50 monitors).</li><li><strong>Choose Hyperping if</strong> you need on-call scheduling and escalation, SMS or phone-call alerts, extensive multi-region uptime coverage (19+ locations), or broad protocol coverage (TCP, DNS, SSL, keyword, browser): all bundled into one predictable flat rate from $24/month.</li><li><strong>Bottom line:</strong> Drumbeats wins on price for mixed, low-to-moderate-frequency workloads and on event-driven coverage; Hyperping wins on incident response (on-call, SMS, phone) and breadth of uptime checks. Pick by which of those two halves your team lives in.</li></ul>\n<hr />\n<h2 id=\"at-a-glance\">At a glance</h2>\n<div class=\"blog-table-wrap\"><table><thead><tr><th>Criterion</th><th>Drumbeats</th><th>Hyperping</th></tr></thead><tbody><tr><td>Free tier</td><td>50 monitors, 200K Beats/month</td><td>20 monitors, 5-min checks</td></tr><tr><td>Pricing model</td><td>Usage-based (Beats per month)</td><td>Flat rate (per monitor, per tier)</td></tr><tr><td>Entry paid plan</td><td>Pro $20/mo (unlimited monitors, 1M Beats)</td><td>Essentials $24/mo (50 monitors)</td></tr><tr><td>Event-driven / queue-worker jobs</td><td>Yes, first-class mode</td><td>No</td></tr><tr><td>Cron + heartbeat monitoring</td><td>Yes</td><td>Yes</td></tr><tr><td>Lifecycle pings (start/success/failure/log)</td><td>Yes</td><td>Start + completion ping</td></tr><tr><td>On-call scheduling &amp; escalation</td><td>No</td><td>Yes (from $24/mo)</td></tr><tr><td>SMS / phone-call alerts</td><td>No</td><td>Yes (SMS Essentials+, phone Pro+)</td></tr><tr><td>Uptime monitor types</td><td>HTTP/HTTPS</td><td>HTTP, TCP/port, DNS, SSL, keyword, browser</td></tr><tr><td>Multi-region checks</td><td>Beta (Europe + US East, 2 locations)</td><td>Yes (19 regions)</td></tr><tr><td>Min uptime check interval</td><td>1 min (30s paid for pings)</td><td>30 sec (Essentials+), 20 sec (Business)</td></tr><tr><td>Status pages</td><td>Included, all plans</td><td>Included, all plans</td></tr><tr><td>Custom domain (CNAME) status page</td><td>Yes (Pro+)</td><td>Yes (Essentials+)</td></tr><tr><td>Team seats</td><td>Unlimited, every plan</td><td>2 (Essentials), 5 (Pro), 15 (Business) + $12/seat</td></tr><tr><td>Setup</td><td>One curl line, no SDK</td><td>One ping URL, no SDK</td></tr><tr><td>Best for</td><td>Mixed background workloads, fair pricing</td><td>Bundled monitoring + on-call + status pages</td></tr></tbody></table></div>\n<p><em>Figures as of June 2026, from each product&#39;s live pricing and docs. Hyperping prices reflect annual billing. Verify before purchase.</em></p>\n<hr />\n<h2 id=\"why-people-compare-drumbeats-and-hyperping\">Why people compare Drumbeats and Hyperping</h2>\n<p>These two tools come up in the same shortlist for a specific reason: both promise to cover scheduled jobs <em>and</em> uptime <em>and</em> status pages without forcing you to buy three separate products. That&#39;s the shared promise. The difference is in what &quot;covered&quot; means and how you pay for it.</p>\n<p>People usually arrive at this comparison from one of two directions. Some are on Hyperping (or pricing it out) and notice that a flat per-monitor rate gets expensive once they have a lot of low-frequency jobs: a hundred nightly backups and hourly syncs shouldn&#39;t cost the same as a hundred 30-second uptime checks, but on a per-monitor plan, they do. Others are evaluating Drumbeats and want to know what they&#39;d give up (on-call, SMS, global probes) by choosing the usage-based, younger tool. This post answers both honestly.</p>\n<hr />\n<h2 id=\"how-we-compared-these\">How we compared these</h2>\n<p>We evaluated both tools against the criteria that actually decide a monitoring purchase: pricing model, lifecycle depth, monitor-type coverage, alerting and incident response, status pages, and team/seat economics.</p>\n<ul><li><strong>Drumbeats</strong> figures come from our own product: the tier configuration, the Beats billing model, the monitor types, and the alert channels we ship today. We&#39;re describing what&#39;s actually built, not a roadmap.</li><li><strong>Hyperping</strong> figures come from Hyperping&#39;s own live pricing page, features pages, and public documentation as of June 2026, including their on-call, datacenter-regions, healthchecks, and integrations docs. Hyperping&#39;s listed prices are annual-billing prices.</li><li><strong>Disclosure:</strong> we make Drumbeats. We have a stake in one of these tools. We&#39;ve tried to keep every comparison traceable to a published source, and we&#39;ve given Hyperping a full section on where it wins, because a comparison that only flatters the author isn&#39;t worth your time.</li></ul>\n<p>All product names are trademarks of their respective owners. Drumbeats is not affiliated with or endorsed by Hyperping. Pricing and features change; re-check both vendors&#39; live pages before you commit.</p>\n<hr />\n<h2 id=\"pricing-flat-rate-bundle-vs-usage-based-beats\">Pricing: flat-rate bundle vs usage-based Beats</h2>\n<p>This is the section to read closely, because the two pricing models behave very differently depending on your job mix.</p>\n<p><strong>Hyperping</strong> charges a flat rate per tier, with a monitor cap on each. The published plans (annual billing) are:</p>\n<div class=\"blog-table-wrap\"><table><thead><tr><th>Plan</th><th>Price/mo</th><th>Monitors</th><th>Check interval</th><th>Seats</th><th>On-call</th><th>Phone calls</th></tr></thead><tbody><tr><td>Free</td><td>$0</td><td>20</td><td>5 min</td><td>1</td><td>No</td><td>No</td></tr><tr><td>Essentials</td><td>$24</td><td>50</td><td>30 sec</td><td>2</td><td>Yes</td><td>No</td></tr><tr><td>Pro</td><td>$74</td><td>100</td><td>30 sec</td><td>5</td><td>Yes</td><td>Yes</td></tr><tr><td>Business</td><td>$249</td><td>1,000</td><td>20 sec</td><td>15 (+$12/seat)</td><td>Yes</td><td>Yes</td></tr></tbody></table></div>\n<p>The appeal is predictability: within a tier, the bill doesn&#39;t move no matter how often each monitor runs. The catch is that the cap is on monitor <em>count</em>, so once you cross 50 monitors you&#39;re paying $74/month whether those monitors run every 30 seconds or once a day.</p>\n<p><strong>Drumbeats</strong> charges by Beats: one ping equals one Beat (plus payload overhead). Monitors are free on every plan; you pay for actual activity.</p>\n<div class=\"blog-table-wrap\"><table><thead><tr><th>Plan</th><th>Price/mo</th><th>Monitors</th><th>Beats/month</th></tr></thead><tbody><tr><td>Free</td><td>$0</td><td>50</td><td>200,000</td></tr><tr><td>Pro</td><td>$20</td><td>Unlimited</td><td>1,000,000</td></tr><tr><td>Business</td><td>$49</td><td>Unlimited</td><td>3,000,000</td></tr></tbody></table></div>\n<p>A nightly backup that pings once a day barely registers. A per-minute health check uses more, because it genuinely produces more monitoring work. You never pay for a monitor that just sits there.</p>\n<h3 id=\"the-worked-example-100-monitors-hourly\">The worked example: 100 monitors, hourly</h3>\n<p>Take a realistic team setup: 100 background jobs, each running hourly, each sending a single success ping. Here&#39;s the math on both tools.</p>\n<p><strong>Drumbeats:</strong></p>\n<div class=\"docs-code\" data-codeblock data-lang=\"plaintext\" data-title=\"\" data-code=\"MTAwIG1vbml0b3JzIHggMSBwaW5nIHggMjQgaG91cnMgeCAzMCBkYXlzID0gNzIsMDAwIEJlYXRzL21vbnRo\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span>100 monitors x 1 ping x 24 hours x 30 days = 72,000 Beats/month</span></span></code></pre></div></div>\n<p>72,000 Beats is well within Pro&#39;s 1,000,000 allowance. But 100 monitors exceeds the Free plan&#39;s 50-monitor limit, so this lands on <strong>Pro at $20/month</strong>: unlimited monitors, unlimited seats.</p>\n<p><strong>Hyperping:</strong></p>\n<p>100 monitors exceeds the Essentials cap of 50, so this requires the <strong>Pro plan at $74/month</strong> (annual billing), which is capped at 100 monitors and 5 seats.</p>\n<div class=\"blog-table-wrap\"><table><thead><tr><th></th><th>Drumbeats</th><th>Hyperping</th></tr></thead><tbody><tr><td>Plan</td><td>Pro</td><td>Pro</td></tr><tr><td>Monthly cost</td><td><strong>$20</strong></td><td><strong>$74</strong></td></tr><tr><td>Monitors</td><td>Unlimited</td><td>100 (at cap)</td></tr><tr><td>Seats</td><td>Unlimited</td><td>5</td></tr></tbody></table></div>\n<p>At this shape (many monitors, moderate frequency), Drumbeats is roughly <strong>3.7× cheaper</strong>, and you&#39;re not bumping the monitor or seat ceiling.</p>\n<h3 id=\"where-the-math-flips\">Where the math flips</h3>\n<p>Usage-based pricing isn&#39;t always cheaper, and we won&#39;t pretend it is. Push the frequency up and the gap closes, then reverses.</p>\n<p>Run those same 100 monitors <strong>every minute</strong> instead of hourly:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"plaintext\" data-title=\"\" data-code=\"MTAwIG1vbml0b3JzIHggMSBwaW5nIHggNjAgbWluIHggMjQgaG91cnMgeCAzMCBkYXlzID0gNCwzMjAsMDAwIEJlYXRzL21vbnRo\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span>100 monitors x 1 ping x 60 min x 24 hours x 30 days = 4,320,000 Beats/month</span></span></code></pre></div></div>\n<p>4.32M Beats exceeds Drumbeats Business (3M included), so you&#39;d be on Business ($49) plus Pay-As-You-Go overage on the extra ~1.32M Beats (about $26 at $20 per million), landing near <strong>$75/month</strong>. Hyperping Pro stays flat at <strong>$74/month</strong> for those same 100 monitors at 30-second checks, and gives you faster intervals and global probes in the bargain.</p>\n<p>The rule of thumb: <strong>the more your monitors look like high-frequency uptime checks, the better flat-rate fits; the more they look like a diverse pile of scheduled jobs running minutes-to-hours apart, the better usage-based fits.</strong> Most teams running real background work are in the second camp, which is why Drumbeats tends to win the everyday case, but if your portfolio is a dozen mission-critical endpoints hammered every 20-30 seconds, do the math the other way.</p>\n<hr />\n<h2 id=\"lifecycle-depth-what-does-the-job-ran-actually-tell-you\">Lifecycle depth: what does &quot;the job ran&quot; actually tell you?</h2>\n<p>Both tools let a job ping a URL to say &quot;I ran.&quot; The difference is how much signal you get back.</p>\n<p><strong>Hyperping&#39;s</strong> healthcheck model is built around the dead-man&#39;s-switch pattern: your job sends a completion ping (with an optional <code>/start</code> suffix for duration), and Hyperping alerts if the expected ping doesn&#39;t arrive within the grace period. Success is inferred from receiving the ping; failure is inferred from its absence.</p>\n<p><strong>Drumbeats</strong> treats the run as a lifecycle with distinct signals:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"bash\" data-title=\"\" data-code=\"IyAxLiBTdGFydCDigJQgYmVnaW5zIHRoZSBydW50aW1lIGNsb2NrCmN1cmwgaHR0cHM6Ly9hcGkuZHJ1bWJlYXRzLmlvL3YxL3BpbmcvWU9VUl9NT05JVE9SX0lEL3N0YXJ0Cgp5b3VyX2pvYl9jb21tYW5kCgojIDIuIFN1Y2Nlc3Mgb3IgRmFpbHVyZSDigJQgc3RvcHMgdGhlIGNsb2NrLCBzZXRzIHRoZSBvdXRjb21lIGV4cGxpY2l0bHkKY3VybCBodHRwczovL2FwaS5kcnVtYmVhdHMuaW8vdjEvcGluZy9ZT1VSX01PTklUT1JfSUQvc3VjY2VzcwojIC4uLm9yIG9uIGVycm9yOgpjdXJsIGh0dHBzOi8vYXBpLmRydW1iZWF0cy5pby92MS9waW5nL1lPVVJfTU9OSVRPUl9JRC9mYWlsdXJlCgojIDMuIExvZyDigJQgYXR0YWNoIG1pZC1ydW4gcHJvZ3Jlc3Mgb3IgcmVzdWx0cywgbm8gc3RhdHVzIGNoYW5nZQpjdXJsIC1YIFBPU1QgaHR0cHM6Ly9hcGkuZHJ1bWJlYXRzLmlvL3YxL3BpbmcvWU9VUl9NT05JVE9SX0lEL2xvZyBcCiAgLWQgJ3sicm93c19wcm9jZXNzZWQiOiAxNDgyMywgImR1cmF0aW9uX21zIjogNDUyMX0n\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6A737D\"># 1. Start — begins the runtime clock</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">curl</span><span style=\"color:#032F62\"> https://api.drumbeats.io/v1/ping/YOUR_MONITOR_ID/start</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">your_job_command</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#6A737D\"># 2. Success or Failure — stops the clock, sets the outcome explicitly</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">curl</span><span style=\"color:#032F62\"> https://api.drumbeats.io/v1/ping/YOUR_MONITOR_ID/success</span></span>\n<span class=\"line\"><span style=\"color:#6A737D\"># ...or on error:</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">curl</span><span style=\"color:#032F62\"> https://api.drumbeats.io/v1/ping/YOUR_MONITOR_ID/failure</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#6A737D\"># 3. Log — attach mid-run progress or results, no status change</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">curl</span><span style=\"color:#005CC5\"> -X</span><span style=\"color:#032F62\"> POST</span><span style=\"color:#032F62\"> https://api.drumbeats.io/v1/ping/YOUR_MONITOR_ID/log</span><span style=\"color:#005CC5\"> \\</span></span>\n<span class=\"line\"><span style=\"color:#005CC5\">  -d</span><span style=\"color:#032F62\"> '{\"rows_processed\": 14823, \"duration_ms\": 4521}'</span></span></code></pre></div></div>\n<p>This catches failure modes a single completion ping can&#39;t see: a job that explicitly reports failure (instead of just going silent), a job that ran <em>too fast</em> (an early-exit bug that still pinged success), and a job that started and hung. Drumbeats has dedicated <code>DURATION_HIGH</code> and <code>DURATION_LOW</code> incident types for exactly that: it can tell you a job finished suspiciously quickly, which a presence/absence model cannot.</p>\n<p>For straightforward &quot;did my nightly backup run?&quot; monitoring, both tools do the job. For instrumented pipelines where you want to know <em>how</em> a run went, not just <em>whether</em> it pinged, Drumbeats&#39; richer lifecycle is the difference.</p>\n<hr />\n<h2 id=\"event-driven-jobs-the-gap-hyperping-doesnt-fill\">Event-driven jobs: the gap Hyperping doesn&#39;t fill</h2>\n<p>This is the clearest functional difference between the two.</p>\n<p>Hyperping&#39;s monitoring is built around schedules and outbound checks: cron-style healthchecks, HTTP/port/DNS uptime, browser checks. All of those assume something happens on a known cadence or at a reachable URL.</p>\n<p>A queue worker doesn&#39;t fit that shape. A Sidekiq, BullMQ, or Celery worker processes jobs whenever messages arrive: there&#39;s no schedule to miss. A webhook handler fires when an event lands. For these, a fixed-interval heartbeat is the wrong primitive: it&#39;ll either alert falsely during quiet periods or stay silent through a real outage.</p>\n<p>Drumbeats has a dedicated event-driven monitor type (<code>JOB_BASIC</code>) with <strong>no expected schedule at all</strong>. It alerts only when a run explicitly reports failure, or when a run starts and never reports completion within its timeout. Combined with flexible run IDs (any string up to 255 characters, so <code>order-12345</code> or <code>import-2026-06-02</code> works directly without a UUID mapping table), it tracks concurrent executions of the same worker cleanly.</p>\n<p>If your background work is all cron and uptime, this won&#39;t matter to you. If you run queue workers or webhook handlers alongside your scheduled jobs, Hyperping has no equivalent, and you&#39;d end up bolting a schedule onto something that doesn&#39;t have one.</p>\n<hr />\n<h2 id=\"status-pages\">Status pages</h2>\n<p>Both tools include public status pages on every plan, including free: that&#39;s genuine parity on the basics. Both support component-level status, grouped services, incident updates, and maintenance windows.</p>\n<p>Where they diverge is the polish and reach of the page:</p>\n<ul><li><strong>Custom domain (CNAME).</strong> Hyperping lets you serve the status page on your own domain (e.g. <code>status.yourcompany.com</code>) from the Essentials plan. Drumbeats offers full CNAME custom domains on Pro and Business.</li><li><strong>Private / SSO-gated pages.</strong> Hyperping offers password- or SSO-protected status pages on Business, useful for internal-only status. Drumbeats&#39; pages are public.</li><li><strong>Subscriber notifications.</strong> Hyperping lets page visitors subscribe for email/Slack/SMS incident updates. Drumbeats offers visitor email subscriptions on advanced status pages: 100 subscribers on Pro, 1,000 on Business.</li><li><strong>White-label.</strong> Hyperping removes its branding on Business; Drumbeats removes its branding on paid plans via the custom domain.</li></ul>\n<p>If your status page is a customer-facing trust asset that needs to live on your own domain with subscribers, Hyperping&#39;s is more complete. If you need a clean internal-or-light-external status page included at no extra cost, both deliver, and Drumbeats includes it on the Free tier.</p>\n<p>One note specific to Drumbeats: status pages apply to cron and heartbeat monitors; event-driven monitors are excluded from status pages.</p>\n<hr />\n<h2 id=\"alerting-and-incident-response\">Alerting and incident response</h2>\n<p>Core notification channels are at parity: both send to <strong>Email, Slack, Discord, Telegram, and webhooks</strong>. From there they split.</p>\n<p><strong>Hyperping</strong> adds the heavy incident-response machinery: <strong>SMS</strong> (via Twilio) and <strong>phone-call</strong> alerts, <strong>OpsGenie</strong>, and Google Chat, plus the <strong>on-call scheduling and escalation</strong> layer that routes those alerts to whoever&#39;s currently on rotation, with tiered escalation if the first responder doesn&#39;t acknowledge. That&#39;s a real operational capability, included from $24/month.</p>\n<p><strong>Drumbeats</strong> covers the five shared channels plus <strong>browser push</strong>, <strong>Microsoft Teams</strong>, and <strong>PagerDuty</strong> (eight channels on every plan, including Free), and adds reliability features on the incident side: surge protection that pauses paging after a configurable run of alerts to prevent alert-fatigue storms, and incident coalescing so a three-day outage collapses to one incident instead of 288 emails. What Drumbeats does <strong>not</strong> have: on-call scheduling, escalation policies, SMS, or phone calls. Alerts land in your channels and you acknowledge manually.</p>\n<p>The honest summary: if a failed job needs a human paged and escalated within minutes, Hyperping is built for that and Drumbeats isn&#39;t yet. If your background work fails to a queue, auto-recovers, or just needs a Slack message that someone picks up, Drumbeats&#39; routing is enough and the surge protection keeps it from drowning you.</p>\n<hr />\n<h2 id=\"where-hyperping-genuinely-wins\">Where Hyperping genuinely wins</h2>\n<p>We meant the disclosure. Here&#39;s where Hyperping is the better tool, plainly:</p>\n<ul><li><strong>On-call scheduling and escalation.</strong> Built in from the $24/month Essentials plan: rotations, timezones, concurrent shifts, and tiered escalation policies. This is Hyperping&#39;s standout differentiator, and Drumbeats has no equivalent today.</li><li><strong>SMS and phone-call alerts.</strong> Real paging channels for when Slack isn&#39;t enough. SMS from Essentials, phone calls from Pro. Drumbeats has neither.</li><li><strong>Breadth of monitor types.</strong> TCP/port, DNS (A/AAAA/CNAME/MX/TXT), SSL certificate expiry, keyword/content checks, and full Playwright browser checks, alongside HTTP. Drumbeats does HTTP uptime only today; the rest are roadmap or unavailable.</li><li><strong>Multi-region monitoring.</strong> 19 global locations with multi-region confirmation before alerting, which cuts false positives from a single bad vantage point. Drumbeats checks from Europe by default, with a second location (US East) available in beta, a real step toward fewer false positives, but nowhere near Hyperping&#39;s 19-region network.</li><li><strong>Faster check intervals.</strong> Down to 20-30 seconds on paid plans, vs Drumbeats&#39; 1-minute uptime minimum.</li><li><strong>Status-page reach.</strong> Custom CNAME domains, private/SSO-gated pages, visitor subscriptions, and white-labelling.</li><li><strong>Enterprise controls.</strong> SAML SSO, IP allowlisting, audit logs, and a white-label option on Business. Drumbeats doesn&#39;t offer these.</li><li><strong>Track record and EU hosting.</strong> Hyperping is an established, EU-hosted (Frankfurt) product with a published security and GDPR posture. Drumbeats is younger and pre-revenue.</li></ul>\n<p>If any of those is a hard requirement, Hyperping is the right call, and you should pick it without second-guessing.</p>\n<hr />\n<h2 id=\"where-drumbeats-wins\">Where Drumbeats wins</h2>\n<ul><li><strong>Pricing for mixed, low-to-moderate-frequency workloads.</strong> 100 hourly monitors costs $20/month on Drumbeats vs $74/month on Hyperping Pro. The Beats model is materially cheaper for any workload that isn&#39;t running at 20-30-second intervals.</li><li><strong>Event-driven / queue-worker monitoring.</strong> A first-class <code>JOB_BASIC</code> mode for Sidekiq, BullMQ, Celery, and webhook handlers, with no schedule to fake. Hyperping has no equivalent.</li><li><strong>Richer ping lifecycle.</strong> Explicit start, success, failure, and log signals, plus duration alerts (too slow <em>and</em> too fast). Hyperping&#39;s healthcheck is presence/absence.</li><li><strong>A free tier you can ship on.</strong> 50 monitors free vs Hyperping&#39;s 20, with 200,000 Beats/month and all eight notification channels included: Email, Slack, Telegram, Discord, webhooks, browser push, Microsoft Teams, and PagerDuty.</li><li><strong>Unlimited team seats on every plan, including Free.</strong> No per-seat fees, ever. Hyperping caps seats per tier (2/5/15) and charges $12/month per seat above the Business cap.</li><li><strong>Browser push alerts.</strong> No app install, no phone number, no SMS bill. Handy for solo developers and small teams.</li><li><strong>One curl line, no SDK.</strong> Any language that can make an HTTP request can talk to the <a href=\"https://drumbeats.io/docs/ping-api\" rel=\"noopener noreferrer\" target=\"_blank\">Ping API</a>.</li></ul>\n<hr />\n<h2 id=\"migrating-from-hyperping-to-drumbeats\">Migrating from Hyperping to Drumbeats</h2>\n<p>If you&#39;re moving cron/heartbeat monitoring across, the switch is a URL swap: both tools use HTTP pings with no SDK.</p>\n<p><strong>On Hyperping</strong>, your job pings the healthcheck endpoint:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"bash\" data-title=\"\" data-code=\"MCAyICogKiAqIC91c3IvbG9jYWwvYmluL2JhY2t1cC5zaCAmJiBjdXJsIC1mc1MgaHR0cHM6Ly9oYy5oeXBlcnBpbmcuaW8vWU9VUl9UT0tFTl9JRA==\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6F42C1\">0</span><span style=\"color:#005CC5\"> 2</span><span style=\"color:#005CC5\"> *</span><span style=\"color:#005CC5\"> *</span><span style=\"color:#005CC5\"> *</span><span style=\"color:#032F62\"> /usr/local/bin/backup.sh</span><span style=\"color:#24292E\"> &#x26;&#x26; </span><span style=\"color:#6F42C1\">curl</span><span style=\"color:#005CC5\"> -fsS</span><span style=\"color:#032F62\"> https://hc.hyperping.io/YOUR_TOKEN_ID</span></span></code></pre></div></div>\n<p><strong>On Drumbeats</strong>, swap that for the lifecycle pattern to get start/success/failure and duration tracking in one go:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"bash\" data-title=\"\" data-code=\"MCAyICogKiAqIGN1cmwgLWZzUyBodHRwczovL2FwaS5kcnVtYmVhdHMuaW8vdjEvcGluZy9ZT1VSX01PTklUT1JfSUQvc3RhcnQgXAogICYmIC91c3IvbG9jYWwvYmluL2JhY2t1cC5zaCBcCiAgJiYgY3VybCAtZnNTIGh0dHBzOi8vYXBpLmRydW1iZWF0cy5pby92MS9waW5nL1lPVVJfTU9OSVRPUl9JRC9zdWNjZXNzIFwKICB8fCBjdXJsIC1mc1MgaHR0cHM6Ly9hcGkuZHJ1bWJlYXRzLmlvL3YxL3BpbmcvWU9VUl9NT05JVE9SX0lEL2ZhaWx1cmU=\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6F42C1\">0</span><span style=\"color:#005CC5\"> 2</span><span style=\"color:#005CC5\"> *</span><span style=\"color:#005CC5\"> *</span><span style=\"color:#005CC5\"> *</span><span style=\"color:#032F62\"> curl</span><span style=\"color:#005CC5\"> -fsS</span><span style=\"color:#032F62\"> https://api.drumbeats.io/v1/ping/YOUR_MONITOR_ID/start</span><span style=\"color:#005CC5\"> \\</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  &#x26;&#x26; </span><span style=\"color:#6F42C1\">/usr/local/bin/backup.sh</span><span style=\"color:#005CC5\"> \\</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  &#x26;&#x26; </span><span style=\"color:#6F42C1\">curl</span><span style=\"color:#005CC5\"> -fsS</span><span style=\"color:#032F62\"> https://api.drumbeats.io/v1/ping/YOUR_MONITOR_ID/success</span><span style=\"color:#005CC5\"> \\</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  ||</span><span style=\"color:#6F42C1\"> curl</span><span style=\"color:#005CC5\"> -fsS</span><span style=\"color:#032F62\"> https://api.drumbeats.io/v1/ping/YOUR_MONITOR_ID/failure</span></span></code></pre></div></div>\n<p>Create the monitors first: either by hand in the dashboard, or from Claude, Cursor, or VS Code through the <a href=\"https://drumbeats.io/connect\" rel=\"noopener noreferrer\" target=\"_blank\">Drumbeats MCP server</a>: connect it once and ask it to create them. For queue workers you were never able to fit on Hyperping&#39;s schedule model, set them up as event-driven (<code>JOB_BASIC</code>) monitors instead of forcing a fake interval.</p>\n<p>Two things won&#39;t migrate, because Drumbeats doesn&#39;t have them: if you rely on Hyperping&#39;s on-call rotations, SMS/phone alerts, or its TCP/DNS/SSL/browser check types, those have no Drumbeats equivalent today: keep them on Hyperping or factor them into your decision before you switch.</p>\n<hr />\n<h2 id=\"who-should-use-which\">Who should use which</h2>\n<p><strong>Use Hyperping if:</strong></p>\n<ul><li>You need on-call scheduling and escalation bundled with your monitoring</li><li>SMS or phone-call paging is a must-have</li><li>You need TCP, DNS, SSL, keyword, or browser (Playwright) checks</li><li>Multi-region uptime monitoring and sub-30-second intervals matter</li><li>Your status page needs a custom domain, private access, or subscriber notifications</li><li>You need SAML SSO, audit logs, or white-labelling</li><li>You&#39;d rather pay a known flat rate than reason about usage</li></ul>\n<p><strong>Use Drumbeats if:</strong></p>\n<ul><li>You run event-driven work (queue workers, webhook handlers) alongside cron jobs</li><li>Your job portfolio is uneven (many low-frequency jobs, a few high-frequency ones), and usage-based pricing fits it</li><li>You want a free tier that covers 50 monitors, not 20</li><li>You want unlimited team seats with no per-seat fees</li><li>You want explicit start/success/failure/log lifecycle signals and duration alerts</li><li>You&#39;d rather pay for runs than for the number of objects you created</li></ul>\n<p>For teams running modern background work (a mix of cron, queue workers, and event-driven processes on a budget that should track real usage), Drumbeats covers the full spectrum on one fair bill. For teams whose priority is incident response (get the right human paged, fast, with global uptime coverage and a polished customer-facing status page), Hyperping is the stronger, more complete platform today.</p>\n<hr />\n<h2 id=\"try-drumbeats-free\">Try Drumbeats free</h2>\n<p>50 monitors. 200,000 Beats/month. All eight notification channels: Email, Slack, Telegram, Discord, webhooks, browser push, Microsoft Teams, and PagerDuty. Unlimited team seats. No credit card.</p>\n<p>Set up your first monitor in 60 seconds, an HTTP ping is all it takes: <a href=\"https://drumbeats.io/register\" rel=\"noopener noreferrer\" target=\"_blank\">drumbeats.io/register</a></p>\n<p>If you&#39;re pricing out Hyperping right now, run your own numbers first: count your monitors, estimate how often each one actually runs, and map it to Beats. For most workloads under 50 monitors at hourly-or-less frequency, Drumbeats Free covers it entirely. And if you need on-call scheduling or SMS today, Hyperping is the honest answer. We&#39;d rather tell you that than sell you the wrong tool.</p>\n<p><a href=\"https://drumbeats.io/register\" rel=\"noopener noreferrer\" target=\"_blank\">Start free</a>: 50 monitors, no credit card, setup in 60 seconds.</p>",
      "image": "https://drumbeats.io/blog/og/drumbeats-vs-hyperping.png?v=a7f83754",
      "date_published": "2026-06-02T10:00:00.000Z",
      "date_modified": "2026-10-29T10:00:00.000Z",
      "tags": [
        "cron job monitoring",
        "comparison",
        "pricing",
        "hyperping alternative",
        "uptime monitoring"
      ]
    },
    {
      "id": "https://drumbeats.io/blog/best-cron-job-monitoring-tools-2026",
      "url": "https://drumbeats.io/blog/best-cron-job-monitoring-tools-2026",
      "title": "The 10 Best Cron Job Monitoring Tools in 2026",
      "summary": "An honest, evaluated list of the cron job monitoring tools worth shortlisting in 2026: covering pricing, free tiers, on-call, status pages, K8s coverage, and what each one actually does well.",
      "content_html": "<p>Cron jobs are the quietest part of your infrastructure. They run at 2 AM, they finish before anyone is awake, and when they don&#39;t run, nothing in your dashboards changes color. The bill goes uncollected. The backup is missing. The data export is a day stale. By the time a human notices, it&#39;s already a customer support ticket.</p>\n<p>A good monitoring tool turns that silence into a signal. This guide walks through the ten cron job monitoring tools worth shortlisting in 2026: what each one actually does well, what it costs, and which kind of team should pick which.</p>\n<p>We&#39;ve kept it factual. Where a tool is better than the alternatives, we say so. Where Drumbeats (the tool we build) is the wrong fit, we say that too.</p>\n<hr />\n<h2 id=\"what-changed-in-2026\">What changed in 2026</h2>\n<p>Three shifts make this list look different from last year.</p>\n<p><strong>Background work is no longer &quot;just cron&quot;.</strong> Most teams now run a mix: a few classic crons in <code>crontab</code>, a Kubernetes <code>CronJob</code> or two, queue workers in Sidekiq / Celery / BullMQ, webhook handlers, and one-off scripts triggered from CI. A monitoring tool that only handles cron schedules covers a shrinking percentage of the actual scheduled work in production.</p>\n<p><strong>Pricing models are diverging.</strong> Three patterns now dominate: flat-rate (Hyperping, Better Stack Responder), per-monitor (Cronitor, Healthchecks.io tiers, Uptime Robot), and usage-based (Drumbeats, Sentry Crons). The model matters more than the headline price: a team with 80 low-frequency jobs and a team with 10 high-frequency jobs will find different tools cheap.</p>\n<p><strong>&quot;Did it run?&quot; isn&#39;t enough anymore.</strong> A heartbeat that fires when a script exits zero will happily celebrate a job that returned an empty result set, ran past its deadline, or finished six hours late. Modern tools track the lifecycle (start, success/failure, duration, run ID) and alert on the meaningful failure modes, not just the absence of the final ping.</p>\n<hr />\n<h2 id=\"how-we-evaluated\">How we evaluated</h2>\n<p>Eight criteria, in roughly the order they matter for a small-to-mid team running production background work.</p>\n<ol><li><strong>Free tier you can actually ship on</strong>: not a 14-day trial. If the tool drops to nothing after evaluation, it&#39;s not free.</li><li><strong>Pricing predictability</strong>: flat-rate, per-monitor, and usage-based each have a regime where they win. Forecast at 50 jobs and at 500 before you commit.</li><li><strong>Lifecycle coverage</strong>: start + success/failure + log, not just a single ping. Duration alerts. Hung-job detection.</li><li><strong>Integrations and routing</strong>: Slack, Discord, PagerDuty, Telegram, webhook, email, browser push, SMS. Per-monitor channel routing matters more than total channel count.</li><li><strong>Status pages</strong>: included on every plan, or sold as a separate $20-$29/mo product?</li><li><strong>Multi-modal coverage</strong>: cron + heartbeat + event-driven + uptime in one budget, or four separate tools?</li><li><strong>Kubernetes / container awareness</strong>: <code>CronJob</code> metrics, eBPF, or just HTTP pings?</li><li><strong>Setup friction</strong>: minutes from signup to first incident caught.</li></ol>\n<hr />\n<h2 id=\"the-10-best-cron-job-monitoring-tools-in-2026\">The 10 best cron job monitoring tools in 2026</h2>\n<h3 id=\"1-hyperping-the-predictable-all-in-one\">1. Hyperping: The predictable all-in-one</h3>\n<p>Hyperping is the best default pick for a SaaS team that wants cron monitoring, uptime checks, <strong>on-call scheduling</strong>, and status pages bundled into one predictable bill. The entry plan is roughly <strong>$24/month for 50 monitors with 30-second checks</strong>, on-call rotations, and hosted status pages included: no per-user fees, no per-monitor escalations.</p>\n<p>Two things make Hyperping the #1 pick for most teams. First, the on-call piece is built in. Most cron monitors stop at &quot;we sent the alert&quot;; Hyperping handles the rotation, escalation, and acknowledgement loop that turns an alert into a response. Second, the pricing curve is flat. A team that grows from 30 to 80 monitors doesn&#39;t get a surprise invoice.</p>\n<p><strong>Pick it if:</strong> you want one bill for monitoring + on-call + status pages, and you&#39;d rather pay a known flat rate than do the math on usage. <strong>Skip it if:</strong> your job mix is heavily skewed toward dozens of low-frequency jobs you want covered for free, or you want native event-driven (queue worker) monitoring as a first-class mode.</p>\n<h3 id=\"2-drumbeats-the-fair-pricing-pick-for-mixed-workloads\">2. Drumbeats: The fair-pricing pick for mixed workloads</h3>\n<p>Drumbeats charges by <strong>Beats</strong> (one ping equals one Beat) instead of charging per monitor. The result is that a nightly backup that fires once a day costs almost nothing, regardless of how many of them you have. Free covers <strong>50 monitors and 200,000 Beats/month</strong>, which is enough room for <a href=\"https://drumbeats.io/cron-job-monitoring\" rel=\"noopener noreferrer\" target=\"_blank\">50 daily crons to fit at under 1% of the budget</a>, or even 50 every-15-minute jobs (~144K Beats) to stay free.</p>\n<p>The other thing Drumbeats does that the per-monitor tools generally don&#39;t: it treats <strong>cron, heartbeat, event-driven (queue workers, webhooks), and uptime</strong> as four modes inside the same plan, sharing the same Beats budget. The <a href=\"https://drumbeats.io/heartbeat-monitoring\" rel=\"noopener noreferrer\" target=\"_blank\">heartbeat monitoring mode</a> doubles as a dead-man switch for interval-based workers and daemons: anything that should ping every N minutes, no cron expression required. Pair a cron monitor with an uptime monitor on the page that consumes its output, and you&#39;ve covered the full pipeline on a single bill.</p>\n<p>Where it&#39;s honestly weaker than the incumbents: there&#39;s no built-in on-call rotation yet, no SMS channel, and Drumbeats is younger than Hyperping or Cronitor, fewer years of operational track record. If those things are on your must-have list, Hyperping or Cronitor are the right call.</p>\n<p>What Drumbeats does ship that the older tools mostly don&#39;t:</p>\n<ul><li><strong>No SDK, no agent</strong>. Any language that can make an HTTP request can talk to the <a href=\"https://drumbeats.io/docs/ping-api\" rel=\"noopener noreferrer\" target=\"_blank\">Ping API</a>.</li><li><strong>Status pages free, on every plan</strong>, including the Free tier (with custom vanity URL on paid plans).</li><li><strong>Unlimited team seats</strong> on every plan, including Free.</li><li><strong>Browser push</strong> alerts: no app to install, no SMS bill.</li><li><strong>Backfill coalescing</strong>: three days of outage = one incident, not 288 emails.</li></ul>\n<p>Drumbeats also has an official MCP server: <a href=\"https://drumbeats.io/connect\" rel=\"noopener noreferrer\" target=\"_blank\">connect it</a> to Claude, Cursor, or VS Code over OAuth and create monitors in plain language.</p>\n<p><strong>Pick it if:</strong> you want a generous free tier, you run a mix of cron and event-driven work, or you&#39;d rather pay for runs than for objects. <strong>Skip it if:</strong> on-call scheduling or SMS is a must-have right now, or you&#39;re standardizing on a unified APM like Datadog.</p>\n<h3 id=\"3-cronitor-the-category-specialist\">3. Cronitor: The category specialist</h3>\n<p>Cronitor is the most mature dedicated cron monitor on the market. The &quot;task timeline&quot; view, visualizing how each job&#39;s duration drifts over weeks, is genuinely the best in class for diagnosing pipelines that are slowly degrading rather than outright failing. It also handles Kubernetes well via a Helm-installed agent and offers per-language SDKs.</p>\n<p>Pricing is <strong>$2 per monitor + $5 per user per month</strong> on the Business plan. The 14-day free trial is followed by a 5-monitor Hacker tier, so it&#39;s not a permanent free option for teams of any size. At 100 monitors and 5 users, you&#39;re at $225/month before add-ons.</p>\n<p><strong>Pick it if:</strong> cron monitoring is your single most important reliability concern, you have a budget that scales linearly with that workload, and you want the most mature timeline visualizations on the market. <strong>Skip it if:</strong> the seat fees stack up on a larger team, or you want event-driven and uptime monitoring under the same roof.</p>\n<h3 id=\"4-better-stack-logs-and-incidents-stitched-together\">4. Better Stack: Logs and incidents stitched together</h3>\n<p>Better Stack (formerly Better Uptime) pairs heartbeat monitoring with a ClickHouse-powered logging stack, plus incident management on top. When a cron fails, you can pivot from the alert directly to the log lines that explain why, without rebuilding the link manually.</p>\n<p>The free plan covers 10 monitors and 10 heartbeats. The paid plan starts at roughly <strong>$29/month per Responder</strong> (annual billing) for uptime + incident management + on-call. Telemetry bundles, additional status pages, custom CSS, and white-labelling are sold as add-ons, which means the real bill depends on how much you stack.</p>\n<p><strong>Pick it if:</strong> you already debug with logs and want the heartbeat ↔ log pivot built in. Heavy log volume teams will get more value here than light ones. <strong>Skip it if:</strong> your budget needs to be predictable up front: the add-on model makes forecasting harder than flat-rate alternatives.</p>\n<h3 id=\"5-healthchecksio-the-open-source-standard\">5. Healthchecks.io: The open-source standard</h3>\n<p>Healthchecks.io is BSD-licensed, battle-tested, and <strong>self-hostable on a $5 VM</strong>. The hosted version offers 20 free checks (Hobbyist), $20/month for 100 checks (Business), and $80/month for 1,000 checks (Business Plus). It supports start/fail/log pings, run IDs, payload attachments up to 100 KB, and SMS alerts via Twilio.</p>\n<p>For teams in regulated industries (where monitoring metadata cannot leave the network), self-hosting Healthchecks.io is the most mature option in this list. Run it under systemd, point your jobs at your internal hostname, done.</p>\n<p><strong>Pick it if:</strong> data sovereignty is non-negotiable, or you want a hosted tool with a track record and a community. <strong>Skip it if:</strong> you want event-driven monitoring as a first-class mode (Healthchecks bolts it on rather than treating it natively), or want bundled status pages and uptime monitoring under one plan.</p>\n<h3 id=\"6-sentry-crons-for-teams-that-live-in-stack-traces\">6. Sentry Crons: For teams that live in stack traces</h3>\n<p>If your team already pays Sentry for exception tracking, Sentry Crons is a near-free upgrade. Check-ins link directly to the stack trace and Git commit of the failing run, which collapses the &quot;what failed? what changed?&quot; question into one click. The Team plan starts at roughly <strong>$26/month base</strong>, with usage on top.</p>\n<p><strong>Pick it if:</strong> Sentry is already in your stack and you want infrastructure failures to land in the same place as application exceptions. <strong>Skip it if:</strong> you don&#39;t already use Sentry: buying it just for crons is overkill.</p>\n<h3 id=\"7-uptimecom-enterprise-compliance-and-sla-reporting\">7. Uptime.com: Enterprise compliance and SLA reporting</h3>\n<p>Uptime.com leads on <strong>80+ global probe locations</strong> and audit-ready SLA reports that hold up under SOC2 / ISO 27001 review. It&#39;s the right pick when &quot;we caught the failure&quot; needs to be backed by a defensible report you can hand to a client, an auditor, or a procurement team.</p>\n<p><strong>Pick it if:</strong> you need formal SLA reporting and broad geographic coverage. <strong>Skip it if:</strong> you&#39;re under 100 jobs, no auditor is involved, and you&#39;d rather spend the budget on engineering velocity than compliance overhead.</p>\n<h3 id=\"8-metoro-kubernetes-native-ebpf-based\">8. Metoro: Kubernetes-native, eBPF-based</h3>\n<p>Metoro targets Kubernetes shops with eBPF telemetry: no sidecar, no SDK, kernel-level visibility into cluster behavior. It surfaces &quot;missed runs&quot; caused by cluster-level constraints (<code>concurrencyPolicy</code>, resource quotas, evictions) that an HTTP-ping tool simply can&#39;t see, because they happen before the job ever runs.</p>\n<p><strong>Pick it if:</strong> your entire scheduled workload runs as Kubernetes <code>CronJobs</code> and your failures usually come from the cluster, not the job code. <strong>Skip it if:</strong> your jobs are a mix of <code>crontab</code>, queue workers, and serverless: Metoro isn&#39;t built for that footprint.</p>\n<h3 id=\"9-datadog-the-unified-suite\">9. Datadog: The unified suite</h3>\n<p>If you&#39;re already standardized on Datadog, the native <code>kubernetes_state.cronjob.*</code> metrics give you cron visibility inside the same dashboard you already pay for. There&#39;s no separate tool to bolt on, and your runbook lives next to your APM.</p>\n<p>The honest tradeoff is cost. Datadog&#39;s modular, usage-based pricing scales fast in high-cardinality environments, and adding cron monitoring as a tenth line item on the bill is rarely the cheapest path to the same outcome. If you&#39;re weighing a full APM suite against a dedicated job monitor, our <a href=\"https://drumbeats.io/blog/background-job-monitoring-vs-apm\" rel=\"noopener noreferrer\" target=\"_blank\">background job monitoring vs APM</a> breakdown does the cost math on both paths.</p>\n<p><strong>Pick it if:</strong> Datadog is already your observability backbone and you want one fewer vendor. <strong>Skip it if:</strong> you&#39;re shopping for cron monitoring on its own: the cost-per-job is hard to justify.</p>\n<h3 id=\"10-uptime-robot-the-budget-friendly-entry-point\">10. Uptime Robot: The budget-friendly entry point</h3>\n<p>Uptime Robot is a strong &quot;set it and forget it&quot; choice for agencies and small projects: <strong>50 free monitors</strong> at 5-minute intervals, with a paid Solo plan around $7/month for 1-minute checks. Heartbeat support is included on paid tiers.</p>\n<p><strong>Pick it if:</strong> you mainly need &quot;is this URL up?&quot; and want heartbeat as a small extra. <strong>Skip it if:</strong> you need duration alerts, event-driven monitoring, or anything beyond basic ping coverage.</p>\n<hr />\n<h2 id=\"pricing-math-at-100-monitors\">Pricing math at 100 monitors</h2>\n<p>Most lists stop at headline pricing. The real cost shows up at scale. Here&#39;s what 100 cron jobs look like across the top picks, assuming a single heartbeat ping per run, hourly jobs, on a 5-person team.</p>\n<div class=\"blog-table-wrap\"><table><thead><tr><th>Tool</th><th>Setup</th><th>Monthly cost (100 jobs, 5 users)</th></tr></thead><tbody><tr><td><strong>Hyperping</strong></td><td>100 monitors, flat-rate plan</td><td>~$49/mo</td></tr><tr><td><strong>Drumbeats</strong></td><td>Pro (unlimited monitors, 1M Beats included; 100 jobs hourly = 72K Beats, fits)</td><td>$20/mo</td></tr><tr><td><strong>Cronitor</strong></td><td>Business: 100 × $2 + 5 × $5</td><td>$225/mo</td></tr><tr><td><strong>Better Stack</strong></td><td>100 heartbeats, Responder plan + monitor bundle</td><td>~$50-$80/mo, varies by bundle</td></tr><tr><td><strong>Healthchecks.io</strong></td><td>Business ($20/mo, 100 checks included)</td><td>$20/mo</td></tr><tr><td><strong>Sentry Crons</strong></td><td>Team plan + usage</td><td>~$26/mo + usage</td></tr><tr><td><strong>Uptime Robot</strong></td><td>Solo plan (50 monitors) × 2, or upgrade</td><td>~$15-$30/mo</td></tr><tr><td><strong>Uptime.com</strong></td><td>Essential or Premium tier</td><td>~$60-$100/mo</td></tr></tbody></table></div>\n<p>The cheapest tools at this scale (Healthchecks.io at $20, Drumbeats at $20, Uptime Robot at $15-$30) diverge significantly in what you get. Healthchecks.io is heartbeat-only with status badges (no full status pages). Uptime Robot is uptime-first with heartbeat bolted on. Drumbeats includes cron, heartbeat, event-driven, uptime monitoring, public status pages with custom vanity URLs, unlimited team seats, and browser push, on the same plan.</p>\n<hr />\n<h2 id=\"architectural-practices-that-matter-more-than-the-tool\">Architectural practices that matter more than the tool</h2>\n<p>The tool is the cheaper half of the problem. The other half is how you instrument the jobs.</p>\n<h3 id=\"the-three-ping-lifecycle\">The three-ping lifecycle</h3>\n<p>A single success ping is a false-positive trap. It can&#39;t distinguish &quot;finished successfully&quot; from &quot;exited zero after silently doing nothing&quot;. Production-grade instrumentation is:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"bash\" data-title=\"\" data-code=\"IyAxLiBTdGFydCBwaW5nIOKAlCBiZWdpbnMgdGhlIHJ1bnRpbWUgY2xvY2sKY3VybCBodHRwczovL2FwaS5kcnVtYmVhdHMuaW8vdjEvcGluZy88aWQ+L3N0YXJ0CgojIDIuIFRoZSBhY3R1YWwgam9iCnlvdXJfam9iX2NvbW1hbmQKCiMgMy4gRXhwbGljaXQgc3VjY2Vzcy9mYWlsdXJlIGJhc2VkIG9uIHRoZSByZXN1bHQKaWYgWyAkPyAtZXEgMCBdOyB0aGVuCiAgY3VybCBodHRwczovL2FwaS5kcnVtYmVhdHMuaW8vdjEvcGluZy88aWQ+CmVsc2UKICBjdXJsIGh0dHBzOi8vYXBpLmRydW1iZWF0cy5pby92MS9waW5nLzxpZD4vZmFpbHVyZQpmaQ==\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6A737D\"># 1. Start ping — begins the runtime clock</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">curl</span><span style=\"color:#032F62\"> https://api.drumbeats.io/v1/ping/</span><span style=\"color:#D73A49\">&#x3C;</span><span style=\"color:#032F62\">i</span><span style=\"color:#24292E\">d</span><span style=\"color:#D73A49\">></span><span style=\"color:#032F62\">/start</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#6A737D\"># 2. The actual job</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">your_job_command</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#6A737D\"># 3. Explicit success/failure based on the result</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">if</span><span style=\"color:#24292E\"> [ </span><span style=\"color:#005CC5\">$?</span><span style=\"color:#D73A49\"> -eq</span><span style=\"color:#005CC5\"> 0</span><span style=\"color:#24292E\"> ]; </span><span style=\"color:#D73A49\">then</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">  curl</span><span style=\"color:#032F62\"> https://api.drumbeats.io/v1/ping/</span><span style=\"color:#D73A49\">&#x3C;</span><span style=\"color:#032F62\">i</span><span style=\"color:#24292E\">d</span><span style=\"color:#D73A49\">></span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">else</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">  curl</span><span style=\"color:#032F62\"> https://api.drumbeats.io/v1/ping/</span><span style=\"color:#D73A49\">&#x3C;</span><span style=\"color:#032F62\">i</span><span style=\"color:#24292E\">d</span><span style=\"color:#D73A49\">></span><span style=\"color:#032F62\">/failure</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">fi</span></span></code></pre></div></div>\n<p>This pattern catches three failure modes the single-ping version misses: jobs that started but hung forever, jobs that finished faster than they should have (a sign of an early-exit bug), and jobs that returned exit-zero on broken logic.</p>\n<p>Most of the tools in this list support some version of this lifecycle. Use it.</p>\n<h3 id=\"dead-letter-queues-for-distributed-workers\">Dead letter queues for distributed workers</h3>\n<p>If your background work runs through Kafka, RabbitMQ, BullMQ, or NATS, a missing heartbeat is the symptom: the root cause is usually a poisoned message stuck in the retry loop. Configure a DLQ with structured error metadata so failed messages don&#39;t block the head of the queue, and so you have something to grep through when the heartbeat fires.</p>\n<h3 id=\"exponential-backoff-on-retries\">Exponential backoff on retries</h3>\n<p>Retries without backoff are a thundering herd waiting to happen. The first retry should be seconds; the third should be minutes. Every job-runner library has this built in: turn it on.</p>\n<h3 id=\"the-dst-trap\">The DST trap</h3>\n<p>Cron daemons running on local time will skip or double-run jobs during daylight saving transitions. Two mitigations:</p>\n<ol><li><strong>Standardize on UTC</strong> across servers, containers, and cron daemons. This eliminates the problem at the source.</li><li><strong>If you must use local time</strong>, pick a monitor with explicit timezone support and a &quot;next run&quot; preview that accounts for DST. Drumbeats parses per-monitor timezones server-side and resolves the next expected run accordingly; the tools in this list that don&#39;t will eventually wake you up at 3 AM in March.</li></ol>\n<hr />\n<h2 id=\"final-recommendations\">Final recommendations</h2>\n<p>There isn&#39;t one best cron monitoring tool. There&#39;s a best one for your job mix, team size, and budget shape. The shortcut version:</p>\n<ul><li><strong>Best all-rounder with on-call</strong>: <strong>Hyperping</strong>, flat-rate, mature, EU-hosted, on-call built in.</li><li><strong>Best for mixed workloads on a fair price model</strong>: <strong>Drumbeats</strong>, usage-based, generous free tier, cron + heartbeat + event-driven + uptime in one bill.</li><li><strong>Best for deep cron-specific analytics</strong>: <strong>Cronitor</strong>, task timelines are unmatched if budget isn&#39;t the constraint.</li><li><strong>Best for log-driven debugging</strong>: <strong>Better Stack</strong>, alerts pivot directly to log lines.</li><li><strong>Best for self-hosting</strong>: <strong>Healthchecks.io</strong>, BSD-licensed, run it inside your network.</li><li><strong>Best for Sentry shops</strong>: <strong>Sentry Crons</strong>, failures land next to stack traces.</li><li><strong>Best for compliance and audits</strong>: <strong>Uptime.com</strong>, defensible SLA reports out of the box.</li><li><strong>Best for Kubernetes-native shops</strong>: <strong>Metoro</strong>, eBPF-level cluster visibility.</li><li><strong>Best inside an existing APM</strong>: <strong>Datadog</strong>, if you&#39;re already paying for it.</li><li><strong>Best low-budget pick</strong>: <strong>Uptime Robot</strong>, 50 free monitors covers a lot of agencies.</li></ul>\n<p>If you&#39;ve narrowed it down to a final two and want to see what your real bill would look like, our <a href=\"https://drumbeats.io/pricing\" rel=\"noopener noreferrer\" target=\"_blank\">pricing page</a> has a capacity table that maps frequency to Beats, and the <a href=\"https://drumbeats.io/blog/drumbeats-vs-cronitor-cron-job-monitoring\" rel=\"noopener noreferrer\" target=\"_blank\">vs. Cronitor</a> and <a href=\"https://drumbeats.io/blog/drumbeats-vs-healthchecks-io-pricing-features-comparison\" rel=\"noopener noreferrer\" target=\"_blank\">vs. Healthchecks.io</a> posts walk through the math at four different scales.</p>\n<p>Or skip the comparison and just <a href=\"https://drumbeats.io/register\" rel=\"noopener noreferrer\" target=\"_blank\">start free</a>: 50 monitors, no credit card, an HTTP ping is all it takes. If Drumbeats isn&#39;t the right fit, the rest of this list is.</p>",
      "image": "https://drumbeats.io/blog/og/best-cron-job-monitoring-tools-2026.png?v=60f0acf8",
      "date_published": "2026-05-26T10:00:00.000Z",
      "date_modified": "2026-10-29T10:00:00.000Z",
      "tags": [
        "cron job monitoring",
        "background jobs",
        "comparison",
        "observability",
        "2026 guide"
      ]
    },
    {
      "id": "https://drumbeats.io/blog/drumbeats-vs-healthchecks-io-pricing-features-comparison",
      "url": "https://drumbeats.io/blog/drumbeats-vs-healthchecks-io-pricing-features-comparison",
      "title": "Drumbeats vs Healthchecks.io: An Honest Comparison (2026)",
      "summary": "Healthchecks.io is open source, battle-tested, and genuinely good at cron monitoring. Drumbeats gives you 50 free monitors, event-driven job support as a first-class mode, and usage-based pricing. We break down the real math, compare features honestly, and show you who should use which.",
      "content_html": "<p>Healthchecks.io is one of the most respected tools in the cron monitoring space, and for good reason. It is open source, self-hostable, has been running in production for years, and its hosted free tier is genuinely useful. If you are evaluating cron job monitoring and Healthchecks.io is on your shortlist, it should be.</p>\n<p>We built Drumbeats, so we are biased. This post is upfront about that. It is also upfront about where Healthchecks.io wins, because it does win in some important areas. Developers can smell dishonest marketing, and we would rather earn trust with a fair comparison than lose it with a sales page disguised as a blog post.</p>\n<p>Here is what this post covers: an honest side-by-side of Drumbeats and Healthchecks.io, pricing math with real numbers, feature comparison, setup examples, and a clear breakdown of who should use which tool.</p>\n<hr />\n<h2 id=\"at-a-glance\">At a glance</h2>\n<div class=\"blog-table-wrap\"><table><thead><tr><th></th><th>Healthchecks.io</th><th>Drumbeats</th></tr></thead><tbody><tr><td>Free tier</td><td>20 checks</td><td>50 monitors, 200K Beats/month</td></tr><tr><td>Pricing model</td><td>Per-check ($20 = 100 checks, $80 = 1,000 checks)</td><td>Usage-based (Beats per month)</td></tr><tr><td>Open source</td><td>Yes (BSD license)</td><td>No</td></tr><tr><td>Self-hostable</td><td>Yes</td><td>No (hosted only)</td></tr><tr><td>Event-driven jobs</td><td>Cron-first design</td><td>First-class mode alongside cron</td></tr><tr><td>Run ID / concurrent jobs</td><td>Yes</td><td>Yes</td></tr><tr><td>Payload limit</td><td>100 KB</td><td>100 KB free, 1 MB Pro, 2 MB Business</td></tr><tr><td>SMS / phone alerts</td><td>Yes (Twilio + phone calls on Business)</td><td>No (8 channels incl. Microsoft Teams, PagerDuty)</td></tr><tr><td>Team seats</td><td>Pricing scales by check count</td><td>Unlimited on every plan</td></tr></tbody></table></div>\n<hr />\n<h2 id=\"quick-overview\">Quick Overview</h2>\n<p><strong>Healthchecks.io</strong> is open-source (BSD license) and has been around for years. It is a dead man&#39;s switch for scheduled jobs: your job pings Healthchecks on success, and if the ping does not arrive on schedule, you get alerted. It supports <code>/start</code>, <code>/fail</code>, and <code>/log</code> endpoints, duration tracking via start-to-success timing, run ID correlation for concurrent executions, payload attachments up to 100 KB, and SMS alerts via Twilio. The hosted version offers a free tier with 20 checks, a $5/month Supporter tier (same limits), a $20/month Business tier (100 checks), and a $80/month Business Plus tier (1000 checks). You can also self-host the entire thing for free.</p>\n<p><strong>Drumbeats</strong> is a newer monitoring service focused on the full spectrum of background jobs: cron jobs, scheduled tasks, queue workers, and event-driven processes. Drumbeats uses usage-based pricing through a unit called Beats: 1 API ping = 1 Beat (plus payload overhead). You pay for actual job activity, not for how many monitors exist. The free plan includes 50 monitors and 200,000 Beats/month. Idle monitors cost nothing.</p>\n<p>The fundamental difference is not a feature list. It is a design philosophy. Healthchecks.io is built cron-first: it waits for an expected ping and alerts on silence. Drumbeats treats event-driven jobs as a first-class mode alongside cron, with concurrent execution tracking, flexible run IDs, and larger payload support on paid plans. The pricing model is also different: Healthchecks bills by check count, Drumbeats bills by activity.</p>\n<hr />\n<h2 id=\"the-pricing-math-four-real-scenarios\">The Pricing Math: Four Real Scenarios</h2>\n<p>No hand-waving. Here are exact calculations using each tool&#39;s published pricing.</p>\n<h3 id=\"healthchecksio-plans-for-reference\">Healthchecks.io Plans (for reference)</h3>\n<div class=\"blog-table-wrap\"><table><thead><tr><th>Plan</th><th>Price</th><th>Checks</th><th>Log entries/check</th><th>SMS/WhatsApp credits</th><th>Phone call credits</th></tr></thead><tbody><tr><td>Hobbyist</td><td>$0/mo</td><td>20</td><td>100</td><td>5/mo</td><td>-</td></tr><tr><td>Supporter</td><td>$5/mo</td><td>20</td><td>100</td><td>5/mo</td><td>-</td></tr><tr><td>Business</td><td>$20/mo</td><td>100</td><td>1,000</td><td>50/mo</td><td>20/mo</td></tr><tr><td>Business Plus</td><td>$80/mo</td><td>1,000</td><td>1,000</td><td>500/mo</td><td>100/mo</td></tr></tbody></table></div>\n<h3 id=\"drumbeats-plans-for-reference\">Drumbeats Plans (for reference)</h3>\n<div class=\"blog-table-wrap\"><table><thead><tr><th>Plan</th><th>Price</th><th>Monitors</th><th>Beats/month</th><th>Payload limit</th></tr></thead><tbody><tr><td>Free</td><td>$0/mo</td><td>50</td><td>200K</td><td>100 KB</td></tr><tr><td>Pro</td><td>$20/mo</td><td>Unlimited</td><td>1M</td><td>1 MB</td></tr><tr><td>Business</td><td>$49/mo</td><td>Unlimited</td><td>3M</td><td>2 MB</td></tr></tbody></table></div>\n<hr />\n<h3 id=\"scenario-1-20-monitors-daily-jobs-success-only-ping\">Scenario 1: 20 monitors, daily jobs, success-only ping</h3>\n<p>You have 20 cron jobs that run once per day. Each sends a single success ping.</p>\n<p><strong>Drumbeats calculation:</strong></p>\n<div class=\"docs-code\" data-codeblock data-lang=\"plaintext\" data-title=\"\" data-code=\"MjAgbW9uaXRvcnMgeCAxIHBpbmcgeCAzMCBkYXlzID0gNjAwIEJlYXRzL21vbnRo\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span>20 monitors x 1 ping x 30 days = 600 Beats/month</span></span></code></pre></div></div>\n<p>600 Beats is 0.3% of the free tier&#39;s 200,000 monthly allowance.</p>\n<div class=\"blog-table-wrap\"><table><thead><tr><th></th><th>Drumbeats</th><th>Healthchecks.io</th></tr></thead><tbody><tr><td>Plan</td><td>Free</td><td>Hobbyist (Free)</td></tr><tr><td>Monitors/Checks</td><td>20 of 50 included</td><td>20 of 20, at capacity</td></tr><tr><td><strong>Monthly cost</strong></td><td><strong>$0</strong></td><td><strong>$0</strong></td></tr></tbody></table></div>\n<p>Both free. But Drumbeats has 30 monitors of headroom. Healthchecks.io is at the Hobbyist ceiling: the 21st check requires upgrading to Business at $20/month.</p>\n<hr />\n<h3 id=\"scenario-2-50-monitors-hourly-jobs-start-success-pings\">Scenario 2: 50 monitors, hourly jobs, start + success pings</h3>\n<p>50 jobs running every hour with duration tracking (both tools support start-to-success timing).</p>\n<p><strong>Drumbeats calculation:</strong></p>\n<div class=\"docs-code\" data-codeblock data-lang=\"plaintext\" data-title=\"\" data-code=\"NTAgbW9uaXRvcnMgeCAyIHBpbmdzIHggMjQgaG91cnMgeCAzMCBkYXlzID0gNzIsMDAwIEJlYXRzL21vbnRo\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span>50 monitors x 2 pings x 24 hours x 30 days = 72,000 Beats/month</span></span></code></pre></div></div>\n<p>72,000 Beats is 36% of the free tier. Still free.</p>\n<div class=\"blog-table-wrap\"><table><thead><tr><th></th><th>Drumbeats</th><th>Healthchecks.io</th></tr></thead><tbody><tr><td>Plan</td><td>Free</td><td>Business ($20/mo)</td></tr><tr><td>Monitors/Checks</td><td>50 of 50 included</td><td>50 of 100 included</td></tr><tr><td><strong>Monthly cost</strong></td><td><strong>$0</strong></td><td><strong>$20</strong></td></tr><tr><td><strong>Annual cost</strong></td><td><strong>$0</strong></td><td><strong>$240</strong></td></tr></tbody></table></div>\n<p>Drumbeats: free. Healthchecks.io: $20/month to get above the 20-check Hobbyist limit.</p>\n<hr />\n<h3 id=\"scenario-3-100-monitors-hourly-jobs-start-success-pings\">Scenario 3: 100 monitors, hourly jobs, start + success pings</h3>\n<p>Scaling up. 100 monitors, hourly, with duration tracking.</p>\n<p><strong>Drumbeats calculation:</strong></p>\n<div class=\"docs-code\" data-codeblock data-lang=\"plaintext\" data-title=\"\" data-code=\"MTAwIG1vbml0b3JzIHggMiBwaW5ncyB4IDI0IGhvdXJzIHggMzAgZGF5cyA9IDE0NCwwMDAgQmVhdHMvbW9udGg=\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span>100 monitors x 2 pings x 24 hours x 30 days = 144,000 Beats/month</span></span></code></pre></div></div>\n<p>144,000 Beats fits within the free tier&#39;s 200,000 allowance for activity volume, but 100 monitors exceeds the Free plan&#39;s 50-monitor limit. All 100 require Pro.</p>\n<div class=\"blog-table-wrap\"><table><thead><tr><th></th><th>Drumbeats</th><th>Healthchecks.io</th></tr></thead><tbody><tr><td>Plan</td><td>Pro at $20/mo (unlimited monitors, 1M Beats)</td><td>Business ($20/mo, covers 100 checks)</td></tr><tr><td><strong>Monthly cost</strong></td><td><strong>$20</strong></td><td><strong>$20</strong></td></tr><tr><td><strong>Annual cost</strong></td><td><strong>$240</strong></td><td><strong>$240</strong></td></tr></tbody></table></div>\n<p>At 100 monitors with hourly jobs, the costs converge: both are $20/month. Drumbeats Pro includes unlimited monitors, 1M Beats, and 1 MB payload limits. Healthchecks.io Business includes 100 checks with 1,000 log entries each and 50 SMS credits/month.</p>\n<h3 id=\"scenario-4-500-monitors-every-5-minutes\">Scenario 4: 500 monitors, every 5 minutes</h3>\n<p>High-frequency monitoring at scale.</p>\n<p><strong>Drumbeats calculation:</strong></p>\n<div class=\"docs-code\" data-codeblock data-lang=\"plaintext\" data-title=\"\" data-code=\"NTAwIG1vbml0b3JzIHggMiBwaW5ncyB4IDEyIHJ1bnMvaG91ciB4IDI0IGhvdXJzIHggMzAgZGF5cyA9IDgsNjQwLDAwMCBCZWF0cy9tb250aA==\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span>500 monitors x 2 pings x 12 runs/hour x 24 hours x 30 days = 8,640,000 Beats/month</span></span></code></pre></div></div>\n<p>8.64M Beats exceeds Business (3M), so you would use Business plus Pay-As-You-Go overage. Overage on 5.64M extra Beats is <code>5.64 x $20 = $112.80/month</code>, on top of the $49 base.</p>\n<div class=\"blog-table-wrap\"><table><thead><tr><th></th><th>Drumbeats</th><th>Healthchecks.io</th></tr></thead><tbody><tr><td>Plan</td><td>Business + PAYG overage</td><td>Business Plus ($80/mo, 1,000 checks)</td></tr><tr><td><strong>Monthly cost</strong></td><td><strong>~$162 ($49 + ~$113 overage)</strong></td><td><strong>$80</strong></td></tr><tr><td><strong>Annual cost</strong></td><td><strong>~$1,942</strong></td><td><strong>$960</strong></td></tr></tbody></table></div>\n<p>Healthchecks.io Business Plus covers up to 1,000 checks cleanly at $80/month. With 500 monitors, you have capacity headroom. At this scale Healthchecks.io Business Plus comes in roughly half the price of Drumbeats Business + PAYG, and its per-check billing is also simpler to forecast. Drumbeats wins on usage-based math at lower scales; once you sustain millions of Beats over the included Business allowance every month, fixed per-check tiers like Business Plus are decisively cheaper.</p>\n<h3 id=\"the-self-host-wildcard\">The Self-Host Wildcard</h3>\n<p>Healthchecks.io&#39;s strongest pricing argument is self-hosting. If you run the open-source version on your own infrastructure, you get unlimited checks for the cost of a VM. For teams comfortable running and maintaining another service, this is genuinely compelling. The pricing comparison above is entirely moot if self-hosting is on the table (more on this in a later section).</p>\n<hr />\n<h2 id=\"feature-comparison\">Feature Comparison</h2>\n<div class=\"blog-table-wrap\"><table><thead><tr><th>Feature</th><th>Healthchecks.io (hosted)</th><th>Drumbeats</th></tr></thead><tbody><tr><td>Cron job monitoring</td><td>Yes</td><td>Yes</td></tr><tr><td>Heartbeat monitoring</td><td>Yes</td><td>Yes</td></tr><tr><td>Event-driven job monitoring</td><td>Partial (cron-first design)</td><td>Yes, first-class mode</td></tr><tr><td>Ping API (no SDK required)</td><td>Yes</td><td>Yes</td></tr><tr><td><code>/start</code> endpoint</td><td>Yes</td><td>Yes</td></tr><tr><td><code>/fail</code> / <code>/failure</code> endpoint</td><td>Yes</td><td>Yes</td></tr><tr><td><code>/log</code> endpoint</td><td>Yes</td><td>Yes</td></tr><tr><td>Duration tracking</td><td>Yes (start → success timing)</td><td>Yes (start → success timing)</td></tr><tr><td>Concurrent run tracking</td><td>Partial (UUID-only <code>rid</code> param)</td><td>Yes (any string up to 255 chars)</td></tr><tr><td>Payload attachments</td><td>Yes (up to 100 KB per ping)</td><td>Yes (up to 2 MB on Business)</td></tr><tr><td>Log history / Log entries per job</td><td>100/job (Hobbyist/Supporter), 1,000/job (Business/Business Plus)</td><td>250/monitor (Free), 1,000/monitor (Pro), 5,000/monitor (Business)</td></tr><tr><td>Email alerts</td><td>Yes</td><td>Yes (all plans)</td></tr><tr><td>Slack alerts</td><td>Yes</td><td>Yes (all plans)</td></tr><tr><td>Discord alerts</td><td>Yes</td><td>Yes (all plans)</td></tr><tr><td>Telegram alerts</td><td>Yes</td><td>Yes (all plans)</td></tr><tr><td>Webhook alerts</td><td>Yes</td><td>Yes (all plans)</td></tr><tr><td>Browser push alerts</td><td>No</td><td>Yes (all plans)</td></tr><tr><td>SMS alerts</td><td>Yes (quota-limited per plan)</td><td>No</td></tr><tr><td>Microsoft Teams</td><td>No</td><td>Yes (all plans)</td></tr><tr><td>PagerDuty</td><td>Yes</td><td>Yes (all plans)</td></tr><tr><td>OpsGenie</td><td>Yes</td><td>No (webhook bridge today)</td></tr><tr><td>Signal, Mattermost, etc.</td><td>Yes</td><td>No</td></tr><tr><td>Public status pages</td><td>No (badges only)</td><td>Yes (on cron/heartbeat monitors)</td></tr><tr><td>Free plan checks/monitors</td><td>20</td><td>50</td></tr><tr><td>Team seats</td><td>Unlimited (all plans)</td><td>Unlimited (all plans)</td></tr><tr><td>Official MCP server</td><td>No (community-built only)</td><td>Yes</td></tr><tr><td>Self-hostable</td><td>Yes (BSD license)</td><td>No</td></tr><tr><td>Open source</td><td>Yes</td><td>No</td></tr><tr><td>Cron expression validation</td><td>Yes</td><td>Yes</td></tr><tr><td>Grace periods</td><td>Yes</td><td>Yes</td></tr><tr><td>Failure tolerance</td><td>Yes</td><td>Yes</td></tr></tbody></table></div>\n<h3 id=\"features-worth-calling-out\">Features Worth Calling Out</h3>\n<p><strong>Event-driven monitoring as a first-class mode.</strong> Both tools support <code>/start</code>, <code>/fail</code>, and <code>/log</code>: the HTTP primitives are similar. The difference is in how each product is designed around them. Healthchecks.io is built around the dead man&#39;s switch pattern: a check has an expected schedule, and silence triggers an alert. Event-driven use is possible but it is bolted on. Drumbeats has a dedicated <code>JOB_BASIC</code> monitor type that has no schedule at all. It only alerts when you explicitly report a failure or when a job starts and never finishes. For queue workers, webhook handlers, and on-demand processes, this is the right model.</p>\n<p><strong>Concurrent run tracking: flexible vs. UUID-only.</strong> Both tools support run IDs to correlate pings from concurrent executions. If your jobs have natural domain identifiers (order IDs, message IDs, import batch names), Healthchecks.io forces you to generate a separate UUID and maintain a mapping back to your domain. Drumbeats accepts any string up to 255 characters directly, so <code>order-12345</code> or <code>import-2026-04-10</code> is your run ID. No mapping table.</p>\n<p><strong>Payload limits grow with plan.</strong> Both tools support payload attachments on pings. Healthchecks.io accepts up to 100 KB per ping on all plans. Drumbeats accepts 100 KB on Free, 1 MB on Pro, and 2 MB on Business. For jobs that produce detailed output (long error traces, processing stats, multi-step pipeline results), the higher limits matter.</p>\n<p><strong>Public status pages.</strong> Drumbeats includes a public status page (showing job health for stakeholders) on all plans, with custom domains on Pro and Business and visitor email subscriptions on advanced pages (100 subscribers on Pro, 1,000 on Business). Healthchecks.io offers status badges but not dedicated status pages. Note: on Drumbeats, status pages apply to cron and heartbeat monitors; event-driven monitors are excluded.</p>\n<p><strong>SMS alerts.</strong> Healthchecks.io supports SMS via Twilio with monthly quotas per plan (5 credits on Hobbyist/Supporter, 50 on Business, 500 on Business Plus). Drumbeats does not currently offer SMS notifications.</p>\n<p><strong>Official MCP server.</strong> Drumbeats&#39; <a href=\"https://drumbeats.io/connect\" rel=\"noopener noreferrer\" target=\"_blank\">MCP server</a> connects to Claude, Cursor, or VS Code over OAuth in one command. Your AI client can then create monitors, check their status, and triage incidents in plain language. Healthchecks.io has no official MCP server; a few community-built ones exist.</p>\n<hr />\n<h2 id=\"setup-comparison\">Setup Comparison</h2>\n<p>Both tools use HTTP pings. The integration patterns are similar for cron jobs. Drumbeats adds a native concurrent execution model for queue workers.</p>\n<h3 id=\"cron-job-bash-drumbeats\">Cron job, Bash (Drumbeats)</h3>\n<div class=\"docs-code\" data-codeblock data-lang=\"bash\" data-title=\"\" data-code=\"IyBCZWZvcmU6IHVubW9uaXRvcmVkCjAgMiAqICogKiAvdXNyL2xvY2FsL2Jpbi9iYWNrdXAuc2gKCiMgQWZ0ZXI6IG1vbml0b3JlZCB3aXRoIHN0YXJ0ICsgc3VjY2Vzcy9mYWlsdXJlICsgZHVyYXRpb24gdHJhY2tpbmcKMCAyICogKiAqIGN1cmwgLWZzUyAtLXJldHJ5IDMgaHR0cHM6Ly9hcGkuZHJ1bWJlYXRzLmlvL3YxL3BpbmcvWU9VUl9NT05JVE9SX0lEL3N0YXJ0IFwKICAmJiAvdXNyL2xvY2FsL2Jpbi9iYWNrdXAuc2ggXAogICYmIGN1cmwgLWZzUyAtLXJldHJ5IDMgaHR0cHM6Ly9hcGkuZHJ1bWJlYXRzLmlvL3YxL3BpbmcvWU9VUl9NT05JVE9SX0lEL3N1Y2Nlc3MgXAogIHx8IGN1cmwgLWZzUyAtLXJldHJ5IDMgaHR0cHM6Ly9hcGkuZHJ1bWJlYXRzLmlvL3YxL3BpbmcvWU9VUl9NT05JVE9SX0lEL2ZhaWx1cmU=\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6A737D\"># Before: unmonitored</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">0</span><span style=\"color:#005CC5\"> 2</span><span style=\"color:#005CC5\"> *</span><span style=\"color:#005CC5\"> *</span><span style=\"color:#005CC5\"> *</span><span style=\"color:#032F62\"> /usr/local/bin/backup.sh</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#6A737D\"># After: monitored with start + success/failure + duration tracking</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">0</span><span style=\"color:#005CC5\"> 2</span><span style=\"color:#005CC5\"> *</span><span style=\"color:#005CC5\"> *</span><span style=\"color:#005CC5\"> *</span><span style=\"color:#032F62\"> curl</span><span style=\"color:#005CC5\"> -fsS</span><span style=\"color:#005CC5\"> --retry</span><span style=\"color:#005CC5\"> 3</span><span style=\"color:#032F62\"> https://api.drumbeats.io/v1/ping/YOUR_MONITOR_ID/start</span><span style=\"color:#005CC5\"> \\</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  &#x26;&#x26; </span><span style=\"color:#6F42C1\">/usr/local/bin/backup.sh</span><span style=\"color:#005CC5\"> \\</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  &#x26;&#x26; </span><span style=\"color:#6F42C1\">curl</span><span style=\"color:#005CC5\"> -fsS</span><span style=\"color:#005CC5\"> --retry</span><span style=\"color:#005CC5\"> 3</span><span style=\"color:#032F62\"> https://api.drumbeats.io/v1/ping/YOUR_MONITOR_ID/success</span><span style=\"color:#005CC5\"> \\</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  ||</span><span style=\"color:#6F42C1\"> curl</span><span style=\"color:#005CC5\"> -fsS</span><span style=\"color:#005CC5\"> --retry</span><span style=\"color:#005CC5\"> 3</span><span style=\"color:#032F62\"> https://api.drumbeats.io/v1/ping/YOUR_MONITOR_ID/failure</span></span></code></pre></div></div>\n<h3 id=\"cron-job-bash-healthchecksio\">Cron job: Bash (Healthchecks.io)</h3>\n<div class=\"docs-code\" data-codeblock data-lang=\"bash\" data-title=\"\" data-code=\"IyBIZWFsdGhjaGVja3MuaW86IGZ1bGwgbGlmZWN5Y2xlIHdpdGggc3RhcnQgKyBzdWNjZXNzL2ZhaWx1cmUKMCAyICogKiAqIGN1cmwgLWZzUyAtLXJldHJ5IDMgaHR0cHM6Ly9oYy1waW5nLmNvbS9ZT1VSX0NIRUNLX1VVSUQvc3RhcnQgXAogICYmIC91c3IvbG9jYWwvYmluL2JhY2t1cC5zaCBcCiAgJiYgY3VybCAtZnNTIC0tcmV0cnkgMyBodHRwczovL2hjLXBpbmcuY29tL1lPVVJfQ0hFQ0tfVVVJRCBcCiAgfHwgY3VybCAtZnNTIC0tcmV0cnkgMyBodHRwczovL2hjLXBpbmcuY29tL1lPVVJfQ0hFQ0tfVVVJRC9mYWls\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6A737D\"># Healthchecks.io: full lifecycle with start + success/failure</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">0</span><span style=\"color:#005CC5\"> 2</span><span style=\"color:#005CC5\"> *</span><span style=\"color:#005CC5\"> *</span><span style=\"color:#005CC5\"> *</span><span style=\"color:#032F62\"> curl</span><span style=\"color:#005CC5\"> -fsS</span><span style=\"color:#005CC5\"> --retry</span><span style=\"color:#005CC5\"> 3</span><span style=\"color:#032F62\"> https://hc-ping.com/YOUR_CHECK_UUID/start</span><span style=\"color:#005CC5\"> \\</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  &#x26;&#x26; </span><span style=\"color:#6F42C1\">/usr/local/bin/backup.sh</span><span style=\"color:#005CC5\"> \\</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  &#x26;&#x26; </span><span style=\"color:#6F42C1\">curl</span><span style=\"color:#005CC5\"> -fsS</span><span style=\"color:#005CC5\"> --retry</span><span style=\"color:#005CC5\"> 3</span><span style=\"color:#032F62\"> https://hc-ping.com/YOUR_CHECK_UUID</span><span style=\"color:#005CC5\"> \\</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  ||</span><span style=\"color:#6F42C1\"> curl</span><span style=\"color:#005CC5\"> -fsS</span><span style=\"color:#005CC5\"> --retry</span><span style=\"color:#005CC5\"> 3</span><span style=\"color:#032F62\"> https://hc-ping.com/YOUR_CHECK_UUID/fail</span></span></code></pre></div></div>\n<p>Both examples use the same <code>/start</code> + success/failure pattern. Both give you duration tracking.</p>\n<h3 id=\"python-with-progress-logs-drumbeats\">Python with progress logs (Drumbeats)</h3>\n<div class=\"docs-code\" data-codeblock data-lang=\"python\" data-title=\"\" data-code=\"aW1wb3J0IHJlcXVlc3RzCgpNT05JVE9SID0gImh0dHBzOi8vYXBpLmRydW1iZWF0cy5pby92MS9waW5nL1lPVVJfTU9OSVRPUl9JRCIKCmRlZiBydW5fZGF0YV9pbXBvcnQoKToKICAgIHJlcXVlc3RzLmdldChmIntNT05JVE9SfS9zdGFydCIpCiAgICB0cnk6CiAgICAgICAgZm9yIGksIGJhdGNoIGluIGVudW1lcmF0ZShnZXRfYmF0Y2hlcygpKToKICAgICAgICAgICAgcHJvY2Vzc19iYXRjaChiYXRjaCkKICAgICAgICAgICAgcmVxdWVzdHMucG9zdChmIntNT05JVE9SfS9sb2ciLCBqc29uPXsKICAgICAgICAgICAgICAgICJwYXlsb2FkIjogZiJCYXRjaCB7aSArIDF9IGRvbmU6IHtiYXRjaC5yb3dfY291bnR9IHJvd3MiCiAgICAgICAgICAgIH0pCiAgICAgICAgcmVxdWVzdHMuZ2V0KGYie01PTklUT1J9L3N1Y2Nlc3MiKQogICAgZXhjZXB0IEV4Y2VwdGlvbiBhcyBlOgogICAgICAgIHJlcXVlc3RzLnBvc3QoZiJ7TU9OSVRPUn0vZmFpbHVyZSIsIGpzb249eyJwYXlsb2FkIjogc3RyKGUpfSk=\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#D73A49\">import</span><span style=\"color:#24292E\"> requests</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#005CC5\">MONITOR</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#032F62\"> \"https://api.drumbeats.io/v1/ping/YOUR_MONITOR_ID\"</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#D73A49\">def</span><span style=\"color:#6F42C1\"> run_data_import</span><span style=\"color:#24292E\">():</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">    requests.get(</span><span style=\"color:#D73A49\">f</span><span style=\"color:#032F62\">\"</span><span style=\"color:#005CC5\">{MONITOR}</span><span style=\"color:#032F62\">/start\"</span><span style=\"color:#24292E\">)</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    try</span><span style=\"color:#24292E\">:</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">        for</span><span style=\"color:#24292E\"> i, batch </span><span style=\"color:#D73A49\">in</span><span style=\"color:#005CC5\"> enumerate</span><span style=\"color:#24292E\">(get_batches()):</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">            process_batch(batch)</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">            requests.post(</span><span style=\"color:#D73A49\">f</span><span style=\"color:#032F62\">\"</span><span style=\"color:#005CC5\">{MONITOR}</span><span style=\"color:#032F62\">/log\"</span><span style=\"color:#24292E\">, </span><span style=\"color:#E36209\">json</span><span style=\"color:#D73A49\">=</span><span style=\"color:#24292E\">{</span></span>\n<span class=\"line\"><span style=\"color:#032F62\">                \"payload\"</span><span style=\"color:#24292E\">: </span><span style=\"color:#D73A49\">f</span><span style=\"color:#032F62\">\"Batch </span><span style=\"color:#005CC5\">{</span><span style=\"color:#24292E\">i </span><span style=\"color:#D73A49\">+</span><span style=\"color:#005CC5\"> 1}</span><span style=\"color:#032F62\"> done: </span><span style=\"color:#005CC5\">{</span><span style=\"color:#24292E\">batch.row_count</span><span style=\"color:#005CC5\">}</span><span style=\"color:#032F62\"> rows\"</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">            })</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">        requests.get(</span><span style=\"color:#D73A49\">f</span><span style=\"color:#032F62\">\"</span><span style=\"color:#005CC5\">{MONITOR}</span><span style=\"color:#032F62\">/success\"</span><span style=\"color:#24292E\">)</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    except</span><span style=\"color:#005CC5\"> Exception</span><span style=\"color:#D73A49\"> as</span><span style=\"color:#24292E\"> e:</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">        requests.post(</span><span style=\"color:#D73A49\">f</span><span style=\"color:#032F62\">\"</span><span style=\"color:#005CC5\">{MONITOR}</span><span style=\"color:#032F62\">/failure\"</span><span style=\"color:#24292E\">, </span><span style=\"color:#E36209\">json</span><span style=\"color:#D73A49\">=</span><span style=\"color:#24292E\">{</span><span style=\"color:#032F62\">\"payload\"</span><span style=\"color:#24292E\">: </span><span style=\"color:#005CC5\">str</span><span style=\"color:#24292E\">(e)})</span></span></code></pre></div></div>\n<h3 id=\"python-with-progress-logs-healthchecksio\">Python with progress logs (Healthchecks.io)</h3>\n<div class=\"docs-code\" data-codeblock data-lang=\"python\" data-title=\"\" data-code=\"aW1wb3J0IHJlcXVlc3RzCgpDSEVDS19VUkwgPSAiaHR0cHM6Ly9oYy1waW5nLmNvbS9ZT1VSX0NIRUNLX1VVSUQiCgpkZWYgcnVuX2RhdGFfaW1wb3J0KCk6CiAgICByZXF1ZXN0cy5nZXQoZiJ7Q0hFQ0tfVVJMfS9zdGFydCIpCiAgICB0cnk6CiAgICAgICAgZm9yIGksIGJhdGNoIGluIGVudW1lcmF0ZShnZXRfYmF0Y2hlcygpKToKICAgICAgICAgICAgcHJvY2Vzc19iYXRjaChiYXRjaCkKICAgICAgICAgICAgcmVxdWVzdHMucG9zdChmIntDSEVDS19VUkx9L2xvZyIsCiAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YT1mIkJhdGNoIHtpICsgMX0gZG9uZToge2JhdGNoLnJvd19jb3VudH0gcm93cyIpCiAgICAgICAgcmVxdWVzdHMuZ2V0KENIRUNLX1VSTCkgICMgc3VjY2VzcyBwaW5nCiAgICBleGNlcHQgRXhjZXB0aW9uIGFzIGU6CiAgICAgICAgcmVxdWVzdHMucG9zdChmIntDSEVDS19VUkx9L2ZhaWwiLCBkYXRhPXN0cihlKSk=\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#D73A49\">import</span><span style=\"color:#24292E\"> requests</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#005CC5\">CHECK_URL</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#032F62\"> \"https://hc-ping.com/YOUR_CHECK_UUID\"</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#D73A49\">def</span><span style=\"color:#6F42C1\"> run_data_import</span><span style=\"color:#24292E\">():</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">    requests.get(</span><span style=\"color:#D73A49\">f</span><span style=\"color:#032F62\">\"</span><span style=\"color:#005CC5\">{CHECK_URL}</span><span style=\"color:#032F62\">/start\"</span><span style=\"color:#24292E\">)</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    try</span><span style=\"color:#24292E\">:</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">        for</span><span style=\"color:#24292E\"> i, batch </span><span style=\"color:#D73A49\">in</span><span style=\"color:#005CC5\"> enumerate</span><span style=\"color:#24292E\">(get_batches()):</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">            process_batch(batch)</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">            requests.post(</span><span style=\"color:#D73A49\">f</span><span style=\"color:#032F62\">\"</span><span style=\"color:#005CC5\">{CHECK_URL}</span><span style=\"color:#032F62\">/log\"</span><span style=\"color:#24292E\">,</span></span>\n<span class=\"line\"><span style=\"color:#E36209\">                          data</span><span style=\"color:#D73A49\">=</span><span style=\"color:#D73A49\">f</span><span style=\"color:#032F62\">\"Batch </span><span style=\"color:#005CC5\">{</span><span style=\"color:#24292E\">i </span><span style=\"color:#D73A49\">+</span><span style=\"color:#005CC5\"> 1}</span><span style=\"color:#032F62\"> done: </span><span style=\"color:#005CC5\">{</span><span style=\"color:#24292E\">batch.row_count</span><span style=\"color:#005CC5\">}</span><span style=\"color:#032F62\"> rows\"</span><span style=\"color:#24292E\">)</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">        requests.get(</span><span style=\"color:#005CC5\">CHECK_URL</span><span style=\"color:#24292E\">)  </span><span style=\"color:#6A737D\"># success ping</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    except</span><span style=\"color:#005CC5\"> Exception</span><span style=\"color:#D73A49\"> as</span><span style=\"color:#24292E\"> e:</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">        requests.post(</span><span style=\"color:#D73A49\">f</span><span style=\"color:#032F62\">\"</span><span style=\"color:#005CC5\">{CHECK_URL}</span><span style=\"color:#032F62\">/fail\"</span><span style=\"color:#24292E\">, </span><span style=\"color:#E36209\">data</span><span style=\"color:#D73A49\">=</span><span style=\"color:#005CC5\">str</span><span style=\"color:#24292E\">(e))</span></span></code></pre></div></div>\n<p>Both tools support this pattern. The main difference: Drumbeats accepts structured JSON payloads, Healthchecks.io stores raw text/body up to 100 KB.</p>\n<h3 id=\"nodejs-queue-worker-with-concurrent-run-tracking-drumbeats\">Node.js, Queue worker with concurrent run tracking (Drumbeats)</h3>\n<div class=\"docs-code\" data-codeblock data-lang=\"javascript\" data-title=\"\" data-code=\"Y29uc3QgTU9OSVRPUiA9ICJodHRwczovL2FwaS5kcnVtYmVhdHMuaW8vdjEvcGluZy9ZT1VSX01PTklUT1JfSUQiOwoKLy8gRWFjaCBqb2IgZXhlY3V0aW9uIGdldHMgaXRzIG93biBydW5faWQg4oCUIGFueSBzdHJpbmcgd29ya3MKYXN5bmMgZnVuY3Rpb24gaGFuZGxlSm9iKGpvYikgewogIGNvbnN0IHJ1bklkID0gYG9yZGVyLSR7am9iLmlkfWA7IC8vIGh1bWFuLXJlYWRhYmxlIGRvbWFpbiBJRAogIGF3YWl0IGZldGNoKGAke01PTklUT1J9L3N0YXJ0P3J1bl9pZD0ke3J1bklkfWApOwogIHRyeSB7CiAgICBhd2FpdCBwcm9jZXNzSm9iKGpvYik7CiAgICBhd2FpdCBmZXRjaChgJHtNT05JVE9SfS9zdWNjZXNzP3J1bl9pZD0ke3J1bklkfWApOwogIH0gY2F0Y2ggKGVycikgewogICAgYXdhaXQgZmV0Y2goYCR7TU9OSVRPUn0vZmFpbHVyZT9ydW5faWQ9JHtydW5JZH1gLCB7CiAgICAgIG1ldGhvZDogIlBPU1QiLAogICAgICBoZWFkZXJzOiB7ICJDb250ZW50LVR5cGUiOiAiYXBwbGljYXRpb24vanNvbiIgfSwKICAgICAgYm9keTogSlNPTi5zdHJpbmdpZnkoeyBwYXlsb2FkOiBlcnIubWVzc2FnZSB9KSwKICAgIH0pOwogIH0KfQ==\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#D73A49\">const</span><span style=\"color:#005CC5\"> MONITOR</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#032F62\"> \"https://api.drumbeats.io/v1/ping/YOUR_MONITOR_ID\"</span><span style=\"color:#24292E\">;</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#6A737D\">// Each job execution gets its own run_id — any string works</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">async</span><span style=\"color:#D73A49\"> function</span><span style=\"color:#6F42C1\"> handleJob</span><span style=\"color:#24292E\">(</span><span style=\"color:#E36209\">job</span><span style=\"color:#24292E\">) {</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  const</span><span style=\"color:#005CC5\"> runId</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#032F62\"> `order-${</span><span style=\"color:#24292E\">job</span><span style=\"color:#032F62\">.</span><span style=\"color:#24292E\">id</span><span style=\"color:#032F62\">}`</span><span style=\"color:#24292E\">; </span><span style=\"color:#6A737D\">// human-readable domain ID</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  await</span><span style=\"color:#6F42C1\"> fetch</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">`${</span><span style=\"color:#005CC5\">MONITOR</span><span style=\"color:#032F62\">}/start?run_id=${</span><span style=\"color:#24292E\">runId</span><span style=\"color:#032F62\">}`</span><span style=\"color:#24292E\">);</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  try</span><span style=\"color:#24292E\"> {</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    await</span><span style=\"color:#6F42C1\"> processJob</span><span style=\"color:#24292E\">(job);</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    await</span><span style=\"color:#6F42C1\"> fetch</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">`${</span><span style=\"color:#005CC5\">MONITOR</span><span style=\"color:#032F62\">}/success?run_id=${</span><span style=\"color:#24292E\">runId</span><span style=\"color:#032F62\">}`</span><span style=\"color:#24292E\">);</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  } </span><span style=\"color:#D73A49\">catch</span><span style=\"color:#24292E\"> (err) {</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    await</span><span style=\"color:#6F42C1\"> fetch</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">`${</span><span style=\"color:#005CC5\">MONITOR</span><span style=\"color:#032F62\">}/failure?run_id=${</span><span style=\"color:#24292E\">runId</span><span style=\"color:#032F62\">}`</span><span style=\"color:#24292E\">, {</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">      method: </span><span style=\"color:#032F62\">\"POST\"</span><span style=\"color:#24292E\">,</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">      headers: { </span><span style=\"color:#032F62\">\"Content-Type\"</span><span style=\"color:#24292E\">: </span><span style=\"color:#032F62\">\"application/json\"</span><span style=\"color:#24292E\"> },</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">      body: </span><span style=\"color:#005CC5\">JSON</span><span style=\"color:#24292E\">.</span><span style=\"color:#6F42C1\">stringify</span><span style=\"color:#24292E\">({ payload: err.message }),</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">    });</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  }</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">}</span></span></code></pre></div></div>\n<h3 id=\"nodejs-queue-worker-with-concurrent-run-tracking-healthchecksio\">Node.js: Queue worker with concurrent run tracking (Healthchecks.io)</h3>\n<div class=\"docs-code\" data-codeblock data-lang=\"javascript\" data-title=\"\" data-code=\"Y29uc3QgQ0hFQ0tfVVJMID0gImh0dHBzOi8vaGMtcGluZy5jb20vWU9VUl9DSEVDS19VVUlEIjsKY29uc3QgeyB2NDogdXVpZHY0IH0gPSByZXF1aXJlKCJ1dWlkIik7CgovLyBIZWFsdGhjaGVja3MuaW8gcmVxdWlyZXMgVVVJRCBmb3JtYXQgZm9yIHJpZAphc3luYyBmdW5jdGlvbiBoYW5kbGVKb2Ioam9iKSB7CiAgY29uc3QgcmlkID0gdXVpZHY0KCk7IC8vIG11c3QgYmUgYSBjYW5vbmljYWwgVVVJRAogIGF3YWl0IGZldGNoKGAke0NIRUNLX1VSTH0vc3RhcnQ/cmlkPSR7cmlkfWApOwogIHRyeSB7CiAgICBhd2FpdCBwcm9jZXNzSm9iKGpvYik7CiAgICBhd2FpdCBmZXRjaChgJHtDSEVDS19VUkx9P3JpZD0ke3JpZH1gKTsKICB9IGNhdGNoIChlcnIpIHsKICAgIGF3YWl0IGZldGNoKGAke0NIRUNLX1VSTH0vZmFpbD9yaWQ9JHtyaWR9YCwgewogICAgICBtZXRob2Q6ICJQT1NUIiwKICAgICAgYm9keTogZXJyLm1lc3NhZ2UsCiAgICB9KTsKICB9Cn0=\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#D73A49\">const</span><span style=\"color:#005CC5\"> CHECK_URL</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#032F62\"> \"https://hc-ping.com/YOUR_CHECK_UUID\"</span><span style=\"color:#24292E\">;</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">const</span><span style=\"color:#24292E\"> { </span><span style=\"color:#E36209\">v4</span><span style=\"color:#24292E\">: </span><span style=\"color:#005CC5\">uuidv4</span><span style=\"color:#24292E\"> } </span><span style=\"color:#D73A49\">=</span><span style=\"color:#6F42C1\"> require</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">\"uuid\"</span><span style=\"color:#24292E\">);</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#6A737D\">// Healthchecks.io requires UUID format for rid</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">async</span><span style=\"color:#D73A49\"> function</span><span style=\"color:#6F42C1\"> handleJob</span><span style=\"color:#24292E\">(</span><span style=\"color:#E36209\">job</span><span style=\"color:#24292E\">) {</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  const</span><span style=\"color:#005CC5\"> rid</span><span style=\"color:#D73A49\"> =</span><span style=\"color:#6F42C1\"> uuidv4</span><span style=\"color:#24292E\">(); </span><span style=\"color:#6A737D\">// must be a canonical UUID</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  await</span><span style=\"color:#6F42C1\"> fetch</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">`${</span><span style=\"color:#005CC5\">CHECK_URL</span><span style=\"color:#032F62\">}/start?rid=${</span><span style=\"color:#24292E\">rid</span><span style=\"color:#032F62\">}`</span><span style=\"color:#24292E\">);</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">  try</span><span style=\"color:#24292E\"> {</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    await</span><span style=\"color:#6F42C1\"> processJob</span><span style=\"color:#24292E\">(job);</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    await</span><span style=\"color:#6F42C1\"> fetch</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">`${</span><span style=\"color:#005CC5\">CHECK_URL</span><span style=\"color:#032F62\">}?rid=${</span><span style=\"color:#24292E\">rid</span><span style=\"color:#032F62\">}`</span><span style=\"color:#24292E\">);</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  } </span><span style=\"color:#D73A49\">catch</span><span style=\"color:#24292E\"> (err) {</span></span>\n<span class=\"line\"><span style=\"color:#D73A49\">    await</span><span style=\"color:#6F42C1\"> fetch</span><span style=\"color:#24292E\">(</span><span style=\"color:#032F62\">`${</span><span style=\"color:#005CC5\">CHECK_URL</span><span style=\"color:#032F62\">}/fail?rid=${</span><span style=\"color:#24292E\">rid</span><span style=\"color:#032F62\">}`</span><span style=\"color:#24292E\">, {</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">      method: </span><span style=\"color:#032F62\">\"POST\"</span><span style=\"color:#24292E\">,</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">      body: err.message,</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">    });</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">  }</span></span>\n<span class=\"line\"><span style=\"color:#24292E\">}</span></span></code></pre></div></div>\n<p>Both approaches work. The tradeoff: Healthchecks.io requires UUIDs for <code>rid</code>. If your jobs have natural domain identifiers like order numbers or message IDs, you cannot use them directly. You need to generate a UUID per execution and maintain a mapping back to your domain ID to correlate alerts to specific jobs.</p>\n<h3 id=\"drumbeats-mcp-server\">Drumbeats MCP Server</h3>\n<p>Drumbeats offers an official <a href=\"https://drumbeats.io/connect\" rel=\"noopener noreferrer\" target=\"_blank\">MCP server</a>: add it to Claude, Cursor, or VS Code, sign in over OAuth, and ask your AI client to create the monitors for your jobs. Healthchecks.io has no official equivalent.</p>\n<hr />\n<h2 id=\"where-healthchecksio-wins\">Where Healthchecks.io Wins</h2>\n<p>We said we would be honest. Here is where Healthchecks.io is the better choice.</p>\n<p><strong>Self-hostable.</strong> Healthchecks.io is open source (BSD license) and you can run the entire stack on your own infrastructure. You get unlimited checks for the cost of a VM: no SaaS bill, no per-check pricing, no vendor dependency, no third-party data concerns. If your organization has strict data sovereignty requirements or you simply prefer owning the stack, this is a genuine and significant advantage. Drumbeats does not offer a self-hosted option.</p>\n<p><strong>SMS and phone call alerts.</strong> Healthchecks.io supports SMS and WhatsApp alerts via Twilio, plus phone call alerts on Business and Business Plus plans. If your on-call rotation depends on SMS or voice, Healthchecks.io has it built in. Drumbeats does not currently offer SMS or phone call notifications.</p>\n<p><strong>More notification integrations.</strong> Healthchecks.io supports Signal, Mattermost, Zulip, Spike, OpsGenie, and more natively. If you use a less common alerting tool, Healthchecks.io is more likely to have a native integration. Drumbeats covers Email, Slack, Telegram, Discord, Webhooks, Browser Push, Microsoft Teams, and PagerDuty today: eight channels on every plan. OpsGenie is bridgeable via webhooks.</p>\n<p><strong>OpsGenie, Signal, and Mattermost natively.</strong> If your team is on OpsGenie, Signal, or Mattermost and needs a native integration rather than a webhook bridge, Healthchecks.io has them. Drumbeats covers PagerDuty and Microsoft Teams natively but has no OpsGenie, Signal, or Mattermost adapter today.</p>\n<p><strong>Predictable per-check pricing at scale.</strong> At high check volumes, Healthchecks.io Business Plus ($80/month, 1,000 checks) is a fixed, predictable bill. Drumbeats&#39; usage-based pricing is cheaper for most workloads but introduces variability if job frequency is irregular. For teams that need simple billing forecasting, Healthchecks.io&#39;s model is easier to reason about.</p>\n<p>If your team is comfortable self-hosting and values open source, Healthchecks.io is a solid choice. No caveats.</p>\n<hr />\n<h2 id=\"where-drumbeats-wins\">Where Drumbeats Wins</h2>\n<p><strong>More generous free tier.</strong> 50 monitors on Drumbeats Free vs. 20 on Healthchecks.io Hobbyist. For teams growing beyond 20 jobs, Drumbeats stays free longer. At 50 monitors, Healthchecks.io requires a $20/month Business plan; Drumbeats is still free.</p>\n<p><strong>Event-driven jobs as a first-class mode.</strong> Healthchecks.io is designed around schedules. You can use it for event-driven jobs by setting up a check with no expected schedule, but it is not the primary design. Drumbeats has a dedicated event-driven monitor type (<code>JOB_BASIC</code>) that expects no schedule, alerts only on explicit failures or hung runs, and is built specifically for queue workers, webhook handlers, and on-demand tasks. If your background work includes event-driven processes alongside cron jobs, Drumbeats&#39; model fits better.</p>\n<p><strong>Flexible run_id format.</strong> Both tools support run IDs for concurrent execution tracking. Healthchecks.io requires UUIDs. Drumbeats accepts any string up to 255 characters, meaning you can use your natural domain identifiers (<code>order-12345</code>, <code>import-2026-04-10</code>, <code>msg-abc</code>) as correlation keys without maintaining a separate UUID mapping.</p>\n<p><strong>Larger payload limits on paid plans.</strong> Both tools support payloads on pings. Healthchecks.io caps at 100 KB across all plans. Drumbeats scales: 100 KB on Free, 1 MB on Pro, 2 MB on Business. For jobs with verbose output (large error traces, pipeline results, multi-stage processing stats), the higher limits matter for debuggability.</p>\n<p><strong>Usage-based pricing.</strong> A daily job and a per-minute job do not cost the same on Drumbeats. You pay for activity, not existence. Idle monitors cost nothing. This is the right model if your job portfolio is uneven (many low-frequency monitors and a few high-frequency ones) because you only pay for what actually runs.</p>\n<p><strong>Public status pages.</strong> Drumbeats includes a public status page showing job health on all plans, with custom domains on Pro and Business and visitor email subscriptions on advanced pages. Useful if you need external-facing visibility for stakeholders or customers. Note this applies to cron and heartbeat monitors; event-driven monitors are not included in status pages. Healthchecks.io offers status badges but not full status pages.</p>\n<p><strong>Official MCP server.</strong> Create and manage monitors from Claude, Cursor, or VS Code in plain language. The hosted server signs in over OAuth, so there is no API key to paste.</p>\n<hr />\n<h2 id=\"the-self-host-question\">The Self-Host Question</h2>\n<p>Healthchecks.io&#39;s self-hosting option deserves a dedicated section because it changes the comparison fundamentally.</p>\n<p><strong>If you self-host Healthchecks.io, the pricing comparison is moot.</strong> You get unlimited checks for the cost of a VM (a few dollars/month on most cloud providers). No SaaS bill, no per-check pricing. This is a legitimate advantage.</p>\n<p><strong>But self-hosting has real costs that do not show up on a pricing page:</strong></p>\n<ul><li><strong>Uptime management.</strong> Your monitoring tool needs to be up to monitor your other tools. If Healthchecks.io goes down, you are blind. Who monitors the monitor?</li><li><strong>Upgrades and patches.</strong> The Healthchecks.io codebase moves forward. Staying current is your responsibility.</li><li><strong>Backups.</strong> Your monitoring data needs backup. Another thing to manage.</li><li><strong>Scaling.</strong> If your check volume grows, you need to scale the infrastructure. Database, application server, message queue: all yours.</li><li><strong>Ops overhead.</strong> Every self-hosted service is a tax on your engineering team&#39;s attention. For a small team, running another service may not be worth the savings.</li></ul>\n<p>The math depends on your team. If you already have infrastructure management muscle and strong ops practices, self-hosting Healthchecks.io is a great option. If your team is lean and you would rather not manage another service, a hosted solution that costs $0-$20/month is probably the better use of engineering time.</p>\n<hr />\n<h2 id=\"who-should-use-which\">Who Should Use Which</h2>\n<p><strong>Use Healthchecks.io if:</strong></p>\n<ul><li>Self-hosting is a genuine option and your team has the ops capacity for it</li><li>You need open-source transparency or have data sovereignty requirements</li><li>Your monitoring needs are purely schedule-based (cron, heartbeats)</li><li>You need SMS, WhatsApp, or phone call alerts natively today</li><li>You need OpsGenie, Signal, or Mattermost integration natively today</li><li>You need predictable per-check billing at scale</li></ul>\n<p><strong>Use Drumbeats if:</strong></p>\n<ul><li>You run event-driven jobs alongside cron jobs (queue workers, webhooks, on-demand tasks)</li><li>You want a more generous free tier (50 monitors vs. 20) with usage-based pricing</li><li>Your run IDs are natural domain identifiers (order IDs, message IDs) rather than UUIDs</li><li>You need larger payload attachments on paid plans (1-2 MB vs. 100 KB)</li><li>You want public status pages for stakeholders included out of the box</li><li>Your team is lean and cannot afford to maintain another self-hosted service</li><li>You prefer a hosted service with an official MCP server for your AI tools</li></ul>\n<p>For teams running modern backend workloads (a mix of cron jobs, queue workers, and event-driven processes), Drumbeats covers the full spectrum with a design built for that reality. Healthchecks.io is excellent at what it does, but what it does is specifically scheduled job monitoring. If that is all you need, it is a great tool. If you need event-driven support as a first-class feature, the design difference matters.</p>\n<hr />\n<h2 id=\"try-drumbeats-free\">Try Drumbeats Free</h2>\n<p>50 monitors. 200,000 Beats/month. All 8 notification channels (Email, Slack, Telegram, Discord, Webhooks, Browser Push, Microsoft Teams, PagerDuty). No credit card.</p>\n<p>Set up your first monitor in 60 seconds: <a href=\"https://drumbeats.io/register\" rel=\"noopener noreferrer\" target=\"_blank\">drumbeats.io/register</a></p>\n<p>If you are currently on Healthchecks.io&#39;s hosted plans, run the math: count your checks, estimate your ping frequency, and see how it maps to Beats. For most workloads under 50 monitors with hourly-or-less frequency, Drumbeats Free covers it entirely.</p>\n<p>Start free today: no credit card, no commitment.</p>\n<p><a href=\"https://drumbeats.io/register\" rel=\"noopener noreferrer\" target=\"_blank\">Start free</a> | <a href=\"https://drumbeats.io/pricing\" rel=\"noopener noreferrer\" target=\"_blank\">View pricing</a> | <a href=\"https://drumbeats.io/connect\" rel=\"noopener noreferrer\" target=\"_blank\">Connect your AI client</a></p>",
      "image": "https://drumbeats.io/blog/og/drumbeats-vs-healthchecks-io-pricing-features-comparison.png?v=646807ba",
      "date_published": "2026-04-10T10:00:00.000Z",
      "date_modified": "2026-10-29T10:00:00.000Z",
      "tags": [
        "cron job monitoring",
        "comparison",
        "pricing",
        "healthchecks alternative",
        "free cron monitoring"
      ]
    },
    {
      "id": "https://drumbeats.io/blog/uptime-monitoring-is-here",
      "url": "https://drumbeats.io/blog/uptime-monitoring-is-here",
      "title": "Uptime Monitoring is Here",
      "summary": "Drumbeats now monitors your websites and APIs for uptime. Add a URL, pick a check interval, and get alerted when something goes down, with built-in retry logic to suppress false positives.",
      "content_html": "<p>Drumbeats started as a cron job and background job monitor. Today it also watches your websites and APIs.</p>\n<p>Add a URL, choose a check interval between 1 and 5 minutes, and Drumbeats will start pinging it. If your endpoint goes down, you get notified through the same channels you already use: Email, Slack, Telegram, Discord, Webhook, or Browser Push.</p>\n<h2 id=\"what-shipped\">What shipped</h2>\n<h3 id=\"http-checks-with-configurable-intervals\">HTTP checks with configurable intervals</h3>\n<p>Create an uptime monitor by entering a URL. Drumbeats sends an HTTP request at your chosen interval (1, 2, 3, or 5 minutes) and records the result. You see status codes, response times, and errors in a check results table on the monitor detail page.</p>\n<h3 id=\"response-time-tracking\">Response time tracking</h3>\n<p>Every monitor gets a 24-hour response time chart showing Avg, P95, Min, and Max stats. You can spot degradation before it turns into downtime: a creeping P95 is often the first warning sign.</p>\n<h3 id=\"retry-based-false-positive-suppression\">Retry-based false positive suppression</h3>\n<p>A single failed check does not trigger an alert. Drumbeats retries 3 times with 5-second gaps before opening an incident. This handles transient network blips, brief deploy windows, and load balancer hiccups without waking anyone up.</p>\n<p>If all retries fail, Drumbeats opens an incident and sends notifications. When the endpoint recovers, the incident resolves automatically.</p>\n<h3 id=\"works-with-your-existing-notification-channels\">Works with your existing notification channels</h3>\n<p>Uptime monitors use the same notification groups as your cron and event-driven monitors. If you already have Slack and Email configured, your uptime alerts go there too. No extra setup.</p>\n<p>This includes the new Browser Push channel. Get native push notifications in your browser without installing anything.</p>\n<h3 id=\"status-page-support\">Status page support</h3>\n<p>Uptime monitors can be added to your public status page alongside your cron monitors. Your users see a single view of operational health across both scheduled jobs and endpoint availability.</p>\n<h2 id=\"billing\">Billing</h2>\n<p>Each HTTP check consumes 1 Beat. If retries fire, each retry also counts as 1 Beat. A monitor checking every minute uses roughly 43,200 Beats per month. On the Free plan (200K Beats/month), that leaves room for about 4 monitors at 1-minute intervals, or more at lower frequencies.</p>\n<p>The math scales linearly: a 5-minute interval uses about 8,640 Beats per month.</p>\n<h2 id=\"firewall-and-waf-whitelisting\">Firewall and WAF whitelisting</h2>\n<p>Drumbeats sends requests with the user-agent <code>Drumbeats/1.0 (+https://drumbeats.io/docs/monitor-types/uptime)</code>. If your endpoint sits behind a WAF or firewall, whitelist this user-agent string to avoid blocked checks being reported as downtime.</p>\n<p>You can find the IP addresses used by Drumbeats for uptime checks on the monitor detail page.</p>\n<h2 id=\"coming-soon\">Coming soon</h2>\n<p>We are already working on the next round of uptime capabilities:</p>\n<ul><li><strong>Keyword verification</strong>: assert that the response body contains (or does not contain) a specific string</li><li><strong>SSL certificate expiry monitoring</strong>, get alerted before your cert expires</li><li><strong>Multi-region checks</strong> (run checks from multiple locations to distinguish local network issues from real outages)</li></ul>\n<h2 id=\"get-started\">Get started</h2>\n<p>If you already have a Drumbeats account, go to your dashboard, click <strong>New Monitor</strong>, and select <strong>Uptime</strong>. Enter a URL, pick an interval, assign a notification group, and you are live.</p>\n<p>If you are new to Drumbeats, <a href=\"/register\">start free</a>: 50 monitors and 200K Beats per month, no credit card required.</p>",
      "image": "https://drumbeats.io/blog/og/uptime-monitoring-is-here.png?v=6d83a428",
      "date_published": "2026-04-08T10:00:00.000Z",
      "date_modified": "2026-05-18T00:00:00.000Z",
      "tags": [
        "changelog",
        "uptime monitoring",
        "product"
      ]
    },
    {
      "id": "https://drumbeats.io/blog/unlimited-team-seats-on-all-plans",
      "url": "https://drumbeats.io/blog/unlimited-team-seats-on-all-plans",
      "title": "Unlimited Team Seats on All Plans",
      "summary": "Every Drumbeats plan, including Free, now includes unlimited team seats. No per-seat fees, no invite caps, no catch.",
      "content_html": "<p>Starting today, every Drumbeats plan (Free, Pro, and Business) includes unlimited team seats.</p>\n<p>You can invite as many teammates as you need to any project, at no extra cost, on any plan.</p>\n<h2 id=\"what-changed\">What changed</h2>\n<p>Previously, each plan had a fixed seat cap:</p>\n<div class=\"blog-table-wrap\"><table><thead><tr><th>Plan</th><th>Old limit</th><th>New limit</th></tr></thead><tbody><tr><td>Free</td><td>5 seats</td><td>Unlimited</td></tr><tr><td>Pro</td><td>25 seats</td><td>Unlimited</td></tr><tr><td>Business</td><td>100 seats</td><td>Unlimited</td></tr></tbody></table></div>\n<p>Those limits are gone. There is no seat counter, no per-user add-on, no upgrade required to add someone to a project.</p>\n<h2 id=\"why-we-made-this-change\">Why we made this change</h2>\n<p>Per-seat pricing creates a bad incentive: teams start rationing access. You skip inviting the on-call engineer because it would bump you over the cap. You consolidate accounts. You share credentials.</p>\n<p>That is the wrong direction. Monitoring works better when everyone who needs access has it: the developer who owns the job, the team lead who gets paged, the stakeholder who wants visibility.</p>\n<p>Seats should not be the thing that stops that from happening.</p>\n<h2 id=\"how-this-compares\">How this compares</h2>\n<p>For context: Cronitor charges $5/user/month on paid plans. A 10-person team pays $50/month in seat fees alone before counting a single monitor.</p>\n<p>On Drumbeats, that number is $0. On every plan, including Free.</p>\n<h2 id=\"what-you-need-to-do\">What you need to do</h2>\n<p>Nothing. The change applies to all existing accounts automatically. If you were bumping into your old seat limit, it is gone now. Go ahead and invite the rest of your team.</p>\n<p><a href=\"/settings\">Open your project settings</a> to invite members, or <a href=\"/register\">start free</a> if you are not on Drumbeats yet.</p>",
      "image": "https://drumbeats.io/blog/og/unlimited-team-seats-on-all-plans.png?v=2ad9dd5c",
      "date_published": "2026-04-06T10:00:00.000Z",
      "date_modified": "2026-04-06T10:00:00.000Z",
      "tags": [
        "changelog",
        "pricing",
        "team"
      ]
    },
    {
      "id": "https://drumbeats.io/blog/drumbeats-vs-cronitor-cron-job-monitoring",
      "url": "https://drumbeats.io/blog/drumbeats-vs-cronitor-cron-job-monitoring",
      "title": "Drumbeats vs Cronitor: Cron Job Monitoring Compared",
      "summary": "Cronitor charges $2 per monitor and $5 per user: $125/month for 50 jobs. Drumbeats covers the same setup for $0, with deeper observability built in.",
      "content_html": "<p>Both Drumbeats and Cronitor solve the same core problem: alerting you when a cron job fails silently. The feature sets overlap heavily. The pricing models do not, and neither does the depth of observability you get out of the box.</p>\n<p>This post breaks down what each tool costs in real-world scenarios and how they differ in monitoring depth.</p>\n<h2 id=\"at-a-glance\">At a glance</h2>\n<div class=\"blog-table-wrap\"><table><thead><tr><th></th><th>Cronitor</th><th>Drumbeats</th></tr></thead><tbody><tr><td>Free tier</td><td>5 monitors (Hacker plan)</td><td>50 monitors, 200K Beats/month</td></tr><tr><td>Pricing model</td><td>Per-monitor + per-user</td><td>Usage-based (Beats per month)</td></tr><tr><td>Per-monitor cost</td><td>$2/monitor on Business plan</td><td>$0/monitor (usage only)</td></tr><tr><td>Per-user cost</td><td>$5/user on Business plan</td><td>Unlimited team seats</td></tr><tr><td>Open source</td><td>No</td><td>No</td></tr><tr><td>Self-hostable</td><td>No</td><td>No</td></tr><tr><td>Event-driven jobs</td><td>Cron-first</td><td>First-class mode alongside cron</td></tr><tr><td>Run ID / concurrent jobs</td><td>Yes</td><td>Yes</td></tr><tr><td>Payload limit</td><td>Limited</td><td>100 KB free, 1 MB Pro, 2 MB Business</td></tr></tbody></table></div>\n<h2 id=\"how-each-tool-charges-you\">How each tool charges you</h2>\n<p><strong>Cronitor</strong> uses per-unit pricing. On their Business plan, every monitor costs $2/month and every dashboard user costs $5/month. Their free Hacker plan caps at 5 monitors with no SMS or premium integrations.</p>\n<p><strong>Drumbeats</strong> uses usage-based pricing. Monitors are free on every plan. You pay in Beats (1 ping = 1 Beat) so billing follows actual job activity, not how many monitors exist. The free plan includes 50 monitors and 200K Beats/month.</p>\n<h2 id=\"three-real-scenarios\">Three real scenarios</h2>\n<h3 id=\"scenario-1-solo-developer-20-cron-jobs\">Scenario 1: Solo developer, 20 cron jobs</h3>\n<div class=\"blog-table-wrap\"><table><thead><tr><th></th><th>Cronitor</th><th>Drumbeats</th></tr></thead><tbody><tr><td>Plan</td><td>Business</td><td>Free</td></tr><tr><td>Monitors</td><td>20 × $2 = $40</td><td>20 of 50 included</td></tr><tr><td>Users</td><td>1 × $5 = $5</td><td>1 included (unlimited seats)</td></tr><tr><td><strong>Monthly total</strong></td><td><strong>$45</strong></td><td><strong>$0</strong></td></tr></tbody></table></div>\n<p>A solo dev with 20 jobs (daily backups, hourly syncs, a few weekly reports) pays $45/month on Cronitor before adding a single integration. On Drumbeats, the entire setup is free.</p>\n<h3 id=\"scenario-2-small-team-50-cron-jobs\">Scenario 2: Small team, 50 cron jobs</h3>\n<div class=\"blog-table-wrap\"><table><thead><tr><th></th><th>Cronitor</th><th>Drumbeats</th></tr></thead><tbody><tr><td>Plan</td><td>Business</td><td>Free</td></tr><tr><td>Monitors</td><td>50 × $2 = $100</td><td>50 of 50 included</td></tr><tr><td>Users</td><td>5 × $5 = $25</td><td>5 included (unlimited seats)</td></tr><tr><td><strong>Monthly total</strong></td><td><strong>$125</strong></td><td><strong>$0</strong></td></tr></tbody></table></div>\n<p>A 5-person team monitoring 50 jobs hits $125/month on Cronitor. On Drumbeats, 50 monitors and unlimited team seats are included on the free tier. Even if job volume pushes you to Pro, that is $20/month.</p>\n<h3 id=\"scenario-3-growing-team-150-cron-jobs\">Scenario 3: Growing team, 150 cron jobs</h3>\n<div class=\"blog-table-wrap\"><table><thead><tr><th></th><th>Cronitor</th><th>Drumbeats</th></tr></thead><tbody><tr><td>Plan</td><td>Business</td><td>Pro</td></tr><tr><td>Monitors</td><td>150 × $2 = $300</td><td>Unlimited, included</td></tr><tr><td>Users</td><td>10 × $5 = $50</td><td>10 included (unlimited seats)</td></tr><tr><td><strong>Monthly total</strong></td><td><strong>$350</strong></td><td><strong>$20</strong></td></tr></tbody></table></div>\n<p>At 150 monitors with 10 team members, Cronitor reaches $350/month. Drumbeats Pro covers unlimited monitors and unlimited team seats for a flat $20/month.</p>\n<h2 id=\"feature-comparison\">Feature comparison</h2>\n<p>Both tools handle the fundamentals. Here is where they differ.</p>\n<div class=\"blog-table-wrap\"><table><thead><tr><th>Feature</th><th>Cronitor (Business)</th><th>Drumbeats (Free / Pro)</th></tr></thead><tbody><tr><td>Cron job monitoring</td><td>Yes</td><td>Yes</td></tr><tr><td>Heartbeat monitoring</td><td>Yes</td><td>Yes</td></tr><tr><td>Event-driven job monitoring</td><td>No</td><td>Yes</td></tr><tr><td>Ping API (no SDK required)</td><td>Yes</td><td>Yes</td></tr><tr><td>Start + success/failure tracking</td><td>Yes</td><td>Yes</td></tr><tr><td>Separate /log signal (no status change)</td><td>Via CLI/API</td><td>Yes (dedicated endpoint)</td></tr><tr><td>Payload attachments on pings</td><td>Yes</td><td>Yes (billed from first byte; 1 Beat base + 1 Beat per 25KB chunk, rounded up)</td></tr><tr><td>Runtime duration tracking</td><td>Yes</td><td>Yes (via start → success)</td></tr><tr><td>Email, Slack, Telegram alerts</td><td>Yes</td><td>Yes (all plans)</td></tr><tr><td>Discord alerts</td><td>Yes</td><td>Yes (all plans)</td></tr><tr><td>Browser push alerts</td><td>No</td><td>Yes (all plans)</td></tr><tr><td>Microsoft Teams</td><td>Yes</td><td>Yes (all plans)</td></tr><tr><td>PagerDuty</td><td>Yes</td><td>Yes (all plans)</td></tr><tr><td>OpsGenie</td><td>Yes</td><td>No (webhook bridge today)</td></tr><tr><td>Public status pages</td><td>Yes ($25/mo for branding)</td><td>Yes (included, custom domain on Pro and Business)</td></tr><tr><td>Minimum check interval</td><td>30 seconds</td><td>30 seconds (Pro) / 1 min (Free)</td></tr><tr><td>Official MCP server</td><td>Yes</td><td>Yes</td></tr><tr><td>Free plan monitors</td><td>5</td><td>50</td></tr><tr><td>Seats included (paid plan)</td><td>$5/user/month</td><td>Unlimited (all plans)</td></tr></tbody></table></div>\n<h2 id=\"more-pings-more-visibility-still-cheaper\">More pings, more visibility, still cheaper</h2>\n<p>Both tools support a basic heartbeat ping. But when you want real observability (runtime tracking, failure detection, and log capture), Drumbeats&#39; ping lifecycle shines, and the cost difference gets even wider.</p>\n<p>With Drumbeats, a single job execution can send up to four signals:</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"bash\" data-title=\"\" data-code=\"IyAxLiBTdGFydCDigJQgYmVnaW5zIHRoZSBydW50aW1lIGNsb2NrCmN1cmwgaHR0cHM6Ly9hcGkuZHJ1bWJlYXRzLmlvL3YxL3BpbmcvPG1vbml0b3ItaWQ+L3N0YXJ0Cgp5b3VyX2pvYl9jb21tYW5kCgojIDIuIFN1Y2Nlc3Mgb3IgRmFpbHVyZSDigJQgc3RvcHMgdGhlIGNsb2NrLCBzZXRzIHRoZSBvdXRjb21lCmN1cmwgaHR0cHM6Ly9hcGkuZHJ1bWJlYXRzLmlvL3YxL3BpbmcvPG1vbml0b3ItaWQ+L3N1Y2Nlc3MKCiMgMy4gQXR0YWNoIGxvZ3MgKFBPU1QgYm9keSkgZm9yIGRlYnVnZ2luZwpjdXJsIC1YIFBPU1QgaHR0cHM6Ly9hcGkuZHJ1bWJlYXRzLmlvL3YxL3BpbmcvPG1vbml0b3ItaWQ+L2xvZyBcCiAgLWQgJ3sicm93c19wcm9jZXNzZWQiOiAxNDgyMywgImR1cmF0aW9uX21zIjogNDUyMX0n\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6A737D\"># 1. Start — begins the runtime clock</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">curl</span><span style=\"color:#032F62\"> https://api.drumbeats.io/v1/ping/</span><span style=\"color:#D73A49\">&#x3C;</span><span style=\"color:#032F62\">monitor-i</span><span style=\"color:#24292E\">d</span><span style=\"color:#D73A49\">></span><span style=\"color:#032F62\">/start</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">your_job_command</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#6A737D\"># 2. Success or Failure — stops the clock, sets the outcome</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">curl</span><span style=\"color:#032F62\"> https://api.drumbeats.io/v1/ping/</span><span style=\"color:#D73A49\">&#x3C;</span><span style=\"color:#032F62\">monitor-i</span><span style=\"color:#24292E\">d</span><span style=\"color:#D73A49\">></span><span style=\"color:#032F62\">/success</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#6A737D\"># 3. Attach logs (POST body) for debugging</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">curl</span><span style=\"color:#005CC5\"> -X</span><span style=\"color:#032F62\"> POST</span><span style=\"color:#032F62\"> https://api.drumbeats.io/v1/ping/</span><span style=\"color:#D73A49\">&#x3C;</span><span style=\"color:#032F62\">monitor-i</span><span style=\"color:#24292E\">d</span><span style=\"color:#D73A49\">></span><span style=\"color:#032F62\">/log</span><span style=\"color:#005CC5\"> \\</span></span>\n<span class=\"line\"><span style=\"color:#005CC5\">  -d</span><span style=\"color:#032F62\"> '{\"rows_processed\": 14823, \"duration_ms\": 4521}'</span></span></code></pre></div></div>\n<p>Each ping has a 1-Beat base cost, plus 1 Beat per 25KB chunk of payload, rounded up. Payload billing starts at the first byte, so there is no free payload allowance. A job that sends start + success + a small log payload uses 4 Beats per run, and larger payloads scale from there.</p>\n<p>This means you can choose your observability depth per job: a quiet nightly backup can ping once (1 Beat/day), while a critical billing job can send start, success, and a log payload for full runtime and audit visibility. Payload-heavy runs simply consume more Beats.</p>\n<p><strong>What does this cost in practice?</strong></p>\n<p>Take Scenario 2, a team with 50 cron jobs. Say 30 of them are simple heartbeats (1 ping/run) and 20 send start + success + a log payload (4 Beats/run). Assume the simple jobs run hourly and the instrumented ones run every 15 minutes:</p>\n<ul><li>Simple: 30 jobs × 720 runs/month × 1 Beat = 21,600 Beats</li><li>Instrumented: 20 jobs × 2,880 runs/month × 4 Beats = 230,400 Beats</li><li>Total: ~252K Beats/month, above Free, but comfortably within Pro&#39;s included Beats</li></ul>\n<p>On Cronitor, the same 50 monitors with 5 users costs $125/month regardless of how deeply you instrument each job. On Drumbeats, richer observability does not change your plan: it just uses more of your included allowance.</p>\n<h2 id=\"the-pricing-model-problem\">The pricing model problem</h2>\n<p>Per-monitor pricing creates a perverse incentive: the more jobs you want to cover, the more expensive it gets, linearly. Teams start rationing monitors, skipping low-frequency jobs, or combining unrelated tasks into one monitor to save money.</p>\n<p>Usage-based pricing aligns the bill with actual workload. A nightly backup that pings once a day barely registers. A per-minute health check uses more because it genuinely produces more monitoring work. You never pay for a monitor that just sits there, and payload-heavy runs are billed only by the bytes they actually send.</p>\n<h2 id=\"where-cronitor-wins\">Where Cronitor wins</h2>\n<p>Cronitor is a mature product with a track record. If your team needs SAML SSO today, synthetic browser checks, or real user monitoring (RUM), Cronitor already has those. Drumbeats is focused on background job monitoring and is building toward broader feature parity over time.</p>\n<p>Even if you are already paying for Cronitor, migration overhead is low: connect the <a href=\"/connect\">Drumbeats MCP server</a> to Claude, Cursor, or VS Code and ask it to create your monitors, so switching is usually fast even for smaller setups.</p>\n<h2 id=\"where-drumbeats-wins\">Where Drumbeats wins</h2>\n<p>If cost matters (and for most small to mid-size teams, it does), the math is hard to argue with. Drumbeats covers 50 monitors for free where Cronitor covers 5. At scale, the gap widens: 150 monitors costs $350/month on Cronitor vs $20/month on Drumbeats.</p>\n<h2 id=\"the-seat-cost-cronitor-does-not-advertise\">The seat cost Cronitor does not advertise</h2>\n<p>Cronitor charges $5/user/month on their Business plan. That number does not show up in the headline pricing. It shows up on your invoice.</p>\n<p>For a team of 10, that is $50/month in seat fees before a single monitor is counted. A team of 20 pays $100/month just for access. The monitor costs stack on top.</p>\n<p>Drumbeats charges $0 for seats. On every plan, including Free. You can invite your entire engineering team, your on-call rotation, and the one stakeholder who only looks at the dashboard once a month. No extra charge.</p>\n<h2 id=\"try-the-math-yourself\">Try the math yourself</h2>\n<p>If you are evaluating cron monitoring tools, run your own numbers. Count your monitors, count your team members, and compare.</p>\n<p><strong>Cronitor cost:</strong> (monitors × $2) + (users × $5) per month. <strong>Drumbeats cost:</strong> $0 for up to 50 monitors. $20/month for unlimited monitors and unlimited team seats.</p>\n<p><a href=\"/register\">Start free with Drumbeats</a>: 50 monitors, no credit card, setup in 60 seconds.</p>",
      "image": "https://drumbeats.io/blog/og/drumbeats-vs-cronitor-cron-job-monitoring.png?v=55e1999a",
      "date_published": "2026-03-24T10:00:00.000Z",
      "date_modified": "2026-10-29T10:00:00.000Z",
      "tags": [
        "cron job monitoring",
        "comparison",
        "pricing",
        "cronitor alternative"
      ]
    },
    {
      "id": "https://drumbeats.io/blog/why-we-built-drumbeats-for-cron-job-monitoring",
      "url": "https://drumbeats.io/blog/why-we-built-drumbeats-for-cron-job-monitoring",
      "title": "Why We Built Drumbeats for Cron Job Monitoring",
      "summary": "We built Drumbeats because too many cron monitoring tools still optimize for dashboards and pricing tricks instead of fast setup, clear APIs, and fair usage for real teams.",
      "content_html": "<p>Your invoice sender stopped after last Friday&#39;s deploy. The nightly backup completed four hours late. The revenue export has been silently skipping runs for a week.</p>\n<p>Nobody got paged. Nobody noticed. Your users did.</p>\n<p>That is the gap Drumbeats closes.</p>\n<h2 id=\"the-problem-is-not-missing-tools-it-is-misaligned-ones\">The problem is not missing tools: it is misaligned ones</h2>\n<p>Uptime monitors check whether endpoints respond. Log aggregators surface errors after the fact. Neither answers the question that matters for scheduled work: <strong>did this job run on time, and did it finish?</strong></p>\n<p>Most cron monitoring tools technically answer that question. But they come with friction that discourages adoption: complicated APIs, per-monitor pricing that punishes coverage, and setup flows that assume you have a free afternoon.</p>\n<p>We kept running into the same pattern: teams would instrument their three loudest jobs, skip the rest, and call it done. The quiet ones (daily syncs, weekly reports, monthly cleanups) stayed unmonitored because the cost and effort did not feel justified.</p>\n<p>That is the wrong tradeoff.</p>\n<h2 id=\"what-we-did-differently\">What we did differently</h2>\n<h3 id=\"one-line-integration-no-sdk\">One-line integration, no SDK</h3>\n<p>Drumbeats uses a Ping API. If your job can make an HTTP request, it can talk to Drumbeats. No library, no agent, no SDK install.</p>\n<div class=\"docs-code\" data-codeblock data-lang=\"bash\" data-title=\"\" data-code=\"IyBTaW1wbGVzdCBwYXRoOiBwaW5nIG9uIHN1Y2Nlc3MKY3VybCBodHRwczovL2JlYXRzLmRydW1iZWF0cy5pby92MS9waW5nL1lPVVJfTU9OSVRPUl9JRAoKIyBXYW50IGR1cmF0aW9uIHRyYWNraW5nPyBBZGQgYSBzdGFydCBzaWduYWwKY3VybCBodHRwczovL2JlYXRzLmRydW1iZWF0cy5pby92MS9waW5nL1lPVVJfTU9OSVRPUl9JRC9zdGFydAp5b3VyX2pvYl9jb21tYW5kCmN1cmwgaHR0cHM6Ly9iZWF0cy5kcnVtYmVhdHMuaW8vdjEvcGluZy9ZT1VSX01PTklUT1JfSUQ=\"><div class=\"docs-code__light\"><pre class=\"shiki github-light\" style=\"background-color:#fff;color:#24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color:#6A737D\"># Simplest path: ping on success</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">curl</span><span style=\"color:#032F62\"> https://beats.drumbeats.io/v1/ping/YOUR_MONITOR_ID</span></span>\n<span class=\"line\"></span>\n<span class=\"line\"><span style=\"color:#6A737D\"># Want duration tracking? Add a start signal</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">curl</span><span style=\"color:#032F62\"> https://beats.drumbeats.io/v1/ping/YOUR_MONITOR_ID/start</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">your_job_command</span></span>\n<span class=\"line\"><span style=\"color:#6F42C1\">curl</span><span style=\"color:#032F62\"> https://beats.drumbeats.io/v1/ping/YOUR_MONITOR_ID</span></span></code></pre></div></div>\n<p>Works in Bash, Python, Node, Go, Ruby: anything with <code>curl</code> or an HTTP client.</p>\n<h3 id=\"set-it-up-from-your-ai-client\">Set it up from your AI client</h3>\n<p>Instead of reading docs and creating each monitor by hand, connect the Drumbeats MCP server at <a href=\"/connect\">drumbeats.io/connect</a>. Add it to Claude, Cursor, or VS Code, sign in over OAuth, and ask in plain language: &quot;Create a cron monitor for my nightly backup that runs every day at 02:00 UTC.&quot;</p>\n<p>The same connection lists your monitors, reports uptime, and acknowledges or resolves incidents. Paste the AGENTS.md snippet from that page into your repo so your coding agent knows the server is there.</p>\n<h3 id=\"usage-based-pricing-instead-of-per-monitor-fees\">Usage-based pricing instead of per-monitor fees</h3>\n<p>Monitors are free on every plan. You pay in <strong>Beats</strong>, a usage currency where 1 ping = 1 Beat.</p>\n<p>That means a nightly backup that pings once a day costs almost nothing. A high-frequency health check that fires every minute costs proportionally more. The bill follows actual job activity, not how many rows exist in your dashboard.</p>\n<p>In practice, teams can afford to monitor everything important instead of rationing coverage to stay under a monitor cap.</p>\n<p><strong>Free</strong>: 50 monitors, 200K Beats/month, no credit card. <strong>Pro</strong>: Unlimited monitors, 1M Beats/month, $20/month. <strong>Business</strong>: Unlimited monitors, 3M Beats/month, $49/month.</p>\n<h3 id=\"automatic-incidents-and-recovery\">Automatic incidents and recovery</h3>\n<p>When a job misses its schedule or reports a failure, Drumbeats opens an incident and notifies the right people over any of eight channels: Email, Slack, Telegram, Discord, Microsoft Teams, PagerDuty, Webhook, or browser push. When the job recovers, the incident resolves itself. No manual acknowledgment loop unless you want one.</p>\n<h3 id=\"public-status-pages\">Public status pages</h3>\n<p>Every monitor can get its own shareable status page showing uptime, execution history, and incidents. Useful for internal teams, external customers, or compliance.</p>\n<h2 id=\"who-drumbeats-is-for\">Who Drumbeats is for</h2>\n<p>Small and mid-size product teams running scheduled work they cannot afford to lose: billing jobs, data pipelines, report generators, backup scripts, sync tasks, cleanup routines.</p>\n<p>If you have a handful of cron jobs and want coverage, the free plan covers you. If you are running hundreds of jobs across services, Pro or Business scales with you.</p>\n<h2 id=\"try-it\">Try it</h2>\n<p>The fastest path is to <a href=\"/connect\">connect your AI client</a> and ask it to create your first monitor.</p>\n<p>If you want to explore the pricing model first, see <a href=\"/pricing\">pricing</a>.</p>\n<p>Or just <a href=\"/register\">start free</a> and wire up your first monitor in under a minute.</p>\n<p>The question we would leave you with: does your current setup make you want to monitor <em>more</em> of your background work, or less? If the answer is less, something is off.</p>",
      "image": "https://drumbeats.io/blog/og/why-we-built-drumbeats-for-cron-job-monitoring.png?v=c166631a",
      "date_published": "2026-03-24T00:00:00.000Z",
      "date_modified": "2026-10-29T10:00:00.000Z",
      "tags": [
        "cron job monitoring",
        "product",
        "pricing",
        "background jobs"
      ]
    }
  ]
}