odesk/phystrix-dashboard

Phystrix 的 Hystrix dashboard 支持

1.0.2 2017-11-19 06:22 UTC

This package is not auto-updated.

Last update: 2024-09-14 15:42:02 UTC


README

关于

Hystrix Dashboard 可提供对应用程序指标的即时洞察。

phystrix-dashboard 实现了与 Hystrix Dashboard 兼容的 text/event-stream 发射服务器,并允许您查看机器上执行的 Phystrix 命令的统计信息。

安装和需求

  1. 前提条件是已安装并运行 Hystrix Dashboard。有关安装和配置的信息,请参阅 Hystrix Dashboard Wiki

  2. 运行 composer require odesk/phystrix-dashboard 下载源代码。

  3. 准备一个 PHP 文件,以便使用 phystrix-dashboard

     // Composer built-in autoloader is used for event streaming endpoint
     include_once __DIR__ . '/../vendor/autoload.php';
    
     // $config is the same configuration you use for Odesk\Phystrix\CommandFactory in your application
     $config = new Zend\Config\Config(array(/* ... */));
     $metricsPoller = new \Odesk\PhystrixDashboard\MetricsEventStream\ApcMetricsPoller($config);
     $metricsServer = new \Odesk\PhystrixDashboard\MetricsEventStream\MetricsServer($metricsPoller);
     $metricsServer->run();
    
  4. 使用您选择的 Web 服务器提供此服务。

  5. 将 Hystrix Dashboard UI 指向此端点

限制和已知问题

  • 由于 Hystrix Dashboard UI 的 JavaScript 中存在问题,您不能在命令键中使用反斜杠 "\"。

许可

版权所有 2013-2014 oDesk Corporation。保留所有权利。

phystrix-dashboard 根据 Apache License, Version 2.0 (“许可证”)授权;除非遵守许可证,否则不得使用此文件。您可以在以下位置获得许可证副本:

https://apache.ac.cn/licenses/LICENSE-2.0

除非适用法律要求或书面同意,否则根据许可证分发的软件按“原样”提供,不提供任何明示或暗示的保证或条件。有关许可证的具体语言、权限和限制,请参阅许可证。