Compare commits
9 commits
Author | SHA1 | Date | |
---|---|---|---|
27059f85c7 | |||
267a1f7039 | |||
|
a581a2b145 | ||
|
f4d1481c19 | ||
|
6e874128e8 | ||
|
885f959ce9 | ||
|
39442da599 | ||
|
c1cd48549f | ||
|
c8ef2037dc |
4 changed files with 21 additions and 14 deletions
|
@ -2,13 +2,6 @@
|
|||
|
||||
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.
|
||||
|
||||
## Installation
|
||||
|
|
|
@ -1,5 +1,14 @@
|
|||
# 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
|
||||
|
||||
* Enable Laravel 6.0 compatability
|
||||
|
||||
## 1.0.3 - 2019-02-11
|
||||
|
||||
* Enable package discovery for laravel 5.5+
|
||||
|
|
|
@ -6,13 +6,17 @@
|
|||
{
|
||||
"name": "Superbalist.com a division of Takealot Online (Pty) Ltd",
|
||||
"email": "info@superbalist.com"
|
||||
},
|
||||
{
|
||||
"name": "Sirius",
|
||||
"email": "sirius@wir-sind-auch-menschen.de"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.6.0",
|
||||
"illuminate/support": "^5.3",
|
||||
"illuminate/routing": "^5.3",
|
||||
"jimdo/prometheus_client_php": "^0.9.0"
|
||||
"php": "^7.4|^8.0",
|
||||
"illuminate/support": "^7.0 || ^8.0 || ^9.0",
|
||||
"illuminate/routing": "^7.0 || ^8.0 || ^9.0",
|
||||
"promphp/prometheus_client_php": "^v2.4"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
@ -34,7 +38,7 @@
|
|||
}
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^5.5",
|
||||
"mockery/mockery": "^0.9.5"
|
||||
"phpunit/phpunit": "^9.5",
|
||||
"mockery/mockery": "^1.5"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace Superbalist\LaravelPrometheusExporter;
|
||||
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Prometheus\CollectorRegistry;
|
||||
use Prometheus\Storage\Adapter;
|
||||
|
@ -50,7 +51,7 @@ class PrometheusServiceProvider extends ServiceProvider
|
|||
$factory = $app['prometheus.storage_adapter_factory']; /** @var StorageAdapterFactory $factory */
|
||||
$driver = config('prometheus.storage_adapter');
|
||||
$configs = config('prometheus.storage_adapters');
|
||||
$config = array_get($configs, $driver, []);
|
||||
$config = Arr::get($configs, $driver, []);
|
||||
return $factory->make($driver, $config);
|
||||
});
|
||||
$this->app->alias(Adapter::class, 'prometheus.storage_adapter');
|
||||
|
|
Loading…
Reference in a new issue