github.com/anycable/anycable-go@v1.5.1/etc/librato_printer.rb (about) 1 module MetricsFormatter 2 KEYS = %w(clients_num goroutines_num) 3 4 def self.call(data) 5 parts = [] 6 7 data.each do |key, value| 8 parts << "sample##{key}=#{value}" if KEYS.include?(key) 9 end 10 11 parts.join(' ') 12 end 13 end