From 4b53ef76fb82ea5a29070c7e744d9b8a27e81c9e Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 27 Dec 2012 20:04:49 -0800 Subject: [PATCH] Add two new graphs. The gerrit events graph doesn't belong on this page, it should probably go on the main status page instead, but let's stick it here for now until the main page is ready for graphs. Change-Id: Ibb1f494051687dd7f76ca6bb81bad4b0c6a866f0 Reviewed-on: https://review.openstack.org/18709 Reviewed-by: Jeremy Stanley Approved: James E. Blair Tested-by: Jenkins --- .../openstack_project/files/zuul/status.html | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/modules/openstack_project/files/zuul/status.html b/modules/openstack_project/files/zuul/status.html index 6dc489784f..6a63740d96 100644 --- a/modules/openstack_project/files/zuul/status.html +++ b/modules/openstack_project/files/zuul/status.html @@ -128,6 +128,32 @@ $("#graph-container").append($(new Image()).addClass('graph').graphite({ ], title: "Ready Devstack Jenkins Nodes" })); + +$("#graph-container").append($(new Image()).addClass('graph').graphite({ + from: "-24hours", + width: 310, + height: 170, + bgcolor: 'ffffff', + fgcolor: '000000', + target: [ + "alias(summarize(sumSeries(stats_counts.zuul.job.*),'1h'),'All Jobs')", + ], + title: "Zuul Jobs Launched (per Hour)" +})); + +$("#graph-container").append($(new Image()).addClass('graph').graphite({ + from: "-24hours", + width: 310, + height: 170, + bgcolor: 'ffffff', + fgcolor: '000000', + target: [ + "alias(summarize(stats_counts.gerrit.event.comment-added, '1h'), 'Comment added')", + "alias(summarize(stats_counts.gerrit.event.patchset-created, '1h'), 'Patchset created')", + "alias(summarize(stats_counts.gerrit.event.change-merged, '1h'), 'Change merged')", + ], + title: "Gerrit Events (per Hour)" +}));