Skip to content

Instantly share code, notes, and snippets.

@djmetzle
Created March 24, 2022 21:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djmetzle/b63a3d91c601edf4fc47591a2dd8396d to your computer and use it in GitHub Desktop.
Save djmetzle/b63a3d91c601edf4fc47591a2dd8396d to your computer and use it in GitHub Desktop.
StatsD UDP dumper
require 'socket'
sock = UDPSocket.new()
sock.bind('', 8125)
p sock
while true do
p sock.recvfrom(2000)
end
sock.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment