Monitor Laravel Rust apps with Oh Dear
Published on December 1, 2026 by Freek Van der Herten
You can now monitor your Laravel Rust apps with Oh Dear using Rust ports of Spatie's health and schedule monitor packages. Get notified when disk space runs low, a database becomes unavailable, or a scheduled task doesn't finish on time.
Both packages are available on crates.io at version 0.1.0, for Laravel Rust 0.1.0 and Rust 1.99 or newer. Install the package you need with Cargo:
cargo add \ spatie-laravel-health@0.1.0 cargo add \ spatie-laravel-schedule-monitor@0.1.0
The schedule monitor uses SQLite by default. Its installation guide covers selecting MySQL or PostgreSQL instead.
Monitor what's happening inside your app #
A website can return a successful response while its disk fills up or its database connection fails. Application Health monitoring lets your app report those problems to Oh Dear.
With spatie/laravel-health-rust, you register the checks you want to run. Here's how you register a disk space check:
use spatie_health::{Check, Health};
use spatie_health::checks::{
UsedDiskSpaceCheck,
};
let mut health = Health::new();
health.checks([
UsedDiskSpaceCheck::new()
.registered(),
])?;
Register your checks through the package's service provider, then mount its protected Oh Dear results endpoint. Oh Dear reads the check results from that endpoint and sends notifications when something goes wrong.
The endpoint uses the OH_DEAR_HEALTH_CHECK_SECRET setting to verify requests from Oh Dear. You can run the checks when Oh Dear requests results, so you don't need a separate scheduled health command for that setup.
Our Laravel Rust health guide walks through the provider, route, and configuration. You'll also find more checks in the package documentation.
Get alerted when scheduled tasks stop running #
An unfinished database cleanup or a missed report won't necessarily take your website down. Scheduled-task monitoring alerts you when a task fails or doesn't report back on time.
spatie/laravel-schedule-monitor-rust records task starts, completions, failures, and runtimes. Define your tasks, attach them to Laravel's scheduler, register the provider, and run the package's migration. After configuring your Oh Dear API token, register the tasks through your application's console:
schedule-monitor:sync \ --oh-dear 123 --keep-old
Replace 123 with your Oh Dear monitor ID. With the keep-old option, the command registers new tasks without deleting existing remote checks. It doesn't update existing remote definitions.
Keep Laravel's scheduler running and enable ping delivery. If you use the package's queued ping jobs, you'll need a queue worker too.
Follow our Laravel Rust schedule monitoring guide for the setup, or read the package's Oh Dear integration docs for delivery and sync options. If your app still runs on PHP, the existing packages and setup stay the same.