Fixed metric latency unit and logging (#49)

* move latency_unit into cachet dictionary

* log actual metric latency_unit

* also update config in readme

* also update config description in readme
This commit is contained in:
Patrick Fruh
2019-02-25 06:59:02 +01:00
committed by mtakaki
parent 393aaa0b30
commit f1e69bf39b
3 changed files with 4 additions and 4 deletions

View File

@@ -264,7 +264,7 @@ class Configuration(object):
if metrics_request.ok:
# Successful metrics upload
self.logger.info('Metric uploaded: %.6f seconds' % (value,))
self.logger.info('Metric uploaded: %.6f %s' % (value, self.latency_unit))
else:
self.logger.warning('Metric upload failed with status [%d]' %
(metrics_request.status_code,))