Guides · Anomaly detection Anomaly detection for startup metrics, tested on your past weeks.
Tell Quill what to watch. It writes the alert, replays it on your last 8 weeks and shows you when it would have fired, before anyone gets a ping.
# ops · Tuesday, 09:12 IST
Asha 09:12
@Quill tell #ops when daily orders fall well under a usual day for that weekday.
Quill APP · 09:12
New alert Daily orders below a usual day
- Watches
- orders placed each day
- Fires when
- a day is more than 20% under the usual for that weekday
- Checks
- Every day at 09:00, Asia/Kolkata
- Posts to
- #ops
On the last 8 weeks it would have fired 2 times: Mon 31 Aug, 09:00, Wed 23 Sep, 09:00.
3 tests pass. Reply in this thread to change it.
Why the replay matters.
An alert that fires on a normal Sunday teaches your team to ignore the channel. In Splunk’s 2025 survey, 73% had outages from alerts ignored or suppressed.
One drop alert, 3 rules, 8 weeks: times each would have fired
Describe it in plain words
Say what to watch and where to post, in Slack or in Numling. Quill picks the metric from your knowledge base and suggests a usual-for-that-weekday range rather than a fixed line.
Read when it would have fired
The draft says how often the alert would have fired over your last 8 weeks, and when it first did. If you wouldn’t have acted on those, reply in the thread and Quill changes the rule.
Save it, and it checks on schedule
Saving needs its tests to pass. From then on it checks at the time on the card, in your timezone.
When it fires, it shows what moved
The message splits the drop, so the first question is already answered. Investigate starts the digging in the thread; snooze or mute it if it’s known.
# ops · Wednesday, 09:00 IST
Quill APP · 09:00
Sample figures, laid out as Quill posts an alert It says when it’s over
When the number is back in its range, the alert’s message changes to say so, so nobody has to ask.
# ops · the same message, a day later
Quill APP · 09:00
Worded as Quill updates it
Where a fixed line goes wrong.
- Sundays are always low
- A line set on weekday orders fires every weekend. Compare a Sunday with past Sundays.
- Sale weeks bend everything after them
- Redseer put sales in the first 11 days of the 2025 festive sale at nearly 3.5 times usual levels. The week after looks like a crash.
- Cash-on-delivery numbers change late
- An order counts as delivered or returned days after it was placed, so yesterday’s delivered revenue is always low this morning.
Doing it by hand
Compare a day with the median of the same weekday over the 8 weeks before it, in India’s time, counting a day with no orders as 0. To run it each morning, use yesterday’s date in IST for the day.
with daily as (
-- every day, a day with no orders included as 0
select g.day::date as day, count(o.id) as orders
from generate_series(date '2026-07-28', date '2026-09-22', interval '1 day') as g(day)
left join orders o
on (o.placed_at at time zone 'Asia/Kolkata')::date = g.day::date
and o.deleted_at is null
and o.goods_value > 0
and o.seller_id not in (select id from sellers where is_internal)
and o.buyer_id not in (select id from buyers where email like '%@shop-internal.test')
group by 1
)
select d.day, d.orders,
(select percentile_cont(0.5) within group (order by p.orders)
from daily p
where p.day between d.day - 56 and d.day - 7
and extract(dow from p.day) = extract(dow from d.day)) as usual
from daily d
where d.day = date '2026-09-22';Other guides.
- A weekly metrics report in SlackYour Monday numbers in Slack, built from your database, and held when a number fails a check.Read the guide →
- Broken records in your app databaseThe orders and payments in your app database that break a rule, with what each one costs.Read the guide →
- Real-time anomaly alerts in Slack from Postgres or MySQLCatch hourly payment or signup drops with an 8-week replay and copy-paste Postgres & MySQL SQL.Read the guide →
- Safe read-only AI SQL with PII maskingLeast-privilege read-only roles across Postgres, Supabase, MySQL and warehouses, plus automatic PII masking.Read the guide →
- Move Metabase dashboards into automated Slack reportsImport Metabase dashboards via API key and replace static PNGs with checked Slack reports.Read the guide →
FAQ
Questions people ask.
How do I detect a drop in orders automatically?
Compare each day with the usual for that weekday, and alert when it falls well under it. In Numling you describe that in a sentence, and Quill replays it on your past 8 weeks before you save it.
How much history does a weekday range need?
At least 3 weeks, by Datadog’s rule for weekly patterns; Numling needs 4. 8 weeks gives a steadier usual and enough past to replay the alert.
What happened to Amazon Lookout for Metrics?
AWS ended support on 10 October 2025. It learned a range for each metric from its history. A same-weekday range covers the most common case: a day well under its usual.
How many alerts are too many?
More than you’d act on. Replay each one before you save it, and snooze or mute the ones nobody needs that week.
Set an alert on your own data, and see its last 8 weeks first.
Connect Postgres, MySQL, MongoDB or Metabase, then describe it to Quill.