Documentation ¶
Index ¶
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]ExtensionEntry // 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).
type Entry ¶
func (Entry) ToStringMap ¶
type ExporterEntry ¶
type ExporterEntry struct {
Entry `yaml:",inline"`
}
type ExtensionEntry ¶
type ExtensionEntry struct {
Entry `yaml:",inline"`
}
type ObserverEntry ¶
type ObserverEntry struct {
Entry `yaml:",inline"`
}
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 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 // 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"`
}
Click to show internal directories.
Click to hide internal directories.