fit latest map metrics

This commit is contained in:
Colin Gagnaire 2019-01-29 17:59:45 +01:00
parent 78ca8adb11
commit de5224ee25
3 changed files with 8 additions and 10 deletions

View File

@ -121,8 +121,8 @@ sub manage_selection {
$self->{global} = {}; $self->{global} = {};
$self->{global} = { $self->{global} = {
ReceivedPackets => $result->{$mbean_broker}->{ReceivedPackets}->{andIncrement}, ReceivedPackets => $result->{$mbean_broker}->{ReceivedPackets},
ProcessedPackets => $result->{$mbean_broker}->{ProcessedPackets}->{andIncrement}, ProcessedPackets => $result->{$mbean_broker}->{ProcessedPackets},
}; };
} }

View File

@ -111,9 +111,9 @@ sub manage_selection {
$self->{global} = { $self->{global} = {
DrilldownCandidatesQueue => $result->{$mbean_engine}->{DrilldownCandidatesQueue}, DrilldownCandidatesQueue => $result->{$mbean_engine}->{DrilldownCandidatesQueue},
Cutbackcomputation => $result->{$mbean_engine}->{Cutbackcomputation}->{andIncrement}, Cutbackcomputation => $result->{$mbean_engine}->{Cutbackcomputation},
Recursivecomputation => $result->{$mbean_engine}->{Recursivecomputation}->{andIncrement}, Recursivecomputation => $result->{$mbean_engine}->{Recursivecomputation},
Minimalcomputation => $result->{$mbean_engine}->{Minimalcomputation}->{andIncrement}, Minimalcomputation => $result->{$mbean_engine}->{Minimalcomputation},
}; };
} }

View File

@ -91,13 +91,11 @@ sub manage_selection {
]; ];
my $result = $options{custom}->get_attributes(request => $self->{request}, nothing_quit => 0); my $result = $options{custom}->get_attributes(request => $self->{request}, nothing_quit => 0);
my $event_counters = $1 if ($result->{$mbean_event}->{EventCounter} =~ /\{(.*?)\}/);
$self->{global} = {}; $self->{global} = {};
foreach my $counter (split(',', $event_counters)) { foreach my $counter (keys %{$result->{$mbean_event}->{EventCounter}}) {
next if ($counter !~ /(\w+)\=(\d+)/); $self->{global}->{$counter} = $result->{$mbean_event}->{EventCounter}->{$counter};
$self->{global}->{$1} = $2;
} }
} }