Created
March 24, 2022 21:47
-
-
Save djmetzle/b63a3d91c601edf4fc47591a2dd8396d to your computer and use it in GitHub Desktop.
StatsD UDP dumper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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