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
Copy file name to clipboardExpand all lines: modules/get-started/pages/release-notes/redpanda.adoc
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,22 @@ Redpanda now supports normalization of Protobuf schemas in the Schema Registry.
39
39
40
40
You now can configure Kafka clients to authenticate using xref:manage:security/authentication#enable-sasl.adoc[SASL/PLAIN] with a single account using the same username and password. Unlike SASL/SCRAM, which uses a challenge response with hashed credentials, SASL/PLAIN transmits plaintext passwords. You enable SASL/PLAIN by appending `PLAIN` to the list of SASL mechanisms.
41
41
42
+
== New metrics
43
+
44
+
The following metrics are new in this version:
45
+
46
+
=== Consumer lag gauges
47
+
48
+
Redpanda can now expose dedicated consumer lag gauges that eliminate the need to calculate lag manually. These metrics provide real-time insights into consumer group performance and help identify issues. The following metrics are available:
Reports the maximum lag observed among all partitions for a consumer group. This metric helps pinpoint the partition with the greatest delay, indicating potential performance or configuration issues.
Copy file name to clipboardExpand all lines: modules/manage/partials/monitor-health.adoc
+123-4Lines changed: 123 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -209,13 +209,132 @@ Leaderless partitions can be caused by unresponsive brokers. When an alert on `r
209
209
210
210
Redpanda's Raft implementation exchanges periodic status RPCs between a broker and its peers. The xref:reference:public-metrics-reference.adoc#redpanda_node_status_rpcs_timed_out[`redpanda_node_status_rpcs_timed_out`] gauge increases when a status RPC times out for a peer, which indicates that a peer may be unresponsive and may lead to problems with partition replication that Raft manages. Monitor for non-zero values of this gauge, and correlate it with any logged errors or changes in partition replication.
211
211
212
-
=== Consumers
212
+
[[consumers]]
213
+
=== Consumer group lag
213
214
214
-
==== Consumer group lag
215
+
Consumer group lag is an important performance indicator that measures the difference between the broker's latest (max) offset and the consumer group's last committed offset. The lag indicates how current the consumed data is relative to real-time production. A high or increasing lag means that consumers are processing messages slower than producers are generating them. A decreasing or stable lag implies that consumers are keeping pace with producers, ensuring real-time or near-real-time data consumption.
215
216
216
-
When working with Kafka consumer groups, the consumer group lag—the difference between the broker's latest (max) offset and the group's last committed offset—is a performance indicator of how fresh the data being consumed is. While higher lag for archival consumers is expected, high lag for real-time consumers could indicate that the consumers are overloaded and thus may need their topics to be partitioned more, or to spread the load to more consumers.
217
+
By monitoring consumer lag, you can identify performance bottlenecks and make informed decisions about scaling consumers, tuning configurations, and improving processing efficiency.
217
218
218
-
To monitor consumer group lag, create a query with the xref:reference:public-metrics-reference.adoc#redpanda_kafka_max_offset[`redpanda_kafka_max_offset`] and xref:reference:public-metrics-reference.adoc#redpanda_kafka_consumer_group_committed_offset[`redpanda_kafka_consumer_group_committed_offset`] gauges:
219
+
A high maximum lag may indicate that a consumer is experiencing connectivity problems or cannot keep up with the incoming workload.
220
+
221
+
A high or increasing total lag (lag sum) suggests that the consumer group lacks sufficient resources to process messages at the rate they are produced. In such cases, scaling the number of consumers within the group can help, but only up to the number of partitions available in the topic. If lag persists despite increasing consumers, repartitioning the topic may be necessary to distribute the workload more effectively and improve processing efficiency.
222
+
223
+
Redpanda provides the following methods for monitoring consumer group lag:
224
+
225
+
- <<dedicated-gauges, Dedicated gauges>>: Redpanda brokers can internally calculate consumer group lag and expose two dedicated gauges. This method is recommended for environments where your observability platform does not support complex queries required to calculate the lag from offset metrics.
226
+
+
227
+
Enabling these gauges may add a small amount of additional processing overhead to the brokers.
228
+
- <<offset-based-calculation, Offset-based calculation>>: You can use your observability platform to calculate consumer group lag from offset metrics. Use this method if your observability platform supports functions, such as `max()`, and you prefer to avoid additional processing overhead on the broker.
229
+
230
+
==== Dedicated gauges
231
+
232
+
Redpanda can internally calculate consumer group lag and expose it as two dedicated gauges.
Reports the maximum lag observed among all partitions for a consumer group. This metric helps pinpoint the partition with the greatest delay, indicating potential performance or configuration issues.
Aggregates the lag across all partitions, providing an overall view of data consumption delay for the consumer group.
239
+
240
+
To enable these dedicated gauges, you must enable consumer group metrics in your cluster properties. Add the following settings to your Redpanda configuration:
241
+
242
+
- xref:reference:properties/cluster-properties.adoc#enable_consumer_group_metrics[`enable_consumer_group_metrics`]: A list of properties to enable for consumer group metrics. You must add the `consumer_lag` property to enable consumer group lag metrics.
243
+
- xref:reference:properties/cluster-properties.adoc#consumer_group_lag_collection_interval_sec[`consumer_group_lag_collection_interval_sec`] (optional): The interval in seconds for collecting consumer group lag metrics. The default is 60 seconds.
244
+
+
245
+
Set this value equal to the scrape interval of your metrics collection system. Aligning these intervals ensures synchronized data collection, reducing the likelihood of missing or misaligned lag measurements.
246
+
247
+
For example:
248
+
249
+
ifndef::env-kubernetes[]
250
+
[,bash]
251
+
----
252
+
rpk cluster config set enable_consumer_group_metrics '["group", "partition", "consumer_lag"]'
When these properties are enabled, Redpanda computes and exposes the `redpanda_kafka_consumer_group_lag_max` and `redpanda_kafka_consumer_group_lag_sum` gauges to the `/public_metrics` endpoint.
327
+
328
+
==== Offset-based calculation
329
+
330
+
If your environment is sensitive to the performance overhead of the <<dedicated-gauges, dedicated gauges>>, use the offset-based calculation method to calculate consumer group lag. This method requires your observability platform to support functions like `max()`.
331
+
332
+
Redpanda provides two metrics to calculate consumer group lag:
333
+
334
+
- xref:reference:public-metrics-reference.adoc#redpanda_kafka_max_offset[`redpanda_kafka_max_offset`]: The broker's latest offset for a partition.
335
+
- xref:reference:public-metrics-reference.adoc#redpanda_kafka_consumer_group_committed_offset[`redpanda_kafka_consumer_group_committed_offset`]: The last committed offset for a consumer group on that partition.
336
+
337
+
For example, here's a typical query to compute consumer lag:
Copy file name to clipboardExpand all lines: modules/reference/pages/properties/cluster-properties.adoc
+94-1Lines changed: 94 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -414,6 +414,26 @@ This is an internal-only configuration and should be enabled only after consulti
414
414
415
415
---
416
416
417
+
=== consumer_group_lag_collection_interval_sec
418
+
419
+
How often to run the collection loop when <<enable_consumer_group_metrics,`enable_consumer_group_metrics`>> contains `consumer_lag`.
420
+
421
+
Reducing the value of `consumer_group_lag_collection_interval_sec` increases the metric collection frequency, which may raise resource utilization. In most environments, this impact is minimal, but it's best practice to monitor broker resource usage in high-scale settings.
The maximum number of translations that the datalake scheduler will allow to run at a given time. If a translation is requested, but the number of running translations exceeds this value, the request will be put to sleep temporarily, polling until capacity becomes available.
854
+
855
+
*Requires restart:* Yes
856
+
857
+
*Visibility:* `tunable`
858
+
859
+
*Type:* integer
860
+
861
+
*Default:* `4`
862
+
863
+
---
864
+
865
+
=== datalake_scheduler_time_slice_ms
866
+
867
+
Time, in milliseconds, for a datalake translation as scheduled by the datalake scheduler. After a translation is scheduled, it will run until either the time specified has elapsed or all pending records on its source partition have been translated.
List of enabled consumer group metrics. Accepted Values: `group`, `partition`, `consumer_lag`.
1132
+
List of enabled consumer group metrics. Accepted values include:
1133
+
1134
+
- `group`: Enables the xref:reference:public-metrics-reference.adoc#redpanda_kafka_consumer_group_consumers[`redpanda_kafka_consumer_group_consumers`] and xref:reference:public-metrics-reference.adoc#redpanda_kafka_consumer_group_topics[`redpanda_kafka_consumer_group_topics`] metrics.
1135
+
- `partition`: Enables the xref:reference:public-metrics-reference.adoc#redpanda_kafka_consumer_group_committed_offset[`redpanda_kafka_consumer_group_committed_offset`] metric.
1136
+
- `consumer_lag`: Enables the xref:reference:public-metrics-reference.adoc#redpanda_kafka_consumer_group_lag_max[`redpanda_kafka_consumer_group_lag_max`] and xref:reference:public-metrics-reference.adoc#redpanda_kafka_consumer_group_lag_sum[`redpanda_kafka_consumer_group_lag_sum`] metrics
1137
+
+
1138
+
Enabling `consumer_lag` may add a small amount of additional processing overhead to the brokers, especially in environments with a high number of consumer groups or partitions.
1139
+
+
1140
+
Use the xref:reference:properties/cluster-properties.adoc#consumer_group_lag_collection_interval_sec[`consumer_group_lag_collection_interval_sec`] property to control the frequency of consumer lag metric collection.
1065
1141
1066
1142
*Requires restart:* No
1067
1143
@@ -1071,6 +1147,9 @@ List of enabled consumer group metrics. Accepted Values: `group`, `partition`, `
1071
1147
1072
1148
*Default:* `["group", "partition"]`
1073
1149
1150
+
*Related topics*:
1151
+
1152
+
- xref:manage:monitoring.adoc#consumers[Monitor consumer group lag]
1074
1153
---
1075
1154
1076
1155
=== enable_controller_log_rate_limiting
@@ -1712,6 +1791,20 @@ Default value for the `redpanda.iceberg.delete` topic property that determines i
1712
1791
1713
1792
---
1714
1793
1794
+
=== iceberg_disable_automatic_snapshot_expiry
1795
+
1796
+
Whether to disable automatic Iceberg snapshot expiry. This property may be useful if the Iceberg catalog expects to perform snapshot expiry on its own.
1797
+
1798
+
*Requires restart:* No
1799
+
1800
+
*Visibility:* `user`
1801
+
1802
+
*Type:* boolean
1803
+
1804
+
*Default:* `false`
1805
+
1806
+
---
1807
+
1715
1808
=== iceberg_disable_snapshot_tagging
1716
1809
1717
1810
Whether to disable tagging of Iceberg snapshots. These tags are used to ensure that the snapshots that Redpanda writes are retained during snapshot removal, which in turn, helps Redpanda ensure exactly-once delivery of records. Disabling tags is therefore not recommended, but may be useful if the Iceberg catalog does not support tags.
Copy file name to clipboardExpand all lines: modules/reference/pages/public-metrics-reference.adoc
+51-8Lines changed: 51 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -865,39 +865,82 @@ Histogram of client quota throughput per quota rule and type.
865
865
866
866
Committed offset for a consumer group, segmented by topic and partition.
867
867
868
+
To enable this metric, you must include the `partition` option in the xref:reference:properties/cluster-properties.adoc#enable_consumer_group_metrics[`enable_consumer_group_metrics`] cluster property.
869
+
868
870
*Type*: gauge
869
871
870
872
*Labels*:
871
873
872
-
* `group`
873
-
874
-
* `topic`
875
-
876
-
* `partition`
874
+
- `redpanda_group`
875
+
- `redpanda_partition`
876
+
- `redpanda_topic`
877
+
- `shard`
877
878
878
879
---
879
880
880
881
=== redpanda_kafka_consumer_group_consumers
881
882
882
883
Number of active consumers within a consumer group.
883
884
885
+
To enable this metric, you must include the `group` option in the xref:reference:properties/cluster-properties.adoc#enable_consumer_group_metrics[`enable_consumer_group_metrics`] cluster property.
886
+
884
887
*Type*: gauge
885
888
886
889
*Labels*:
887
890
888
-
* `group`
891
+
- `redpanda_group`
892
+
- `shard`
893
+
894
+
---
895
+
896
+
=== redpanda_kafka_consumer_group_lag_max
897
+
898
+
Maximum consumer group lag across topic partitions. This metric is useful for identifying the most delayed partition in the consumer group.
899
+
900
+
To enable this metric, you must include the `consumer_lag` option in the xref:reference:properties/cluster-properties.adoc#enable_consumer_group_metrics[`enable_consumer_group_metrics`] cluster property.
901
+
902
+
*Type*: gauge
903
+
904
+
*Labels*:
905
+
906
+
- `redpanda_group`
907
+
908
+
*Related topics*:
909
+
910
+
- xref:manage:monitoring.adoc#consumer-group-lag[Consumer group lag]
911
+
912
+
---
913
+
914
+
=== redpanda_kafka_consumer_group_lag_sum
915
+
916
+
Sum of consumer group lag for all topic partitions. This metric is useful for tracking the total lag across all partitions.
917
+
918
+
To enable this metric, you must include the `consumer_lag` option in the xref:reference:properties/cluster-properties.adoc#enable_consumer_group_metrics[`enable_consumer_group_metrics`] cluster property.
919
+
920
+
*Type*: gauge
921
+
922
+
*Labels*:
923
+
924
+
- `redpanda_group`
925
+
926
+
*Related topics*:
927
+
928
+
- xref:manage:monitoring.adoc#consumer-group-lag[Consumer group lag]
889
929
890
930
---
891
931
892
932
=== redpanda_kafka_consumer_group_topics
893
933
894
934
Number of topics being consumed by a consumer group.
895
935
936
+
To enable this metric, you must include the `group` option in the xref:reference:properties/cluster-properties.adoc#enable_consumer_group_metrics[`enable_consumer_group_metrics`] cluster property.
937
+
896
938
*Type*: gauge
897
939
898
940
*Labels*:
899
941
900
-
* `group`
942
+
- `redpanda_group`
943
+
- `shard`
901
944
902
945
== REST proxy metrics
903
946
@@ -1006,7 +1049,7 @@ Build information for Redpanda, including the revision and version details.
1006
1049
1007
1050
---
1008
1051
1009
-
=== redpanda_application_fips_mode
1052
+
=== redpanda_application_fips_mode
1010
1053
1011
1054
Indicates whether Redpanda is running in FIPS mode. Possible values:
0 commit comments