diff --git a/sinks/graphite.py b/sinks/graphite.py index c5697e4d..d9cfdcc7 100644 --- a/sinks/graphite.py +++ b/sinks/graphite.py @@ -78,7 +78,10 @@ def _build_lines(self, metrics): for k, v, ts in metrics: # hack to insert the hostname into the graphite namespace namespace = k.split('.') - namespace.insert(-1, self.hostname) + if namespace[1] == 'timers': + namespace.insert(-1, self.hostname) + else: + namespace.append(self.hostname) k = '.'.join(namespace) try: if self.prefix and self.append: