Добавлен Yii2 компонент для отправки событий в statsd

This commit is contained in:
ErickSkrauch
2017-11-16 19:55:00 +03:00
parent c8c6401e14
commit 42b6bc561e
4 changed files with 102 additions and 0 deletions

View File

@@ -90,6 +90,12 @@ return [
'itemFile' => '@common/rbac/.generated/items.php',
'ruleFile' => '@common/rbac/.generated/rules.php',
],
'statsd' => [
'class' => common\components\StatsD::class,
'host' => getenv('STATSD_HOST'),
'port' => getenv('STATSD_PORT') ?: 8125,
'namespace' => getenv('STATSD_NAMESPACE') ?: 'ely.accounts.' . gethostname() . '.app',
],
],
'container' => [
'definitions' => [