feat: print dashboard link in otel startup (#1406)

This commit is contained in:
cthomas
2025-03-25 16:07:15 -07:00
committed by GitHub
parent d6b1eff837
commit 39dec89705

View File

@@ -16,11 +16,14 @@ fi
# Start OpenTelemetry Collector
if [ -n "$CLICKHOUSE_ENDPOINT" ] && [ -n "$CLICKHOUSE_PASSWORD" ]; then
echo "Starting OpenTelemetry Collector with Clickhouse export..."
CONFIG_FILE="otel-collector-config-clickhouse-dev.yaml"
CONFIG_FILE="otel/otel-collector-config-clickhouse-dev.yaml"
else
echo "Starting OpenTelemetry Collector with file export only..."
CONFIG_FILE="otel-collector-config-file-dev.yaml"
CONFIG_FILE="otel/otel-collector-config-file-dev.yaml"
fi
device_id=$(python3 -c 'import uuid; print(uuid.getnode())')
echo "View traces at https://letta.grafana.net/d/dc738af7-6c30-4b42-aef2-f967d65638af/letta-dev-traces?orgId=1&var-deviceid=$device_id"
# Run collector
exec ./bin/otelcol-contrib --config "$CONFIG_FILE"