-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-and-run.sh
More file actions
executable file
·59 lines (49 loc) · 1.82 KB
/
build-and-run.sh
File metadata and controls
executable file
·59 lines (49 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
# OpenTelemetry Sonifier - Build and Run Script
# This script builds the extension, otelgen, collector, and starts the system
set -e # Exit on any error
echo "🔨 Building OpenTelemetry Sonifier..."
# Step 1: Build the load generator
echo "📦 Building otelgen load generator..."
cd otelgen
go build -o otelgen
cd ..
echo "✅ otelgen built successfully"
# Step 2: Build the collector using OCB
echo "🏗️ Building collector with OpenTelemetry Collector Builder (OCB)..."
$HOME/go/bin/builder --config=builder-config.yaml
echo "✅ Collector built successfully"
# Step 3: Kill any existing collector processes
echo "🧹 Cleaning up existing processes..."
pkill -f otelcol-sonifier || true
# Step 4: Start the collector
echo "🚀 Starting OpenTelemetry Collector with Sonifier Extension..."
./otelcol-sonifier/otelcol-sonifier --config=collector-config.yaml &
# Wait a moment for the collector to start
sleep 3
echo ""
echo "🎉 OpenTelemetry Sonifier is running!"
echo ""
echo "🌐 Web UI: http://localhost:44444"
echo "📡 OTLP gRPC: localhost:4317"
echo "📡 OTLP HTTP: localhost:4318"
echo ""
echo "💧 Ready for raindrop visualization!"
echo ""
echo "🔧 Try these commands in another terminal:"
echo " ./otelgen low # Gentle rain (0.2 traces/sec)"
echo " ./otelgen medium # Light rain (10 traces/sec)"
echo " ./otelgen high # Heavy rain (100 traces/sec)"
echo " ./otelgen stress # Storm (1000 traces/sec)"
echo ""
echo "🎨 Sky gradients will transition through:"
echo " Low → Night sky (deep blue)"
echo " Medium → Dusk sky (purple)"
echo " High → Pre-dawn sky (reddish purple)"
echo " Stress → Dawn sky (orange/red)"
echo ""
echo "🔊 Don't forget to enable audio in the web UI!"
echo ""
echo "Press Ctrl+C to stop the collector"
# Keep the script running until user stops it
wait