Status | |
---|---|
Stability | beta |
Supported pipeline types | metrics |
Distributions | contrib |
Kafka metrics receiver collects kafka metrics (brokers, topics, partitions, consumer groups) from kafka server, converting into otlp.
Required settings (no defaults):
protocol_version
: Kafka protocol versionscrapers
: any combination of the following scrapers can be enabled.topics
consumers
brokers
Metrics collected by the associated scraper are listed here
Optional Settings (with defaults):
brokers
(default = localhost:9092): the list of brokers to read from.topic_match
(default = ^[^_].*$): regex pattern of topics to filter on metrics collection. The default filter excludes internal topics (starting with_
).group_match
(default = .*): regex pattern of consumer groups to filter on for metrics.client_id
(default = otel-metrics-receiver): consumer client idcollection_interval
(default = 1m): frequency of metric collection/scraping.auth
(default none)plain_text
username
: The username to use.password
: The password to use
tls
ca_file
: path to the CA cert. For a client this verifies the server certificate. Should only be used ifinsecure
is set to true.cert_file
: path to the TLS cert to use for TLS required connections. Should only be used ifinsecure
is set to true.key_file
: path to the TLS key to use for TLS required connections. Should only be used ifinsecure
is set to true.insecure
(default = false): Disable verifying the server's certificate chain and host name (InsecureSkipVerify
in the tls config)server_name_override
: ServerName indicates the name of the server requested by the client in order to support virtual hosting.
kerberos
service_name
: Kerberos service namerealm
: Kerberos realmuse_keytab
: Use of keytab instead of password, if this is true, keytab file will be used instead of passwordusername
: The Kerberos username used for authenticate with KDCpassword
: The Kerberos password used for authenticate with KDCconfig_file
: Path to Kerberos configuration. i.e /etc/krb5.confkeytab_file
: Path to keytab file. i.e /etc/security/kafka.keytab
- Basic configuration with all scrapers:
receivers:
kafkametrics:
protocol_version: 2.0.0
scrapers:
- brokers
- topics
- consumers
- Configuration with more optional settings:
For this example:
- collection interval is 5 secs.
receivers:
kafkametrics:
brokers: 10.10.10.10:9092
protocol_version: 2.0.0
scrapers:
- brokers
- topics
- consumers
auth:
tls:
ca_file: ca.pem
cert_file: cert.pem
key_file: key.pem
collection_interval: 5s