exporter

package
v0.37.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 14 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.

func RequiredServices added in v0.36.0

func RequiredServices(additionalServices ...string) []string

RequiredServices returns the set of services needed by all prometheus.exporter components. Callers may optionally pass in additional services to add to the returned list.

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