Skip to content

Commit aebc06c

Browse files
authored
Merge pull request #347 from dmitchsplunk/main
Tech Summit workshop updates
2 parents 522eb42 + 482a2ec commit aebc06c

File tree

8 files changed

+60
-13
lines changed

8 files changed

+60
-13
lines changed

content/en/ninja-workshops/8-docker-k8s-otel/6-add-instrumentation-to-dockerfile.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ USER app
101101
WORKDIR /app
102102
EXPOSE 8080
103103

104-
# CODE ALREADY IN YOUR DOCKERFILE:
105104
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
106105
ARG BUILD_CONFIGURATION=Release
107106
WORKDIR /src
@@ -125,14 +124,12 @@ FROM build AS publish
125124
ARG BUILD_CONFIGURATION=Release
126125
RUN dotnet publish "./helloworld.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
127126

128-
# CODE ALREADY IN YOUR DOCKERFILE
129127
FROM base AS final
130128

131129
# NEW CODE: Copy instrumentation file tree
132130
WORKDIR "//home/app/.splunk-otel-dotnet"
133131
COPY --from=build /root/.splunk-otel-dotnet/ .
134132

135-
# CODE ALREADY IN YOUR DOCKERFILE
136133
WORKDIR /app
137134
COPY --from=publish /app/publish .
138135

content/en/ninja-workshops/8-docker-k8s-otel/7-install-collector-k8s.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ splunk-otel-collector-k8s-cluster-receiver-d54857c89-tx7qr 1/1 Running 0
195195
196196
## Confirm your K8s Cluster is in O11y Cloud
197197
198-
In Splunk Observability Cloud, navigate to **Infrastructure** -> **Kubernetes** -> **Kubernetes Nodes**,
199-
and then Filter on your Cluster Name (which is `$INSTANCE-cluster`):
198+
In Splunk Observability Cloud, navigate to **Infrastructure** -> **Kubernetes** -> **Kubernetes Clusters**,
199+
and then search for your cluster name (which is `$INSTANCE-cluster`):
200200
201201
![Kubernetes node](../images/k8snode.png)

content/en/ninja-workshops/8-docker-k8s-otel/8-deploy-app-k8s.md

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ spec:
107107
Then, create a second file in the same directory named `service.yaml`:
108108

109109
``` bash
110-
vi service.yaml
110+
vi /home/splunk/service.yaml
111111
```
112112

113113
And paste in the following:
@@ -190,7 +190,7 @@ environment variables to tell it where to send the data.
190190

191191
Add the following to `deployment.yaml` file you created earlier:
192192

193-
> **IMPORTANT** replace `$INSTANCE` in your Dockerfile with your instance name,
193+
> **IMPORTANT** replace `$INSTANCE` in the YAML below with your instance name,
194194
> which can be determined by running `echo $INSTANCE`.
195195

196196
``` yaml
@@ -209,6 +209,44 @@ Add the following to `deployment.yaml` file you created earlier:
209209
value: "deployment.environment=otel-$INSTANCE"
210210
```
211211

212+
The complete `deployment.yaml` file should be as follows (with **your** instance name rather than `$INSTANCE`):
213+
214+
``` yaml
215+
apiVersion: apps/v1
216+
kind: Deployment
217+
metadata:
218+
name: helloworld
219+
spec:
220+
selector:
221+
matchLabels:
222+
app: helloworld
223+
replicas: 1
224+
template:
225+
metadata:
226+
labels:
227+
app: helloworld
228+
spec:
229+
containers:
230+
- name: helloworld
231+
image: docker.io/library/helloworld:1.2
232+
imagePullPolicy: Never
233+
ports:
234+
- containerPort: 8080
235+
env:
236+
- name: PORT
237+
value: "8080"
238+
- name: NODE_IP
239+
valueFrom:
240+
fieldRef:
241+
fieldPath: status.hostIP
242+
- name: OTEL_EXPORTER_OTLP_ENDPOINT
243+
value: "http://$(NODE_IP):4318"
244+
- name: OTEL_SERVICE_NAME
245+
value: "helloworld"
246+
- name: OTEL_RESOURCE_ATTRIBUTES
247+
value: "deployment.environment=otel-$INSTANCE"
248+
```
249+
212250
Apply the changes with:
213251

214252
{{< tabs >}}
Loading

content/en/ninja-workshops/9-solving-problems-with-o11y-cloud/2-deploy-collector.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ splunk-otel-collector-operator-6fd9f9d569-wd5mn 2/2 Running
114114
115115
## Confirm your K8s Cluster is in O11y Cloud
116116
117-
In Splunk Observability Cloud, navigate to **Infrastructure** -> **Kubernetes** -> **Kubernetes Nodes**,
118-
and then Filter on your Cluster Name (which is `$INSTANCE-k3s-cluster`):
117+
In Splunk Observability Cloud, navigate to **Infrastructure** -> **Kubernetes** -> **Kubernetes Clusters**,
118+
and then search for your Cluster Name (which is `$INSTANCE-k3s-cluster`):
119119
120120
![Kubernetes node](../images/k8snode.png)
121121
@@ -204,7 +204,16 @@ Let's look at an example.
204204
205205
Suppose we want to see the traces that are sent to the collector. We can use the debug exporter for this purpose, which can be helpful for troubleshooting OpenTelemetry-related issues.
206206
207-
Let's add the debug exporter to the bottom of the `/home/splunk/workshop/tagging/otel/values.yaml` file as follows:
207+
You can use vi or nano to edit the `values.yaml` file. We will show an example using vi:
208+
209+
``` bash
210+
vi /home/splunk/workshop/tagging/otel/values.yaml
211+
```
212+
213+
Add the debug exporter to the bottom of the `values.yaml` file by copying and pasting the
214+
section marked with `Add the section below` in the following example:
215+
216+
> Press 'i' to enter into insert mode in vi before adding the text below.
208217
209218
``` yaml
210219
splunkObservability:
@@ -249,6 +258,9 @@ agent:
249258
- debug
250259
```
251260
261+
> To save your changes in vi, press the `esc` key to enter command mode, then type `:wq!` followed by pressing the
262+
> `enter/return` key.
263+
252264
Once the file is saved, we can apply the changes with:
253265
254266
{{< tabs >}}

content/en/ninja-workshops/9-solving-problems-with-o11y-cloud/5-troubleshoot-using-tag-spotlight.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ This illustrates the power of **Tag Spotlight**! Finding this pattern would be t
5656

5757
We've looked at errors, but what about latency? Let's click on the **Requests & errors distribution** dropdown and change it to **Latency distribution**.
5858

59-
Click on the settings icon beside **Cards display** to add the P50 and P99 metrics.
59+
> IMPORTANT: Click on the settings icon beside **Cards display** to add the P50 and P99 metrics.
6060
6161
Here, we can see that the requests with a `poor` credit score request are running slowly, with P50, P90, and P99 times of around 3 seconds, which is too long for our users to wait, and much slower than other requests.
6262

Loading

workshop/docker-k8s-otel/k8s/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ spec:
2626
fieldRef:
2727
fieldPath: status.hostIP
2828
- name: OTEL_EXPORTER_OTLP_ENDPOINT
29-
value: "http://$(NODE_IP):4317"
29+
value: "http://$(NODE_IP):4318"
3030
- name: OTEL_SERVICE_NAME
3131
value: "helloworld"
3232
- name: OTEL_RESOURCE_ATTRIBUTES
33-
value: "deployment.environment=otel-yourname"
33+
value: "deployment.environment=otel-$INSTANCE"

0 commit comments

Comments
 (0)