Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(creator Creator, name string) func(component.Options, component.Arguments) (component.Component, error)
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
}
type Creator ¶
type Creator func(component.Options, component.Arguments) (integrations.Integration, error)
Creator is a function provided by an implementation to create a concrete exporter instance.
Click to show internal directories.
Click to hide internal directories.