All Projects → kreitje → nova-horizon-stats

kreitje / nova-horizon-stats

Licence: MIT license
Nova cards for Laravel applications that use Laravel Horizon

Programming Languages

Vue
7211 projects
PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to nova-horizon-stats

nova-system-resources
Display the system usage in Laravel-Nova
Stars: ✭ 30 (-3.23%)
Mutual labels:  nova, laravel-nova
nova-sluggable
Slug field for Laravel Nova
Stars: ✭ 40 (+29.03%)
Mutual labels:  nova, laravel-nova
laravel-nova-order-nestedset-field
Laravel Nova field that make your resources orderable
Stars: ✭ 21 (-32.26%)
Mutual labels:  nova, laravel-nova
nova-url-field
A URL input and link field for Laravel Nova
Stars: ✭ 96 (+209.68%)
Mutual labels:  nova, laravel-nova
nova-inspire
The best way to connect with your customers is by reaching out and inspiring them. ~ Me
Stars: ✭ 14 (-54.84%)
Mutual labels:  nova, laravel-nova
nova-hidden-field
A Laravel Nova Hidden field.
Stars: ✭ 32 (+3.23%)
Mutual labels:  nova, laravel-nova
laravel-nova-visual-composer
Visual Composer for Laravel Nova
Stars: ✭ 15 (-51.61%)
Mutual labels:  nova, laravel-nova
nova-qrcode-field
A Laravel Nova field to generate QR Code
Stars: ✭ 28 (-9.68%)
Mutual labels:  nova, laravel-nova
nova-unlayer-field
🦜 Drag’n’drop email builder for Laravel Nova that uses Adds a Laravel Nova field for Unlayer service under the hood.
Stars: ✭ 27 (-12.9%)
Mutual labels:  nova
nova-inline-morph-to
A Laravel Nova field for displaying morphTo relationship inline.
Stars: ✭ 32 (+3.23%)
Mutual labels:  nova
nova-json-wrapper
Allows you to group Nova fields and merge their output into a single JSON column
Stars: ✭ 14 (-54.84%)
Mutual labels:  nova
custom-relationship-field
Emulate HasMany relationship without having a real relationship set between resources
Stars: ✭ 18 (-41.94%)
Mutual labels:  nova
nova-table-field
Table field for Laravel Nova
Stars: ✭ 29 (-6.45%)
Mutual labels:  laravel-nova
nova-custom-dashboard-card
A Laravel Nova dashboard card that allows you to build custom dashboards.
Stars: ✭ 84 (+170.97%)
Mutual labels:  nova
nova-mailman
Conveniently route all emails to a local mailbox.
Stars: ✭ 47 (+51.61%)
Mutual labels:  nova
nova-links
Add links to your nova sidebar
Stars: ✭ 32 (+3.23%)
Mutual labels:  nova
nova-dynamic-field
Dynamic field for Laravel Nova
Stars: ✭ 18 (-41.94%)
Mutual labels:  laravel-nova
nova-froala-editor
Froala editor input for laravel nova
Stars: ✭ 18 (-41.94%)
Mutual labels:  nova
blueprint-nova-addon
A Blueprint addon which generates Nova resources
Stars: ✭ 61 (+96.77%)
Mutual labels:  nova
nova-opening-hours-field
Laravel Nova custom field for https://github.com/spatie/opening-hours
Stars: ✭ 33 (+6.45%)
Mutual labels:  nova

Nova Horizon Stats

For sites that use Laravel Horizon, this provides a few cards to show stats you will find on /horizon.

horizon stats screenshot

Installation

You can install the package in to a Laravel app that uses Nova via composer:

composer require kreitje/nova-horizon-stats

In your app/Providers/NovaServiceProvider.php add the cards to the cards method array.

Usage:

public function cards() {
    return [
        new \Kreitje\NovaHorizonStats\JobsPastHour,
        new \Kreitje\NovaHorizonStats\FailedJobsPastHour,
        new \Kreitje\NovaHorizonStats\Processes,
        new \Kreitje\NovaHorizonStats\Workload
    ];
}

You can pass an argument into the classes for how many seconds to automatically refresh. It defaults to the 30 seconds.

public function cards() {
    return [
        new \Kreitje\NovaHorizonStats\JobsPastHour(5),
        new \Kreitje\NovaHorizonStats\FailedJobsPastHour(10),
        new \Kreitje\NovaHorizonStats\Processes(15),
        new \Kreitje\NovaHorizonStats\Workload(30),
    ];
}

If you want to change the title of the cards, pass a second argument to the card classes.

public function cards() {
    return [
        new \Kreitje\NovaHorizonStats\JobsPastHour(5, 'Jobs from the past hour')
    ];
}

The Workload card allows you to only watch for specific queues running. To only show specific queues, the third parameter takes an array of queue names.

public function cards() {
    return [
        new \Kreitje\NovaHorizonStats\Workload(5, 'Queue Workload', ['default', 'encoding'])
    ];
}

License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].