From 8434d52901060d0f28487bd157200783678ba165 Mon Sep 17 00:00:00 2001 From: Lotfi zaouche Date: Thu, 28 May 2020 13:22:20 +0000 Subject: [PATCH] change underscors to dash in counters --- blockchain/parity/ethpoller/mode/disk.pm | 12 ++++++------ blockchain/parity/restapi/mode/eth.pm | 18 +++++++++--------- blockchain/parity/restapi/mode/parity.pm | 12 ++++++------ 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/blockchain/parity/ethpoller/mode/disk.pm b/blockchain/parity/ethpoller/mode/disk.pm index e3b5a73f5..8d5c80884 100644 --- a/blockchain/parity/ethpoller/mode/disk.pm +++ b/blockchain/parity/ethpoller/mode/disk.pm @@ -35,7 +35,7 @@ sub set_counters { ]; $self->{maps_counters}->{global} = [ - { label => 'disk_free', nlabel => 'eth.poller.disk.free', set => { + { label => 'disk-free', nlabel => 'eth.poller.disk.free', set => { key_values => [ { name => 'disk_free' } ], output_template => "Disk free: %d ", perfdatas => [ @@ -43,7 +43,7 @@ sub set_counters { ], } }, - { label => 'disk_available', nlabel => 'eth.poller.disk.available', set => { + { label => 'disk-available', nlabel => 'eth.poller.disk.available', set => { key_values => [ { name => 'disk_available' } ], output_template => "Disk available: %d ", perfdatas => [ @@ -51,7 +51,7 @@ sub set_counters { ], } }, - { label => 'disk_size', nlabel => 'eth.poller.disk.size', set => { + { label => 'disk-size', nlabel => 'eth.poller.disk.size', set => { key_values => [ { name => 'disk_size' } ], output_template => "Disk size: %d ", perfdatas => [ @@ -59,7 +59,7 @@ sub set_counters { ], } }, - { label => 'disk_used', nlabel => 'eth.poller.disk.used', set => { + { label => 'disk-used', nlabel => 'eth.poller.disk.used', set => { key_values => [ { name => 'disk_used' } ], output_template => "Disk used: %d ", perfdatas => [ @@ -67,7 +67,7 @@ sub set_counters { ], } }, - { label => 'disk_usage', nlabel => 'eth.poller.disk.usage', set => { + { label => 'disk-usage', nlabel => 'eth.poller.disk.usage', set => { key_values => [ { name => 'disk_usage' } ], output_template => "Disk usage: %d %%", perfdatas => [ @@ -75,7 +75,7 @@ sub set_counters { ], } }, - { label => 'blockchain_dir', nlabel => 'eth.poller.blockchain.directory', set => { + { label => 'blockchain-dir', nlabel => 'eth.poller.blockchain.directory', set => { key_values => [ { name => 'blockchain_dir' } ], output_template => "Blockchain directory: %d", perfdatas => [ diff --git a/blockchain/parity/restapi/mode/eth.pm b/blockchain/parity/restapi/mode/eth.pm index 4c5226ba2..cac93b2df 100644 --- a/blockchain/parity/restapi/mode/eth.pm +++ b/blockchain/parity/restapi/mode/eth.pm @@ -47,7 +47,7 @@ sub set_counters { ]; $self->{maps_counters}->{sync} = [ - { label => 'sync_status', nlabel => 'parity.eth.sync.status', set => { + { label => 'sync-status', nlabel => 'parity.eth.sync.status', set => { key_values => [ { name => 'sync_status' } ], output_template => "Syncing: %d %% ", perfdatas => [ @@ -58,7 +58,7 @@ sub set_counters { ]; $self->{maps_counters}->{gas} = [ - { label => 'gas_price', nlabel => 'parity.eth.gas.price', set => { + { label => 'gas-price', nlabel => 'parity.eth.gas.price', set => { key_values => [ { name => 'gas_price' } ], output_template => "The gas price is: %d wei ", perfdatas => [ @@ -66,7 +66,7 @@ sub set_counters { ], } }, - { label => 'gas_used', nlabel => 'parity.eth.gas.used', set => { + { label => 'gas-used', nlabel => 'parity.eth.gas.used', set => { key_values => [ { name => 'gas_used' } ], output_template => "The gas used is: %d", perfdatas => [ @@ -74,7 +74,7 @@ sub set_counters { ], } }, - { label => 'gas_limit', nlabel => 'parity.eth.gas.limit', set => { + { label => 'gas-limit', nlabel => 'parity.eth.gas.limit', set => { key_values => [ { name => 'gas_limit' } ], output_template => "The gas limit is: %d", perfdatas => [ @@ -85,7 +85,7 @@ sub set_counters { ]; $self->{maps_counters}->{block} = [ - { label => 'block_size', nlabel => 'parity.eth.block.size', set => { + { label => 'block-size', nlabel => 'parity.eth.block.size', set => { key_values => [ { name => 'block_size' } ], output_template => "Block size: %d ", perfdatas => [ @@ -93,7 +93,7 @@ sub set_counters { ], } }, - { label => 'block_usage', nlabel => 'parity.eth.block.usage', set => { + { label => 'block-usage', nlabel => 'parity.eth.block.usage', set => { key_values => [ { name => 'block_usage' } ], output_template => "Block usage: %d %%", perfdatas => [ @@ -101,7 +101,7 @@ sub set_counters { ], } }, - { label => 'block_transactions', nlabel => 'parity.eth.block.transactions.number', set => { + { label => 'block-transactions', nlabel => 'parity.eth.block.transactions.number', set => { key_values => [ { name => 'block_transactions' } ], output_template => "Block transactions number: %d ", perfdatas => [ @@ -109,7 +109,7 @@ sub set_counters { ], } }, - { label => 'block_gas', nlabel => 'parity.eth.block.gas', set => { + { label => 'block-gas', nlabel => 'parity.eth.block.gas', set => { key_values => [ { name => 'block_gas' } ], output_template => "Block gas: %d ", perfdatas => [ @@ -117,7 +117,7 @@ sub set_counters { ], } }, - { label => 'block_uncles', nlabel => 'parity.eth.block.uncles', set => { + { label => 'block-uncles', nlabel => 'parity.eth.block.uncles', set => { key_values => [ { name => 'block_uncles' } ], output_template => "Block uncles: %d ", perfdatas => [ diff --git a/blockchain/parity/restapi/mode/parity.pm b/blockchain/parity/restapi/mode/parity.pm index 1e9206359..f62eb82e0 100644 --- a/blockchain/parity/restapi/mode/parity.pm +++ b/blockchain/parity/restapi/mode/parity.pm @@ -36,7 +36,7 @@ sub set_counters { ]; $self->{maps_counters}->{mempool} = [ - { label => 'mempool_tx_pending', nlabel => 'parity.pending.transactions', set => { + { label => 'mempool-tx-pending', nlabel => 'parity.pending.transactions', set => { key_values => [ { name => 'tx_pending' } ], output_template => "Pending transactions: %d", perfdatas => [ @@ -44,7 +44,7 @@ sub set_counters { ], } }, - { label => 'mempool_size', nlabel => 'parity.mempol.size', set => { + { label => 'mempool-size', nlabel => 'parity.mempol.size', set => { key_values => [ { name => 'mempool_size' } ], output_template => "Mempool size: %d", perfdatas => [ @@ -52,7 +52,7 @@ sub set_counters { ], } }, - { label => 'mempool_usage', nlabel => 'parity.mempol.usage', set => { + { label => 'mempool-usage', nlabel => 'parity.mempol.usage', set => { key_values => [ { name => 'mempool_usage' } ], output_template => "Mempool usage: %d %% ", perfdatas => [ @@ -63,7 +63,7 @@ sub set_counters { ]; $self->{maps_counters}->{peers} = [ - { label => 'peers_connected', nlabel => 'parity.peers.connected', set => { + { label => 'peers-connected', nlabel => 'parity.peers.connected', set => { key_values => [ { name => 'peers_connected' } ], output_template => "Connected peers: %d", perfdatas => [ @@ -71,7 +71,7 @@ sub set_counters { ], } }, - { label => 'peers_max', nlabel => 'parity.peers.max', set => { + { label => 'peers-max', nlabel => 'parity.peers.max', set => { key_values => [ { name => 'peers_max' } ], output_template => "Peers max: %d", perfdatas => [ @@ -79,7 +79,7 @@ sub set_counters { ], } }, - { label => 'peers_usage', nlabel => 'parity.peers.usage', set => { + { label => 'peers-usage', nlabel => 'parity.peers.usage', set => { key_values => [ { name => 'peers_usage' } ], output_template => "Peers usage: %d %% ", perfdatas => [