APM & tracing
eBPF (no code), OpenTelemetry Collector, SDK or Kubernetes: traces, services and endpoints.
In the console: Console → Observe → Applications (APM)
All guides
APM shows how requests move through your services: the service map, endpoints with latency percentiles and error rates, trace waterfalls, slow database calls and outgoing calls. Everything belongs to an application (for example “shop”) and an environment.
There are four ways in. Pick the first one that fits: eBPF needs no code change; the OpenTelemetry Collector method configures your apps for you; an SDK gives the most detail; Kubernetes installs either of them as a chart.
Why use it
- A page is slow and you need to know which service, endpoint or query is slow.
- You want a live service map and latency, error rate and throughput per endpoint.
- You want a release regression tied to the deploy that caused it.
How it works
- 1Spans are produced by the eBPF agent (from the kernel, no code change), by OpenTelemetry in your app, or by the SDK.
- 2They are sent over OTLP/HTTP with an APM key, tagged with application and environment.
- 3AppStatus redacts sensitive values, groups spans into traces, builds the service map and per-endpoint metrics, and links errors, logs, deploys and pods.
- 4Detectors compare each window with the baseline and raise insights; SLOs track error budgets.
What you get
- Service map, services, endpoints, traces, errors, databases, external services, deployments, SLOs and AI insights per application.
- Sensitive values redacted before storage; SQL literals become “?”.
- A link from every slow page in RUM and every log line to its trace.
Before you start
- eBPF: Linux kernel 5.8 or newer with BTF, and root. The installer checks both and stops with a clear message if not.
- OpenTelemetry: Node.js 18.19+, Java 8+, Python 3.8+, .NET, Ruby, PHP or Go.
- Outbound HTTPS (443) to agent.appstatus.io.
Set it up
Get Started shows these commands with your key already filled in — copying from there is the quickest path. Here, <your-key> marks where it goes.
- 1
Create the key in Get Started
Get Started → Applications (APM) → eBPF → Linux Host. Name the application and environment, then create the key.
- 2
Run one command as root
It checks the kernel, finds every listening service and container, installs the eBPF agent as the systemd unit appstatus-apm and starts it. It also adds this server’s database, queue and setup samplers. Run it again any time (new key, changed options) — it updates and restarts.
terminalcurl -sSL "https://agent.appstatus.io/apm.sh?key=<your-key>&env=production&project=shop" | sudo sh - 3
Docker host instead
Run the same agent as a container beside your containers.
terminalsudo mkdir -p /etc/appstatus curl -sSL "https://agent.appstatus.io/apm.sh?show=config" | sudo tee /etc/appstatus/beyla.yml > /dev/null docker rm -f appstatus-ebpf >/dev/null 2>&1 docker run -d --name appstatus-ebpf --restart unless-stopped \ --privileged --pid=host \ -v /etc/appstatus/beyla.yml:/etc/appstatus/beyla.yml:ro \ -v /var/run/docker.sock:/var/run/docker.sock:ro \ -e BEYLA_CONFIG_PATH=/etc/appstatus/beyla.yml \ -e OTEL_EXPORTER_OTLP_ENDPOINT="https://agent.appstatus.io" \ -e OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf" \ -e OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer <your-key>" \ -e OTEL_RESOURCE_ATTRIBUTES="appstatus.telemetry.source=ebpf,deployment.environment=production,host.name=$(hostname),appstatus.project=shop" \ --cpus 0.5 --memory 512m \ <image shown in Get Started> - 4
Advanced options
Protocols (HTTP, gRPC, SQL, Redis, Kafka, MongoDB), sampling (100/50/25/10%) and “ports to instrument” change the command in Get Started. Request headers and query strings are never captured.
- 1
Install the collector
Get Started → Applications (APM) → OpenTelemetry Collector shows three download commands for Linux x86/ARM, Windows or Docker, and the configuration file with your application and environment in it.
- 2
Run it as a service
The key goes in a file only root can read.
terminalsudo sh -c "umask 077; echo 'APPSTATUS_APM_KEY=<your-key>' > /etc/otelcol-contrib/appstatus.env" # Get Started writes /etc/systemd/system/otelcol-contrib.service for you, then: sudo systemctl daemon-reload sudo systemctl enable otelcol-contrib && sudo systemctl restart otelcol-contrib systemctl status otelcol-contrib --no-pager # Active: active (running) - 3
Point your applications at it — automatically
This finds systemd services (Java, Node.js, Python, .NET, Ruby, PHP) and PM2 processes on the server, adds the OpenTelemetry settings and restarts each one. Preview first with DRY_RUN=1.
terminalcurl -sSL 'https://agent.appstatus.io/otel-apps.sh?arch=host&metrics=none' | DRY_RUN=1 sh # preview curl -sSL 'https://agent.appstatus.io/otel-apps.sh?arch=host&metrics=none' | sudo sh - 4
Windows
PowerShell$env:DRY_RUN=1; irm 'https://agent.appstatus.io/otel-apps.ps1?metrics=none' | iex # preview irm 'https://agent.appstatus.io/otel-apps.ps1?metrics=none' | iex
- 1
Any OpenTelemetry SDK
Set these in the application’s environment and restart it. The receiver is OTLP/HTTP, so the protocol line is required.
shellexport OTEL_EXPORTER_OTLP_PROTOCOL="http/protobuf" export OTEL_EXPORTER_OTLP_ENDPOINT="https://agent.appstatus.io" export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer <your-key>" export OTEL_SERVICE_NAME="checkout-api" export OTEL_RESOURCE_ATTRIBUTES="appstatus.project=shop,deployment.environment=production" export OTEL_METRICS_EXPORTER="none" export OTEL_LOGS_EXPORTER="none" - 2
Node.js
terminalnpm install @opentelemetry/sdk-node @opentelemetry/auto-instrumentations-node \ @opentelemetry/exporter-trace-otlp-http # Get Started writes tracing.js for you; load it before the app: node --require ./tracing.js app.js - 3
Python
terminalpip install opentelemetry-distro opentelemetry-exporter-otlp opentelemetry-bootstrap -a install opentelemetry-instrument python app.py # or: opentelemetry-instrument gunicorn app:app - 4
Java
terminalcurl -sSLo opentelemetry-javaagent.jar \ https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar java -javaagent:./opentelemetry-javaagent.jar -jar app.jar - 5
Go, .NET, PHP, Ruby
Get Started has a tab for each with the packages to add and the lines to paste. The environment block above works for all of them.
- 1
Choose the method in Get Started
Get Started → Applications (APM) → Kubernetes. eBPF runs one agent per node as a DaemonSet with no cluster agent; the collector stack runs an OpenTelemetry Collector your pods send to. Both install with Helm (or helm template + kubectl apply).
- 2
Install
terminalhelm repo add appstatus https://agent.appstatus.io/charts && helm repo update # Get Started shows the full helm upgrade --install line with your key, application and environment. - 3
Collector stack: point your pods at it
yamlenv: - name: OTEL_EXPORTER_OTLP_ENDPOINT value: http://otel-collector.appstatus.svc:4318 - name: OTEL_EXPORTER_OTLP_PROTOCOL value: http/protobuf - name: OTEL_SERVICE_NAME value: checkout-api # then: kubectl rollout restart deployment <name> -n <namespace>
Check it works
- 1
Send traffic and test
Open a page or call an endpoint, wait a minute (eBPF sends in 30–60 s batches), then press Test Connection in Get Started. The application appears under Applications (APM).
- 2
On the host
terminalsystemctl status appstatus-apm --no-pager # eBPF: active (running) journalctl -u appstatus-apm -f # one "instrumenting process" line per service systemctl status otelcol-contrib --no-pager # collector curl -sSL 'https://agent.appstatus.io/otel-apps.sh?arch=host&metrics=none' | sudo CHECK=1 sh # collector → port → AppStatus → key → each app
Use it
- 1
Both methods together
eBPF sees requests, queries and calls from the kernel — not inside the program. For your app’s own logs, runtime metrics (heap, GC) and exception stack traces, add the OpenTelemetry Collector method on the same server; both can run at once.
- 2
Application settings
Application → Settings: service names, sampling, SLO targets and who may remove the application.
Uninstall / remove
- 1
eBPF agent (Linux host)
Removes the agent, its configuration and key file, and the host samplers it added.
terminalcurl -sSL "https://agent.appstatus.io/apm.sh?uninstall=1" | sudo sh - 2
eBPF agent (Docker)
terminaldocker rm -f appstatus-ebpf - 3
OpenTelemetry Collector
Takes the settings out of every application it configured and restarts them, then removes the collector.
terminalcurl -sSL 'https://agent.appstatus.io/otel-apps.sh?arch=host&metrics=none' | sudo UNDO=1 sh sudo systemctl disable --now otelcol-contrib sudo rm /etc/systemd/system/otelcol-contrib.service /etc/otelcol-contrib/appstatus.env - 4
Kubernetes
terminalhelm uninstall appstatus-apm-ebpf -n appstatus # eBPF DaemonSet helm list -n appstatus # any other appstatus release - 5
Delete the application’s APM data
Applications (APM) → ⋮ → Remove from APM. Services, traces, errors, SLOs, insights, settings and incidents are deleted and new traces refused. Kubernetes and RUM of the same application are not touched.
Troubleshooting
The problems seen most, each with what to run. Still stuck? See the general Troubleshooting guide.
No data after a few minutes
Spans are sent when the app handles something. Send it a request, wait a minute, then Test Connection. eBPF: there must be an “instrumenting process” line for your app; it must serve or call HTTP, gRPC, SQL, Redis, Kafka or MongoDB and match “Ports to instrument”.
sudo journalctl -u appstatus-apm --since -10min --no-pager | grep -E "instrumenting process|level=(ERROR|WARN)"“kernel … below 5.8” or “no BTF” — the installer stopped
This kernel cannot run eBPF tracing. Use the OpenTelemetry Collector or SDK method instead, or a newer distribution kernel.
uname -r
ls -l /sys/kernel/btf/vmlinuxThe eBPF agent keeps restarting
Its log names the reason. “operation not permitted” on a hardened kernel usually means lockdown mode (Secure Boot) blocks eBPF; use the collector method.
sudo journalctl -u appstatus-apm -n 50 --no-pager
cat /sys/kernel/security/lockdown 2>/dev/null # [integrity] or [confidentiality] blocks eBPFThe collector service does not start
Almost always the configuration. Validate it — the error names the line — then run “Configure the Collector” in Get Started again.
otelcol-contrib validate --config /etc/otelcol-contrib/config.yaml
sudo journalctl -u otelcol-contrib -n 50 --no-pager“address already in use” (4317 / 4318)
Another collector or agent already holds the port. Find it and stop it, then restart this one.
sudo ss -ltnp | grep -E ':431[78]'
sudo systemctl restart otelcol-contribMy app was not found by otel-apps.sh
It finds systemd services in /etc/systemd/system and PM2 processes. A Go binary, a container or an app started by hand: set the environment block yourself. To configure only one service:
curl -sSL 'https://agent.appstatus.io/otel-apps.sh?arch=host&metrics=none' | sudo ONLY=myapp.service shAn app runs but sends nothing
Its own EnvironmentFile= sets OTEL_*, NODE_OPTIONS, JAVA_TOOL_OPTIONS or PYTHONPATH and wins over ours — the check names it. A Node app with "type": "module" needs --import instead of --require. Python on the system interpreter (“externally managed”): run it from a virtualenv.
sudo systemctl cat myapp # shows its EnvironmentFile= and our drop-inAn app did not come back after the restart
The script rolled it back. Its log says why; the usual cause is a runtime too old for the instrumentation.
sudo journalctl -u myapp -n 50 --no-pager401 / 403 or 429
401/403: the key was revoked or mistyped — create a new one and run the command again. 429: the data pool is used up; lower sampling or narrow the ports in Advanced options. Billing shows usage.
Some panels stay empty with eBPF
eBPF does not see the app’s own logs, runtime metrics or exception stack traces. Add the collector method on the same server for those.
Plan limits
- Trace retention: Free 3 days, Starter 7, Pro 15, Business 30, Enterprise 90.
- Kept spans count against the monthly data pool (600 bytes each).
Related guides
Applications
Error tracking
Exceptions grouped by fingerprint, linked to their traces.
Applications
Real user monitoring (RUM)
One script tag: page loads, Web Vitals, errors, API calls and journeys.
Applications
Database monitoring
Database health from the host installer, managed databases by URL, slow queries from spans.
Infrastructure
Kubernetes
Install the Helm chart, read clusters and pods, remove a cluster or the whole application.
Intelligence
AI Insights, SLOs & log patterns
Detectors every five minutes, application SLOs and burn alerts, new log patterns.
Something here does not match what you see in the console? Open Help → Support in AppStatus or write to support@appstatus.io with the page and what you ran.