From c133e41fb2f3b18860abda92922577844a50c917 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Tue, 20 Sep 2016 07:45:08 -0700 Subject: [PATCH] Use smartSummarize on zuul status graphs This should address the problem of the final segment of the 'per- hour' graphs always trending downward. Change-Id: I62585283a669e1d856a77c01eb9daec2918f6b03 --- modules/openstack_project/templates/zuul/status.html.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/openstack_project/templates/zuul/status.html.erb b/modules/openstack_project/templates/zuul/status.html.erb index 3762bfad89..1065459cc0 100644 --- a/modules/openstack_project/templates/zuul/status.html.erb +++ b/modules/openstack_project/templates/zuul/status.html.erb @@ -325,7 +325,7 @@ $("#graph-container").append($(new Image()).addClass('graph').graphite({ bgcolor: 'ffffff', fgcolor: '000000', target: [ - "alias(summarize(sumSeries(stats_counts.zuul.pipeline.*.all_jobs),'1h'),'All Jobs')", + "alias(smartSummarize(sumSeries(stats_counts.zuul.pipeline.*.all_jobs),'1h'),'All Jobs')", ], title: "Zuul Jobs Launched (per Hour)" })); @@ -337,9 +337,9 @@ $("#graph-container").append($(new Image()).addClass('graph').graphite({ 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')", + "alias(smartSummarize(stats_counts.gerrit.event.comment-added, '1h'), 'Comment added')", + "alias(smartSummarize(stats_counts.gerrit.event.patchset-created, '1h'), 'Patchset created')", + "alias(smartSummarize(stats_counts.gerrit.event.change-merged, '1h'), 'Change merged')", ], title: "Gerrit Events (per Hour)" }));