-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[receiver/kafka] Add support for topic and exclude_topic as an array #44575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 4 commits
f5b98de
f65e86b
df16d03
fb85547
9237a1b
88957f1
e875d97
bda0ef6
7de8cc1
0fdab34
add9ed8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # Use this changelog template to create an entry for release notes. | ||
|
|
||
| # One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
| change_type: enhancement | ||
|
|
||
| # The name of the component, or a single word describing the area of concern, (e.g. receiver/filelog) | ||
| component: receiver/kafka | ||
|
|
||
| # A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
| note: Support configuring a list of topics and exclude_topics | ||
khushijain21 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| # Mandatory: One or more tracking issues related to the change. You can use the PR number here if no issue exists. | ||
| issues: [44477] | ||
|
|
||
| # (Optional) One or more lines of additional information to render under the primary note. | ||
| # These lines will be padded with 2 spaces and then inserted directly into the document. | ||
| # Use pipe (|) for multiline entries. | ||
| subtext: | ||
|
|
||
| # If your change doesn't affect end users or the exported elements of any package, | ||
| # you should instead start your pull request title with [chore] or use the "Skip Changelog" label. | ||
| # Optional: The change log or logs in which this entry should be included. | ||
| # e.g. '[user]' or '[user, api]' | ||
| # Include 'user' if the change is relevant to end users. | ||
| # Include 'api' if there is a change to a library API. | ||
| # Default: '[user]' | ||
| change_logs: [user] | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -42,25 +42,37 @@ The following settings can be optionally configured: | |||||
| - `protocol_version` (default = 2.1.0): Kafka protocol version. | ||||||
| - `resolve_canonical_bootstrap_servers_only` (default = false): Whether to resolve then reverse-lookup broker IPs during startup | ||||||
| - `logs` | ||||||
| - `topic` (default = otlp\_logs): The name of the Kafka topic from which to consume logs. | ||||||
| - `topic` (Deprecated [v0.142.0]: use `topics`) | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| (default = otlp\logs): If this is set, it will take precedence over default value of `topics` | ||||||
| - `topics` (default = otlp\_logs): List of kafka topics from which to consume logs | ||||||
| - `encoding` (default = otlp\_proto): The encoding for the Kafka topic. See [Supported encodings](#supported-encodings). | ||||||
| - `exclude_topic` (default = ""): When using regex topic patterns (prefix with `^`), this regex pattern excludes matching topics. Only works with franz-go client and when topic uses regex. | ||||||
| - `exclude_topic` (Deprecated [v0.142.0]: use `exclude_topics`) | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| (default = ""): If this is set, it will take precedence over default value of `exclude_topics` | ||||||
| - `exclude_topics` (default = ""): When using regex topic patterns (prefix with `^`), this regex pattern excludes matching topics. Only works with franz-go client and when topic uses regex. | ||||||
| - `metrics` | ||||||
| - `topic` (default = otlp\_metrics): The name of the Kafka topic from which to consume metrics. | ||||||
| - `topic` (Deprecated [v0.142.0]: use `topics`) | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| (default = otlp\_metrics): If this is set, it will take precedence over default value of `topics` | ||||||
| - `topics` (default = otlp\_metrics): List of Kafka topic from which to consume metrics. | ||||||
| - `encoding` (default = otlp\_proto): The encoding for the Kafka topic. See [Supported encodings](#supported-encodings). | ||||||
| - `exclude_topic` (default = ""): When using regex topic patterns (prefix with `^`), this regex pattern excludes matching topics. Only works with franz-go client and when topic uses regex. | ||||||
| - `exclude_topic` (Deprecated [v0.142.0]: use `exclude_topics`) | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| (default = ""): If this is set, it will take precedence over default value of `exclude_topics` | ||||||
| - `exclude_topics` (default = ""): When using regex topic patterns (prefix with `^`), this regex pattern excludes matching topics. Only works with franz-go client and when topic uses regex. | ||||||
| - `traces` | ||||||
| - `topic` (default = otlp\_spans): The name of the Kafka topic from which to consume traces. | ||||||
| - `topic` (Deprecated [v0.142.0]: use `topics`) | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| (default = otlp\_spans): If this is set, it will take precedence over default value of `topics` | ||||||
| - `topics` (default = otlp\_spans): List of Kafka topic from which to consume traces. | ||||||
| - `encoding` (default = otlp\_proto): The encoding for the Kafka topic. See [Supported encodings](#supported-encodings). | ||||||
| - `exclude_topic` (default = ""): When using regex topic patterns (prefix with `^`), this regex pattern excludes matching topics. Only works with franz-go client and when topic uses regex. | ||||||
| - `exclude_topic` (Deprecated [v0.142.0]: use `exclude_topics`) | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| (default = ""): If this is set, it will take precedence over default value of `exclude_topics` | ||||||
| - `exclude_topics` (default = ""): When using regex topic patterns (prefix with `^`), this regex pattern excludes matching topics. Only works with franz-go client and when topic uses regex. | ||||||
| - `profiles` | ||||||
| - `topic` (default = otlp\_profiles): The name of the Kafka topic from which to consume profiles. | ||||||
| - `topic` (Deprecated [v0.142.0]: use `topics`) | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| (default = otlp\_profiles): If this is set, it will take precedence over default value of `topics` | ||||||
| - `topics` (default = otlp\_profiles): List of Kafka topic from which to consume profiles. | ||||||
| - `encoding` (default = otlp\_proto): The encoding for the Kafka topic. See [Supported encodings](#supported-encodings). | ||||||
| - `exclude_topic` (default = ""): When using regex topic patterns (prefix with `^`), this regex pattern excludes matching topics. Only works with franz-go client and when topic uses regex. | ||||||
| - `topic` (Deprecated [v0.124.0]: use `logs::topic`, `traces::topic`, or `metrics::topic`). | ||||||
| If this is set, it will take precedence over the default value for those fields. | ||||||
| - `encoding` (Deprecated [v0.124.0]: use `logs::encoding`, `traces::encoding`, or `metrics::encoding`). | ||||||
| If this is set, it will take precedence over the default value for those fields. | ||||||
| - `exclude_topic` (Deprecated [v0.142.0]: use `exclude_topics`) | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| (default = ""): If this is set, it will take precedence over default value of `exclude_topics` | ||||||
| - `exclude_topics` (default = ""): When using regex topic patterns (prefix with `^`), this regex pattern excludes matching topics. Only works with franz-go client and when topic uses regex. | ||||||
| - `group_id` (default = otel-collector): The consumer group that receiver will be consuming messages from | ||||||
| - `client_id` (default = otel-collector): The consumer client ID that receiver will use | ||||||
| - `rack_id` (default = ""): The rack identifier for this client. When set and brokers are configured with a rack-aware replica selector, the client will prefer fetching from the closest replica. | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.