Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a factory for promtail receiver
Types ¶
type Config ¶
type Config struct { helper.InputConfig `mapstructure:",squash" yaml:",inline"` // Promtail input config is declared as nested key to allow custom unmarshalling // confmap doesn't call custom unmarshal for the top structure // see the implementation of unmarshalerHookFunc in https://github.com/open-telemetry/opentelemetry-collector: // https://github.com/open-telemetry/opentelemetry-collector/blob/c157b128e9ff32ed06e2913e2afa83c9abbed9ba/confmap/confmap.go#L269 Input PromtailInputConfig `mapstructure:"config,omitempty" yaml:"config,omitempty"` }
func NewConfigWithID ¶
NewConfigWithID creates a new input config with default values
type PromtailConfig ¶
type PromtailConfig struct { InputConfig Config `mapstructure:",squash" yaml:",inline"` adapter.BaseConfig `mapstructure:",squash" yaml:",inline"` }
PromtailConfig defines configuration for the promtail receiver
type PromtailInputConfig ¶
type PromtailInputConfig struct { PositionsConfig positions.Config `mapstructure:"positions,omitempty" yaml:"positions,omitempty"` ScrapeConfig []scrapeconfig.Config `mapstructure:"scrape_configs,omitempty" yaml:"scrape_configs,omitempty"` TargetConfig file.Config `mapstructure:"target_config,omitempty" yaml:"target_config,omitempty"` }
Click to show internal directories.
Click to hide internal directories.