From 99e6c196728944e69429f45b5b5ad6f21ef7ef48 Mon Sep 17 00:00:00 2001 From: AmineChikhaoui Date: Thu, 10 May 2018 18:27:30 +0100 Subject: [PATCH] add some more statistics about runnable/running builds per arch/system features. --- src/script/hydra-send-stats | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/script/hydra-send-stats b/src/script/hydra-send-stats index c99bc367..2b8c550b 100755 --- a/src/script/hydra-send-stats +++ b/src/script/hydra-send-stats @@ -39,6 +39,11 @@ sub sendQueueRunnerStats { gauge("hydra.queue.steps.avg_total_time", $json->{avgStepTime}); gauge("hydra.queue.steps.avg_build_time", $json->{avgStepBuildTime}); } + foreach my $machine (keys %{$json->{machineTypes}}) { + my $machineType = $machine =~ s/:|,/_/r; + gauge("hydra.queue.$machineType.runnable", $json->{machineTypes}->{$machine}->{runnable}); + gauge("hydra.queue.$machineType.running", $json->{machineTypes}->{$machine}->{running}); + } gauge("hydra.queue.builds.read", $json->{nrBuildsRead}); gauge("hydra.queue.builds.unfinished", $json->{nrQueuedBuilds});