Skip to content

Commit

Permalink
Update ebpf.md (#2705)
Browse files Browse the repository at this point in the history
Added eBPF river config for localhost scraping through pyroscope and grafana-agent-flow
  • Loading branch information
AS-Labs authored Nov 16, 2023
1 parent 02aca4f commit 27357fe
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/sources/configure-client/grafana-agent/ebpf.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,21 @@ For the eBPF integration to work you'll need:
* A Pyroscope server where the agent will send profiling data
* A Linux machine with the kernel version >= 4.9 (due to [BPF_PROG_TYPE_PERF_EVENT](https://lkml.org/lkml/2016/9/1/831))

## Running eBPF profiler on localhost (Linux)
### river configuration
```yaml
pyroscope.ebpf "instance" {
forward_to = [ pyroscope.write.endpoint.receiver ]
targets_only = false
default_target = {"service_name" = "SERVICE_NAME"}
}
pyroscope.write "endpoint" {
endpoint {
url = "URL_TO_PYROSCOPE:PYROSCOPE_PORT"
}
}
```

## Running eBPF profiler on Kubernetes
### Step 1: Add the helm repo

Expand Down

0 comments on commit 27357fe

Please sign in to comment.