Compare commits
7 commits
Author | SHA1 | Date | |
---|---|---|---|
27059f85c7 | |||
267a1f7039 | |||
|
a581a2b145 | ||
|
f4d1481c19 | ||
|
6e874128e8 | ||
|
885f959ce9 | ||
|
39442da599 |
4 changed files with 17 additions and 14 deletions
|
@ -2,13 +2,6 @@
|
||||||
|
|
||||||
A prometheus exporter for Laravel.
|
A prometheus exporter for Laravel.
|
||||||
|
|
||||||
[![Author](http://img.shields.io/badge/author-@superbalist-blue.svg?style=flat-square)](https://twitter.com/superbalist)
|
|
||||||
[![Build Status](https://img.shields.io/travis/Superbalist/laravel-prometheus-exporter/master.svg?style=flat-square)](https://travis-ci.org/Superbalist/laravel-prometheus-exporter)
|
|
||||||
[![StyleCI](https://styleci.io/repos/98516814/shield?branch=master)](https://styleci.io/repos/98516814)
|
|
||||||
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
|
|
||||||
[![Packagist Version](https://img.shields.io/packagist/v/superbalist/laravel-prometheus-exporter.svg?style=flat-square)](https://packagist.org/packages/superbalist/laravel-prometheus-exporter)
|
|
||||||
[![Total Downloads](https://img.shields.io/packagist/dt/superbalist/laravel-prometheus-exporter.svg?style=flat-square)](https://packagist.org/packages/superbalist/laravel-prometheus-exporter)
|
|
||||||
|
|
||||||
This package is a wrapper bridging [jimdo/prometheus_client_php](https://github.com/Jimdo/prometheus_client_php) into Laravel.
|
This package is a wrapper bridging [jimdo/prometheus_client_php](https://github.com/Jimdo/prometheus_client_php) into Laravel.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 1.0.5 - 2020-03-16
|
||||||
|
|
||||||
|
* Update call to array_get helper to use the Illuminate\Support\Arr class
|
||||||
|
* Enable Laravel 7 compatability
|
||||||
|
|
||||||
## 1.0.4 - 2019-10-17
|
## 1.0.4 - 2019-10-17
|
||||||
|
|
||||||
* Enable Laravel 6.0 compatability
|
* Enable Laravel 6.0 compatability
|
||||||
|
|
|
@ -6,13 +6,17 @@
|
||||||
{
|
{
|
||||||
"name": "Superbalist.com a division of Takealot Online (Pty) Ltd",
|
"name": "Superbalist.com a division of Takealot Online (Pty) Ltd",
|
||||||
"email": "info@superbalist.com"
|
"email": "info@superbalist.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sirius",
|
||||||
|
"email": "sirius@wir-sind-auch-menschen.de"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.6.0",
|
"php": "^7.4|^8.0",
|
||||||
"illuminate/support": "^5.3 || ^6.0",
|
"illuminate/support": "^7.0 || ^8.0 || ^9.0",
|
||||||
"illuminate/routing": "^5.3 || ^6.0",
|
"illuminate/routing": "^7.0 || ^8.0 || ^9.0",
|
||||||
"jimdo/prometheus_client_php": "^0.9.0"
|
"promphp/prometheus_client_php": "^v2.4"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
@ -34,7 +38,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^5.5",
|
"phpunit/phpunit": "^9.5",
|
||||||
"mockery/mockery": "^0.9.5"
|
"mockery/mockery": "^1.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
namespace Superbalist\LaravelPrometheusExporter;
|
namespace Superbalist\LaravelPrometheusExporter;
|
||||||
|
|
||||||
|
use Illuminate\Support\Arr;
|
||||||
use Illuminate\Support\ServiceProvider;
|
use Illuminate\Support\ServiceProvider;
|
||||||
use Prometheus\CollectorRegistry;
|
use Prometheus\CollectorRegistry;
|
||||||
use Prometheus\Storage\Adapter;
|
use Prometheus\Storage\Adapter;
|
||||||
|
@ -50,7 +51,7 @@ class PrometheusServiceProvider extends ServiceProvider
|
||||||
$factory = $app['prometheus.storage_adapter_factory']; /** @var StorageAdapterFactory $factory */
|
$factory = $app['prometheus.storage_adapter_factory']; /** @var StorageAdapterFactory $factory */
|
||||||
$driver = config('prometheus.storage_adapter');
|
$driver = config('prometheus.storage_adapter');
|
||||||
$configs = config('prometheus.storage_adapters');
|
$configs = config('prometheus.storage_adapters');
|
||||||
$config = array_get($configs, $driver, []);
|
$config = Arr::get($configs, $driver, []);
|
||||||
return $factory->make($driver, $config);
|
return $factory->make($driver, $config);
|
||||||
});
|
});
|
||||||
$this->app->alias(Adapter::class, 'prometheus.storage_adapter');
|
$this->app->alias(Adapter::class, 'prometheus.storage_adapter');
|
||||||
|
|
Loading…
Reference in a new issue