lushdigital/microservice-metrics
Composer 安装命令:
composer require lushdigital/microservice-metrics
包简介
Prometheus style metrics for microservices building on the official library
README 文档
README
The Library provides Prometheus style metrics to scrape.
Dependencies
It requires a redis instance running with REDIS_HOST environment variable pointing to it.
Description
In the middleware RED metrics are being captured, however you are free to implement your own custom metrics just by registering the them with an instance of CollectorRegistry.(for simplicity it is set as a singleton in the IoC) At display time new metrics will be discovered from Redis, but be aware if you change the definition for a metric, it needs to be purged from Redis.
Package Contents
- Terminable Middleware
- Route + Controller
Installation
Install the package as normal:
$ composer require lushdigital/microservice-metrics
Register the service provider with Lumen in the bootstrap/app.php file:
$app->register(LushDigital\MicroServiceMetrics\MetricsServiceProvider::class);
统计信息
- 总下载量: 23
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-19