Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eusonlito/laravelpulse-appsload
Laravel Pulse card to show Memory and CPU usage
https://github.com/eusonlito/laravelpulse-appsload
Last synced: 16 days ago
JSON representation
Laravel Pulse card to show Memory and CPU usage
- Host: GitHub
- URL: https://github.com/eusonlito/laravelpulse-appsload
- Owner: eusonlito
- License: mit
- Created: 2023-12-05T12:50:49.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-02-05T12:38:02.000Z (9 months ago)
- Last Synced: 2024-10-18T04:23:48.220Z (26 days ago)
- Language: PHP
- Size: 17.6 KB
- Stars: 19
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# AppsLoad card for Laravel Pulse
This card will show you system apps load.
![Screenshot from 2023-12-11 16-18-49](https://github.com/eusonlito/LaravelPulse-AppsLoad/assets/644551/9a501cde-0055-457c-b863-ed063bad84cf)
## Installation
Require the package with Composer:
```shell
composer require eusonlito/laravel-pulse-apps-load:dev-master
```## Register the recorder
```diff
return [
// ...
'recorders' => [
+ \EuSonLito\LaravelPulse\AppsLoad\Recorders\AppsLoadRecorder::class => [
+ 'enabled' => env('PULSE_APPS_LOAD_ENABLED', true),
+ 'sample_rate' => env('PULSE_APPS_LOAD_SAMPLE_RATE', 1),
+ 'limit' => env('PULSE_APPS_LOAD_LIMIT', 10),
+ 'ignore' => [
+ '#^/pulse$#', // Pulse dashboard...
+ ],
+ ],
]
]
```You also need to be running [the `pulse:check` command](https://laravel.com/docs/10.x/pulse#dashboard-cards).
## Add to your dashboard
To add the card to the Pulse dashboard, you must first [publish the vendor view](https://laravel.com/docs/10.x/pulse#dashboard-customization).
Then, you can modify the `dashboard.blade.php` file:
```diff
+
```
That's it!