承接 jildertmiedema/laravel-system-monitor 相关项目开发

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

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

jildertmiedema/laravel-system-monitor

Composer 安装命令:

composer require jildertmiedema/laravel-system-monitor

包简介

Laravel system monitor, export application info to statsd

README 文档

README

Author Build Status Quality Score Software License Packagist Version Total Downloads

This package will be monitor application metrices. It is dynamic configurable, but with the default settings you will be able to show some basic stuff.

This package usage statsd as a default output but off course you can implement your own store

Install

This package depends on the statsd client from the php league. Read their manual to get it up and running

Install the package:

composer require jildertmiedema/laravel-system-monitor

Add these lines in the config/app.php file in the providers array.

JildertMiedema\SystemMonitor\SystemMonitorServiceProvider::class,
League\StatsD\Laravel5\Provider\StatsdServiceProvider::class,

If you've added the artisan schedule:run command to your cron, then you can add this to your App\Console\Kernel class

protected function schedule(Schedule $schedule)
{
    $schedule->command('measurement:run')->everyMinute();
}

Now the system will send the measurement results to Statsd every minute

Configuration

To publish the config use:

php artisan vendor:publish --tag="config"

Change the config/measurement.php file to your needs.

Measurements can be configured by choosing a type and key. The type is the type of the type of the measurement. The key is the statsd key. Per type some additional settings are required.

  • mysql.speed The reaction time of a mysql connection. (Configure a connection)
  • redis.speed The reaction time of a redis connection. (Configure a connection)
  • queue.size Measures to amount of items in the queue. (Configure a queue)
  • queue.waiting-time Put a job on the queue and measures how long it takes before its handled by the queue. (Configure a queue)

Testing

Run this command to show the result as console output. php artisan measurement:run --debug

Statsd server

This package is design to be send to a statsd server. Of course you can implement your own MeasurementStore to send it elsewhere. Some docker stuff is created to receive (and show) data. Show me

Extending

This package comes with a default setup, but you can easly extend or replace parts.

To create your own measurement, create a new class that implements the JildertMiedema\SystemMonitor\Measurements\Measurement interface. To register your class insert this in a service provider:

use JildertMiedema\SystemMonitor\Measurements\Manager;

$this->app->resolving('measurement', function (Manager $manager) {
    $manager->extend($this->app[YourMeasurementClass::class]);
});

jildertmiedema/laravel-system-monitor 适用场景与选型建议

jildertmiedema/laravel-system-monitor 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 53.56k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2016 年 12 月 19 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 jildertmiedema/laravel-system-monitor 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 jildertmiedema/laravel-system-monitor 我们能提供哪些服务?
定制开发 / 二次开发

基于 jildertmiedema/laravel-system-monitor 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-19