#!/bin/bash # Start all agentmon services set -e echo "Starting infrastructure..." make up echo "Waiting for services to be ready..." sleep 5 echo "Starting application services..." make run-query > /tmp/query-api.log 2>&1 & QUERY_PID=$! echo "query-api started (PID: $QUERY_PID)" make run-ingest > /tmp/ingest-gateway.log 2>&1 & INGEST_PID=$! echo "ingest-gateway started (PID: $INGEST_PID)" make run-ui > /tmp/web-ui.log 2>&1 & UI_PID=$! echo "web-ui started (PID: $UI_PID)" echo "" echo "All services started!" echo "" echo "Endpoints:" echo " - Web UI: http://localhost:8082" echo " - Query API: http://localhost:8081" echo " - Ingest GW: http://localhost:8080" echo "" echo "Logs:" echo " - query-api: tail -f /tmp/query-api.log" echo " - ingest-gw: tail -f /tmp/ingest-gateway.log" echo " - web-ui: tail -f /tmp/web-ui.log" echo "" echo "To stop all services: pkill -f 'go run' && make down"