Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.7 KB

install-otel-collector.md

File metadata and controls

50 lines (32 loc) · 1.7 KB

Lab 1: Install the Open Telemetry Collector

Open Telemetry Collector

The OpenTelemetry Collector is the core component of instrumenting infrastructure and applications. Its role is to collect and send:

  • Infrastructure metrics (disk, cpu, memory, etc)
  • Application Performance Monitoring (APM) traces
  • Profiling data
  • Host and application logs

Install the Open Telemetry Collector

Update the command below replacing $ACCESS_TOKEN with your Splunk Observability Cloud Ingest Token. We use $HOSTNAME as environment name, but you can change it.

The --with-instrumentation option the installer will install the agent from the Splunk distribution of OpenTelemetry Java, which is then loaded automatically when the PetClinic Java application starts up. No configuration required!

curl -sSL https://dl.signalfx.com/splunk-otel-collector.sh > /tmp/splunk-otel-collector.sh && \
sudo sh /tmp/splunk-otel-collector.sh --realm us1 -- $ACCESS_TOKEN --mode agent --without-fluentd --with-instrumentation --deployment-environment $HOSTNAME

Restart the collector

sudo systemctl restart splunk-otel-collector

Check that the collector service is up and running

sudo systemctl status splunk-otel-collector
sudo journalctl -u splunk-otel-collector

Once the install is completed, you can navigate to the Hosts with agent installed dashboard to see the data from your host, Dashboards → Hosts with agent installed.

Use the dashboard filter and select host.name and type or select the hostname of your virtual machine. Once you see data flowing for your host, we are then ready to get started with the APM component.

Next Step

Go back to Main Page and Proceed to Lab 2