Skip to Content
BlocksDeveloper and ops

Alerts

Alert inboxes, threshold breaches, alert rules, severity summaries, and rules that make the product act on its own.

Alerts show what needs a response, each labelled with its severity, and the rules that respond on their own.

Inbox

Alerts, most recent first, each with a button to acknowledge it and a count of what still needs a response.

npx shadcn add @dashboardblocks/alerts-01

Alerts

4 open, 2 critical.

  • CriticalError rate above 5% for 10 minutes

    checkout-api  eu-west-1  
  • CriticalQueue backlog over 10,000 jobs

    payments-worker  
  • Warningp95 latency above 800 ms

    search  us-east-1  
  • WarningDisk usage above 80%

    postgres-primary  
    Acknowledged
  • InfoNightly invoice run took 2× longer than usual

    billing  

Threshold Breach

The metric over the last hour against its threshold, with the line turning red above it and how far over it is now.

npx shadcn add @dashboardblocks/alerts-02

Error rate above threshold

Critical

checkout-api in eu-west-1, firing for 12 minutes.

Runbook
Error rate now
6.1%
1.1% above the 5.0% threshold
Peak
6.5%
Threshold
5.0%
Error rate over the last hour. Threshold 5.0%.
TimeError rate
14:001.1%
14:021.2%
14:041.4%
14:061.4%
14:081.4%
14:101.4%
14:121.3%
14:141.2%
14:161.0%
14:180.9%
14:200.8%
14:220.8%
14:240.8%
14:260.8%
14:281.0%
14:301.1%
14:321.2%
14:341.4%
14:361.4%
14:381.4%
14:401.4%
14:421.3%
14:441.2%
14:464.0%
14:484.1%
14:505.0%
14:526.0%
14:546.5%
14:566.4%
14:586.1%

Rules

Alert rules with their conditions, severities and channels, which one fired last, and a switch to pause each one.

npx shadcn add @dashboardblocks/alerts-03

Alert rules

3 of 4 rules active. API errors fired last, 6 min. ago.

Alert rules
RuleSeverityNotifiesLast triggeredStatus
API errorsError rate > 5% for 5 minCriticalPagerDuty, Slack
Slow searchp95 latency > 800 ms for 10 minWarningSlack
Database diskDisk usage > 80%WarningEmail
Signup dropDaily signups < 50% of 7-day averageInfoSlack, EmailNever

Automation Rules, Pro

A rule that emails the owner and posts in #billing when a Team or Enterprise payment fails, with a test run and a rule written by AI from a sentence.

Pro

Escalate failed payments on larger accounts

When a payment fails, if plan is any of Team, Enterprise and MRR is at least $200: send an email, then post in Slack.

When

Only if

Then

  1. Action 1
  2. Action 2
Active

Runs as soon as it’s saved.

Saved

Test

Pick a customer and run a test. Nothing is sent.

Summary

A slim strip with open alerts by severity and the latest one, for the top of a dashboard.

npx shadcn add @dashboardblocks/alerts-04

10open alerts

2 critical  5 warning  3 info

Latest Critical Error rate above 5% for 10 minutes

checkout-api  

On this page