The code powering m.abunchtell.com https://m.abunchtell.com
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

16 rader
426 B

  1. # frozen_string_literal: true
  2. if ENV['STATSD_ADDR'].present?
  3. host, port = ENV['STATSD_ADDR'].split(':')
  4. statsd = ::Statsd.new(host, port)
  5. statsd.namespace = ['Mastodon', Rails.env].join('.')
  6. ::NSA.inform_statsd(statsd) do |informant|
  7. informant.collect(:action_controller, :web)
  8. informant.collect(:active_record, :db)
  9. informant.collect(:cache, :cache)
  10. informant.collect(:sidekiq, :sidekiq)
  11. end
  12. end