r/elixir • • 10h ago

I built an open-source library to monitor Oban jobs with external heartbeat monitoring

Post image
0 Upvotes

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"}
  ]
end

The library is MIT-licensed, and HawkEye has a free plan that includes five monitors.

Links:

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!


r/elixir • • 3h ago

Mishka CMS 0.0.3: publish-time checks in the page editor, redirect rules and Unicode slugs

Thumbnail
mishka.tools
4 Upvotes

Hi dear Elixir community 🙌
We released Mishka CMS 0.0.3, an open source CMS built on Phoenix LiveView and Ash, where pages, layouts and components live in the database and compile into LiveView modules while the app runs. The editor now checks a page before publish: an empty required field, a missing slot, markup that will not compile, markup the browser would rewrite (a form inside a <p>, reported with line and column), and CSS through a real parser. Other parts of the release: redirect rules (301, rewrite, 410, 404, query string matching) with a 301 written for you when a post moves, slugs that keep non-Latin scripts as written, version history with restore for docs pages, and CODE_SIGNING_KEY, so code written straight into the database never runs.

It is three releases old, so feedback is very welcome, especially on the editor checks and the upgrade from 0.0.2 (new tables, so run mix ash.codegen and mix ash.migrate first).

Please read the blog post and support this young project, it has so many changes! ❤️


r/elixir • • 5h ago

Macro Mayhem 010 - Inside the hex.pm Security Incident

12 Upvotes

Hey all,

First off - if you are a package maintainer and have an account on hex.pm (ie, not just occasionally pulling packages via mix deps.get, you publish one or more packages). Please rotate your password and 2FA codes ASAP due to the security incident.

Peter is involved with the incident response team, and in this week's Macro Mayhem podcast we did a deep dive into what happened and the implications coming out of this. We hope you give it a listen, links to all common podcast players and show notes are on our website: https://macromayhem.fm/10

- Peter and Gus


r/elixir • • 9h ago

Malachi: an open source log broker in Elixir whose topics split and merge under their clients

Thumbnail
malachi-hq.github.io
9 Upvotes

I've been building Malachi, an open source log broker written in Elixir on OTP 28, and I just published a post introducing it. It is an independent implementation inspired by the public design of LinkedIn's NorthGuard, not affiliated with or endorsed by LinkedIn.

The parts that might interest this sub:

No fixed partitions for clients. A client deals in a topic, a key and a position. A topic is a set of ranges that an operator splits and merges while producers keep writing, and a consumer's position is an opaque token the new ranges accept after a split.

Acknowledged means on a majority of disks. A write is acknowledged once a majority of its segment's replicas has fsynced it. Metadata goes through Raft (`ra`), membership through SWIM.

Evidence per release. Every release runs chaos drills (killing nodes, breaking storage, bad config rollouts) and load tests on its exact code, and publishes the results with the hardware and the run-to-run noise.

It is in active development and not production-ready, so I'm mostly looking for feedback: on the client model (tokens instead of offsets), and on what you would need to see before trying something like this.

Post Introducing Malachi

Repo

Documentation