Documentation ¶
Index ¶
- Constants
- type Exporter
- func (e *Exporter) Attach() error
- func (e *Exporter) Collect(ch chan<- prometheus.Metric)
- func (e *Exporter) CollectRaw() (map[string][]RawMetric, error)
- func (e *Exporter) Describe(ch chan<- *prometheus.Desc)
- func (e *Exporter) DescribeWrap()
- func (e *Exporter) MapsHandler(w http.ResponseWriter, r *http.Request)
- func (e *Exporter) Reclaim()
- type PerfEventArraySink
- type RawMetric
Constants ¶
View Source
const ( // PerfMap name // For these maps, we need to map the values of `type` into flags PerfMapExt4IoLatency = "ext4latency" PerfMapExt4IoSize = "ext4size" PerfMapExt4IoNumsOverThres = "ext4nums" )
View Source
const ( EbpfMetricNoType uint32 = iota // for ext4io EbpfMetricExt4IoRead EbpfMetricExt4IoWrite EbpfMetricExt4IoOpen EbpfMetricExt4IoFsync )
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 (*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) DescribeWrap ¶
func (e *Exporter) DescribeWrap()
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
type PerfEventArraySink ¶
type PerfEventArraySink struct {
// contains filtered or unexported fields
}
func NewPerfEventArraySink ¶
func (*PerfEventArraySink) Collect ¶
func (s *PerfEventArraySink) Collect(ch chan<- prometheus.Metric)
func (*PerfEventArraySink) Describe ¶
func (s *PerfEventArraySink) Describe(ch chan<- *prometheus.Desc)
Click to show internal directories.
Click to hide internal directories.