From 9e0248619e0c1b3c079d1799a79526144e9326ae Mon Sep 17 00:00:00 2001 From: Lotfi zaouche Date: Wed, 20 May 2020 09:14:58 +0000 Subject: [PATCH] change counter variation per_minute --- blockchain/parity/ethpoller/mode/stats.pm | 16 ++++++------- blockchain/parity/ethpoller/mode/tracking.pm | 24 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/blockchain/parity/ethpoller/mode/stats.pm b/blockchain/parity/ethpoller/mode/stats.pm index 72fe40df8..dab08346b 100644 --- a/blockchain/parity/ethpoller/mode/stats.pm +++ b/blockchain/parity/ethpoller/mode/stats.pm @@ -36,12 +36,12 @@ sub set_counters { ]; $self->{maps_counters}->{block} = [ - { label => 'block_frequency', nlabel => 'parity.stats.block.persecond', set => { + { label => 'block_frequency', nlabel => 'parity.stats.block.perminute', set => { key_values => [ { name => 'block_count', diff => 1 } ], - per_second => 1, - output_template => "Block frequency: %.2f (block/s)", + per_minute => 1, + output_template => "Block frequency: %.2f (block/min)", perfdatas => [ - { label => 'block', value => 'block_count_per_second', template => ' %.2f', + { label => 'block', value => 'block_count_per_minute', template => ' %.2f', label_extra_instance => 1, instance_use => 'display_absolute' } ], } @@ -49,12 +49,12 @@ sub set_counters { ]; $self->{maps_counters}->{transaction} = [ - { label => 'transaction_frequency', nlabel => 'parity.stats.transaction.persecond', set => { + { label => 'transaction_frequency', nlabel => 'parity.stats.transaction.perminute', set => { key_values => [ { name => 'transaction_count', diff => 1 } ], - per_second => 1, - output_template => "Transaction frequency: %.2f (tx/s)", + per_minute => 1, + output_template => "Transaction frequency: %.2f (tx/min)", perfdatas => [ - { label => 'transaction', value => 'transaction_count_per_second', template => '%.2f', + { label => 'transaction', value => 'transaction_count_per_minute', template => '%.2f', label_extra_instance => 1, instance_use => 'display_absolute' } ], } diff --git a/blockchain/parity/ethpoller/mode/tracking.pm b/blockchain/parity/ethpoller/mode/tracking.pm index 4badb37de..001e33c42 100644 --- a/blockchain/parity/ethpoller/mode/tracking.pm +++ b/blockchain/parity/ethpoller/mode/tracking.pm @@ -37,12 +37,12 @@ sub set_counters { ]; $self->{maps_counters}->{events} = [ - { label => 'events_frequency', nlabel => 'parity.tracking.events.persecond', set => { + { label => 'events_frequency', nlabel => 'parity.tracking.events.perminute', set => { key_values => [ { name => 'events_count', diff => 1 }, { name => 'display' } ], - per_second => 1, - output_template => " %.2f (events/s)", + per_minute => 1, + output_template => " %.2f (events/min)", perfdatas => [ - { label => 'events', template => '%.2f', value => 'events_count_per_second', + { label => 'events', template => '%.2f', value => 'events_count_per_minute', label_extra_instance => 1, instance_use => 'display_absolute' } ], } @@ -50,23 +50,23 @@ sub set_counters { ]; $self->{maps_counters}->{mining} = [ - { label => 'mining_frequency', nlabel => 'parity.tracking.mined.block.persecond', set => { + { label => 'mining_frequency', nlabel => 'parity.tracking.mined.block.perminute', set => { key_values => [ { name => 'mining_count', diff => 1 }, { name => 'display' } ], - per_second => 1, - output_template => " %.2f (blocks/s)", - perfdatas => [ { label => 'mining', template => '%.2f', value => 'mining_count_per_second', + per_minute => 1, + output_template => " %.2f (blocks/min)", + perfdatas => [ { label => 'mining', template => '%.2f', value => 'mining_count_per_minute', label_extra_instance => 1, instance_use => 'display_absolute' } ], } } ]; $self->{maps_counters}->{balance} = [ - { label => 'balance_fluctuation', nlabel => 'parity.tracking.balance.variation.persecond', set => { + { label => 'balance_fluctuation', nlabel => 'parity.tracking.balance.variation.perminute', set => { key_values => [ { name => 'balance', diff => 1 } ], - per_second => 1, - output_template => " variation: %.2f (diff/sec)", + per_minute => 1, + output_template => " variation: %.2f (diff/min)", perfdatas => [ - { label => 'balances', template => '%.2f', value => 'balance_per_second', + { label => 'balances', template => '%.2f', value => 'balance_per_minute', label_extra_instance => 1, instance_use => 'display_absolute' } ], }