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:
parent
fadc6e16bf
commit
7f4a19088f
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue