Add Prometheus/OpenMetrics relay example ()

This commit is contained in:
Wilmer van der Gaast 2020-05-04 14:13:17 +02:00 committed by GitHub
parent 27f9922caa
commit e9fbb92c2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 185 additions and 10 deletions

View file

@ -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))