fix(plugin) wrong counter mapping

This commit is contained in:
Simon Bomm 2020-09-30 18:58:34 +02:00 committed by GitHub
parent 79fb8c9771
commit 40fe45bc85

View File

@ -205,7 +205,7 @@ sub set_counters {
foreach my $monitor (('bgp', 'config', 'ike', 'interface', 'port', 'path', 'reachability', 'service')) {
foreach my $status (('up', 'down', 'disabled')) {
push @{$self->{maps_counters}->{$monitor}}, {
push @{$self->{maps_counters}->{'devices_' . $monitor . '_health'}}, {
label => $monitor . '-health-' . $status, nlabel => 'health.' . $status . '.count',
set => {
key_values => [ { name => $status }, { name => 'display' } ],