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-12-15 15:10:56 |
Package Statistics | |
---|---|
Total Downloads: | 22 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
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);