From 2f115736c8137c6b4da51fa816d96097ecb382cc Mon Sep 17 00:00:00 2001 From: evan Date: Mon, 28 Apr 2025 13:01:01 -0700 Subject: [PATCH] use HOSTNAME for job name to prevent conflict --- metric-exporter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metric-exporter.sh b/metric-exporter.sh index e3ac7370e..4943c7999 100755 --- a/metric-exporter.sh +++ b/metric-exporter.sh @@ -36,7 +36,7 @@ push_metrics() { # Push to Pushgateway with instance label curl -s -u "$AUTH" --data-binary @"$TEMP_FILE" \ - "$PUSHGATEWAY_BASE_URL/job/$job_name/instance/$HOST" + "$PUSHGATEWAY_BASE_URL/job/$job_name/instance/$HOSTNAME" # Check if push was successful if [ $? -eq 0 ]; then