(plugin) apps::controlm::restapi - mode jobs fix perfdata (#4269)

This commit is contained in:
qgarnier 2023-03-08 11:10:25 +00:00 committed by David Boucher
parent 10f7d0c697
commit c9307cbe70
1 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,7 @@ sub set_counters {
} }
}, },
{ label => 'jobs-executing', nlabel => 'jobs.executing.count', set => { { label => 'jobs-executing', nlabel => 'jobs.executing.count', set => {
key_values => [ { name => 'running' }, { name => 'total' } ], key_values => [ { name => 'executing' }, { name => 'total' } ],
output_template => 'executing: %s', output_template => 'executing: %s',
perfdatas => [ perfdatas => [
{ template => '%s', min => 0, max => 'total' } { template => '%s', min => 0, max => 'total' }
@ -229,7 +229,7 @@ sub manage_selection {
type => $job->{type}, type => $job->{type},
status => lc($job->{status}), status => lc($job->{status}),
elapsed => $elapsed, elapsed => $elapsed,
failed => 1 failed => $failed
}; };
} }
} }