Skip to content

Commit

Permalink
enable smoketest agent trace logging
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Oct 1, 2024
1 parent 0cea036 commit c4b0927
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion compose/sample_apps/gameserver-jdk11.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ services:
ENABLE_JMX: "true"
JMX_HOST: gameserver-jdk11
JMX_PORT: "7091"
JVM_OPTS: -javaagent:/opt/cryostat/agent.jar
JVM_OPTS: >-
-Dio.cryostat.agent.shaded.org.slf4j.simpleLogger.defaultLogLevel=trace
-javaagent:/opt/cryostat/agent.jar
4 changes: 3 additions & 1 deletion compose/sample_apps/gameserver-jdk17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ services:
ENABLE_JMX: "true"
JMX_HOST: gameserver-jdk17
JMX_PORT: "7092"
JVM_OPTS: -javaagent:/opt/cryostat/agent.jar
JVM_OPTS: >-
-Dio.cryostat.agent.shaded.org.slf4j.simpleLogger.defaultLogLevel=trace
-javaagent:/opt/cryostat/agent.jar
volumes:
- ${DIR}/compose/auth_certs:/auth_certs:z
4 changes: 3 additions & 1 deletion compose/sample_apps/gameserver-jdk21.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ services:
ENABLE_JMX: "true"
JMX_HOST: gameserver-jdk21
JMX_PORT: "7093"
JVM_OPTS: -javaagent:/opt/cryostat/agent.jar
JVM_OPTS: >-
-Dio.cryostat.agent.shaded.org.slf4j.simpleLogger.defaultLogLevel=trace
-javaagent:/opt/cryostat/agent.jar
volumes:
- ${DIR}/compose/auth_certs:/auth_certs:z
3 changes: 2 additions & 1 deletion compose/sample_apps/opensearch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ services:
discovery.type: single-node
# Reference: https://opensearch.org/docs/latest/security/configuration/demo-configuration/#setting-up-a-custom-admin-password
OPENSEARCH_INITIAL_ADMIN_PASSWORD: password4Opense@rch
OPENSEARCH_JAVA_OPTS: >
OPENSEARCH_JAVA_OPTS: >-
-Dio.cryostat.agent.shaded.org.slf4j.simpleLogger.defaultLogLevel=trace
-Dcom.sun.management.jmxremote.autodiscovery=true
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=9292
Expand Down
1 change: 1 addition & 0 deletions compose/sample_apps/quarkus-cryostat-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
JAVA_OPTS_APPEND: >-
-Dquarkus.http.host=0.0.0.0
-Djava.util.logging.manager=org.jboss.logmanager.LogManager
-Dio.cryostat.agent.shaded.org.slf4j.simpleLogger.defaultLogLevel=trace
-javaagent:/deployments/app/cryostat-agent.jar
-Dcom.sun.management.jmxremote.autodiscovery=false
-Dcom.sun.management.jmxremote
Expand Down

0 comments on commit c4b0927

Please sign in to comment.