You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bq: add metrics, error classification, and SA impersonation
Add basic operational metrics (rows sent/failed, batches, latency,
retries). Classify gRPC errors as transient or permanent for smarter
retry behavior. Support service account impersonation via
target_principal and delegates config fields. Make stream idle timeout
and sweep interval YAML-configurable. Regenerate docs.
Copy file name to clipboardExpand all lines: docs/modules/components/pages/outputs/gcp_bigquery_write_api.adoc
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,10 @@ output:
67
67
table: "" # No default (required)
68
68
message_format: json
69
69
credentials_json: ""
70
+
target_principal: ""
71
+
delegates: []
72
+
stream_idle_timeout: 5m
73
+
stream_sweep_interval: 1m
70
74
endpoint:
71
75
http: ""
72
76
grpc: ""
@@ -153,6 +157,42 @@ This field contains sensitive information that usually shouldn't be added to a c
153
157
154
158
*Default*: `""`
155
159
160
+
=== `target_principal`
161
+
162
+
Service account email to impersonate. When set, the output obtains tokens acting as this service account. Requires the caller to have roles/iam.serviceAccountTokenCreator on the target.
163
+
164
+
165
+
*Type*: `string`
166
+
167
+
*Default*: `""`
168
+
169
+
=== `delegates`
170
+
171
+
Optional delegation chain for chained service account impersonation. Each service account must be granted roles/iam.serviceAccountTokenCreator on the next in the chain.
172
+
173
+
174
+
*Type*: `array`
175
+
176
+
*Default*: `[]`
177
+
178
+
=== `stream_idle_timeout`
179
+
180
+
How long a cached stream can remain unused before being closed. Relevant when the table field uses interpolation to route to many tables.
181
+
182
+
183
+
*Type*: `string`
184
+
185
+
*Default*: `"5m"`
186
+
187
+
=== `stream_sweep_interval`
188
+
189
+
How often to check for idle streams to close.
190
+
191
+
192
+
*Type*: `string`
193
+
194
+
*Default*: `"1m"`
195
+
156
196
=== `endpoint`
157
197
158
198
Optional endpoint overrides for the BigQuery and Storage Write API clients.
@@ -113,6 +115,14 @@ each batch; all messages in the same batch are written to that table.
113
115
Description("Optional delegation chain for chained service account impersonation. Each service account must be granted roles/iam.serviceAccountTokenCreator on the next in the chain.").
Description("How long a cached stream can remain unused before being closed. Relevant when the table field uses interpolation to route to many tables.").
0 commit comments