exporter

package
v0.0.0-...-7f2ac71 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: GPL-3.0 Imports: 8 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 {
	FlowReg *prometheus.Registry
	// contains filtered or unexported fields
}

Exporter provides export features to Prometheus

func (*Exporter) Increment

func (e *Exporter) Increment(flow *flow.FlowMessage)

func (*Exporter) IncrementCtrl

func (e *Exporter) IncrementCtrl(topic string, partition int32, offset int64)

func (*Exporter) Initialize

func (e *Exporter) Initialize()

Initialize Prometheus Exporter

func (*Exporter) ServeEndpoints

func (e *Exporter) ServeEndpoints(addr string)

listen on addr with path /metrics and /flowdata

Jump to

Keyboard shortcuts

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