-
-
Save mohsen0/735b6aa934c6e6b5fd3d994fbbe123da to your computer and use it in GitHub Desktop.
Spring Boot Hikari New Relic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Enable hikari mbean registry in application.properties | |
spring.datasource.hikari.register-mbeans=true | |
2. Add the new relic custom instrumentation yml file in the extensions directory where new relic agent is present | |
name: hikari-db | |
version: 1.0 | |
enabled: true | |
jmx: | |
- object_name: com.zaxxer.hikari:type=Pool (SpringBootJPAHikariCP) | |
metrics: | |
- attributes: ActiveConnections, IdleConnections, ThreadsAwaitingConnection, TotalConnections | |
type: simple |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment