Skip to content

Commit 4925293

Browse files
committed
update workflow
1 parent 32ea06f commit 4925293

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/test-remote-monitoring.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,10 @@ jobs:
293293
log_push_total="$(curl -s http://127.0.0.1:19428/metrics | awk '/\/insert\/loki\/api\/v1\/push/ { sum += ($NF+0) } END { print sum+0 }')"
294294
if python3 -c 'import sys; sys.exit(0 if float(sys.argv[1]) > 0 else 1)' "$log_push_total"; then
295295
echo -e "${GREEN}Logs are ingested (Loki push metric sum: ${log_push_total}).${NC}"
296+
echo -e "${BLUE}Sample gateway access logs (Loki push path):${NC}"
297+
kubectl logs -n remote-monitoring deploy/monitoring-gateway --tail=50 | grep '/loki/api/v1/push' || true
298+
echo -e "${BLUE}Sample Memgraph vector sidecar logs:${NC}"
299+
kubectl logs -n default memgraph-data-0-0 -c memgraph-vector --tail=20 || true
296300
break
297301
fi
298302
if [[ "$i" -eq 40 ]]; then
@@ -586,6 +590,10 @@ jobs:
586590
log_push_total="$(curl -s http://127.0.0.1:19428/metrics | awk '/\/insert\/loki\/api\/v1\/push/ { sum += ($NF+0) } END { print sum+0 }')"
587591
if python3 -c 'import sys; sys.exit(0 if float(sys.argv[1]) > 0 else 1)' "$log_push_total"; then
588592
echo -e "${GREEN}Logs are ingested (Loki push metric sum: ${log_push_total}).${NC}"
593+
echo -e "${BLUE}Sample gateway access logs (Loki push path):${NC}"
594+
kubectl logs -n remote-monitoring deploy/monitoring-gateway --tail=50 | grep '/loki/api/v1/push' || true
595+
echo -e "${BLUE}Sample Memgraph vector sidecar logs:${NC}"
596+
kubectl logs -n default memgraph-db-0 -c memgraph-vector --tail=20 || true
589597
break
590598
fi
591599
if [[ "$i" -eq 40 ]]; then

0 commit comments

Comments
 (0)