forked from ensi-platform/laravel-prometheus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprometheus.php
27 lines (26 loc) · 894 Bytes
/
prometheus.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
return [
'default_bag' => 'default',
'enabled' => env('PROMETHEUS_ENABLED', true),
'app_name' => env('PROMETHEUS_APP_NAME', env('APP_NAME')),
'bags' => [
'default' => [
'namespace' => env('PROMETHEUS_NAMESPACE', 'app'),
'route' => 'metrics',
'basic_auth' => [
'login' => env('PROMETHEUS_AUTH_LOGIN'),
'password' => env('PROMETHEUS_AUTH_PASSWORD'),
],
'connection' => [
'connection' => 'default',
'bag' => 'default',
],
'label_middlewares' => [
// \Ensi\LaravelPrometheus\LabelMiddlewares\AppNameLabelMiddleware::class,
],
'on_demand_metrics' => [
// \Ensi\LaravelPrometheus\OnDemandMetrics\MemoryUsageOnDemandMetric::class,
],
],
],
];