exporter

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CgroupIDMap added in v2.5.0

type CgroupIDMap struct {
	// contains filtered or unexported fields
}

CgroupIDMap synchronises cgroup changes with the shared bpf map.

type Exporter

type Exporter struct {
	// contains filtered or unexported fields
}

Exporter is a ebpf_exporter instance implementing prometheus.Collector

func New

func New(configs []config.Config, skipCacheSize int, tracingProvider tracing.Provider, btfPath string) (*Exporter, error)

New creates a new exporter with the provided config

func (*Exporter) Attach

func (e *Exporter) Attach() error

Attach injects eBPF into kernel and attaches necessary programs

func (*Exporter) Collect

func (e *Exporter) Collect(ch chan<- prometheus.Metric)

Collect satisfies prometheus.Collector interface and sends all metrics

func (*Exporter) Describe

func (e *Exporter) Describe(ch chan<- *prometheus.Desc)

Describe satisfies prometheus.Collector interface by sending descriptions for all metrics the exporter can possibly report

func (*Exporter) Detach added in v2.4.2

func (e *Exporter) Detach()

Detach detaches bpf programs and maps for exiting

func (*Exporter) MapsHandler

func (e *Exporter) MapsHandler(w http.ResponseWriter, r *http.Request)

MapsHandler is a debug handler to print raw values of kernel maps

func (*Exporter) MissedAttachments added in v2.3.0

func (e *Exporter) MissedAttachments() []string

MissedAttachments returns the list of module:prog names that failed to attach

Jump to

Keyboard shortcuts

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