承接 vcian/pulse-docker-monitor 相关项目开发

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

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

vcian/pulse-docker-monitor

最新稳定版本:v1.0.0

Composer 安装命令:

composer require vcian/pulse-docker-monitor

包简介

A Laravel Pulse card to show docker containers with CPU & Memory Utilization

README 文档

README

Packagist License (custom server) Packagist Downloads (custom server)

Docker Monitor Card For Laravel Pulse

About

This card will monitor your docker containers and show container statistics with Cpu & Memory Load.


Docker Monitor Card

Installation


Prerequisites

Please check the official laravel installation guide for server requirements before you start. [Official Documentation]

Require the package with Composer:

composer require vcian/pulse-docker-monitor

Next, you should publish the Pulse configuration and migration files using the vendor:publish Artisan command:

php artisan vendor:publish --provider="Laravel\Pulse\PulseServiceProvider"

Next, you should run the migration for required tables

php artisan migrate

Register the recorder

Right now, the Composer dependencies will only be checked once per day. To run the checks you must add the PulseDockerMonitorRecorder to the pulse.php file.

return [
    // ...
    
    'recorders' => [
+        \Vcian\Pulse\PulseDockerMonitor\Recorders\PulseDockerMonitorRecorder::class => [],
    ]
]

You also need to be running the pulse:check command.

Add to your dashboard

To add the card to the Pulse dashboard, you must first [publish the vendor view]

Then, you can modify the dashboard.blade.php file:

<x-pulse>
+     <livewire:pulse_docker_monitor cols="full" />

    <livewire:pulse.servers cols="full" />

    <livewire:pulse.usage cols="4" rows="2" />

    <livewire:pulse.queues cols="4" />

    <livewire:pulse.cache cols="4" />

    <livewire:pulse.slow-queries cols="8" />

    <livewire:pulse.exceptions cols="6" />

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

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

    <livewire:pulse.slow-outgoing-requests cols="6" />

</x-pulse>

To make pulse recorders will automatically capture entries based on framework events dispatched by Laravel, You must run the below command.

php artisan pulse:check

Security

If you discover any security-related issues, please email ruchit.patel@viitor.cloud instead of using the issue tracker.

Credits

License

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

统计信息

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

GitHub 信息

  • Stars: 33
  • Watchers: 1
  • Forks: 5
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-03