r/elixir • u/HawkEye_observer • 10h ago
I built an open-source library to monitor Oban jobs with external heartbeat monitoring
Hey everyone!
I've been working on a monitoring and alerting service called HawkEye, and I recently released an open-source Elixir library called hawk_eye.
The goal was to make monitoring scheduled Oban jobs as simple as possible.
One thing that concerns me about background job monitoring is that sometimes a job doesn't just fail—it stops running entirely.
For example:
- A node goes down.
- An Oban queue gets paused.
- The scheduler stops running.
- A scheduled job simply never executes.
If you're relying entirely on your application to report its own failures, you can miss these situations.
That's what this library is designed to address.
It connects Oban jobs to HawkEye heartbeat monitors. Here's what it offers:
- Listens to Oban telemetry events. No changes to your existing workers.
- Reports successful executions and their duration.
- Alerts on final job failures rather than every retry.
- Detects missed heartbeats when scheduled jobs stop running.
- Sends reporting requests in the background without blocking jobs or application startup.
- Also supports other scheduled work through
HawkEye.track/2.
Installation is straightforward:
def deps do
[
{:hawk_eye, "~> 0.1"}
]
endThe library is MIT-licensed, and HawkEye has a free plan that includes five monitors.
Links:
- GitHub: https://github.com/EssenceOfChaos/hawk_eye
- Documentation: https://hawkeye.observer/elixir
I'm the founder and lead developer behind HawkEye, so I'm obviously a little biased, but I'd genuinely appreciate feedback from other Elixir developers.
I'd especially love to hear what integrations or improvements you'd find useful. Thanks!