add some more statistics about runnable/running builds per arch/system

features.
This commit is contained in:
AmineChikhaoui 2018-05-10 18:27:30 +01:00
parent 0882519b10
commit 99e6c19672
No known key found for this signature in database
GPG key ID: C0C8C84C15BCCD1C

View file

@ -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});