From dc54526d76fe3b74a92d6f6812eeee644c86160c Mon Sep 17 00:00:00 2001 From: "Ola [AHLNET]" Date: Thu, 30 Nov 2023 22:37:02 +0100 Subject: [PATCH] gLiveView 1.28.3 (#1717) OP cert fallback check for cert used in running node process if ${POOL_DIR}/${POOL_OPCERT_FILENAME} doesn't exist. This can happen for non-guild setups. --- .github/workflows/mithril-latest.yml | 2 +- docs/Scripts/gliveview.md | 4 +++- scripts/cnode-helper-scripts/gLiveView.sh | 7 ++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mithril-latest.yml b/.github/workflows/mithril-latest.yml index 9a247fc34..3fd578b8c 100644 --- a/.github/workflows/mithril-latest.yml +++ b/.github/workflows/mithril-latest.yml @@ -14,7 +14,7 @@ jobs: ref: alpha - name: Fetch Mithril release version run: | - curl -sL https://api.github.com/repos/input-output-hk/mithril/releases/latest | jq -r '.tag_name' tag_name > files/docker/node/release-versions/mithril-latest.txt + curl -sL https://api.github.com/repos/input-output-hk/mithril/releases/latest | jq -r '.tag_name' > files/docker/node/release-versions/mithril-latest.txt - name: Assigns release version run: | VERSION=$(cat ./files/docker/node/release-versions/mithril-latest.txt) diff --git a/docs/Scripts/gliveview.md b/docs/Scripts/gliveview.md index 56eb8ead2..9ac26cad7 100644 --- a/docs/Scripts/gliveview.md +++ b/docs/Scripts/gliveview.md @@ -9,6 +9,9 @@ For most setups, it's enough to set `CNODE_PORT` in the `env` file. The rest of The tool can be run in legacy mode with only standard ASCII characters for terminals with trouble displaying the box-drawing characters. Run `./gLiveView.sh -h` to show available command-line parameters or permanently set it directly in script. +!!! info "Note !!" + Keeping gLiveView to it's intent of being a dashboard and not a full-fledged monitoring tool, we intend to keep most relevant information for a node operator in a minimalistic dashboard, accordingly - gLiveView runs by default in compact mode. One can enable verbose mode by pressing 'v' to unhide additional fields. + A sample output from both core and relay together with peer analysis: === "Core" @@ -23,7 +26,6 @@ A sample output from both core and relay together with peer analysis: ![Peer-Analysis](https://raw.githubusercontent.com/cardano-community/guild-operators/images/glv-peers.png ':size=35%') - ###### Upper main section Displays live metrics from cardano-node gathered through the nodes EKG/Prometheus(env setting) endpoint. diff --git a/scripts/cnode-helper-scripts/gLiveView.sh b/scripts/cnode-helper-scripts/gLiveView.sh index 1c82d628e..bcd343f1b 100755 --- a/scripts/cnode-helper-scripts/gLiveView.sh +++ b/scripts/cnode-helper-scripts/gLiveView.sh @@ -59,7 +59,7 @@ setTheme() { # Do NOT modify code below # ###################################### -GLV_VERSION=v1.28.2 +GLV_VERSION=v1.28.3 PARENT="$(dirname $0)" @@ -515,6 +515,11 @@ getOpCert () { op_cert_disk="?" op_cert_node="?" opcert_file="${POOL_DIR}/${POOL_OPCERT_FILENAME}" + if [[ ! -f ${opcert_file} && -n ${CNODE_PID} ]]; then + if [[ $(ps -p ${CNODE_PID} -o cmd=) =~ --shelley-operational-certificate[[:space:]]([^[:space:]]+) ]]; then + opcert_file="${BASH_REMATCH[1]}" + fi + fi if [[ -f ${opcert_file} ]]; then op_cert_tsv=$(jq -r '[ .qKesNodeStateOperationalCertificateNumber //"?",