Skip to content

Commit

Permalink
chore(greptimedb_metrics sink): fix greptimedb examples (#21984)
Browse files Browse the repository at this point in the history
* docs: fix greptimedb example

* ci: add greptimedb sinks to semantic ci

* fix: remove examples for bool field
  • Loading branch information
sunng87 authored Dec 12, 2024
1 parent 18de1ea commit 70837f3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/semantic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ jobs:
gcp_pubsub sink
gcp_stackdriver_logs sink
gcp_stackdriver_metrics sink
greptimedb_metrics sink
greptimedb_logs sink
honeycomb sink
http sink
humio_logs sink
Expand Down
5 changes: 1 addition & 4 deletions src/sinks/greptimedb/metrics/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@ pub struct GreptimeDBMetricsConfig {
///
/// The address _must_ include a port.
#[configurable(metadata(docs::examples = "example.com:4001"))]
#[configurable(metadata(
docs::examples = "1nge17d2r3ns.ap-southeast-1.aws.greptime.cloud:4001"
))]
pub endpoint: String,
/// The username for your GreptimeDB instance.
///
Expand All @@ -88,7 +85,7 @@ pub struct GreptimeDBMetricsConfig {
pub password: Option<SensitiveString>,
/// Set gRPC compression encoding for the request
/// Default to none, `gzip` or `zstd` is supported.
#[configurable(metadata(docs::examples = "grpc_compression"))]
#[configurable(metadata(docs::examples = "gzip"))]
#[serde(default)]
pub grpc_compression: Option<String>,

Expand Down
6 changes: 4 additions & 2 deletions website/cue/reference/components/sinks/base/greptimedb.cue
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,17 @@ base: components: sinks: greptimedb: configuration: {
The address _must_ include a port.
"""
required: true
type: string: examples: ["example.com:4001", "1nge17d2r3ns.ap-southeast-1.aws.greptime.cloud:4001"]
type: string: examples: ["example.com:4001"]
}
grpc_compression: {
description: """
Set gRPC compression encoding for the request
Default to none, `gzip` or `zstd` is supported.
"""
required: false
type: string: examples: ["grpc_compression"]
type: string: examples: [
"gzip",
]
}
new_naming: {
description: """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,17 @@ base: components: sinks: greptimedb_metrics: configuration: {
The address _must_ include a port.
"""
required: true
type: string: examples: ["example.com:4001", "1nge17d2r3ns.ap-southeast-1.aws.greptime.cloud:4001"]
type: string: examples: ["example.com:4001"]
}
grpc_compression: {
description: """
Set gRPC compression encoding for the request
Default to none, `gzip` or `zstd` is supported.
"""
required: false
type: string: examples: ["grpc_compression"]
type: string: examples: [
"gzip",
]
}
new_naming: {
description: """
Expand Down

0 comments on commit 70837f3

Please sign in to comment.