Skip to content

Commit

Permalink
gLiveView 1.28.3 (#1717)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Scitz0 authored and rdlrt committed Dec 1, 2023
1 parent baf8cc3 commit dc54526
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mithril-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 3 additions & 1 deletion docs/Scripts/gliveview.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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.
Expand Down
7 changes: 6 additions & 1 deletion scripts/cnode-helper-scripts/gLiveView.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ setTheme() {
# Do NOT modify code below #
######################################

GLV_VERSION=v1.28.2
GLV_VERSION=v1.28.3

PARENT="$(dirname $0)"

Expand Down Expand Up @@ -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 //"?",
Expand Down

0 comments on commit dc54526

Please sign in to comment.