Skip to content

Commit a6e5bc2

Browse files
committed
fix: healthcheck ci doesn't list metrics without container_name label
1 parent f5ed93a commit a6e5bc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/healthcheck-ci.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fi
4949

5050
log "Displaying container-related metrics:"
5151
echo -e "\n${GREEN}--- Metrics with container added ---${NC}"
52-
grep 'container_name' "${log_dir}/metrics.txt" | sort | uniq || echo "(No container metrics found)"
52+
grep -e '^cxp' "${log_dir}/metrics.txt" | sort | uniq || echo "(No container metrics found)"
5353

5454
log "Removing test container..."
5555
docker rm -f "$container_name" >/dev/null || fail "Failed to remove test container"
@@ -66,7 +66,7 @@ fi
6666

6767
log "Displaying container-related metrics after removal:"
6868
echo -e "\n${GREEN}--- Metrics after container removed ---${NC}"
69-
grep 'container_name' "${log_dir}/metrics_post_remove.txt" | sort | uniq || echo "(No container metrics found)"
69+
grep '^cxp' "${log_dir}/metrics_post_remove.txt" | sort | uniq || echo "(No container metrics found)"
7070

7171
pass "Full Healthcheck Completed Successfully."
7272

0 commit comments

Comments
 (0)