Skip to content

Commit a84b3f8

Browse files
committed
Update to 0.9.8 and install metrics script for non-SDP
1 parent cbc486c commit a84b3f8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

scripts/install_p4prom.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ metrics_link=/p4/metrics
2121
local_bin_dir=/usr/local/bin
2222

2323
VER_NODE_EXPORTER="1.3.1"
24-
VER_P4PROMETHEUS="0.9.7"
24+
VER_P4PROMETHEUS="0.9.8"
2525

2626
# Default to amd but allow arm architecture
2727
arch="amd64"
@@ -498,12 +498,13 @@ install_monitor_locks () {
498498

499499
if [[ $UseSDP -eq 1 ]]; then
500500
service_args="$SDP_INSTANCE"
501+
bin_dir="/p4/common/site/bin"
501502
else
502503
service_args="-p $P4PORT -u $P4USER -nosdp -m $metrics_root"
504+
bin_dir="$local_bin_dir"
503505
fi
504506

505507
# We install in /p4/common/site/bin but need to reference the ultimate path without links for SELinux/systemd
506-
bin_dir="/p4/common/site/bin"
507508
abs_bin_dir=$(readlink -f "$bin_dir")
508509
cd "$bin_dir" || bail "Failed to cd to $bin_dir"
509510
for scriptname in monitor_metrics.py monitor_wrapper.sh; do

scripts/update_p4prom.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ metrics_link=/p4/metrics
1919
local_bin_dir=/usr/local/bin
2020

2121
VER_NODE_EXPORTER="1.3.1"
22-
VER_P4PROMETHEUS="0.9.7"
22+
VER_P4PROMETHEUS="0.9.8"
2323

2424
# Default to amd but allow arm architecture
2525
arch="amd64"

0 commit comments

Comments
 (0)