@@ -47,18 +47,36 @@ def influx_udp_thread(host, port, period=15.0):
4747 return _thread_bg (client )
4848
4949
50- def graphite_udp_async ( host , port , period = 15.0 ):
50+ def influx_http_async ( url , period = 15.0 ):
5151 client = ppc .AsyncioBGClient (
52- format = ppc .GraphiteFormat (),
52+ format = ppc .InfluxFormat (),
53+ transport = ppc .AioHttpTransport (url ),
54+ period = period ,
55+ )
56+ return _async_bg (client )
57+
58+
59+ def influx_http_thread (url , period = 15.0 ):
60+ client = ppc .ThreadBGClient (
61+ format = ppc .InfluxFormat (),
62+ transport = ppc .SyncHttpTransport (url ),
63+ period = period ,
64+ )
65+ return _thread_bg (client )
66+
67+
68+ def statsd_udp_async (host , port , period = 15.0 ):
69+ client = ppc .AsyncioBGClient (
70+ format = ppc .StatsdFormat (),
5371 transport = ppc .AioUdpTransport (host , port ),
5472 period = period ,
5573 )
5674 return _async_bg (client )
5775
5876
59- def graphite_udp_thread (host , port , period = 15.0 ):
77+ def statsd_udp_thread (host , port , period = 15.0 ):
6078 client = ppc .ThreadBGClient (
61- format = ppc .GraphiteFormat (),
79+ format = ppc .StatsdFormat (),
6280 transport = ppc .SyncUdpTransport (host , port ),
6381 period = period ,
6482 )
0 commit comments