-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
feat(new sink): Add possibility to use nats jetstream in nats sink #20834
Merged
StephenWakely
merged 13 commits into
vectordotdev:master
from
whatcouldbepizza:nats-jetstream-option
Jul 24, 2024
Merged
Changes from 11 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
b2d1f5a
use nats jetstream as an option
whatcouldbepizza 30de051
no need to manually flush messages
whatcouldbepizza 3209e57
fix jetstream option annotation + prettify code
whatcouldbepizza 11afa3f
generate component docs
whatcouldbepizza ce4e8c2
add more precise field description + generate docs
whatcouldbepizza 86b9956
check nats stream existence in healthcheck
whatcouldbepizza 56cf844
do not check stream existance
whatcouldbepizza 0721bf5
add new field to struct in tests
whatcouldbepizza dca5a3f
add changelog
whatcouldbepizza 7eeeb52
add author to changelog
whatcouldbepizza 7189c7f
remove example config from changelog
whatcouldbepizza 602ba0d
flush core messages
whatcouldbepizza 0188122
flush after each message
whatcouldbepizza File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Add possibility to use NATS JetStream in NATS sink. Can be turned on/off via `jetstream` option (default is false). | ||
|
||
authors: whatcouldbepizza |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -383,6 +383,17 @@ base: components: sinks: nats: configuration: { | |||||
} | ||||||
} | ||||||
} | ||||||
jetstream: { | ||||||
description: """ | ||||||
Send messages using [Jetstream][jetstream]. | ||||||
|
||||||
If set, the `subject` must belong to an existing JetStream stream. | ||||||
|
||||||
[jetstream]: https://docs.nats.io/nats-concepts/jetstream | ||||||
""" | ||||||
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
|
||||||
required: false | ||||||
type: bool: default: false | ||||||
} | ||||||
request: { | ||||||
description: """ | ||||||
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
|
||||||
Middleware settings for outbound requests. | ||||||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually these should be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file has been generated from the doc comments added in the code, so it won't be possible to remove these quotes. They are a part of
cue
and don't make it all the way through to the final docs on the vector.dev website..