Add gauges for queue channel size (#3349)
* Add gauges for queue channel size
The `QueueChannel` provides a current size and remaining capacity metrics
* Add Micrometer gauges into `QueueChannel` to expose the current values
of the size and remaining capacity
**Cherry-pick to 5.3.x, 5.2.x & 5.1.x**
* * Revert `@SuppressWarnings("unchecked")` for test
* Document new gauges for queue channel
* * Fix IntegrationManagementConfigurer for NPE on `metricsCaptor`
* Fix wording in meter descriptions
Co-authored-by: Michel Jung <michel.jung89@gmail.com>
Co-authored-by: Michel Jung <michel.jung89@gmail.com>
This commit is contained in:
@@ -165,6 +165,20 @@ It is possible to customize the names and tags of `Meters` created by integratio
|
||||
The https://github.com/spring-projects/spring-integration/blob/master/spring-integration-core/src/test/java/org/springframework/integration/support/management/micrometer/MicrometerCustomMetricsTests.java[MicrometerCustomMetricsTests] test case shows a simple example of how to do that.
|
||||
You can also further customize the meters by overloading the `build()` methods on builder subclasses.
|
||||
|
||||
Starting with version 5.1.13, the `QueueChannel` exposes Micrometer gauges for queue size and remaining capacity:
|
||||
|
||||
* `name`: `spring.integration.channel.queue.size`
|
||||
* `tag`: `type:channel`
|
||||
* `tag`: `name:<componentName>`
|
||||
* `description`: `The size of queue channel`
|
||||
|
||||
and
|
||||
|
||||
* `name`: `spring.integration.channel.queue.remaining.capacity`
|
||||
* `tag`: `type:channel`
|
||||
* `tag`: `name:<componentName>`
|
||||
* `description`: `The remaining.capacity of queue channel`
|
||||
|
||||
[[mgmt-channel-features]]
|
||||
==== `MessageChannel` Metric Features
|
||||
|
||||
|
||||
Reference in New Issue
Block a user