Add a graphite key for all jobs in a pipeline

We have a graph on our status page showing all of the jobs Zuul
launched, but it's built from more than 1000 graphite keys which
is a little inefficient.  Add a key for convenience that rolls
up all of the job completions in a pipeline, so that such a graph
can be built with only about 10 keys.

Change-Id: Ie6dbcca68c8a118653effe90952c7921a9de9ad1
This commit is contained in:
James E. Blair 2013-08-24 08:20:02 -07:00
parent fadc6e16bf
commit 7f4a19088f
1 changed files with 2 additions and 0 deletions

View File

@ -339,6 +339,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))