Skip to content

Commit a0b7ff7

Browse files
committed
upto gateway
1 parent dac2e7c commit a0b7ff7

27 files changed

+292
-54
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ workshop/ninja/advanced otel/gateway/otelcol_darwin_arm64_splunk
6363
workshop/ninja/advanced otel/gateway/otelcol-contrib
6464
workshop/tagging/creditcheckservice-java/target/*
6565
workshop/tagging/creditcheckservice-java-with-tags/target/*
66-
agent.out
66+
*.out

content/en/ninja-workshops/8-advanced-otel/_index.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,25 @@ The goal of this workshop is to introduce you to the concepts of ....
2525
* otel bin
2626
---
2727

28+
29+
Pre req done before the session:
30+
31+
download the splunk version of the collector for your platform version X -> urls for mac os arm macos intel windows 64 and linux 64 AMD
32+
33+
https://github.com/signalfx/splunk-otel-collector/releases/download/v0.115.0/otelcol_darwin_arm64
34+
https://github.com/signalfx/splunk-otel-collector/releases/download/v0.115.0/splunk-otel-collector-0.115.0-amd64.msi
35+
36+
https://github.com/signalfx/splunk-otel-collector/releases/download/v0.115.0/otelcol_darwin_amd64
37+
38+
39+
40+
install brew macos
41+
42+
chocolatey install windows:
43+
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
44+
45+
install jq using either platform
46+
47+
install collect D vi brew on mac -> windows
48+
2849
<!-- {{% children containerstyle="ul" depth="1" description="true" %}} -->
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
receivers:
2+
otlp:
3+
protocols:
4+
http:
5+
endpoint: "0.0.0.0:4318"
6+
7+
exporters:
8+
debug:
9+
verbosity: detailed
10+
11+
processors:
12+
batch:
13+
metadata_keys:
14+
- X-SF-Token
15+
memory_limiter:
16+
check_interval: 2s
17+
limit_mib: 512
18+
19+
resourcedetection:
20+
detectors: [system]
21+
override: true
22+
23+
resource/add_mode:
24+
attributes:
25+
- action: insert
26+
value: "agent"
27+
key: otelcol.service.mode
28+
29+
service:
30+
pipelines:
31+
traces:
32+
receivers: [otlp]
33+
processors:
34+
- memory_limiter
35+
- batch
36+
- resourcedetection
37+
exporters: [debug]
38+
metrics:
39+
receivers: [otlp]
40+
processors:
41+
- memory_limiter
42+
- batch
43+
- resourcedetection
44+
exporters: [debug]
45+
logs:
46+
receivers: [otlp]
47+
processors:
48+
- memory_limiter
49+
- batch
50+
- resourcedetection
51+
exporters: [debug]
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
receivers:
2+
otlp:
3+
protocols:
4+
http:
5+
endpoint: "0.0.0.0:4318"
6+
7+
exporters:
8+
debug:
9+
verbosity: detailed
10+
file:
11+
path: ./agent.out
12+
rotation:
13+
max_megabytes: 2
14+
max_backups: 2
15+
16+
processors:
17+
batch:
18+
metadata_keys:
19+
- X-SF-Token
20+
memory_limiter:
21+
check_interval: 2s
22+
limit_mib: 512
23+
24+
resourcedetection:
25+
detectors: [system]
26+
override: true
27+
28+
resource/add_mode:
29+
attributes:
30+
- action: insert
31+
value: "agent"
32+
key: otelcol.service.mode
33+
34+
service:
35+
pipelines:
36+
traces:
37+
receivers: [otlp]
38+
processors:
39+
- memory_limiter
40+
- batch
41+
- resource/add_mode
42+
- resourcedetection
43+
exporters: [file, debug]
44+
metrics:
45+
receivers: [otlp]
46+
processors:
47+
- memory_limiter
48+
- batch
49+
- resource/add_mode
50+
- resourcedetection
51+
exporters: [file, debug]
52+
logs:
53+
receivers: [otlp]
54+
processors:
55+
- memory_limiter
56+
- batch
57+
- resource/add_mode
58+
- resourcedetection
59+
exporters: [file, debug]
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
receivers:
2+
3+
exporters:
4+
5+
processors:
6+
memory_limiter:
7+
check_interval: 2s
8+
limit_mib: 512
9+
10+
service:
11+
pipelines:
12+
traces:
13+
metrics:
14+
logs:
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
$HOME/collectors/otelcol_darwin_arm64 --config=agent-2.yaml

workshop/ninja/advanced-otel/1-gateway/start-agent.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

workshop/ninja/advanced-otel/1-gateway/start-gateway.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)