Merge "Add a graphite key for all jobs in a pipeline"

This commit is contained in:
Jenkins 2013-08-27 18:19:30 +00:00 committed by Gerrit Code Review
commit 6de6ed0a3a
1 changed files with 2 additions and 0 deletions

View File

@ -338,6 +338,8 @@ class Scheduler(threading.Thread):
dt = int((build.end_time - build.start_time) * 1000)
statsd.timing(key, dt)
statsd.incr(key)
key = 'zuul.pipeline.%s.all_jobs' % build.pipeline.name
statsd.incr(key)
except:
self.log.exception("Exception reporting runtime stats")
self.result_event_queue.put(('completed', build))