From 44210f1b7237b815273d875d04578559d78ef94d Mon Sep 17 00:00:00 2001 From: Soby Chacko Date: Thu, 2 Aug 2018 09:57:17 -0400 Subject: [PATCH] Update Kafka binder metrics docs Fix the wrong metric name used in the Kafka binder metrics for consumer offset lag. Update the description. Resolves #422 --- .../src/main/asciidoc/overview.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-cloud-stream-binder-kafka-docs/src/main/asciidoc/overview.adoc b/spring-cloud-stream-binder-kafka-docs/src/main/asciidoc/overview.adoc index 12f4c797b..17a16c192 100644 --- a/spring-cloud-stream-binder-kafka-docs/src/main/asciidoc/overview.adoc +++ b/spring-cloud-stream-binder-kafka-docs/src/main/asciidoc/overview.adoc @@ -488,6 +488,6 @@ You can consume these exceptions with your own Spring Integration flow. Kafka binder module exposes the following metrics: -`spring.cloud.stream.binder.kafka.someGroup.someTopic.lag`: This metric indicates how many messages have not been yet consumed from a given binder's topic by a given consumer group. -For example, if the value of the metric `spring.cloud.stream.binder.kafka.myGroup.myTopic.lag` is `1000`, the consumer group named `myGroup` has `1000` messages waiting to be consumed from the topic calle `myTopic`. +`spring.cloud.stream.binder.kafka.offset`: This metric indicates how many messages have not been yet consumed from a given binder's topic by a given consumer group. +The metrics provided are based on the Mircometer metrics library. The metric contains the consumer group information, topic and the actual lag in committed offset from the latest offset on the topic. This metric is particularly useful for providing auto-scaling feedback to a PaaS platform.