The highest tagged major version is
v2 .
Discover Packages
github.com/fluxninja/aperture
pkg
otelcollector
leaderonlyreceiver
package
Version:
v1.3.0
Opens a new window with list of versions in this module.
Published: Apr 10, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Leader-only-receiver wraps any metrics receiver and starts it only when agent is a leader.
Module provides receiver factory.
NewFactory creates a new aperture_leader_only receiver factory using given leader election.
WrapConfig returns configuration of leader-only receiver wrapping given receiver.
WrapConfigIf returns configuration of leader-only receiver wrapping given
receiver if condition is true. Otherwise, returns original id and config.
type Config struct {
InnerType component .Type `mapstructure:"type"`
Inner map[string ]any `mapstructure:"config"`
}
Config is a config for leader-only-receiver.
Validate implements component.ConfigValidator.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.