-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add gauges for queue channel size #3349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add gauges for queue channel size #3349
Conversation
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**
* Document new gauges for queue channel
LGTM; but NPEs in travis tests. |
spring-integration-core/src/main/java/org/springframework/integration/channel/QueueChannel.java
Outdated
Show resolved
Hide resolved
spring-integration-core/src/main/java/org/springframework/integration/channel/QueueChannel.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Michel Jung <[email protected]>
* 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 <[email protected]> Co-authored-by: Michel Jung <[email protected]>
* 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 <[email protected]> Co-authored-by: Michel Jung <[email protected]>
* 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 <[email protected]> Co-authored-by: Michel Jung <[email protected]>
@@ -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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@artembilan
Isn't this misleading? In the 5.1.x branch this might be true but 5.2.8.RELEASE
and 5.3.2.RELEASE
don't have this feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, it even misleads you when you try to upgrade from 5.1.13
to those 5.2.8
or 5.3.2
, because there is no that fix yet.
So, it was always about upgrading to the latest minor version of the particular point generation.
The
QueueChannel
provides a current size and remaining capacity metricsQueueChannel
to expose the current valuesof the size and remaining capacity
Cherry-pick to 5.3.x, 5.2.x & 5.1.x