tylerwoonton/laravel-dashboard-health-check-tile
Composer 安装命令:
composer require tylerwoonton/laravel-dashboard-health-check-tile
包简介
A tile bringing support for ukfast/laravel-health-check to spatie/laravel-dashboard.
README 文档
README
The purpose of this package is to integrate the ukfast/laravel-health-check package into a tile for spatie/laravel-dashboard.
Installation
This package requires the ukfast/laravel-health-check package to be running on the endpoint provided so we can assert that your services are working. Please follow the instructions in that repo to install the package.
You can install the package via composer:
composer require tylerwoonton/laravel-dashboard-health-check-tile
Configuration
In the dashboard config file, you must add this configuration in the tiles key.
The sites array should contain an array of sites with their respective URLs and any custom headers or Guzzle options that need to be executed when hitting the URL.
The timeout option is the Guzzle request timeout in seconds. This is, by default, 3 seconds per request.
The show_failures option determines whether the services failing are displayed on the tile. If you only want to see concise, overall statuses it's fine to disable this.
The refresh_interval option determines how many seconds will pass before the dashboard tile is re-rendered.
// config/dashboard.php return [ // ... 'tiles' => [ 'health_check' => [ 'sites' => [ 'Example App' => [ "url" => 'https://example.app/health', "headers" => [], // optional "options" => [] // optional ] ], 'timeout' => 3, 'show_failures' => true, 'refresh_interval' => 60 ], ], ];
In app\Console\Kernel.php you should schedule the \TylerWoonton\HealthCheckTile\Commands\FetchHealthCheckDataCommand to run. You can let it run every minute if you want. You could also run it less frequently if fast updates on the dashboard aren't that important for this tile.
// app/Console/Kernel.php protected function schedule(Schedule $schedule) { // ... $schedule->command(\TylerWoonton\HealthCheckTile\Commands\FetchHealthCheckDataCommand::class)->everyMinute(); }
Usage
In your dashboard view you use the livewire:health-check-tile component.
<x-dashboard> <livewire:health-check-tile position="a1" /> </x-dashboard>
Customising the view
If you want to customise the view used to render this tile, run this command:
php artisan vendor:publish --provider="TylerWoonton\HealthCheckTile\HealthCheckTileServiceProvider" --tag="dashboard-health-check-tile-views"
Testing
composer test
Contributing
We welcome contributions to this package. All new changes should be well-tested and follow PSR-12 standards.
Please refer to our CONTRIBUTING file for more information.
Treeware
This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.
tylerwoonton/laravel-dashboard-health-check-tile 适用场景与选型建议
tylerwoonton/laravel-dashboard-health-check-tile 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 71 次下载、GitHub Stars 达 5, 最近一次更新时间为 2020 年 05 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「lumen」 「health-check」 「laravel-dashboard」 「laravel-health-check」 「lumen-health-check」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 tylerwoonton/laravel-dashboard-health-check-tile 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 tylerwoonton/laravel-dashboard-health-check-tile 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 tylerwoonton/laravel-dashboard-health-check-tile 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Testing Suite For Lumen like Laravel does.
An expansion pack for Spatie Laravel Health package
Production-ready Symfony bundle for comprehensive application health checks with database, Redis, S3, and HTTP endpoint monitoring. Security-first design with auto-tagging support.
Health checks, Kubernetes probes, Prometheus metrics, and system monitoring for Laravel
Stackdriver handler for Monolog (codeinternetapplications/monolog-stackdriver Fork).
Class to generate a standard structure for api json responses
统计信息
- 总下载量: 71
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-05-09
