Skip to content
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

Connectionpool Metrics do not repopulate when restarting an application for all MP Metric features (that support monitor metrics) #30383

Open
Channyboy opened this issue Dec 10, 2024 · 0 comments
Assignees
Labels
in:MicroProfile/Metrics release bug This bug is present in a released version of Open Liberty team:Lumberjack

Comments

@Channyboy
Copy link
Contributor

Describe the bug
Connection pool Metrics do not repopulate when restarting an application for all MP Metric features (that support monitor metrics).

The metrics are removed when the application stops.

Steps to Reproduce

  1. Deploy an application that makes use of a datasource (or datasource). During runtime of the application when a connection is created then the connection pool related metrics are created as well.
  2. Stop the application (either removal, or update of the application)
  3. Start the application and continue with runtime/business-logic.
  4. No connection pool metrics.

Expected behavior
The connection pool metrics are created based on the connection pool MBean managed by the monitor-1.0 feature. According to the API, these MBeans are created for each data source that is configured (per server/jvm). Therefore, when an application is unloaded, the datasource is still present (i.e., configured via <datasource> in the server.xml + enablement with the jdbc feature). The expected behavior is to maintain the connection pool metric until the removal of the datasource (and not through the unloading of an application).

Diagnostic information:

  • OpenLiberty Version: N/A
  • Affected feature(s) mpMetrics-x.x
  • Java Version: N/A
  • server.xml configuration (WITHOUT sensitive information like passwords)
  • If it would be useful, upload the messages.log file found in $WLP_OUTPUT_DIR/messages.log

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in:MicroProfile/Metrics release bug This bug is present in a released version of Open Liberty team:Lumberjack
Projects
None yet
Development

No branches or pull requests

1 participant