Skip to content

Commit 705c4ca

Browse files
committed
Fixed issues in Pet Clinic workshop
1 parent c5e6d09 commit 705c4ca

File tree

5 files changed

+36
-6
lines changed

5 files changed

+36
-6
lines changed

content/en/conf/opentelemetry-collector/_index.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,35 @@ weight: 2
66
alwaysopen: false
77
---
88

9+
{{< mermaid >}}
10+
%%{
11+
init:{
12+
"theme":"base",
13+
"themeVariables": {
14+
"primaryColor": "#ffffff",
15+
"clusterBkg": "#eff2fb",
16+
"defaultLinkColor": "#333333"
17+
}
18+
}
19+
}%%
20+
21+
flowchart LR;
22+
subgraph Collector
23+
A[OTLP] --> M(Receivers)
24+
B[JAEGER] --> M(Receivers)
25+
C[Prometheus] --> M(Receivers)
26+
end
27+
subgraph Processors
28+
M(Receivers) --> H(Filters, Attributes, etc)
29+
E(Extensions)
30+
end
31+
subgraph Exporters
32+
H(Filters, Attributes, etc) --> S(OTLP)
33+
H(Filters, Attributes, etc) --> T(JAEGER)
34+
H(Filters, Attributes, etc) --> U(Prometheus)
35+
end
36+
{{< /mermaid >}}
37+
938
## Overview
1039

1140
[https://docs.splunk.com/Observability/gdi/other-ingestion-methods/upstream-collector.html#nav-Send-telemetry-using-OpenTelemetry-Collector-Contrib](https://docs.splunk.com/Observability/gdi/other-ingestion-methods/upstream-collector.html#nav-Send-telemetry-using-OpenTelemetry-Collector-Contrib)

content/en/other/pet-clinic/docs/apm.md renamed to content/en/other/pet-clinic/apm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Let's launch the PetClinic again using a new resource attribute. Note, that addi
7676

7777
```bash
7878
java \
79-
-Dotel.service.name=$(hostname).service \
79+
-Dotel.service.name=$(hostname)-petclinic.service \
8080
-Dsplunk.profiler.enabled=true \
8181
-Dsplunk.metrics.enabled=true \
8282
-Dotel.resource.attributes=deployment.environment=$(hostname)-petclinic,version=0.314 \
File renamed without changes.

content/en/other/pet-clinic/docs/logobserver.md renamed to content/en/other/pet-clinic/logobserver.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The Splunk OpenTelemetry Collector uses FluentD to consume/report logs and to co
1515

1616
Here's the sample FluentD configuration file (`petclinic.conf`, reading the file `/tmp/spring-petclinic.log`)
1717

18-
```text
18+
```ini
1919
<source>
2020
@type tail
2121
@label @SPLUNK
@@ -69,7 +69,7 @@ The Spring PetClinic application can be configure to use a number of different j
6969
</rollingPolicy>
7070
<encoder>
7171
<pattern>
72-
%d{yyyy-MM-dd HH:mm:ss} - %logger{36} - %msg trace_id=%X{trace_id} span_id=%X{span_id} trace_flags=%X{trace_flags} service.name=%property{otel.resource.service.name}, deployment.environment=%property{otel.resource.deployment.environment} %n
72+
%d{yyyy-MM-dd HH:mm:ss} - %logger{36} - %msg trace_id=%X{trace_id} span_id=%X{span_id} trace_flags=%X{trace_flags} %n service: %property{otel.resource.service.name}, env: %property{otel.resource.deployment.environment}: %m%n
7373
</pattern>
7474
</encoder>
7575
</appender>
@@ -96,6 +96,7 @@ java \
9696
-Dotel.service.name=$(hostname)-petclinic.service \
9797
-Dsplunk.profiler.enabled=true \
9898
-Dsplunk.metrics.enabled=true \
99+
-Dotel.resource.attributes=deployment.environment=$(hostname)-petclinic,version=0.314 \
99100
-jar target/spring-petclinic-*.jar --spring.profiles.active=mysql
100101
```
101102

@@ -106,8 +107,7 @@ Hamburger Menu > Log Observer
106107

107108
And you can add a filter to select only log messages from your host and the Spring PetClinic Application:
108109

109-
1. Add Filter → Fields → `host.name``<your host name>`
110-
2. Add Filter → Fields → `service.name``<your host name>-petclinic.service`
110+
- Add Filter → Fields → `service.name``<your host name>-petclinic.service`
111111

112112
## 4. Summary
113113

content/en/other/pet-clinic/docs/rum.md renamed to content/en/other/pet-clinic/rum.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Then you'll need to select the workshop RUM token and define the application and
1717
- Application Name: `<hostname>-petclinic-service`
1818
- Environment: `<hostname>-petclinic-env`
1919

20-
Copy the generated code snippet in the wizard or copy and edit the snippet below accordingly:
20+
Copy the generated code snippet in the wizard or copy and edit the snippet below accordingly. You need to replace `<REALM>`, `<RUM_ACCESS_TOKEN>` and `<hostname>` with the actual values.
2121

2222
``` html
2323
<script src="https://cdn.signalfx.com/o11y-gdi-rum/latest/splunk-otel-web.js" crossorigin="anonymous"></script>
@@ -54,6 +54,7 @@ java \
5454
-Dotel.service.name=$(hostname)-petclinic.service \
5555
-Dsplunk.profiler.enabled=true \
5656
-Dsplunk.metrics.enabled=true \
57+
-Dotel.resource.attributes=deployment.environment=$(hostname)-petclinic,version=0.314 \
5758
-jar target/spring-petclinic-*.jar --spring.profiles.active=mysql
5859
```
5960

0 commit comments

Comments
 (0)