Documentation ¶
Index ¶
- type Config
- type Entry
- type ExporterEntry
- type ExtensionEntry
- type ObserverEntry
- type ProcessorEntry
- type PropertiesEntry
- type Provider
- func (m *Provider) ConfigDProviderFactory() confmap.ProviderFactory
- func (m *Provider) ConfigDScheme() string
- func (m *Provider) DiscoveryModeProviderFactory() confmap.ProviderFactory
- func (m *Provider) DiscoveryModeScheme() string
- func (m *Provider) PropertiesFileProviderFactory() confmap.ProviderFactory
- func (m *Provider) PropertiesFileScheme() string
- func (m *Provider) PropertyProviderFactory() confmap.ProviderFactory
- func (m *Provider) PropertyScheme() string
- type ReceiverEntry
- type ReceiverToDiscoverEntry
- type ServiceEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Service is for pipelines and final settings. // It must be in the root config directory and named "service.yaml" Service ServiceEntry // Exporters is a map of exporters to use in final config. // They must be in `config.d/exporters` directory. Exporters map[component.ID]ExporterEntry // Extensions is a map of extensions to use in final config. // They must be in `config.d/extensions` directory. Extensions map[component.ID]ExtensionEntry // DiscoveryObservers is a map of observer extensions to use in discovery. // They must be in `config.d/extensions` directory and end with ".discovery.yaml". DiscoveryObservers map[component.ID]ObserverEntry // Processors is a map of extensions to use in final config. // They must be in `config.d/processors` directory. Processors map[component.ID]ProcessorEntry // Receivers is a map of receiver entries to use in final config // They must be in `config.d/receivers` directory. Receivers map[component.ID]ReceiverEntry // ReceiversToDiscover is a map of receiver entries to use in discovery mode's // underlying discovery receiver. They must be in `config.d/receivers` directory and // end with ".discovery.yaml". ReceiversToDiscover map[component.ID]ReceiverToDiscoverEntry // DiscoveryProperties is a mapping of discovery properties to their values for // configuring discovery mode components. // It must be in the root config directory and named "properties.discovery.yaml". DiscoveryProperties PropertiesEntry // contains filtered or unexported fields }
Config is a model for stitching together the final Collector configuration with additional discovery component fields for use w/ discovery mode. It allows individual yaml files to be added to a config.d directory and be sourced in the final config such that small changes don't apply to a central configuration file, and possibly eliminates the need for one overall (still in design and dependent on aliasing and array insertion operators).
func (*Config) Load ¶
Load will walk the file tree from the configDPath root, loading the component files as they are discovered, determined by their parent directory and filename.
func (*Config) LoadFS ¶ added in v0.72.0
LoadFS will walk the provided filesystem, loading the component files as they are discovered, determined by their parent directory and filename.
func (*Config) LoadProperties ¶ added in v0.81.0
type Entry ¶
func (Entry) ToStringMap ¶
type ExporterEntry ¶
type ExporterEntry struct {
Entry `yaml:",inline"`
}
type ExtensionEntry ¶
type ExtensionEntry struct {
Entry `yaml:",inline"`
}
type ObserverEntry ¶
type ProcessorEntry ¶
type ProcessorEntry struct {
Entry `yaml:",inline"`
}
type PropertiesEntry ¶ added in v0.74.0
type PropertiesEntry struct {
Entry `yaml:",inline"`
}
type Provider ¶ added in v0.63.0
type Provider struct {
// contains filtered or unexported fields
}
func (*Provider) ConfigDProviderFactory ¶ added in v0.101.0
func (m *Provider) ConfigDProviderFactory() confmap.ProviderFactory
func (*Provider) ConfigDScheme ¶ added in v0.63.0
func (*Provider) DiscoveryModeProviderFactory ¶ added in v0.101.0
func (m *Provider) DiscoveryModeProviderFactory() confmap.ProviderFactory
func (*Provider) DiscoveryModeScheme ¶ added in v0.63.0
func (*Provider) PropertiesFileProviderFactory ¶ added in v0.101.0
func (m *Provider) PropertiesFileProviderFactory() confmap.ProviderFactory
func (*Provider) PropertiesFileScheme ¶ added in v0.81.0
func (*Provider) PropertyProviderFactory ¶ added in v0.101.0
func (m *Provider) PropertyProviderFactory() confmap.ProviderFactory
func (*Provider) PropertyScheme ¶ added in v0.70.0
type ReceiverEntry ¶
type ReceiverEntry struct {
Entry `yaml:",inline"`
}
type ReceiverToDiscoverEntry ¶
type ReceiverToDiscoverEntry struct { // Receiver creator rules by observer extension ID Rule map[component.ID]string // Platform/observer specific config by observer extension ID. // These are merged w/ "default" component.ID in a "config" map Config map[component.ID]map[string]any // Whether to attempt to discover this receiver Enabled *bool // The remaining items used to merge applicable rule and config Entry `yaml:",inline"` }
func (ReceiverToDiscoverEntry) ErrorF ¶
func (ReceiverToDiscoverEntry) ErrorF(path string, err error) error
func (ReceiverToDiscoverEntry) ToStringMap ¶
func (r ReceiverToDiscoverEntry) ToStringMap() map[string]any
type ServiceEntry ¶
type ServiceEntry struct {
Entry `yaml:",inline"`
}