How to use java agent in Jboss for specific application

Hello,

Can anyone clarify using of java agent for specific application. so far it is providing monitoring for all the application which is deployed.

I have used the following in bin/standalone.conf for Jboss.

export JAVA_OPTS="$JAVA_OPTS -javaagent:/path/to/elastic-apm-agent-<version>.jar"
export JAVA_OPTS="$JAVA_OPTS -Delastic.apm.service_name=my-cool-service"
export JAVA_OPTS="$JAVA_OPTS -Delastic.apm.application_packages=org.example,org.another.example"
export JAVA_OPTS="$JAVA_OPTS -Delastic.apm.server_urls=http://localhost:8200"

Thanks in advance.

Hi and thanks for your question.

you could use the ignore_urls option to ignore all urls which are mapped to the applications you don't want to monitor. For example if you have two applications which are mapped to /foo and /bar and you don't want to monitor the bar application, you can set ignore_urls=/bar*.

I hope this helps,
Felix

Thank you.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.