Package Data | |
---|---|
Maintainer Username: | danmrichards |
Maintainer Contact: | gabor.csikos@lush.co.uk (Gabor Csikos) |
Package Create Date: | 2018-07-18 |
Package Last Update: | 2018-08-28 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-08 03:10:36 |
Package Statistics | |
---|---|
Total Downloads: | 19 |
Monthly Downloads: | 1 |
Daily Downloads: | 1 |
Total Stars: | 2 |
Total Watchers: | 5 |
Total Forks: | 0 |
Total Open Issues: | 0 |
The Library provides Prometheus style metrics to scrape.
It requires a redis instance running with REDIS_HOST environment variable pointing to it.
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.
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);