Add Prometheus/OpenMetrics relay example (#1371)
This commit is contained in:
parent
27f9922caa
commit
e9fbb92c2e
6 changed files with 185 additions and 10 deletions
examples
|
@ -139,8 +139,6 @@ def run(run_as_daemon=False):
|
|||
|
||||
# setup input and output
|
||||
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
|
||||
# allow multiple sockets to use the same PORT number
|
||||
sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
|
||||
sock.bind((UDP_IP, UDP_PORT))
|
||||
|
||||
# run, as daemon if requested
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue