Skip to content

Commit 844bd0e

Browse files
authored
Merge pull request #47 from joomla-projects/feature/more-checks
Added more health checks
2 parents e9c90b5 + 8225e10 commit 844bd0e

File tree

3 files changed

+72
-2
lines changed

3 files changed

+72
-2
lines changed

app/Providers/HealthCheckProvider.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
namespace App\Providers;
44

55
use Illuminate\Support\ServiceProvider;
6+
use Spatie\CpuLoadHealthCheck\CpuLoadCheck;
67
use Spatie\Health\Checks\Checks\DatabaseCheck;
78
use Spatie\Health\Checks\Checks\HorizonCheck;
9+
use Spatie\Health\Checks\Checks\RedisCheck;
810
use Spatie\Health\Checks\Checks\UsedDiskSpaceCheck;
911
use Spatie\Health\Facades\Health;
1012

@@ -26,7 +28,9 @@ public function boot(): void
2628
Health::checks([
2729
UsedDiskSpaceCheck::new(),
2830
DatabaseCheck::new(),
29-
HorizonCheck::new()
31+
HorizonCheck::new(),
32+
RedisCheck::new(),
33+
CpuLoadCheck::new()
3034
]);
3135
}
3236
}

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"laravel/octane": "^2.5",
1313
"laravel/tinker": "^2.9",
1414
"php-tuf/php-tuf": "1.0.1",
15+
"spatie/cpu-load-health-check": "^1.0",
1516
"spatie/laravel-health": "^1.34"
1617
},
1718
"require-dev": {

composer.lock

Lines changed: 66 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)