When you create your environment, OneAgent comes with a big set of features that are activated by default. Nevertheless, you always need to explicitly activate features added by newer versions of OneAgent and opt-in features, such as the automatic enrichment of log entries with the trace ID.
New OneAgent features typically are enabled globally (for the entire environment). However, you can choose to enable or disable them within the scope of a process group. Process group settings override the global settings for the same OneAgent feature.
To enable or disable OneAgent features via the Dynatrace web UI, use the OneAgent features page at the appropriate level.
Each feature on the OneAgent features page shows a list of requirements:
To enable or disable a OneAgent feature globally
To enable or disable a OneAgent feature for a process group
Go to Smartscape Topology.
Select Processes.
On the topology map, hover over the process and select the link icon to go to the process details page. For example:
On the process details page, select > Settings.
On the Process group settings page, select the OneAgent features tab.
Select Add override to add a process-specific setting that overrides the environment setting.
Type a search string in the Feature box to find and select the feature.
Set the switches as needed for the override and then select Save changes.
Using the Settings API, you can:
To be able to use the API you need an access token with Read settings (settings.read
) and Write settings (settings.write
) scopes. To learn how to obtain it, see Create an access token.
To use the Settings API
To learn the JSON format required to post your configuration, use the Get a schema endpoint. The schema ID is builtin:oneagent.features
.
[{"schemaId": "builtin:oneagent.features","scope": "PROCESS_GROUP-1","value": {"enabled": false,"key": "JAVA_LOG_ENRICHMENT_UNSTRUCTURED"}}]
You can also change settings that are applied environment-wide using the environment scope.
Dynatrace version 1.244+
[{"schemaId": "builtin:oneagent.features","scope": "Environment","value": {"enabled": true,"key": "JAVA_KAFKA_STREAMS"}}]
To send your configuration, use the Post an object endpoint.