From 8e440fd0cb0498342e51cdaf2d6eccb99248edc9 Mon Sep 17 00:00:00 2001 From: yorickdowne <71337066+yorickdowne@users.noreply.github.com> Date: Wed, 31 Jan 2024 05:07:49 -0500 Subject: [PATCH] Attempt to fix Nethermind dashboard (#1723) --- grafana/provision.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/grafana/provision.sh b/grafana/provision.sh index ae38a4be..c80faed0 100755 --- a/grafana/provision.sh +++ b/grafana/provision.sh @@ -88,8 +88,12 @@ case "$CLIENT" in *nethermind* ) # nethermind_dashboard __url='https://raw.githubusercontent.com/NethermindEth/metrics-infrastructure/master/grafana/provisioning/dashboards/nethermind.json' - __file='/etc/grafana/provisioning/dashboards/nethermind_dashboard.json' - wget -t 3 -T 10 -qcO - "${__url}" | jq 'walk(if . == "prometheus_ds" then "Prometheus" else . end)' >"${__file}" + __file='/etc/grafana/provisioning/dashboards/nethermind_dashboardv2.json' + wget -t 3 -T 10 -qcO - "${__url}" >"${__file}" + # uid changed, removing this may undo the damage + if [ -f "/etc/grafana/provisioning/dashboards/nethermind_dashboard.json" ]; then + rm "/etc/grafana/provisioning/dashboards/nethermind_dashboard.json" + fi ;;& *web3signer* ) # web3signer_dashboard