exporter

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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, 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) 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