Laravel ऐप्स के लिए स्टेटस पेज और अपटाइम मॉनिटरिंग
Laravel routes, queues, schedulers, और Horizon मॉनिटर करें। एक CNAME से custom-domain स्टेटस पेज, या हमारी API के ऊपर अपनी बनाएं।
Laravel के लिए स्टेटस पेज लॉन्च करने के तीन तरीके
नियंत्रण का स्तर चुनें — zero-code, low-code, या पूर्ण headless।
Hosted
अपना Laravel endpoint जोड़ें, CNAME को status.yourdomain.com पर point करें, हो गया। 5 मिनट में।
Headless
Public API का उपयोग करके अपनी Laravel ऐप के अंदर अपनी UI बनाएं। डिज़ाइन और ब्रांडिंग पर पूरा नियंत्रण।
API देखेंएम्बेडेड badges
अपने README या landing page में SVG uptime और status badges डालें। हर 5 मिनट में auto-update।
इस health endpoint को अपनी Laravel ऐप में जोड़ें
Copy, paste, PulseAPI को URL पर point करें। स्वस्थ पर 200, degraded पर 503 return करता है।
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Redis;
Route::get('/health', function () {
$checks = [];
try {
DB::select('select 1');
$checks['database'] = 'ok';
} catch (\Throwable $e) {
$checks['database'] = 'fail';
}
try {
Redis::ping();
$checks['cache'] = 'ok';
} catch (\Throwable $e) {
$checks['cache'] = 'fail';
}
$healthy = collect($checks)->every(fn ($v) => $v === 'ok');
return response()->json(
['status' => $healthy ? 'healthy' : 'degraded', ...$checks],
$healthy ? 200 : 503
);
})->withoutMiddleware([
\App\Http\Middleware\VerifyCsrfToken::class,
]);CSRF और auth middleware skip करें। Partial failure पर 503। सख्त throttle से exempt करें।
Laravel ऐप्स में क्या टूटता है — और कैसे पकड़ें
Horizon queues पीछे छूटना
एक queue का backlog async UX को मार देता है। Queue-depth assertions जल्दी पकड़ते हैं।
बंद हो जाने वाले scheduler jobs
अटका cron invoices को unsent छोड़ता है। Heartbeat endpoint + last-run timestamp पर assert।
Cache / session driver failures
Redis hiccups session failures के कारण intermittent 500s देते हैं। /health में cache check इसे दिखाता है।
हमारा स्टेटस पेज पसंद नहीं? Laravel में अपना बनाएं।
हमारी API वही data लौटाती है जो हमारी hosted UI उपयोग करती है। पूर्ण OpenAPI spec यहां api.pulseapi.tech/docs.
use Illuminate\Support\Facades\Http;
class StatusController extends Controller
{
public function index()
{
$data = Http::timeout(5)
->get('https://api.pulseapi.tech/status/acme')
->json();
return view('status', ['data' => $data]);
}
}Laravel मॉनिटरिंग — FAQ
क्या यह Laravel Forge, Vapor, या self-hosted के साथ काम करता है?
सभी के साथ — PulseAPI को बस public URL चाहिए।
क्या मैं Horizon monitor कर सकता हूं?
हां। Horizon::status() और queue depths पढ़ने वाला endpoint। JSON-path rules से specific queues पर assert करें।
क्या यह Laravel maintenance mode handle करता है?
हां। `php artisan down` का 503 incident trigger करता है। Deploys के दौरान alerts suppress करने के लिए scheduled maintenance windows mark करें।
क्या Laravel के अंदर स्टेटस पेज render कर सकता हूं?
हां। Controller से API hit करें, Blade view को pass करें।
अपनी Laravel ऐप की मॉनिटरिंग 5 मिनट में शुरू करें
मुफ्त tier, कोई credit card नहीं। अपना endpoint जोड़ें और टूटने पर alerts पाएं।