Merge branch 'master' into master
This commit is contained in:
commit
62b8b89c60
3 changed files with 7 additions and 7 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace Superbalist\LaravelPrometheusExporter;
|
||||
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Illuminate\Support\Arr;
|
||||
use Prometheus\CollectorRegistry;
|
||||
|
@ -51,7 +52,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…
Add table
Add a link
Reference in a new issue