Go Performance Profiler
Go Performance Profiler Extension
The Go Performance Profiler Extension can be used to enable the Go Performance Profiler, also known as pprof, for a collector. It configures an HTTP server that exposes runtime profiling data in the format expected by the pprof visualization tool.
Configuration Table
listen_address
string
127.0.0.1
The IP address or hostname to bind the profiler to. Setting to 0.0.0.0
will listen to all network interfaces.
tcp_port
int
1777
The TCP port to bind the profiler to.
block_profile_fraction
fraction
0
The fraction of blocking events that are profiled, must be a number between 0 and 1. A value of zero will profile no blocking events.
mutex_profile_fraction
fraction
0
The fraction of mutex contention events that are profiled, must be a number between 0 and 1. A value of zero will profile no mutex contention events
should_write_file
bool
false
If true, the collector will write the CPU profile to a file on shutdown.
cpu_profile_file_name
string
$OIQ_OTEL_COLLECTOR_HOME/observiq-otel-collector.pprof
The file name to write the CPU Profile. The default is observiq-otel-collector.pprof
written in the collector's home directory.
Example Configuration
Web Interface

Standalone Extension
apiVersion: bindplane.observiq.com/v1
kind: Extension
metadata:
name: go-pprof
spec:
type: pprof
parameters:
- name: listen_address
value: 127.0.0.1
- name: tcp_port
value: 1777
- name: block_profile_fraction
value: 0
- name: mutex_profile_fraction
value: 0
- name: should_write_file
value: true
- name: cpu_profile_file_name
value: $OIQ_OTEL_COLLECTOR_HOME/observiq-otel-collector.pprof
Configuration with Embedded Extension
// cspell:ignore 01HKTMAPMRJEA1EYA4KC10NX5V
apiVersion: bindplane.observiq.com/v1
kind: Configuration
metadata:
id: linux-metrics
name: linux-metrics
labels:
platform: linux
spec:
extensions:
- id: 01HKTMAPMRJEA1EYA4KC10NX5V
type: pprof
parameters:
- name: listen_address
value: 127.0.0.1
- name: tcp_port
value: 1777
- name: block_profile_fraction
value: 0
- name: mutex_profile_fraction
value: 0
- name: should_write_file
value: false
- name: cpu_profile_file_name
value: $OIQ_OTEL_COLLECTOR_HOME/observiq-otel-collector.pprof
selector:
matchLabels:
configuration: linux-metrics
Last updated
Was this helpful?