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
1 changed files with 5 additions and 0 deletions
|
@ -39,6 +39,11 @@ sub sendQueueRunnerStats {
|
||||||
gauge("hydra.queue.steps.avg_total_time", $json->{avgStepTime});
|
gauge("hydra.queue.steps.avg_total_time", $json->{avgStepTime});
|
||||||
gauge("hydra.queue.steps.avg_build_time", $json->{avgStepBuildTime});
|
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.read", $json->{nrBuildsRead});
|
||||||
gauge("hydra.queue.builds.unfinished", $json->{nrQueuedBuilds});
|
gauge("hydra.queue.builds.unfinished", $json->{nrQueuedBuilds});
|
||||||
|
|
Loading…
Reference in a new issue