Mercurial > code > home > repos > light9
annotate light9/collector/collector_client.py @ 2287:62b832e9aac5
use zmq pubsub between clients and collector
author | drewp@bigasterisk.com |
---|---|
date | Mon, 29 May 2023 21:31:41 -0700 |
parents | ccdfdc8183ad |
children |
rev | line source |
---|---|
1830 | 1 from light9 import networking |
2 from light9.effect.settings import DeviceSettings | |
2046
9aa046cc9b33
replace greplin with prometheus throughout (untested)
drewp@bigasterisk.com
parents:
2043
diff
changeset
|
3 from light9.metrics import metrics |
1830 | 4 from twisted.internet import defer |
5 from txzmq import ZmqEndpoint, ZmqFactory, ZmqPushConnection | |
1858 | 6 import json, time, logging |
1830 | 7 import treq |
8 | |
9 log = logging.getLogger('coll_client') | |
10 | |
1858 | 11 |
2287
62b832e9aac5
use zmq pubsub between clients and collector
drewp@bigasterisk.com
parents:
2187
diff
changeset
|
12 # d = treq.put(networking.collector.path('attrs'), data=msg, timeout=1) |