Discover Packages
github.com/raystack/meteor
plugins
extractors
kafka
package
Version:
v0.10.0
Opens a new window with list of versions in this module.
Published: Jun 14, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 20
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
README
¶
kafka
Usage
source:
name: kafka
config:
broker: "localhost:9092"
auth_config:
tls:
enabled: true
insecure_skip_verify: false
cert_file: "/opt/client.cer.pem"
key_file: "/opt/client.key.pem"
ca_file: "/opt/caCertFile.cer.pem"
Key
Value
Example
Description
broker
string
localhost:9092
Kafka broker's host
required
auth_config.tls.enabled
boolean
false
config to enable tls auth
optional
auth_config.tls.insecure_skip_verify
boolean
false
InsecureSkipVerify controls whether a client verifies the server's certificate chain and host name
optional
auth_config.tls.cert_file
string
/opt/client.cer.pem
certificate file for client authentication
optional
auth_config.tls.key_file
string
/opt/client.key.pem
key file for client authentication
optional
auth_config.tls.ca_file
string
/opt/caCertFile.cer.pem
certificate authority file for TLS client authentication
optional
Outputs
Field
Sample Value
resource.urn
my-topic
resource.name
my-topic
resource.service
kafka
Contributing
Refer to the contribution guidelines for information on contributing to this module.
Expand ▾
Collapse ▴
Documentation
¶
type AuthConfig struct {
TLS struct {
Enabled bool `mapstructure:"enabled"`
InsecureSkipVerify bool `mapstructure:"insecure_skip_verify"`
CertFile string `mapstructure:"cert_file"`
KeyFile string `mapstructure:"key_file"`
CAFile string `mapstructure:"ca_file"`
} `mapstructure:"tls"`
}
type Config struct {
Broker string `json:"broker" yaml:"broker" mapstructure:"broker" validate:"required"`
Auth AuthConfig `json:"auth_config" yaml:"auth_config" mapstructure:"auth_config"`
}
Config holds the set of configuration for the kafka extractor
type Extractor struct {
}
Extractor manages the extraction of data
from a kafka broker
New returns a pointer to an initialized Extractor Object
Extract checks if the extractor is ready to extract
if so, then extracts metadata from the kafka broker
Init initializes the extractor
Source Files
¶
Click to show internal directories.
Click to hide internal directories.