Skip to content

Commit 7b9e0b0

Browse files
committed
updated hands-on workshop collector install steps
1 parent bd5b7b0 commit 7b9e0b0

File tree

1 file changed

+54
-2
lines changed

1 file changed

+54
-2
lines changed

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

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,61 @@ weight: 2
55
time: 10 minutes
66
---
77

8+
## Uninstall the OpenTelemetry Collector
9+
10+
Our EC2 instance may already have an older version the Splunk Distribution of the OpenTelemetry Collector
11+
installed. Before proceeding further, let's uninstall it using the following command:
12+
13+
{{< tabs >}}
14+
{{% tab title="Script" %}}
15+
16+
``` bash
17+
curl -sSL https://dl.signalfx.com/splunk-otel-collector.sh > /tmp/splunk-otel-collector.sh;
18+
sudo sh /tmp/splunk-otel-collector.sh --uninstall
19+
```
20+
21+
{{% /tab %}}
22+
{{% tab title="Example Output" %}}
23+
24+
``` bash
25+
Reading package lists... Done
26+
Building dependency tree... Done
27+
Reading state information... Done
28+
The following packages will be REMOVED:
29+
splunk-otel-collector*
30+
0 upgraded, 0 newly installed, 1 to remove and 167 not upgraded.
31+
After this operation, 766 MB disk space will be freed.
32+
(Reading database ... 157441 files and directories currently installed.)
33+
Removing splunk-otel-collector (0.92.0) ...
34+
(Reading database ... 147373 files and directories currently installed.)
35+
Purging configuration files for splunk-otel-collector (0.92.0) ...
36+
Scanning processes...
37+
Scanning candidates...
38+
Scanning linux images...
39+
40+
Running kernel seems to be up-to-date.
41+
42+
Restarting services...
43+
systemctl restart fail2ban.service falcon-sensor.service
44+
Service restarts being deferred:
45+
systemctl restart networkd-dispatcher.service
46+
systemctl restart unattended-upgrades.service
47+
48+
No containers need to be restarted.
49+
50+
No user sessions are running outdated binaries.
51+
52+
No VM guests are running outdated hypervisor (qemu) binaries on this host.
53+
Successfully removed the splunk-otel-collector package
54+
```
55+
56+
{{% /tab %}}
57+
{{< /tabs >}}
58+
59+
860
## Deploy the OpenTelemetry Collector
961

10-
Let’s deploy the Splunk Distribution of the OpenTelemetry Collector on our Linux EC2 instance.
62+
Let’s deploy the latest version of the Splunk Distribution of the OpenTelemetry Collector on our Linux EC2 instance.
1163

1264
We can do this by downloading the collector binary using `curl`, and then running it
1365
with specific arguments that tell the collector which realm to report data into, which access
@@ -89,7 +141,7 @@ We can view the collector logs using `journalctl`:
89141
{{% tab title="Script" %}}
90142

91143
``` bash
92-
sudo journalctl -u splunk-otel-collector
144+
sudo journalctl -u splunk-otel-collector -f -n 100
93145
```
94146

95147
{{% /tab %}}

0 commit comments

Comments
 (0)