hhxsv5 /
laravel-s
| 1 | <?php |
||
| 2 | |||
| 3 | return [ |
||
| 4 | |||
| 5 | /* |
||
| 6 | |-------------------------------------------------------------------------- |
||
| 7 | | Whether to enable Prometheus collector |
||
| 8 | |-------------------------------------------------------------------------- |
||
| 9 | | Default true. |
||
| 10 | */ |
||
| 11 | 'enable' => env('PROMETHEUS_ENABLE', true), |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 12 | |||
| 13 | /* |
||
| 14 | |-------------------------------------------------------------------------- |
||
| 15 | | The name of the application |
||
| 16 | |-------------------------------------------------------------------------- |
||
| 17 | | Default APP_NAME. |
||
| 18 | */ |
||
| 19 | 'application' => env('PROMETHEUS_APP_NAME', env('APP_NAME', 'Laravel')), |
||
| 20 | |||
| 21 | /* |
||
| 22 | |-------------------------------------------------------------------------- |
||
| 23 | | The prefix of apcu keys |
||
| 24 | |-------------------------------------------------------------------------- |
||
| 25 | | |
||
| 26 | | Cannot contain any regular expression characters. Default "prom". |
||
| 27 | | |
||
| 28 | */ |
||
| 29 | 'apcu_key_prefix' => env('PROMETHEUS_APCU_KEY_PREFIX', 'prom'), |
||
| 30 | |||
| 31 | /* |
||
| 32 | |-------------------------------------------------------------------------- |
||
| 33 | | The separator of apcu keys |
||
| 34 | |-------------------------------------------------------------------------- |
||
| 35 | | |
||
| 36 | | Cannot contain any regular expression characters. Default "::". |
||
| 37 | | |
||
| 38 | */ |
||
| 39 | 'apcu_key_separator' => env('PROMETHEUS_APCU_KEY_SEPARATOR', '::'), |
||
| 40 | |||
| 41 | /* |
||
| 42 | |-------------------------------------------------------------------------- |
||
| 43 | | The max age(seconds) of apcu keys. |
||
| 44 | |-------------------------------------------------------------------------- |
||
| 45 | | |
||
| 46 | | It's TTL of apcu keys. Default 259200s(3 days). |
||
| 47 | | |
||
| 48 | */ |
||
| 49 | 'apcu_key_max_age' => env('PROMETHEUS_APCU_KEY_MAX_AGE', 259200), |
||
| 50 | |||
| 51 | /* |
||
| 52 | |-------------------------------------------------------------------------- |
||
| 53 | | The time window(seconds) of the maximum duration metric for http_server_requests_seconds_max. |
||
| 54 | |-------------------------------------------------------------------------- |
||
| 55 | | |
||
| 56 | | Default 60s. |
||
| 57 | | |
||
| 58 | */ |
||
| 59 | 'max_duration_time_window' => env('PROMETHEUS_REQUEST_MAX_DURATION_TIME_WINDOW', 60), |
||
| 60 | |||
| 61 | /* |
||
| 62 | |-------------------------------------------------------------------------- |
||
| 63 | | The ignored status codes when collecting http requests. |
||
| 64 | |-------------------------------------------------------------------------- |
||
| 65 | | |
||
| 66 | | Default "400,404,405". |
||
| 67 | | |
||
| 68 | */ |
||
| 69 | 'ignored_http_codes' => array_flip(explode(',', env('PROMETHEUS_IGNORED_HTTP_CODES', '400,404,405'))), |
||
| 70 | |||
| 71 | /* |
||
| 72 | |-------------------------------------------------------------------------- |
||
| 73 | | The interval of collecting metrics. |
||
| 74 | |-------------------------------------------------------------------------- |
||
| 75 | | |
||
| 76 | | Default 10s. |
||
| 77 | | |
||
| 78 | */ |
||
| 79 | 'collect_metrics_interval' => env('PROMETHEUS_COLLECT_METRICS_INTERVAL', 10), |
||
| 80 | ]; |
||
| 81 |