Skip to content

Commit

Permalink
NIFI-13657 Fixed Reducer for Processor Load Average in Node Status
Browse files Browse the repository at this point in the history
This closes #9177

Signed-off-by: David Handermann <exceptionfactory@apache.org>
  • Loading branch information
bbende authored and exceptionfactory committed Aug 15, 2024
1 parent 99f3717 commit e46c7db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public Long reduce(final List<StatusSnapshot> values) {
@Override
public Long reduce(final List<StatusSnapshot> values) {
return (long) values.stream()
.map(snapshot -> snapshot.getStatusMetric(HEAP_UTILIZATION.getDescriptor()))
.map(snapshot -> snapshot.getStatusMetric(PROCESSOR_LOAD_AVERAGE.getDescriptor()))
.filter(Objects::nonNull)
.mapToLong(value -> value)
.average()
Expand Down

0 comments on commit e46c7db

Please sign in to comment.