 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  var DefaultArguments = Arguments{ GroupID: "loki.source.kafka", Assignor: "range", Version: "2.2.1", Authentication: KafkaAuthentication{ Type: "none", SASLConfig: KafkaSASLConfig{ Mechanism: sarama.SASLTypePlaintext, UseTLS: false, }, }, UseIncomingTimestamp: false, }
DefaultArguments provides the default arguments for a kafka component.
Functions ¶
This section is empty.
Types ¶
type Arguments ¶
type Arguments struct {
	Brokers              []string            `alloy:"brokers,attr"`
	Topics               []string            `alloy:"topics,attr"`
	GroupID              string              `alloy:"group_id,attr,optional"`
	Assignor             string              `alloy:"assignor,attr,optional"`
	Version              string              `alloy:"version,attr,optional"`
	Authentication       KafkaAuthentication `alloy:"authentication,block,optional"`
	UseIncomingTimestamp bool                `alloy:"use_incoming_timestamp,attr,optional"`
	Labels               map[string]string   `alloy:"labels,attr,optional"`
	ForwardTo    []loki.LogsReceiver `alloy:"forward_to,attr"`
	RelabelRules alloy_relabel.Rules `alloy:"relabel_rules,attr,optional"`
}
    Arguments holds values which are used to configure the loki.source.kafka component.
func (*Arguments) SetToDefault ¶
func (a *Arguments) SetToDefault()
SetToDefault implements syntax.Defaulter.
type Component ¶
type Component struct {
	// contains filtered or unexported fields
}
    Component implements the loki.source.kafka component.
type KafkaAuthentication ¶
type KafkaAuthentication struct {
	Type       string           `alloy:"type,attr,optional"`
	TLSConfig  config.TLSConfig `alloy:"tls_config,block,optional"`
	SASLConfig KafkaSASLConfig  `alloy:"sasl_config,block,optional"`
}
    KafkaAuthentication describe the configuration for authentication with Kafka brokers
func (KafkaAuthentication) Convert ¶
func (auth KafkaAuthentication) Convert() kt.Authentication
type KafkaSASLConfig ¶
type KafkaSASLConfig struct {
	Mechanism   string            `alloy:"mechanism,attr,optional"`
	User        string            `alloy:"user,attr,optional"`
	Password    alloytypes.Secret `alloy:"password,attr,optional"`
	UseTLS      bool              `alloy:"use_tls,attr,optional"`
	TLSConfig   config.TLSConfig  `alloy:"tls_config,block,optional"`
	OAuthConfig OAuthConfigConfig `alloy:"oauth_config,block,optional"`
}
    KafkaSASLConfig describe the SASL configuration for authentication with Kafka brokers
type OAuthConfigConfig ¶
 Click to show internal directories. 
   Click to hide internal directories.