You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kafkametricsreceiver: use configkafka.ClientConfig
Use configkafka.ClientConfig, and align with its defaults.
This means that client_id now defaults to "otel-collector"
instead of "otel-metrics-receiver", which is a breaking change.
We also add "metadata.refresh_interval" to ClientConfig,
defaulting to 10m, and deprecate "refresh_frequency" from
the receiver config. If metadata.refresh_interval is not
explicitly set, but refresh_frequency is, then the latter
will be used for now.
Copy file name to clipboardExpand all lines: receiver/kafkametricsreceiver/README.md
+13-5
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,6 @@ This receiver supports Kafka versions:
25
25
26
26
Required settings (no defaults):
27
27
28
-
-`protocol_version`: Kafka protocol version
29
28
-`scrapers`: any combination of the following scrapers can be enabled.
30
29
-`topics`
31
30
-`consumers`
@@ -36,11 +35,12 @@ Metrics collected by the associated scraper are listed in [metadata.yaml](metada
36
35
Optional Settings (with defaults):
37
36
38
37
-`cluster_alias`: Alias name of the cluster. Adds `kafka.cluster.alias` resource attribute.
38
+
-`protocol_version` (default = 2.1.0): Kafka protocol version
39
39
-`brokers` (default = localhost:9092): the list of brokers to read from.
40
40
-`resolve_canonical_bootstrap_servers_only` (default = false): whether to resolve then reverse-lookup broker IPs during startup.
41
41
-`topic_match` (default = ^[^_].*$): regex pattern of topics to filter on metrics collection. The default filter excludes internal topics (starting with `_`).
42
42
-`group_match` (default = .*): regex pattern of consumer groups to filter on for metrics.
43
-
-`client_id` (default = otel-metrics-receiver): consumer client id
43
+
-`client_id` (default = otel-collector): consumer client id
44
44
-`collection_interval` (default = 1m): frequency of metric collection/scraping.
45
45
-`initial_delay` (default = `1s`): defines how long this receiver waits before starting.
-`config_file`: Path to Kerberos configuration. i.e /etc/krb5.conf
69
69
-`keytab_file`: Path to keytab file. i.e /etc/security/kafka.keytab
70
70
-`disable_fast_negotiation`: Disable PA-FX-FAST negotiation (Pre-Authentication Framework - Fast). Some common Kerberos implementations do not support PA-FX-FAST negotiation. This is set to `false` by default.
71
+
-`metadata`
72
+
-`full` (default = true): Whether to maintain a full set of metadata. When disabled, the client does not make the initial request to broker at the startup.
73
+
-`retry`
74
+
-`max` (default = 3): The number of retries to get metadata
75
+
-`backoff` (default = 250ms): How long to wait between metadata retries
0 commit comments