Performance monitor

Weekly production health check covering endpoint latency, Sentry error trends, JS bundle size, and Core Web Vitals. Flags regressions and writes a weekly performance report.

Requires: Sentry. Set up integrations

How to use this template

  1. 1Click "Use this template" or create a new automation in Ona
  2. 2Set your trigger (manual, scheduled, or event-based)
  3. 3Copy each step below into the automation builder
  4. 4Customize the prompts for your specific use case

What this does

  • Catch silent latency, error, and bundle regressions
  • Weekly trend report committed to the repo
  • Flags week-over-week deltas above a threshold
  • Optional Core Web Vitals when available

Workflow

Trigger

Scheduled run

Runs Monday 10 AM UTC.

Shell Script

Check health endpoint

curl https://example.com/api/health — flag if db.latency_ms > 500
Prompt

Compare error trends

Compare this week's Sentry error count against last week. Flag if it grew more than 20%.

Shell Script

Check bundle size

Run next build and compare JS bundle size. Flag if it grew more than 10%.
Report

Write report

Write metrics/weekly/YYYY-WNN-perf.md and open a PR.

More automations to explore.

Ready to try a template?

Start building with a free Ona account.

Copied to clipboard!

This website uses cookies to enhance the user experience. Read our cookie policy for more info.