praatmetdedokter/pulse-redis-monitor
Composer 安装命令:
composer require praatmetdedokter/pulse-redis-monitor
包简介
Redis monitoring card for Laravel Pulse
README 文档
README
A customizable Laravel Pulse card for monitoring key Redis metrics.
Features
This card monitors and displays the following Redis metrics:
-
Memory usage:
- Used memory: The current amount of memory being utilized by Redis.
- Max memory: The maximum memory available to Redis.
-
Key statistics:
- Total keys: The total number of keys currently stored in Redis.
- Keys with expiration: A count of keys that have a set expiration time.
-
Removed keys:
- Expired keys: The number of keys that have been automatically removed after their TTL has expired.
- Evicted keys: The number of keys evicted due to memory constraints when Redis is running out of space.
-
Average TTL: The average remaining Time to Live (TTL) of keys in Redis.
-
Network usage:
- Total Traffic: The sum of data received and sent by Redis (Traffic In + Traffic Out).
Installation
First, install the package via composer:
composer require praatmetdedokter/pulse-redis-monitor
next, add the recorder to your config/pulse.php
return [ // ... 'recorders' => [ PraatmetdeDokter\Pulse\RedisMonitor\Recorders\RedisMonitorRecorder::class => [ 'connections' => env('PULSE_REDIS_MONITOR_CONNECTIONS', ['default']), 'interval' => env('PULSE_REDIS_MONITOR_INTERVAL', 5), // Interval in minutes between monitoring events 'colors' => [ 'primary' => '#ee3969', 'secondary' => '#2ca3cc' ], 'metrics' => [ 'memory_usage' => env('PULSE_REDIS_MONITOR_MEMORY_USAGE', true), 'key_statistics' => env('PULSE_REDIS_MONITOR_KEY_STATISTICS', true), 'removed_keys' => env('PULSE_REDIS_MONITOR_REMOVED_KEYS', true), 'network_usage' => env('PULSE_REDIS_MONITOR_NETWORK_USAGE', true), ] ], // ... ], ];
Next, add the card to your resources/views/vendor/pulse/dashboard.blade.php:
<x-pulse> <livewire:pulse.redis-monitor/> <!-- ... --> </x-pulse>
Usage
Don't forget to run the pulse:check command to start recording.
Configuration
To customize the behavior of the Redis Monitor Recorder, you can optionally include colors and metrics settings in your configuration. You only need to specify the values you want to change from the default settings.
Configruation options
colors: Define custom colors for the charts.metrics: Disable specific metrics.
License
The MIT Licence (MIT). Please see the license file for more information.
praatmetdedokter/pulse-redis-monitor 适用场景与选型建议
praatmetdedokter/pulse-redis-monitor 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 29.41k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2024 年 08 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 praatmetdedokter/pulse-redis-monitor 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 praatmetdedokter/pulse-redis-monitor 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 29.41k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-12