Fixed issue with the flush interval.
The flush interval should be specified in milliseconds. The flush interval calculation was using the check frequency which is in seconds. The result needed to be converted to milliseconds. Change-Id: Ib25bd9d1c1a5bda50fa87beb39605c2dc7c9d34d
This commit is contained in:
parent
721b013d11
commit
b8c620afe4
@ -102,7 +102,7 @@ class Forwarder(tornado.web.Application):
|
||||
use_simple_http_client=False):
|
||||
self._port = int(port)
|
||||
self._agent_config = agent_config
|
||||
self.flush_interval = int(agent_config.get('check_freq'))/2
|
||||
self.flush_interval = (int(agent_config.get('check_freq'))/2) * 1000
|
||||
self._metrics = {}
|
||||
transaction.MetricTransaction.set_application(self)
|
||||
transaction.MetricTransaction.set_endpoints(mon.MonAPI(agent_config))
|
||||
|
Loading…
Reference in New Issue
Block a user