package
0.0.0-20241126115353-bdecd68324ff
Repository: https://github.com/open-telemetry/opentelemetry-ebpf-profiler.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Add takes a single metric (id and value) from a metric provider.
AddSlice takes a slice of metrics from a metric provider.
GetDefinitions returns the metric definitions from the embedded metrics.json file.
SetReporter sets the reporter instance used to send out metrics.

# Constants

Absolute number of goroutines when the metric was collected.
Absolute number in bytes of allocated heap objects of the agent.
Difference to previous system CPU time of the agent in Milliseconds.
Difference to previous user CPU time of the agent in Milliseconds.
Number of containerd client queries.
CPU Usage: values are 0-100%.
Number of docker client queries.
Number of cache hits for dotnet AddrToMethod.
Number of cache misses for dotnet AddrToMethod.
Number of dotnet frames that failed symbolization.
Number of successfully symbolized dotnet frames.
Number of cache hits for ELF information.
Number of cache misses for ELF information.
Number of times the bpf helper failed to get the current comm of the task.
Number of times unwind_stop is called without a trace.
Number of times process exits while reading /proc/<PID>.
Number of times reading /proc/<PID> as it does not exist anymore.
Number of times reading /proc/<PID> failed due to missing text section.
Number of times reading /proc/<PID> failed due to missing permission.
Number of times batch updating elements in exeIDToStackDeltas failed.
Number of times deleting an element from exeIDToStackDeltas failed.
Number of times updating an element in exeIDToStackDeltas failed.
Current size of the stack delta pages hash map.
Current size of the hash map pid_page_to_mapping_info.
Current size of the hash map pycodeobject_to_fileid.
Number of added cache elements for Hotspot AddrToJITInfo.
Number of deleted cache elements for Hotspot AddrToJITInfo.
Number of cache hits for Hotspot AddrToJITInfo.
Number of cache misses for Hotspot AddrToJITInfo.
Number of added cache elements for Hotspot AddrToMethod.
Number of deleted cache elements for Hotspot AddrToMethod.
Number of cache hits for Hotspot AddrToMethod.
Number of cache misses for Hotspot AddrToMethod.
Number of added cache elements for Hotspot AddrToStubNameID.
Number of deleted cache elements for Hotspot AddrToStubNameID.
Number of cache hits for Hotspot AddrToStubNameID.
Number of cache misses for Hotspot AddrToStubNameID.
Number of added cache elements for Hotspot AddrToSymbol.
Number of deleted cache elements for Hotspot AddrToSymbol.
Number of cache hits for Hotspot AddrToSymbol.
Number of cache misses for Hotspot AddrToSymbol.
Number of Hotspot frames that failed symbolization.
Number of successfully symbolized hotspot frames.
Number of times we encountered frame sizes larger than the supported maximum.
Leave out the 0 value.
I/O Duration: values are 'weighted # of milliseconds doing I/O'.
I/O Throughput: values are bytes/s.
Number of LRU hits for kernel symbols.
Number of LRU mises for kernel symbols.
Number of cache hits in tracehandler trace cache by BPF hash.
Number of cache misses in tracehandler trace cache by BPF hash.
Number of kubernetes client queries.
Number of cache hits of the local interval cache.
Number of cache misses of the local interval cache.
Current size in bytes of the local interval cache.
max number of ID values, keep this as *last entry*.
Max /proc/PID/maps parse time for a single collection interval, in microseconds.
Number of times stack unwinding was stopped to not hit the limit of tail calls.
The number of executables loaded to eBPF maps.
Number of generic PID events (report_events).
Number of /proc/PID/maps process attempts.
Number of exit PID events (report_events).
Number of new PID events (report_events).
Number of unknown PC events (report_events).
Number of times disabling a perf event hook failed.
Number of times enabling a perf event hook failed.
Number of lost perf events in the communication between kernel and user space (report_events).
Number of times a perf event was received without data (report_events).
Number of times a perf event read failed (report_events).
Number of added cache elements for Perl AddrToCOP.
Number of deleted cache elements for Perl AddrToCOP.
Number of cache hits for Perl AddrToCOP.
Number of cache misses for Perl AddrToCOP.
Number of added cache elements for Perl AddrToGV.
Number of deleted cache elementes Perl AddrToGV.
Number of cache hits for Perl AddrToGV.
Number of cache misses for Perl AddrToGV.
Number of added cache elements for Perl AddrToHEK.
Number of deleted cache elements for Perl AddrToHEK.
Number of cache hits for Perl AddrToHEK.
Number of cache misses for Perl AddrToHEK.
Maximum number of hekLen that was requested within the last reporting interval.
Number of Perl frames that failed symbolization.
Number of successfully symbolized Perl frames.
Number of added cache elements for PHP AddrToFunc.
Number of deleted cache elements for PHP AddrToFunc.
Number of cache hits for PHP AddrToFunc.
Number of cache misses for PHP AddrToFunc.
Number of times finding the return address in the interpreter loop failed for PHP 8+.
Number of PHP frames that failed symbolization.
Number of successfully symbolized PHP frames.
Number of times we failed to update pid_events.
Number of times batch deleting elements from pidPageToMappingInfo failed.
Number of times deleting an element from pidPageToMappingInfo failed.
Number of times updating an element in pidPageToMappingInfo failed.
Interval in seconds for which probabilistic profiling will be enabled or disabled.
Indicates if probabilistic profiling is enabled or disabled: 1 profiling is enabled, -1 profiling is disabled.
Time spent processing /proc/PID/maps on startup, in milliseconds.
Number of added cache elements for Python AddrToCodeObject.
Number of deleted cache elements for Python AddrToCodeObject.
Number of cache hits for Python AddrToCodeObject.
Number of cache misses for Python AddrToCodeObject.
Number of Python frames that failed symbolization.
Number of successfully symbolized python frames.
Number of times we failed to update reported_pids.
Incoming total RPC byte count (payload, uncompressed).
Outgoing total RPC byte count (payload, uncompressed).
Number of added cache elements for Ruby AddrToString.
Number of deleted cache elements for Ruby AddrToString.
Number of cache hits for Ruby AddrToString.
Number of cache misses for Ruby AddrToString.
Number of added cache elements for Ruby IseqBodyPCToFunction.
Number of deleted cache elements for Ruby IseqBodyPCToFunction.
Number of cache hits for Ruby IseqBodyPCToFunction.
Number of cache misses for Ruby IseqBodyPCToFunction.
Maximum number of size that was requested within the last reporting interval.
Number of Ruby frames that failed symbolization.
Number of successfully symbolized Ruby frames.
Number of times batch updating elements in stackDeltaPageToInfo failed.
Number of times deleting an element from stackDeltaPageToInfo failed.
Number of times updating an element in stackDeltaPageToInfo failed.
Number of times the stack delta provider failed to extract stack deltas.
Number of times the stack delta provider succeeded to extract stack deltas.
Total /proc/PID/maps parse time for a single collection interval, in microseconds.
Number of cache hits in tracehandler trace cache by UM hash.
Number of cache misses in tracehandler trace cache by UM hash.
Number of failures read the APM correlation buffer.
Number of failures read the APM correlation pointer.
Number of failures to get TSD base for APM correlation.
Number of successful reads of APM correlation info.
Number of calls to interpreter unwinding in dispatch_interpreters().
Number of attempted dotnet unwinds.
Number of failures to read dotnet frame pointer data.
Number of failures to read dotnet CodeHeader.
Number of failures to unwind dotnet frame due to large code size.
Number of times we didn't find an entry for this process in the dotnet process info array.
Number of unwound dotnet frames.
Number of failures to read from the TLS.
Number of failures to get the TLS base in tls_get_base().
Number of times MAX_FRAME_UNWINDS has been exceeded in unwind_next_frame().
Number of failures due to PC == 0 in unwind_next_frame().
Number of attempted Hotspot frame unwinds.
Number of failures to unwind interpreter due to invalid FP.
Number of failures to get codeblob data.
Number of failures to unwind because return address was not found with heuristic.
Number of times the Hotspot unwind instructions requested LR unwinding mid-trace.
Number of failures to get hotspot codeblob address (no heap or bad segmap).
Number of unwound Hotspot frames.
Current size of the unwind info array.
Number of times updating an element in unwindInfoArray failed.
Unwind attempts since the previous check.
Number of times an unwind_info_array index was invalid.
Number of failures to read the IRQ stack link.
Number of kernel addresses passed to get_text_section().
Number of failures to get stack_unwind_info from big_stack_deltas in get_stack_delta().
Number of failures to get stack_unwind_info from big_stack_deltas in get_stack_delta().
Number of times that a lookup of a inner map for stack deltas failed.
Number of times that a lookup of the outer map for stack deltas failed.
Number of failed range searches within 20 steps in get_stack_delta().
Number of times the unwind instructions requested LR unwinding mid-trace.
Number of times failure to read PC from unwound stack (invalid stack delta).
Number of failures to read the kernel-mode registers.
Number of invalid stack deltas in the native unwinder.
Number of failures to find the text section in get_text_section().
Unwound frames since the previous check.
Number of times frame unwinding failed because of LR == 0.
Number of times that PC hold a value smaller than 0x1000.
Number of stop stack deltas in the native unwinder (success).
Number of attempted perl unwinds.
Number of unwound perl frames.
Number of failures to read perl context stack entry.
Number of failures to read perl stack info.
Number of failures to resolve perl EGV.
Number of failures to read perl TLS info.
Number of attempted PHP unwinds.
Number of failures to read PHP current execute data pointer.
Number of failures to read PHP execute data contents.
Number of failures to read PHP zend function contents.
Number of failures to read PHP zend opline contents.
Number of unwound PHP frames.
Number of attempted python unwinds.
Number of failures to read autoTLSkey.
Number of failures to read _PyCFrame.current_frame in unwind_python().
Number of failures to get code object's argcount in process_python_frame().
Number of failures to read from pyinfo->pyThreadStateCurrentAddr.
Number of failures to read PyThreadState.frame in unwind_python().
Number of times we didn't find an entry for this process in the Python process info array.
Number of failures to read the thread state pointer from TLD.
Number of failures to determine the base address for thread-specific data.
Number of PyThreadState being 0x0.
Number of unwound python frames.
Number of NULL code objects found in process_python_frame().
Number of attempted Ruby unwinds.
Number of times we didn't find an entry for this process in the Ruby process info array.
Number of failures to read the control frame pointer from the Ruby context.
Number of failures to read the expression path from the Ruby frame.
Number of failures to read the instruction sequence body.
Number of failures to read the instruction sequence encoded size.
Number of failures to read the instruction sequence size.
Number of failures to read the stack pointer from the Ruby context.
Number of failures to read the size of the VM stack from the Ruby context.
Number of unwound Ruby frames.
Number of attempted V8 unwinds.
Number of failures to read V8 Code object.
Number of failures to read V8 frame pointer data.
Number of failures to read V8 Code/JSFunction object.
Number of times we didn't find an entry for this process in the V8 process info array.
Number of unwound V8 frames.
Number of added cache elements for V8 Code/JSFunction.
Number of deleted cache elements for V8 Code/JSFunction.
Number of cache hits for V8 Code/JSFunction.
Number of cache misses for V8 Code/JSFunction.
Number of added cache elements for V8 SharedFunctionInfo.
Number of deleted cache elements for V8 SharedFunctionInfo.
Number of cache hits for V8 SharedFunctionInfo.
Number of cache misses for V8 SharedFunctionInfo.
Number of added cache elements for V8 Source.
Number of deleted cache elements for V8 Source.
Number of cache hits for V8 Source.
Number of cache misses for V8 Source.
Number of added cache elements for V8 strings.
Number of deleted cache elements for V8 strings.
Number of cache hits for V8 strings.
Number of cache misses for V8 strings.
Number of V8 frames that failed symbolization.
Number of successfully symbolized V8 frames.
Incoming total RPC byte count (on-the-wire, compressed).
Outgoing total RPC byte count (on-the-wire, compressed).
No description provided by the author
No description provided by the author

# Structs

Metric is the type for a metric id/value pair.
No description provided by the author

# Type aliases

MetricID is the type for metric IDs.
No description provided by the author
MetricValue is the type for metric values.
Summary helps summarizing metrics of the same ID from different sources before processing it further.