You can install the New Relic eBPF agent on your Linux host to monitor your entire system health. The eBPF agent provides deep visibility into application performance without requiring code changes or deploying language-specific agents.
Install the New Relic eBPF agent
Before you begin
You must meet the prerequisites outlined in the eBPF compatibility and requirements documentation for Linux hosts.
Install the eBPF agent
To install the eBPF agent:
Log in to your New Relic account.
Go to left navigation pane > + Integration & Agents > eBPF Agent.
On the Select an account screen, select the account you want to install the eBPF agent on, and click Continue.
On the Select an installation method page, select On a host, and click Continue.
On the Enter your user key screen, select one of the following options, then click Continue:
- Use an existing key: If you already have a user key, provide the user key. For more information, refer to User keys.
- Create a new key: If you don't have a user key, click Create a new key to create one.
On the Configure the host integration screen, enter the deployment name for host, then click Continue.
On the Install the agent screen, run the provided command in your terminal to install the eBPF agent via Debian package.
Copy and paste the displayed command to install the eBPF agent on your Debian host.
To verify the installation, run the following command:
For eBPF agent:
bash$sudo systemctl status newrelic-ebpf-agentFor eBPF client:
bash$sudo systemctl status newrelic-ebpf-agent-client
Upon successful installation, the status of these services display as active (running).
Dica
You can customize the eBPF agent configuration by editing the
newrelic-ebpf-agent.conffile available at/etc/newrelic-ebpf-agent/newrelic-ebpf-agent.conf. For more information on the configuration parameters, refer to Configuration parameters.
Access the eBPF data in New Relic
Once the eBPF agent is installed, it automatically starts collecting data from your Linux host. You can access this data in New Relic's OpenTelemetry UI. For more information on New Relic OpenTelemetry UI, refer OpenTelemetry APM UI.
To view the eBPF data in New Relic:
- Go to one.newrelic.com > APM & Services.
- In the search banner, set the search criteria as
instrumentation.name = nr_ebpf:
Upgrade the eBPF agent
To upgrade the eBPF agent on a Linux host, re-execute the installation command from the New Relic UI. This process will install the new agent version while automatically removing the older one.
Importante
Upgrading through a package manager is not supported. You must use the installation command from the New Relic UI for a successful upgrade.
To get the latest installation command:
- Go to one.newrelic.com > + Integration & Agents > eBPF Agent
- Follow the installation flow to get the updated command
- Run the command on your host to upgrade the agent
Configuration parameters
The newrelic-ebpf-agent.conf file contains the following configuration parameters:
Uninstall the eBPF agent
To uninstall the eBPF agent from a Linux host, use your system's package management tools:
$sudo apt-get remove newrelic-ebpf-agentDica
It is not necessary to stop the service before running the uninstall command.