8000
We read every piece of feedback, and take your input very seriously.
1 parent 052116d commit caf3293Copy full SHA for caf3293
prometheus_client/bridge/graphite.py
@@ -45,7 +45,7 @@ def run(self):
45
46
47
class GraphiteBridge(object):
48
- def __init__(self, address, registry=core.REGISTRY, timeout_seconds=30, _timer=default_timer):
+ def __init__(self, address, registry=core.REGISTRY, timeout_seconds=30, _timer=time.time):
49
self._address = address
50
self._registry = registry
51
self._timeout = timeout_seconds
@@ -64,8 +64,8 @@ def push(self, prefix=''):
64
if labels:
65
labelstr = '.' + '.'.join(
66
['{0}.{1}'.format(
67
- _sanitize(k), _sanitize(v))
68
- for k, v in sorted(labels.items())])
+ _sanitize(k), _sanitize(v))
+ for k, v in sorted(labels.items())])
69
else:
70
labelstr = ''
71
output.append('{0}{1}{2} {3} {4}\n'.format(