From f61141f34b490e6ef3e2d615bf2e3817d15d94b0 Mon Sep 17 00:00:00 2001 From: Yorick Downe Date: Thu, 3 Aug 2023 10:34:31 +0000 Subject: [PATCH] Fix SSV dashboard jq --- grafana/provision-dashboards.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/grafana/provision-dashboards.sh b/grafana/provision-dashboards.sh index 3093bbc9..c8648696 100755 --- a/grafana/provision-dashboards.sh +++ b/grafana/provision-dashboards.sh @@ -100,11 +100,11 @@ case "$CLIENT" in *blox-ssv* ) # Blox SSV Operator Dashboard __url='https://raw.githubusercontent.com/bloxapp/ssv/main/monitoring/grafana/dashboard_ssv_operator_performance.json' - __file='/etc/grafana/provisioning/dashboards/blox_ssv_operator_dashboard.json' - wget -t 3 -T 10 -qcO - "${__url}" | jq '.templating.list[0].current |= (.selected = false) | (.text = "ssv2-node") | (.value = "ssv2-node") | .templating.list[0].options = [ { "selected": true, "text": "ssv2-node", "value": "ssv2-node" } ] | .templating.list[0].query = "ssv2-node"' >"${__file}" + __file='/etc/grafana/provisioning/dashboards/ssv_operator_dashboard.json' + wget -t 3 -T 10 -qcO - "${__url}" | jq '.templating.list[0].current |= {selected: false, text: "ssv2-node", value: "ssv2-node"} | .templating.list[0].options = [ { "selected": true, "text": "ssv2-node", "value": "ssv2-node" } ] | .templating.list[0].query = "ssv2-node"' >"${__file}" __url='https://raw.githubusercontent.com/bloxapp/ssv/main/monitoring/grafana/dashboard_ssv_node.json' - __file='/etc/grafana/provisioning/dashboards/blox_ssv_node_dashboard.json' - wget -t 3 -T 10 -qcO - "${__url}" | jq '.templating.list[0].current |= (.selected = false) | (.text = "ssv2-node") | (.value = "ssv2-node") | .templating.list[0].options = [ { "selected": true, "text": "ssv2-node", "value": "ssv2-node" } ] | .templating.list[0].query = "ssv2-node"' >"${__file}" + __file='/etc/grafana/provisioning/dashboards/ssv_node_dashboard.json' + wget -t 3 -T 10 -qcO - "${__url}" | jq '.templating.list[0].current |= {selected: false, text: "ssv2-node", value: "ssv2-node"} | .templating.list[0].options = [ { "selected": true, "text": "ssv2-node", "value": "ssv2-node" } ] | .templating.list[0].query = "ssv2-node"' >"${__file}" ;;& * ) # Home staking dashboard