File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,9 @@ This will create a file ```config/prometheus-exporter.php```.
53
53
| adapter | PROMETHEUS_ADAPTER | STRING | apc, redis, inmemory or push | apc |
54
54
| namespace | --- | STRING | default: app | app |
55
55
| namespace_http | --- | STRING | namespace for "RequestPerRoute-Middleware metrics" | http |
56
- | redis.host | PROMETHEUS_REDIS_HOST | STRING | redis host | 127.0.0.1
57
- | redis.port | PROMETHEUS_REDIS_PORT | INTEGER | redis port | 6379 |
56
+ | redis.host | PROMETHEUS_REDIS_HOST, REDIS_HOST | STRING | redis host | 127.0.0.1
57
+ | redis.port | PROMETHEUS_REDIS_PORT, REDIS_PORT | INTEGER | redis port | 6379 |
58
+ | redis.password | PROMETHEUS_REDIS_PASSWORD, REDIS_PASSWORD | STRING | redis password | null |
58
59
| redis.timeout | --- | FLOAT | redis timeout | 0.1 |
59
60
| redis.read_timeout | --- | INTEGER | redis read timeout | 10 |
60
61
| push_gateway.address | PROMETHEUS_PUSH_GATEWAY_ADDRESS | STRING | push gateway address | localhost:9091 |
Original file line number Diff line number Diff line change 8
8
'namespace_http ' => 'http ' ,
9
9
10
10
'redis ' => [
11
- 'host ' => env ('PROMETHEUS_REDIS_HOST ' , '127.0.0.1 ' ),
12
- 'port ' => env ('PROMETHEUS_REDIS_PORT ' , 6379 ),
11
+ 'host ' => env ('PROMETHEUS_REDIS_HOST ' , env ('REDIS_HOST ' , '127.0.0.1 ' )),
12
+ 'port ' => env ('PROMETHEUS_REDIS_PORT ' , env ('REDIS_PORT ' , 6379 )),
13
+ 'password ' => env ('PROMETHEUS_REDIS_PASSWORD ' , env ('REDIS_PASSWORD ' , null )),
13
14
'timeout ' => 0.1 , // in seconds
14
15
'read_timeout ' => 10 , // in seconds
15
16
'persistent_connections ' => false ,
You can’t perform that action at this time.
0 commit comments