Fix HostId field in the testnet dashboard
This commit is contained in:
parent
ed05aeaef8
commit
8628f33d0b
|
@ -17,7 +17,7 @@ use crate::service::Service;
|
|||
use crate::storage_stage::StorageState;
|
||||
use crate::tpu::Tpu;
|
||||
use crate::tvu::{Sockets, Tvu};
|
||||
use solana_metrics::inc_new_counter_info;
|
||||
use solana_metrics::datapoint_info;
|
||||
use solana_sdk::genesis_block::GenesisBlock;
|
||||
use solana_sdk::poh_config::PohConfig;
|
||||
use solana_sdk::pubkey::Pubkey;
|
||||
|
@ -264,7 +264,7 @@ impl Validator {
|
|||
&exit,
|
||||
);
|
||||
|
||||
inc_new_counter_info!("fullnode-new", 1);
|
||||
datapoint_info!("validator-new");
|
||||
Self {
|
||||
id,
|
||||
gossip_service,
|
||||
|
|
|
@ -46,7 +46,24 @@ if channel == 'local':
|
|||
'text': 'testnet',
|
||||
'value': 'testnet'}],
|
||||
'query': 'testnet',
|
||||
'type': 'custom'}]
|
||||
'type': 'custom'},
|
||||
{'allValue': ".*",
|
||||
'datasource': '$datasource',
|
||||
'hide': 0,
|
||||
'includeAll': True,
|
||||
'label': 'HostID',
|
||||
'multi': False,
|
||||
'name': 'hostid',
|
||||
'options': [],
|
||||
'query': 'SELECT DISTINCT(\"host_id\") FROM \"$testnet\".\"autogen\".\"validator-new\" ',
|
||||
'refresh': 2,
|
||||
'regex': '',
|
||||
'sort': 1,
|
||||
'tagValuesQuery': '',
|
||||
'tags': [],
|
||||
'tagsQuery': '',
|
||||
'type': 'query',
|
||||
'useTags': False}]
|
||||
|
||||
elif channel == 'stable':
|
||||
# Stable dashboard only allows the user to select between the stable
|
||||
|
@ -121,7 +138,7 @@ else:
|
|||
'multi': False,
|
||||
'name': 'hostid',
|
||||
'options': [],
|
||||
'query': 'SELECT DISTINCT(\"host_id\") FROM \"$testnet\".\"autogen\".\"counter-fullnode-new\" ',
|
||||
'query': 'SELECT DISTINCT(\"host_id\") FROM \"$testnet\".\"autogen\".\"validator-new\" ',
|
||||
'refresh': 2,
|
||||
'regex': '',
|
||||
'sort': 1,
|
||||
|
|
Loading…
Reference in New Issue