Skip to content

Commit

Permalink
disable jvm.threads and logback micrometer shims to avoid duplicate m…
Browse files Browse the repository at this point in the history
…etric messages

Signed-off-by: esara <endre.sara@turbonomic.com>
  • Loading branch information
esara committed May 24, 2022
1 parent 4da0f5a commit 9b70ceb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public DataSource getDataSource() {

DataSourceBuilder bob = DataSourceBuilder.create();

bob.driverClassName("com.mysql.jdbc.Driver");
bob.url(JDBC_URL);
bob.username("shipping");
bob.password("secret");
Expand Down
5 changes: 5 additions & 0 deletions shipping/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ management.endpoint.info.enabled=true
management.endpoint.health.enabled=true
management.endpoint.metrics.enabled=true
management.endpoint.env.enabled=true

# Temporarily disable micrometers to work around https://github.com/open-telemetry/opentelemetry-java/issues/4381
# TODO: remove after upgrading to open-telemetry-java 1.14.1 or later
management.metrics.enable.jvm=false
management.metrics.enable.logback=false

0 comments on commit 9b70ceb

Please sign in to comment.