job prometheus endpoint: d'oh

This commit is contained in:
Graham Christensen 2019-12-28 20:57:27 -05:00
parent f8875f2d68
commit 64cdc3413c
No known key found for this signature in database
GPG key ID: FE918C3A98C1030F

View file

@ -59,7 +59,7 @@ sub prometheus : Chained('job') PathPart('prometheus') Args(0) {
$c->stash->{jobset}->name,
$c->stash->{job}->name,
$lastBuild->nixname,
)->inc($lastBuild->stoptime >= 0);
)->inc($lastBuild->buildstatus > 0);
$c->stash->{'plain'} = { data => $prometheus->render };
$c->forward('Hydra::View::Plain');