Skip to content

Add Container start, stop count metric #4277

@moonyoungCHAE

Description

@moonyoungCHAE

Expected Behavior

Provide metrics to track the lifecycle events of Spring Kafka message listener containers:

spring_kafka_container_start_count

spring_kafka_container_stop_count

These metrics should increment each time a listener container is started or stopped.

Current Behavior

There are currently no built-in metrics that expose start and stop events for Spring Kafka message listener containers. As a result, users cannot directly monitor how often containers are started or stopped.

Context

In some use cases, message listener containers are started and stopped dynamically based on business logic. Without dedicated metrics, it is difficult to observe these lifecycle transitions or detect unintended start/stop behavior.

Introducing spring_kafka_container_start_count and spring_kafka_container_stop_count would provide better operational visibility. This would help users monitor container lifecycle activity, diagnose unexpected behavior, and improve observability in production environments.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions