Skip to content
Snippets Groups Projects
Commit 546257bc authored by Eugen Rochko's avatar Eugen Rochko Committed by Yamagishi Kazutoshi
Browse files

Allow specifying STATSD_NAMESPACE (#5700)

parent fbef909c
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ if ENV['STATSD_ADDR'].present?
host, port = ENV['STATSD_ADDR'].split(':')
statsd = ::Statsd.new(host, port)
statsd.namespace = ['Mastodon', Rails.env].join('.')
statsd.namespace = ENV.fetch('STATSD_NAMESPACE') { ['Mastodon', Rails.env].join('.') }
::NSA.inform_statsd(statsd) do |informant|
informant.collect(:action_controller, :web)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment