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 <fungi@yuggoth.org>
Approved: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
James E. Blair 2012-12-27 20:04:49 -08:00 committed by Jenkins
parent b2573d3d33
commit 4b53ef76fb

View File

@ -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)"
}));
</script>
</div>