exporter

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 13 Imported by: 1

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(cfg config.Config) (*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 kprobes

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

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

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

type PerfMapSink added in v1.2.4

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

func NewPerfMapSink added in v1.2.4

func NewPerfMapSink(decoders *decoder.Set, module *bcc.Module, counterConfig config.Counter) *PerfMapSink

func (*PerfMapSink) Collect added in v1.2.4

func (s *PerfMapSink) Collect(ch chan<- prometheus.Metric)

func (*PerfMapSink) Describe added in v1.2.4

func (s *PerfMapSink) Describe(ch chan<- *prometheus.Desc)

Jump to

Keyboard shortcuts

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