laravel-trustup-io-health-checker maintained by deegitalbe
Description
Health checker package for trustup apps
Author
Last update
2022/07/14 14:53
(dev-master)
License
Downloads
2 832
Health checker package for trustup apps
Allow to quickly monitor a website.
Installation
You can install the package via composer:
composer require deegitalbe/laravel-trustup-io-health-checker
You have to push the configuration file :
php artisan vendor:publish --tag="health-config"
Inside the generated health.php config file, inside the 'result_stores', just enable the InMemoryHealthResultStore::class and disable other storages :
'result_stores' => [
/*
Spatie\Health\ResultStores\EloquentHealthResultStore::class => [
'model' => Spatie\Health\Models\HealthCheckResultHistoryItem::class,
'keep_history_for_days' => 5,
],
Spatie\Health\ResultStores\CacheHealthResultStore::class => [
'store' => 'file',
],
Spatie\Health\ResultStores\JsonFileHealthResultStore::class => [
'disk' => 's3',
'path' => 'health.json',
],
*/
Spatie\Health\ResultStores\InMemoryHealthResultStore::class,
],
Usage
You can fetch the in real-time result on the route /health-json
Credits
License
The MIT License (MIT). Please see License File for more information.