Fix edge to handle nested metrics format from gateway forwarding

This commit is contained in:
buenosairesam
2026-01-26 20:36:34 -03:00
parent 754d3e55fb
commit 2da4b30019
5 changed files with 100 additions and 6 deletions

23
ctrl/run.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
# Run sysmonstm full stack locally with edge forwarding
# Usage: ./ctrl/run.sh [--remote]
#
# Examples:
# ./ctrl/run.sh # Build locally (default)
# ./ctrl/run.sh --remote # Use registry images
cd "$(dirname "$0")/.."
# Load env from ctrl/.env
set -a
source ctrl/.env
set +a
if [ "$1" = "--remote" ]; then
echo "Using remote images from registry"
docker compose pull
docker compose up "${@:2}"
else
echo "Building locally..."
docker compose up --build "$@"
fi