Skip to content

feat(greptimedb sink)!: add support for GreptimeDB v1.0.0#25178

Open
thomasqueirozb wants to merge 10 commits intomasterfrom
thomas/greptimedb-v1
Open

feat(greptimedb sink)!: add support for GreptimeDB v1.0.0#25178
thomasqueirozb wants to merge 10 commits intomasterfrom
thomas/greptimedb-v1

Conversation

@thomasqueirozb
Copy link
Copy Markdown
Contributor

Summary

Replace the pinned git dependency on greptimedb-ingester with the published crate v0.16.0 from crates.io. Update integration tests to run against GreptimeDB v1.0.0.

Vector configuration

NA

How did you test this PR?

  • cargo check
  • make check-clippy
  • Integration tests: ./scripts/run-integration-test.sh int greptimedb (15/15 passing)

Change Type

  • Bug fix
  • New feature
  • Dependencies
  • Non-functional (chore, refactoring, docs)
  • Performance

Is this a breaking change?

  • Yes
  • No

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on our guidelines.
  • No. A maintainer will apply the no-changelog label to this PR.

References

@github-actions github-actions bot added the domain: sinks Anything related to the Vector's sinks label Apr 13, 2026
@thomasqueirozb thomasqueirozb changed the title feat(greptimedb sink)!: upgrade greptimedb-ingester to published crate v0.16.0 feat(greptimedb sink)!: add support for GreptimeDB v1.0.0 Apr 13, 2026
@thomasqueirozb thomasqueirozb added the sink: greptimedb Anything `greptimedb` sink related label Apr 13, 2026
Comment on lines -27 to -37
if let Some(compression) = config.compression.as_ref() {
let compression = match compression.as_str() {
"gzip" => Compression::Gzip,
"zstd" => Compression::Zstd,
_ => {
warn!(message = "Unknown gRPC compression type: {compression}, disabled.");
Compression::None
}
};
builder = builder.compression(compression);
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gzip removed. See GreptimeTeam/greptimedb-ingester-rust#54. ChannelConfig::send_compression hardcodes zstd compression

@thomasqueirozb thomasqueirozb marked this pull request as ready for review April 13, 2026 18:46
@thomasqueirozb thomasqueirozb requested a review from a team as a code owner April 13, 2026 18:46
@thomasqueirozb
Copy link
Copy Markdown
Contributor Author

@codex review

@thomasqueirozb thomasqueirozb requested a review from a team as a code owner April 13, 2026 18:48
@github-actions github-actions bot added the domain: external docs Anything related to Vector's external, public documentation label Apr 13, 2026
Copy link
Copy Markdown
Member

@pront pront left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 published crate

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 215990e992

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@thomasqueirozb
Copy link
Copy Markdown
Contributor Author

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e756042764

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines 64 to +68
_ => {
warn!(message = "Unknown gRPC compression type: {compression}, disabled.");
Compression::None
warn!(
message = "GreptimeDB TLS requires ca_file, crt_file, and key_file to all be set. Falling back to a non-TLS connection."
);
ChannelManager::with_config(channel_config)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Reject partial TLS config instead of downgrading to plaintext

When tls is configured but any of ca_file, crt_file, or key_file is missing, this branch logs a warning and constructs ChannelManager::with_config(...), which disables TLS for the connection. In practice, a user who sets only ca_file (a common server-auth TLS setup) will silently send metric traffic and credentials over plaintext HTTP instead of failing fast, which is both a security and correctness regression from previous behavior. This should return a configuration error rather than transparently downgrading transport security.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: external docs Anything related to Vector's external, public documentation domain: sinks Anything related to the Vector's sinks sink: greptimedb Anything `greptimedb` sink related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants