Documentation ¶
Overview ¶
Package telemetry provides types and functions for kernel telemetry collected by eBPF programs.
Index ¶
- func NewDebugFsStatCollector() prometheus.Collector
- func NewEBPFErrorsCollector() prometheus.Collector
- func NewPerfUsageCollector() prometheus.Collector
- func ReportPerfMapTelemetry(pm *manager.PerfMap)
- func ReportRingBufferTelemetry(rb *manager.RingBuffer)
- func UnregisterTelemetry(m *manager.Manager)
- type NoopDebugFsStatCollector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDebugFsStatCollector ¶
func NewDebugFsStatCollector() prometheus.Collector
NewDebugFsStatCollector creates a DebugFsStatCollector
func NewEBPFErrorsCollector ¶
func NewEBPFErrorsCollector() prometheus.Collector
NewEBPFErrorsCollector initializes a new Collector object for ebpf helper and map operations errors. Not supported on Windows, thus returning noop collector instead.
func NewPerfUsageCollector ¶
func NewPerfUsageCollector() prometheus.Collector
NewPerfUsageCollector creates a prometheus.Collector for perf buffer and ring buffer metrics
func ReportPerfMapTelemetry ¶
ReportPerfMapTelemetry starts reporting the telemetry for the provided PerfMap
func ReportRingBufferTelemetry ¶
func ReportRingBufferTelemetry(rb *manager.RingBuffer)
ReportRingBufferTelemetry starts reporting the telemetry for the provided RingBuffer
func UnregisterTelemetry ¶
UnregisterTelemetry unregisters the PerfMap and RingBuffers from telemetry
Types ¶
type NoopDebugFsStatCollector ¶
type NoopDebugFsStatCollector struct{}
NoopDebugFsStatCollector implements the prometheus Collector interface but does nothing
func (*NoopDebugFsStatCollector) Collect ¶
func (c *NoopDebugFsStatCollector) Collect(chan<- prometheus.Metric)
Collect returns the current state of all metrics of the collector
func (*NoopDebugFsStatCollector) Describe ¶
func (c *NoopDebugFsStatCollector) Describe(chan<- *prometheus.Desc)
Describe returns all descriptions of the collector