|
@@ -21,7 +21,7 @@ with open(dashboard_json, 'r') as read_file:
|
|
|
data = json.load(read_file)
|
|
data = json.load(read_file)
|
|
|
|
|
|
|
|
if channel == 'local':
|
|
if channel == 'local':
|
|
|
- data['title'] = 'Local Testnet Monitor'
|
|
|
|
|
|
|
+ data['title'] = 'Local Cluster Monitor'
|
|
|
data['uid'] = 'local'
|
|
data['uid'] = 'local'
|
|
|
data['links'] = []
|
|
data['links'] = []
|
|
|
data['templating']['list'] = [{'current': {'text': '$datasource',
|
|
data['templating']['list'] = [{'current': {'text': '$datasource',
|
|
@@ -66,10 +66,9 @@ if channel == 'local':
|
|
|
'useTags': False}]
|
|
'useTags': False}]
|
|
|
|
|
|
|
|
elif channel == 'stable':
|
|
elif channel == 'stable':
|
|
|
- # Stable dashboard only allows the user to select between the stable
|
|
|
|
|
- # testnet databases
|
|
|
|
|
- data['title'] = 'Testnet Monitor'
|
|
|
|
|
- data['uid'] = 'testnet'
|
|
|
|
|
|
|
+ # Stable dashboard only allows the user to select between public clusters
|
|
|
|
|
+ data['title'] = 'Cluster Telemetry'
|
|
|
|
|
+ data['uid'] = 'monitor'
|
|
|
data['templating']['list'] = [{'current': {'text': '$datasource',
|
|
data['templating']['list'] = [{'current': {'text': '$datasource',
|
|
|
'value': '$datasource'},
|
|
'value': '$datasource'},
|
|
|
'hide': 1,
|
|
'hide': 1,
|
|
@@ -81,20 +80,26 @@ elif channel == 'stable':
|
|
|
'regex': '',
|
|
'regex': '',
|
|
|
'type': 'datasource'},
|
|
'type': 'datasource'},
|
|
|
{'allValue': None,
|
|
{'allValue': None,
|
|
|
- 'current': {'text': 'testnet',
|
|
|
|
|
- 'value': 'testnet'},
|
|
|
|
|
|
|
+ 'current': {'text': 'Developer Testnet',
|
|
|
|
|
+ 'value': 'devnet'},
|
|
|
'hide': 1,
|
|
'hide': 1,
|
|
|
'includeAll': False,
|
|
'includeAll': False,
|
|
|
'label': 'Testnet',
|
|
'label': 'Testnet',
|
|
|
'multi': False,
|
|
'multi': False,
|
|
|
'name': 'testnet',
|
|
'name': 'testnet',
|
|
|
- 'options': [{'selected': False,
|
|
|
|
|
- 'text': 'testnet',
|
|
|
|
|
- 'value': 'testnet'},
|
|
|
|
|
- {'selected': True,
|
|
|
|
|
- 'text': 'testnet-perf',
|
|
|
|
|
- 'value': 'testnet-perf'}],
|
|
|
|
|
- 'query': 'testnet,testnet-perf',
|
|
|
|
|
|
|
+ 'options': [{'selected': True,
|
|
|
|
|
+ 'text': 'Developer Testnet',
|
|
|
|
|
+ 'value': 'devnet'},
|
|
|
|
|
+ {'selected': False,
|
|
|
|
|
+ 'text': 'Mainnet Beta',
|
|
|
|
|
+ 'value': 'mainnet-beta'},
|
|
|
|
|
+ {'selected': False,
|
|
|
|
|
+ 'text': 'Tour de SOL Testnet',
|
|
|
|
|
+ 'value': 'tds'},
|
|
|
|
|
+ {'selected': False,
|
|
|
|
|
+ 'text': 'Soft Launch Testnet',
|
|
|
|
|
+ 'value': 'cluster'}],
|
|
|
|
|
+ 'query': 'devnet,mainnet-beta,tds,cluster',
|
|
|
'type': 'custom'},
|
|
'type': 'custom'},
|
|
|
{'allValue': ".*",
|
|
{'allValue': ".*",
|
|
|
'datasource': '$datasource',
|
|
'datasource': '$datasource',
|
|
@@ -114,10 +119,9 @@ elif channel == 'stable':
|
|
|
'type': 'query',
|
|
'type': 'query',
|
|
|
'useTags': False}]
|
|
'useTags': False}]
|
|
|
else:
|
|
else:
|
|
|
- # Non-stable dashboard only allows the user to select between all testnet
|
|
|
|
|
- # databases
|
|
|
|
|
- data['title'] = 'Testnet Monitor ({})'.format(channel)
|
|
|
|
|
- data['uid'] = 'testnet-' + channel
|
|
|
|
|
|
|
+ # Non-stable dashboard includes all the dev clusters
|
|
|
|
|
+ data['title'] = 'Cluster Telemetry ({})'.format(channel)
|
|
|
|
|
+ data['uid'] = 'monitor-' + channel
|
|
|
data['templating']['list'] = [{'current': {'text': '$datasource',
|
|
data['templating']['list'] = [{'current': {'text': '$datasource',
|
|
|
'value': '$datasource'},
|
|
'value': '$datasource'},
|
|
|
'hide': 1,
|
|
'hide': 1,
|
|
@@ -129,8 +133,8 @@ else:
|
|
|
'regex': '',
|
|
'regex': '',
|
|
|
'type': 'datasource'},
|
|
'type': 'datasource'},
|
|
|
{'allValue': ".*",
|
|
{'allValue': ".*",
|
|
|
- 'current': {'text': 'testnet',
|
|
|
|
|
- 'value': 'testnet'},
|
|
|
|
|
|
|
+ 'current': {'text': 'Developer Testnet',
|
|
|
|
|
+ 'value': 'devnet'},
|
|
|
'datasource': '$datasource',
|
|
'datasource': '$datasource',
|
|
|
'hide': 1,
|
|
'hide': 1,
|
|
|
'includeAll': False,
|
|
'includeAll': False,
|
|
@@ -140,7 +144,7 @@ else:
|
|
|
'options': [],
|
|
'options': [],
|
|
|
'query': 'show databases',
|
|
'query': 'show databases',
|
|
|
'refresh': 1,
|
|
'refresh': 1,
|
|
|
- 'regex': 'testnet.*',
|
|
|
|
|
|
|
+ 'regex': '(devnet|cluster|tds|mainnet-beta|testnet.*)',
|
|
|
'sort': 1,
|
|
'sort': 1,
|
|
|
'tagValuesQuery': '',
|
|
'tagValuesQuery': '',
|
|
|
'tags': [],
|
|
'tags': [],
|