diff --git a/src/sources/gcp_pubsub.rs b/src/sources/gcp_pubsub.rs index 083de69108a4e..52ca0e50621f3 100644 --- a/src/sources/gcp_pubsub.rs +++ b/src/sources/gcp_pubsub.rs @@ -131,9 +131,11 @@ static CLIENT_ID: Lazy = Lazy::new(|| uuid::Uuid::new_v4().to_string()); #[serde(deny_unknown_fields)] pub struct PubsubConfig { /// The project name from which to pull logs. + #[configurable(metadata(docs::examples = "my-log-source-project"))] pub project: String, /// The subscription within the project which is configured to receive logs. + #[configurable(metadata(docs::examples = "my-vector-source-subscription"))] pub subscription: String, /// The endpoint from which to pull data. diff --git a/website/cue/reference/components/sources/base/gcp_pubsub.cue b/website/cue/reference/components/sources/base/gcp_pubsub.cue index 0b1914852cef4..5e9adedbdac9d 100644 --- a/website/cue/reference/components/sources/base/gcp_pubsub.cue +++ b/website/cue/reference/components/sources/base/gcp_pubsub.cue @@ -356,7 +356,7 @@ base: components: sources: gcp_pubsub: configuration: { project: { description: "The project name from which to pull logs." required: true - type: string: {} + type: string: examples: ["my-log-source-project"] } retry_delay_seconds: { deprecated: true @@ -376,7 +376,7 @@ base: components: sources: gcp_pubsub: configuration: { subscription: { description: "The subscription within the project which is configured to receive logs." required: true - type: string: {} + type: string: examples: ["my-vector-source-subscription"] } tls: { description: "TLS configuration."