Documentation ¶
Index ¶
- func New(creator Creator, name string) func(component.Options, component.Arguments) (component.Component, error)
- func NewWithTargetBuilder(creator Creator, name string, ...) func(component.Options, component.Arguments) (component.Component, error)
- func RequiredServices(additionalServices ...string) []string
- type Component
- type Creator
- type Exports
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.
func RequiredServices ¶ added in v0.36.0
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
}
Click to show internal directories.
Click to hide internal directories.