From d911db0f281a37001839ea3455af3dc207680387 Mon Sep 17 00:00:00 2001 From: Matthew Nightingale <73195085+nghtm@users.noreply.github.com> Date: Thu, 21 Nov 2024 18:10:34 -0500 Subject: [PATCH] pin prometheus to version 2.55.1 (#504) --- .../base-config/utils/install_prometheus.sh | 7 +++++-- .../4.prometheus-grafana/update-prometheus.sh | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/1.architectures/5.sagemaker-hyperpod/LifecycleScripts/base-config/utils/install_prometheus.sh b/1.architectures/5.sagemaker-hyperpod/LifecycleScripts/base-config/utils/install_prometheus.sh index 5103a890..60197001 100644 --- a/1.architectures/5.sagemaker-hyperpod/LifecycleScripts/base-config/utils/install_prometheus.sh +++ b/1.architectures/5.sagemaker-hyperpod/LifecycleScripts/base-config/utils/install_prometheus.sh @@ -32,8 +32,11 @@ generate_targets() { } # Retrieve the latest Prometheus version from GitHub releases -echo "Retrieving the latest Prometheus version..." -LATEST_VERSION=$(curl -s https://api.github.com/repos/prometheus/prometheus/releases/latest | grep -oP '"tag_name": "\K(.*?)(?=")' | sed 's/^v//') +#echo "Retrieving the latest Prometheus version..." +#LATEST_VERSION=$(curl -s https://api.github.com/repos/prometheus/prometheus/releases/latest | grep -oP '"tag_name": "\K(.*?)(?=")' | sed 's/^v//') + +echo "Using pinned Prometheus version 2.55.1" +LATEST_VERSION=2.55.1 # Check if the latest version retrieval was successful if [ -z "$LATEST_VERSION" ]; then diff --git a/4.validation_and_observability/4.prometheus-grafana/update-prometheus.sh b/4.validation_and_observability/4.prometheus-grafana/update-prometheus.sh index 9184c7a8..39d7c408 100644 --- a/4.validation_and_observability/4.prometheus-grafana/update-prometheus.sh +++ b/4.validation_and_observability/4.prometheus-grafana/update-prometheus.sh @@ -37,8 +37,11 @@ if command -v prometheus &>/dev/null; then echo "Prometheus is already installed. Skipping installation." else # Retrieve the latest Prometheus version from GitHub releases - echo "Retrieving the latest Prometheus version..." - LATEST_VERSION=$(curl -s https://api.github.com/repos/prometheus/prometheus/releases/latest | grep -oP '"tag_name": "\K(.*?)(?=")' | sed 's/^v//') + # echo "Retrieving the latest Prometheus version..." + # LATEST_VERSION=$(curl -s https://api.github.com/repos/prometheus/prometheus/releases/latest | grep -oP '"tag_name": "\K(.*?)(?=")' | sed 's/^v//') + + echo "Using pinned Prometheus version 2.55.1" + LATEST_VERSION=2.55.1 # Check if the latest version retrieval was successful if [ -z "$LATEST_VERSION" ]; then