In the resulting empty text field, enter one of the following:
For Linux: -agentpath:<DT_HOME>/agent/lib/libdtagent.so=name=<AgentName>,server=<dynaTraceCollectorName>
For Windows: -agentpath:<DT_HOME>\agent\lib\\dtagent.dll=name=<AgentName>,server=<dynatraceCollectorName>

Save the configuration changes and restart the server.

You can also set domain.xml as (<GlassFishHome>\domains\<domainname>\config\domain.xml) as shown in the following examples: