What you get

Business figures that come straight from the events your application already produces.

  • Define what you measure

    You list your metrics in one place in your app: which event counts, and which categories to break it down by.

  • Counted exactly once

    Each event is recorded once per metric. A retry, a redelivery or a replay adds nothing, so the numbers stay right.

  • Daily totals

    Entries are rolled up into totals per day, per account and per breakdown, once a day and before every read.

  • A dashboard in the portal

    A summary per metric: the total, this month, the last 30 days, a weekly series and a breakdown by category, shown as tiles on a portal page.

  • Privacy built in

    A metric stores only what its definition names. Fields marked as personal data are refused, and small groups are withheld from the summary.

How it works

Every change in a Fractal app is a domain event. The Metrics module listens to those events, writes a ledger entry for each metric an event contributes to, and folds closed days into per-day totals. The roll-up runs on the Background Processing worker.

The ledger is deleted after the roll-up by default, so only the totals remain. Keeping it for a set number of days is a setting, as is backfilling totals for history recorded before the module was installed. Lylas, one of our own products, runs on it.