+ fix counter/label definition

This commit is contained in:
Sims24 2016-11-22 16:30:48 +01:00 committed by GitHub
parent 57a4981c6b
commit 510fabae4d
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ sub set_counters {
{ name => 'peers', type => 1, cb_prefix_output => 'prefix_peers_output', message_multiple => 'All BGP peers are ok' },
];
$self->{maps_counters}->{peers} = [
{ label => 'states', set => {
{ label => 'status', threshold => 0, set => {
key_values => [ { name => 'adminstate' }, { name => 'peerstate' }, { name => 'display' },
{ name => 'local' }, { name => 'remote' }, { name => 'as' } ],
closure_custom_calc => $self->can('custom_status_calc'),