We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ee8950 commit 1f2cb32Copy full SHA for 1f2cb32
examples/flush_adapter.php
@@ -8,8 +8,9 @@
8
9
if ($adapterName === 'redis') {
10
define('REDIS_HOST', $_SERVER['REDIS_HOST'] ?? '127.0.0.1');
11
+ define('REDIS_SENTINEL_HOST', $_SERVER['REDIS_SENTINEL_HOST'] ?? '127.0.0.1');
12
- $adapter = new Prometheus\Storage\Redis(['host' => REDIS_HOST]);
13
+ $adapter = new Prometheus\Storage\Redis(['host' => REDIS_HOST, 'sentinel' => ['host' => REDIS_SENTINEL_HOST]]);
14
} elseif ($adapterName === 'apc') {
15
$adapter = new Prometheus\Storage\APC();
16
} elseif ($adapterName === 'apcng') {
0 commit comments