-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Document that application.conf is not read by default when using the Cassandra auto-configuration #21787
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
Comments
Your Using @Bean
DriverConfigLoaderBuilderCustomizer metricsCustomizer() {
return (builder) -> {
builder.withStringList(DefaultDriverOption.METRICS_SESSION_ENABLED,
Arrays.asList("connected-nodes", "cql-requests"));
builder.withStringList(DefaultDriverOption.METRICS_NODE_ENABLED,
Arrays.asList("pool.open-connections", "pool.in-flight"));
};
} We should probably update the documentation to clarify that |
After changing my code to use above as suggested. Its Skip the properties and returns empty as earlier for cqlsession.getMetrics() |
Sorry, that was a typo in my code snippet. I've edited it above to correct it. It should have read |
Thanks Solved my problem |
Uh oh!
There was an error while loading. Please reload this page.
CqlSession.getMetrics()
returning null value, even after configuration for enabling the metrics has been added to it.application.properties:
The text was updated successfully, but these errors were encountered: