metricexporter

package
v0.61.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultMetricGatherer

func DefaultMetricGatherer() ([]*dto.MetricFamily, time.Time, error)

func WithMetricGatherer

func WithMetricGatherer(g Gatherer) func(*Exporter)

Types

type Exporter added in v0.61.0

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

func New

func New(
	log *logrus.Entry,
	sender Sender,
	exportInterval time.Duration,
	opts ...func(*Exporter),
) *Exporter

func (*Exporter) Run added in v0.61.0

func (me *Exporter) Run(ctx context.Context)

type Gatherer added in v0.61.0

type Gatherer func() ([]*dto.MetricFamily, time.Time, error)

type Sender added in v0.61.0

type Sender interface {
	SendMetrics(ctx context.Context, gatherTime time.Time, metricFamilies []*dto.MetricFamily) error
}

Jump to

Keyboard shortcuts

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