fix log parser

This commit is contained in:
BodoBolero
2024-11-08 15:32:58 +01:00
parent 3c0efd42dc
commit 74a747f3ec

View File

@@ -312,6 +312,7 @@ jobs:
# Extract and process log lines
while IFS= read -r line; do
METRIC_NAME=""
# Match each desired line and extract the relevant information
if [[ "$line" =~ COPY,\ INDEX,\ CONSTRAINTS,\ VACUUM.* ]]; then
METRIC_NAME="COPY, INDEX, CONSTRAINTS, VACUUM (wall clock)"
@@ -337,8 +338,6 @@ jobs:
echo "Inserting ${METRIC_NAME} with value ${METRIC_VALUE} seconds"
eval $PSQL_CMD
fi
# Reset METRIC_NAME for the next line
METRIC_NAME=""
done < "$LOG_FILE"
- name: Delete Neon Project