forked from lix-project/hydra
add some more statistics about runnable/running builds per arch/system
features.
This commit is contained in:
parent
0882519b10
commit
99e6c19672
|
@ -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});
|
||||
|
|
Loading…
Reference in a new issue