exporter

package
v0.40.5 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New creates a new exporter component.

func NewWithTargetBuilder added in v0.34.0

func NewWithTargetBuilder(creator Creator, name string, targetBuilderFunc func(discovery.Target, component.Arguments) []discovery.Target) func(component.Options, component.Arguments) (component.Component, error)

NewWithTargetBuilder creates a new exporter component with a custom target builder function. It can be used to expand a set of targets from a single one, or to customize the labels of the targets.

Types

type Component

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

func (*Component) Handler

func (c *Component) Handler() http.Handler

Handler serves metrics endpoint from the integration implementation.

func (*Component) Run

func (c *Component) Run(ctx context.Context) error

Run implements component.Component.

func (*Component) Update

func (c *Component) Update(args component.Arguments) error

Update implements component.Component.

type Creator

Creator is a function provided by an implementation to create a concrete exporter instance.

type Exports

type Exports struct {
	Targets []discovery.Target `river:"targets,attr"`
}

Exports are simply a list of targets for a scraper to consume.

Jump to

Keyboard shortcuts

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