change underscors to dash in counters

This commit is contained in:
Lotfi zaouche 2020-05-28 13:22:20 +00:00
parent 7cec98def0
commit 8434d52901
3 changed files with 21 additions and 21 deletions

View File

@ -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 => [

View File

@ -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 => [

View File

@ -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 => [