telemetry

package
v0.0.0-...-c2f2842 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package telemetry provides types and functions for kernel telemetry collected by eBPF programs.

Index

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

func ReportPerfMapTelemetry(pm *manager.PerfMap)

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

func UnregisterTelemetry(m *manager.Manager)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL