The service dependency views are driven by tags (internally called 'apptags') that correspond to pre-selected AWS or Azure tags.

You can change which AWS/Azure tags get converted to apptags by modifying the relevant config file for the integration...


For Amazon:

Modify this config file:

/opt/wildfly/standalone/deployments/collector-plugins/awscollector.ear/lib/config.jar/runtime.properties


Adjust this property in that file to amend the set of tags that considered for apptags:

Amazon.apptags.keys=Application,Service,Owner,Function,application,service,owner,function


For Azure:

Modify this config file:

/opt/wildfly/standalone/deployments/collector-plugins/AzureCollector.ear/lib/config.jar/runtime.properties


Adjust this property in that file to amend the set of tags that considered for apptags:

Azure.apptags.keys=Application,Service,Owner,Function,application,service,owner,function




Be aware that these tags keys are considered case sensitive.

Be aware not to include whitespace even around the commas (unless of course the tag key actually has whitespace in its name)



Restart the service after saving these files for the config to take effect:

sudo service wildfly restart



NOTE: When using containers you must either kill the wildfly PID (wildfly will automatically restart) or restart the container.


1. Get a bash console for the container
        
docker exec -i -t container_name bash
2. 
Find the PID that wildfly is running under
        ps -aux | grep wildfly
3. 
Kill the PID
        kill wildfly_pid
4. 
Make sure wildfly is restarted
        ps -aux | grep wildfly

See below for output showing how to do this. The commands are bolded and the PIDs in red:

root@ubuntu-16:~# docker exec -i -t hyperglance bash
[root@2f7a1d244ff1 /]#
[root@2f7a1d244ff1 /]#
[root@2f7a1d244ff1 /]# ps -aux | grep wildfly
wildfly     18  0.0  0.1  11640  2596 ?        S    12:50   0:00 /bin/sh /opt/wildfly/bin/standalone.sh -c standalone.xml
wildfly     98  135 33.7 3660904 691492 ?      Sl   12:50   0:33 /opt/wildfly/java-x64/bin/java -D[Standalone] -server -Xms64m -Xmx1024m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -enableassertions -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Dorg.jboss.security.ignoreHttpsHost=true -Dorg.jboss.boot.log.file=/opt/wildfly/standalone/log/server.log -Dlogging.configuration=file:/opt/wildfly/standalone/configuration/logging.properties -jar /opt/wildfly/jboss-modules.jar -mp /opt/wildfly/modules org.jboss.as.standalone -Djboss.home.dir=/opt/wildfly -Djboss.server.base.dir=/opt/wildfly/standalone -c standalone.xml
root       281  0.0  0.1  12472  2212 ?        S+   12:50   0:00 grep --color=auto wildfly
[root@2f7a1d244ff1 /]# kill 98
[root@2f7a1d244ff1 /]# ps -aux | grep wildfly
wildfly    289  0.0  0.1  11640  2716 ?        S    12:50   0:00 /bin/sh /opt/wildfly/bin/standalone.sh -c standalone.xml
wildfly    336  0.0  3.0 3250288 62504 ?       Sl   12:50   0:00 /opt/wildfly/java-x64/bin/java -D[Standalone] -server -Xms64m -Xmx1024m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -enableassertions -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Dorg.jboss.security.ignoreHttpsHost=true -Dorg.jboss.boot.log.file=/opt/wildfly/standalone/log/server.log -Dlogging.configuration=file:/opt/wildfly/standalone/configuration/logging.properties -jar /opt/wildfly/jboss-modules.jar -mp /opt/wildfly/modules org.jboss.as.standalone -Djboss.home.dir=/opt/wildfly -Djboss.server.base.dir=/opt/wildfly/standalone -c standalone.xml
root       350  0.0  0.1  12472  2228 ?        S+   12:50   0:00 grep --color=auto wildfly
[root@2f7a1d244ff1 /]#