Horizon Statistics Dashboard for Laravel Nova
Published on by Paul Redmond
Nova Horizon is a package by the Appstract team, which provides Horizon statistics for Nova dashboards:
The basic usage is adding the package as a dashboard in the application’s NovaServiceProvider
:
class NovaServiceProvider extends NovaApplicationServiceProvider{ protected function dashboards() { return [ new \Appstract\NovaHorizon\Dashboard, ]; }}
You can also add cards individually to the main dashboard, or your own dashboards. Here’s a list of them from the readme at the time of writing:
class NovaServiceProvider extends NovaApplicationServiceProvider{ protected function cards() { return [ // Like the dashboard new \Appstract\NovaHorizon\Cards\Stats, new \Appstract\NovaHorizon\Cards\Workload, new \Appstract\NovaHorizon\Cards\PendingJobs, new \Appstract\NovaHorizon\Cards\FailedJobs, new \Appstract\NovaHorizon\Cards\CompletedJobs, // Stats as seperate cards new \Appstract\NovaHorizon\Cards\JobsPerMinute, new \Appstract\NovaHorizon\Cards\RecentJobsCount, new \Appstract\NovaHorizon\Cards\FailedJobsCount, new \Appstract\NovaHorizon\Cards\Status, new \Appstract\NovaHorizon\Cards\TotalProcesses, new \Appstract\NovaHorizon\Cards\MaxWaitTime, new \Appstract\NovaHorizon\Cards\MaxRuntime, new \Appstract\NovaHorizon\Cards\MaxThroughput, ]; }}
You can learn more about this package, get full installation instructions, and view the source code on GitHub at appstract/nova-horizon.