use HOSTNAME for job name to prevent conflict

This commit is contained in:
evan
2025-04-28 13:01:01 -07:00
parent 95cdd8d0a1
commit 2f115736c8
+1 -1
View File
@@ -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