https://github.com/spatie/cpu-load-health-check
A Laravel Health check to monitor CPU load
https://github.com/spatie/cpu-load-health-check
cpu health laravel load monitoring
Last synced: about 2 months ago
JSON representation
A Laravel Health check to monitor CPU load
- Host: GitHub
- URL: https://github.com/spatie/cpu-load-health-check
- Owner: spatie
- License: mit
- Created: 2021-12-13T07:25:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-29T15:10:18.000Z (about 1 year ago)
- Last Synced: 2024-05-09T22:24:51.080Z (about 1 year ago)
- Topics: cpu, health, laravel, load, monitoring
- Language: PHP
- Homepage: https://spatie.be/docs/laravel-health
- Size: 73.2 KB
- Stars: 58
- Watchers: 6
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# A Laravel Health check to monitor CPU load
[](https://packagist.org/packages/spatie/cpu-load-health-check)
[](https://github.com/spatie/cpu-load-health-check/actions/workflows/run-tests.yml)
[](https://github.com/spatie/cpu-load-health-check/actions/workflows/phpstan.yml)
[](https://packagist.org/packages/spatie/cpu-load-health-check)This package contains a [Laravel Health](https://spatie.be/docs/laravel-health) check that can measure CPU load. It can send you a notification when CPU load is too high.
```php
// typically, in a service provideruse Spatie\Health\Facades\Health;
use Spatie\CpuLoadHealthCheck\CpuLoadCheck;Health::checks([
CpuLoadCheck::new()->failWhenLoadIsHigherInTheLast5Minutes(1.2),
]);
```## Documentation
The documentation of this package is available [inside the docs of Laravel Health](https://spatie.be/docs/laravel-health/v1/available-checks/cpu-load).
## Support us
[
](https://spatie.be/github-ad-click/cpu-load-health-check)
We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).
We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).
## Testing
```bash
composer test
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](https://github.com/spatie/.github/blob/main/CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Freek Van der Herten](https://github.com/freekmurze)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.