From fa98434096fd70fa52dbf97fc158f5cd467b426c Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Wed, 12 Dec 2018 06:06:33 -0800 Subject: [PATCH] Update variables in dashboard (#2117) * Update variables in dashboard * fix escaped strings for query --- metrics/adjust-dashboard-for-channel.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/metrics/adjust-dashboard-for-channel.py b/metrics/adjust-dashboard-for-channel.py index 225d959b8..81739aded 100755 --- a/metrics/adjust-dashboard-for-channel.py +++ b/metrics/adjust-dashboard-for-channel.py @@ -63,7 +63,24 @@ else: 'tags': [], 'tagsQuery': '', 'type': 'query', - 'useTags': False}] + 'useTags': False}, + {'allValue': None, + 'datasource': 'Solana Metrics (read-only)', + 'hide': 0, + 'includeAll': False, + 'label': 'HostID', + 'multi': False, + 'name': 'hostid', + 'options': [], + 'query': 'SELECT DISTINCT(\"host_id\") FROM \"$testnet\".\"autogen\".\"counter-bank-process_transactions-txs\" ', + 'refresh': 2, + 'regex': '', + 'sort': 1, + 'tagValuesQuery': '', + 'tags': [], + 'tagsQuery': '', + 'type': 'query', + 'useTags': False}] with open(dashboard_json, 'w') as write_file: json.dump(data, write_file, indent=2)