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
|
@ -34,8 +34,6 @@ def mqtt_disconnect(client, userdata, rc):
|
|||
|
||||
|
||||
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))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue