承接 anourvalar/laravel-pulse 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

anourvalar/laravel-pulse

最新稳定版本:1.4.1

Composer 安装命令:

composer require anourvalar/laravel-pulse

包简介

Additional cards for Laravel Pulse

README 文档

README

Installation

composer require anourvalar/laravel-pulse

Schedule (cron)

Demo

Add recorder to the config/pulse.php:

AnourValar\LaravelPulse\Recorders\ScheduleRecorder::class => [
    'enabled' => env('PULSE_ANOURVALAR_SCHEDULE_ENABLED', true),
    'sample_rate' => env('PULSE_ANOURVALAR_SCHEDULE_SAMPLE_RATE', 1),
    'ignore' => [],
],

Add card to the vendor/pulse/dashboard.blade.php:

<livewire:anourvalar.pulse.schedule cols="6" />

HTTP Requests (count & response time)

Demo

Add recorder to the config/pulse.php:

AnourValar\LaravelPulse\Recorders\HttpRequestsRecorder::class => [
    'enabled' => env('PULSE_ANOURVALAR_HTTP_REQUESTS_ENABLED', true),
    'sample_rate' => env('PULSE_ANOURVALAR_HTTP_REQUESTS_SAMPLE_RATE', 1),
    'ignore' => ['#/admin/#', '#/livewire/#'],
],

Add cards to the vendor/pulse/dashboard.blade.php:

<livewire:anourvalar.pulse.http-requests-count cols="6" />
<livewire:anourvalar.pulse.http-requests-avg cols="6" />

Optionally: To record the latency between the web server and the PHP worker, configure your web server to add a timestamp header:

fastcgi_param HTTP_X_REQUEST_START $msec; # fpm
proxy_set_header X-Request-Start $msec; # octane

Database (queries)

Demo

Add recorder to the config/pulse.php:

AnourValar\LaravelPulse\Recorders\DatabaseRecorder::class => [
    'enabled' => env('PULSE_ANOURVALAR_DATABASE_ENABLED', true),
    'sample_rate' => env('PULSE_ANOURVALAR_DATABASE_SAMPLE_RATE', 1),
    'ignore' => ['#pulse_#'],
],

Add card to the vendor/pulse/dashboard.blade.php:

<livewire:anourvalar.pulse.database cols="6" />

Ping (Response time & status code)

Demo

Add recorder to the config/pulse.php:

AnourValar\LaravelPulse\Recorders\PingRecorder::class => [
    'enabled' => env('PULSE_ANOURVALAR_PING_ENABLED', true),
    'urls' => ['/'],
],

Add card to the vendor/pulse/dashboard.blade.php:

<livewire:anourvalar.pulse.ping cols="6" />

FPM (Workers count)

Demo

Add recorder to the config/pulse.php:

AnourValar\LaravelPulse\Recorders\FpmRecorder::class => [
    'enabled' => env('PULSE_ANOURVALAR_FPM_ENABLED', true),
    'sample_rate' => env('PULSE_ANOURVALAR_FPM_SAMPLE_RATE', 1),
],

Add card to the vendor/pulse/dashboard.blade.php:

<livewire:anourvalar.pulse.fpm cols="6" />

Slow Commands

Demo

Add recorder to the config/pulse.php:

AnourValar\LaravelPulse\Recorders\SlowCommandsRecorder::class => [
    'enabled' => env('PULSE_ANOURVALAR_SLOW_COMMANDS_ENABLED', true),
    'sample_rate' => env('PULSE_ANOURVALAR_SLOW_COMMANDS_SAMPLE_RATE', 1),
    'threshold' => env('PULSE_ANOURVALAR_SLOW_COMMANDS_THRESHOLD', 1000),
    'ignore' => ['#^tinker#', '#^schedule\:#', '#^horizon\:#', '#invoke\-serialized\-closure#'],
],

Add card to the vendor/pulse/dashboard.blade.php:

<livewire:anourvalar.pulse.slow-commands cols="6" />

Latency Jobs

Demo

Add recorder to the config/pulse.php:

AnourValar\LaravelPulse\Recorders\LatencyJobsRecorder::class => [
    'enabled' => env('PULSE_ANOURVALAR_LATENCY_JOBS_ENABLED', true),
    'sample_rate' => env('PULSE_ANOURVALAR_LATENCY_JOBS_SAMPLE_RATE', 1),
    'threshold' => env('PULSE_ANOURVALAR_LATENCY_JOBS_THRESHOLD', 10000),
    'ignore' => ['#pulse#'],
],

Add card to the vendor/pulse/dashboard.blade.php:

<livewire:anourvalar.pulse.latency-jobs cols="6" />

统计信息

  • 总下载量: 3.94k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-27