Skip to content

Commit 4496c15

Browse files
committed
Fixing paths
1 parent 134d4ad commit 4496c15

File tree

1 file changed

+30
-6
lines changed

1 file changed

+30
-6
lines changed

workshop/aws/ec2/templates/userdata.yaml

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,16 @@ write_files:
7676
if [ ! -f ~/.helmok ]; then
7777
helm repo add splunk-otel-collector-chart https://signalfx.github.io/splunk-otel-collector-chart
7878
helm repo update
79-
helm install splunk-otel-collector --set="splunkObservability.realm=$REALM" --set="splunkObservability.accessToken=$ACCESS_TOKEN" --set="clusterName=$INSTANCE-k3s-cluster" --set="splunkObservability.logsEnabled=true" --set="splunkObservability.profilingEnabled=true" --set="splunkObservability.infrastructureMonitoringEventsEnabled=true" --set="environment=$INSTANCE-apm-env" splunk-otel-collector-chart/splunk-otel-collector -f ~/workshop/k3s/otel-collector.yaml
79+
helm install splunk-otel-collector \
80+
--set="splunkObservability.realm=$REALM" \
81+
--set="splunkObservability.accessToken=$ACCESS_TOKEN" \
82+
--set="clusterName=$INSTANCE-k3s-cluster" \
83+
--set="splunkObservability.logsEnabled=true" \
84+
--set="splunkObservability.profilingEnabled=true" \
85+
--set="splunkObservability.infrastructureMonitoringEventsEnabled=true" \
86+
--set="environment=$INSTANCE-apm-env" \
87+
splunk-otel-collector-chart/splunk-otel-collector \
88+
-f ~/workshop/k3s/otel-collector.yaml
8089
cd ~/workshop/apm/
8190
bash apm-config.sh -r
8291
sudo kubectl apply -f deployment.yaml
@@ -87,15 +96,30 @@ write_files:
8796

8897
%{ if otel_demo == true ~}
8998
export RUM_TOKEN=${rum_token}
90-
mkdir otel-demo && cd otel-demo
91-
curl -s -OL https://raw.githubusercontent.com/splunk/observability-workshop/main/oteldemo/otel-demo-collector.yaml
92-
curl -s -OL https://raw.githubusercontent.com/splunk/observability-workshop/main/oteldemo/otel-demo.yaml
9399
if [ ! -f ~/.helmok ]; then
94100
helm repo add splunk-otel-collector-chart https://signalfx.github.io/splunk-otel-collector-chart
95101
helm repo update
96-
helm install splunk-otel-collector --set="splunkObservability.realm=$REALM" --set="splunkObservability.accessToken=$ACCESS_TOKEN" --set="clusterName=$(hostname)-k3s-cluster" --set="splunkObservability.logsEnabled=true" --set="logsEngine=otel" --set="splunkObservability.profilingEnabled=true" --set="splunkObservability.infrastructureMonitoringEventsEnabled=true" --set="networkExplorer.enabled=true" --set="networkExplorer.podSecurityPolicy.enabled=false" --set="agent.enabled=true" --set="gateway.replicaCount=1" --set="gateway.resources.limits.cpu=500m" --set="gateway.resources.limits.memory=1Gi" --set="clusterReceiver.enabled=true" --set="environment=$(hostname)-apm-env" splunk-otel-collector-chart/splunk-otel-collector -f otel-demo-collector.yaml
102+
helm install splunk-otel-collector \
103+
--set="splunkObservability.realm=$REALM" \
104+
--set="splunkObservability.accessToken=$ACCESS_TOKEN" \
105+
--set="clusterName=$INSTANCE-k3s-cluster" \
106+
--set="splunkObservability.logsEnabled=true" \
107+
--set="logsEngine=otel" \
108+
--set="splunkObservability.profilingEnabled=true" \
109+
--set="splunkObservability.infrastructureMonitoringEventsEnabled=true" \
110+
--set="networkExplorer.enabled=true" \
111+
--set="networkExplorer.podSecurityPolicy.enabled=false" \
112+
--set="agent.enabled=true" \
113+
--set="gateway.replicaCount=1" \
114+
--set="gateway.resources.limits.cpu=500m" \
115+
--set="gateway.resources.limits.memory=1Gi" \
116+
--set="clusterReceiver.enabled=true" \
117+
--set="environment=$INSTANCE-apm-env" \
118+
splunk-otel-collector-chart/splunk-otel-collector \
119+
-f ~/workshop/oteldemo/otel-demo-collector.yaml
97120
helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts
98-
helm install my-otel-demo open-telemetry/opentelemetry-demo --values otel-demo.yaml
121+
helm install my-otel-demo open-telemetry/opentelemetry-demo --values ~/workshop/oteldemo/otel-demo.yaml
122+
echo $INSTANCE > ~/.helmok
99123
cd /home/ubuntu
100124
fi
101125
%{ endif ~}

0 commit comments

Comments
 (0)