Numling

Guides · Slack anomaly alerts Real-time anomaly alerts in Slack from Postgres or MySQL.

Catch payment or signup drops minutes after they start—tested on 8 weeks of SQL history.

Works read-only on Postgres, MySQL 8+, RDS, Aurora and Supabase · Zero cron jobs to host

# ops-alerts · Thu 14:05 · MySQL prod-replica

Quill APP · 14:05

Paid checkouts dropped · 38% under a usual Thursday 13:00–14:00

UPI payments19Down 61% vs usual 49
Cards & netbanking34Flat vs usual 36

Checked hourly against the past 8 Thursdays · 2 fires in 8-week replay

Sample figures, laid out as Quill posts and updates a Slack alert

The real problem

Fixed thresholds train your team to mute the channel.

Setting “alert if orders < 60/hour” fires every Sunday morning and every holiday. Comparing against the same hour on the same weekday over the last 8 weeks—and replaying the rule before turning it on—catches real drops without noise.

SAME METRIC (HOURLY PAID CHECKOUTS), 3 RULES, REPLAYED ON 8 WEEKS

  • Fixed floor: under 60 / hour47
  • vs. yesterday same hour (−30%)18
  • vs. same weekday median (8 weeks)2

Fires in 8 weeks · only 2 were real incidents (1 payment gateway outage, 1 broken deploy)

In Numling

Set up in four steps.

More on alerts →
  1. Describe what to watch in plain English

    “Alert #ops-alerts if hourly paid checkouts drop more than 35% under a usual same-weekday hour, split by payment method.”

  2. Replay it on your last 8 weeks before saving

    Quill runs the query over your past 8 weeks and shows every timestamp it would have paged you—so you tighten the sensitivity before a single alert posts.

  3. Receive the alert with the likely driver already split

    Instead of “orders down 38%”, Quill breaks the drop down by gateway, city, channel or app version right inside the Slack post.

  4. Investigate in thread, auto-resolve when recovered

    Reply to @Quill in the same thread to pull exact error codes or affected order IDs. Once the next hour recovers, Quill closes the loop automatically.

Doing it by hand: copy-paste Postgres, MySQL 8+ & Slack webhook

Run either query on an hourly cron against a read-only replica. If it returns a row, post the JSON payload to a Slack Incoming Webhook.

PostgreSQL · same-weekday hourly baseline (last 8 weeks)
with hourly as (
  select
    date_trunc('hour', created_at) as hr,
    count(*) filter (where status = 'paid') as paid_orders
  from orders
  where created_at >= date_trunc('hour', now() - interval '1 hour') - interval '56 days'
  group by 1
),
current_hr as (
  select
    date_trunc('hour', now() - interval '1 hour') as hr,
    coalesce(
      (select paid_orders from hourly where hr = date_trunc('hour', now() - interval '1 hour')),
      0
    ) as paid_orders
),
baseline as (
  select
    percentile_cont(0.5) within group (order by h.paid_orders) as median_orders,
    count(*) as sample_weeks
  from hourly h
  join current_hr c
    on extract(dow from h.hr) = extract(dow from c.hr)
   and extract(hour from h.hr) = extract(hour from c.hr)
   and h.hr < c.hr
)
select
  c.hr,
  c.paid_orders,
  round(b.median_orders::numeric, 1) as usual_orders,
  round(((c.paid_orders - b.median_orders) / nullif(b.median_orders, 0))::numeric * 100, 1) as pct_diff
from current_hr c, baseline b
where b.sample_weeks >= 4
  and c.paid_orders < b.median_orders * 0.65;

FAQ

Questions about Slack anomaly alerts.

How fast can Slack anomaly alerts run on Postgres or MySQL?

Every 15 minutes, hourly, or daily—always inside a read-only session with a query timeout so monitoring never slows production.

Why compare against the same weekday instead of yesterday?

Startups have strong day-of-week swings: Mondays and weekends rarely look like Thursdays. Comparing Thursday 13:00–14:00 against the last 8 Thursdays cuts weekend and Monday false positives dramatically.

Can we run this on a read replica or behind a VPC?

Yes. Connect a read replica directly over TLS, allow Numling’s fixed IP, or connect through a forward-only SSH bastion.

What happens when the metric recovers?

Quill posts an auto-resolved update in the same Slack thread once the next window returns inside the normal band, so nobody chases an already-fixed issue.

Turn on 8-week-tested Slack alerts.

Connect Postgres, MySQL, MongoDB or Metabase read-only in ten minutes.