An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# A Laravel Health check to monitor CPU load

[![Latest Version on Packagist](https://img.shields.io/packagist/v/spatie/cpu-load-health-check.svg?style=flat-square)](https://packagist.org/packages/spatie/cpu-load-health-check)
[![run-tests](https://github.com/spatie/cpu-load-health-check/actions/workflows/run-tests.yml/badge.svg)](https://github.com/spatie/cpu-load-health-check/actions/workflows/run-tests.yml)
[![PHPStan](https://github.com/spatie/cpu-load-health-check/actions/workflows/phpstan.yml/badge.svg)](https://github.com/spatie/cpu-load-health-check/actions/workflows/phpstan.yml)
[![Total Downloads](https://img.shields.io/packagist/dt/spatie/cpu-load-health-check.svg?style=flat-square)](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 provider

use 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.