Discover Packages
github.com/fluxninja/aperture/v2
pkg
otelcollector
leaderonlyreceiver
package
Version:
v2.18.1-rc.1
Opens a new window with list of versions in this module.
Published: Oct 3, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 12
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 {
Inner map[string ]any `mapstructure:"config"`
InnerType component .Type `mapstructure:"type"`
}
Config is a config for leader-only-receiver.
Validate implements component.ConfigValidator.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.