Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 1.59 KB

running-on-host.md

File metadata and controls

44 lines (27 loc) · 1.59 KB

Running the profiler directly on the host

Prerequisites

The datadog-agent must be running on the host and configured to collect APM data (this is enabled by default in the agent, unless you explicitly disabled it). See agent installation instructions here and the flag to enable APM here.

For the purposes of this guide, we assume that the datadog agent is accessible at a specific address from the docker container: http://localhost:8126.

Installation

Download pre-built amd64 and arm64 binaries for our latest release.

Alternatively, you can build the profiler from source. The following instructions assume you have docker installed.

Manual build instructions

To build the profiler, you can use the following commands:

make docker-image
make agent

This will create a otel-profiling-agent binary in the current directory.

Running the profiler

To run the profiler, you need to make sure that debugfs is mounted. If it's not, you can run:

sudo mount -t debugfs none /sys/kernel/debug

After that, you can start the profiler as shown below (make sure you run it as root):

sudo otel-profiling-agent -tags "service:$(hostname)" -collection-agent "http://localhost:8126"

If your datadog agent is reachable under a different address, you can modify the -collection-agent parameter accordingly.