Skip to content

Commit 29c6372

Browse files
authored
DOC-961 New fields metrics, lag, and wait fields redpanda and redpanda_common inputs (#156)
1 parent 0fc50e6 commit 29c6372

File tree

3 files changed

+48
-2
lines changed

3 files changed

+48
-2
lines changed

modules/components/pages/inputs/redpanda.adoc

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@ input:
5959
rack_id: ""
6060
start_from_oldest: true
6161
fetch_max_bytes: 50MiB
62+
fetch_max_wait: 5s
6263
fetch_min_bytes: 1B
6364
fetch_max_partition_bytes: 1MiB
6465
consumer_group: "" # No default (optional)
6566
commit_period: 5s
6667
partition_buffer_bytes: 1MB
68+
topic_lag_refresh_period: 5s
6769
auto_replay_nacks: true
6870
```
6971
@@ -120,6 +122,10 @@ Records are processed and delivered from each partition in the same batches as t
120122

121123
You can break batches down further using the xref:components:processors/split.adoc[`split`] processor.
122124

125+
== Metrics
126+
127+
This input emits a `redpanda_lag` metric with `topic` and `partition` labels for each consumed topic. The metric records the number of produced messages that remain to be read from each topic/partition pair by the specified consumer group.
128+
123129
== Metadata
124130

125131
This input adds the following metadata fields to each message:
@@ -128,6 +134,7 @@ This input adds the following metadata fields to each message:
128134
- `kafka_topic`
129135
- `kafka_partition`
130136
- `kafka_offset`
137+
- `kafka_lag`
131138
- `kafka_timestamp_ms`
132139
- `kafka_timestamp_unix`
133140
- `kafka_tombstone_message`
@@ -460,7 +467,7 @@ endif::[]
460467

461468
=== `sasl[].aws.credentials.role`
462469

463-
he role ARN to assume.
470+
The role ARN to assume.
464471

465472

466473
*Type*: `string`
@@ -556,6 +563,14 @@ If individual records are larger than the `fetch_max_bytes` value, brokers will
556563

557564
*Default*: `50MiB`
558565

566+
=== `fetch_max_wait`
567+
568+
The maximum period of time a broker can wait for a fetch response to reach the required minimum number of bytes (`fetch_min_bytes`).
569+
570+
*Type*: `string`
571+
572+
*Default*: `5s`
573+
559574
=== `fetch_min_bytes`
560575

561576
The minimum number of bytes that a broker tries to send during a fetch. This field is equivalent to the Java setting `fetch.min.bytes`.
@@ -604,6 +619,14 @@ Each buffer can grow slightly beyond this value.
604619

605620
*Default*: `1MB`
606621

622+
=== `topic_lag_refresh_period`
623+
624+
The interval between refresh cycles. During each cycle, this input queries the Repanda Connect server to calculate the topic lag - the number of produced messages that remain to be read from each topic/partition pair by the specified consumer group.
625+
626+
*Type*: `string`
627+
628+
*Default*: `5s`
629+
607630
=== `auto_replay_nacks`
608631

609632
Whether to automatically replay messages that are rejected (nacked) at the output level. If the cause of rejections is persistent, leaving this option enabled can result in back pressure.

modules/components/pages/inputs/redpanda_common.adoc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,13 @@ input:
4848
rack_id: ""
4949
start_from_oldest: true
5050
fetch_max_bytes: 50MiB
51+
fetch_max_wait: 5s
5152
fetch_min_bytes: 1B
5253
fetch_max_partition_bytes: 1MiB
5354
consumer_group: "" # No default (optional)
5455
commit_period: 5s
5556
partition_buffer_bytes: 1MB
57+
topic_lag_refresh_period: 5s
5658
auto_replay_nacks: true
5759
```
5860
@@ -135,6 +137,10 @@ Records are processed and delivered from each partition in the same batches as t
135137

136138
You can break batches down further using the xref:components:processors/split.adoc[`split`] processor.
137139

140+
== Metrics
141+
142+
This input emits a `redpanda_lag` metric with `topic` and `partition` labels for each consumed topic. The metric records the number of produced messages that remain to be read from each topic/partition pair by the specified consumer group.
143+
138144
== Metadata
139145

140146
This input adds the following metadata fields to each message:
@@ -143,6 +149,7 @@ This input adds the following metadata fields to each message:
143149
- `kafka_topic`
144150
- `kafka_partition`
145151
- `kafka_offset`
152+
- `kafka_lag`
146153
- `kafka_timestamp_ms`
147154
- `kafka_timestamp_unix`
148155
- `kafka_tombstone_message`
@@ -222,6 +229,14 @@ If individual records are larger than the `fetch_max_bytes` value, brokers will
222229

223230
*Default*: `50MiB`
224231

232+
=== `fetch_max_wait`
233+
234+
The maximum period of time a broker can wait for a fetch response to reach the required minimum number of bytes (`fetch_min_bytes`).
235+
236+
*Type*: `string`
237+
238+
*Default*: `5s`
239+
225240
=== `fetch_min_bytes`
226241

227242
The minimum number of bytes that a broker tries to send during a fetch. This field is equivalent to the Java setting `fetch.min.bytes`.
@@ -271,6 +286,14 @@ Each buffer can grow slightly beyond this value.
271286

272287
*Default*: `1MB`
273288

289+
=== `topic_lag_refresh_period`
290+
291+
The interval between refresh cycles. During each cycle, this input queries the Repanda Connect server to calculate the topic lag - the number of produced messages that remain to be read from each topic/partition pair by the specified consumer group.
292+
293+
*Type*: `string`
294+
295+
*Default*: `5s`
296+
274297
=== `auto_replay_nacks`
275298

276299
Whether to automatically replay messages that are rejected (nacked) at the output level. If the cause of rejections is persistent, leaving this option enabled can result in back pressure.

modules/components/pages/inputs/redpanda_migrator.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Specify a consumer group for this input to consume one or more topics and automa
9090

9191
== Metrics
9292

93-
This input emits a `input_redpanda_migrator_lag` metric with `topic` and `partition` labels for each consumed topic.
93+
This input emits an `input_redpanda_migrator_lag` metric with `topic` and `partition` labels for each consumed topic. The metric records the number of produced messages that remain to be read from each topic/partition pair by the specified consumer group.
9494

9595
== Metadata
9696

0 commit comments

Comments
 (0)