Dynatrace Oneagent configuration file location
The location of the Dynatrace OneAgent configuration file can vary depending on the operating system and installation method. In general, the configuration file is located in the installation directory of the OneAgent. Here are some common locations:
- Linux: /opt/dynatrace/oneagent/agent/config.yaml
- Windows: C:\Program Files\dynatrace\oneagent\agent\config.yaml
- macOS: /Library/Application Support/dynatrace/oneagent/agent/config.yaml
OneAgent important configuration options
The configuration file contains various settings that control the behavior of the OneAgent, including the following important configurations:
tenant
: This configuration specifies the URL of the Dynatrace tenant that the OneAgent should connect to.token
: This configuration specifies the authentication token that the OneAgent should use to connect to the Dynatrace tenant.loglevel
: This configuration sets the logging level for the OneAgent, which controls the amount of detail that is logged.networkzone
: This configuration specifies the network zone that the OneAgent should use to monitor network traffic.process
: This configuration enables or disables process monitoring.database
: This configuration enables or disables database monitoring.java
: This configuration enables or disables Java monitoring.nginx
: This configuration enables or disables NGINX monitoring.docker
: This configuration enables or disables Docker container monitoring.
Oneagent Command line options
Dynatrace OneAgent provides a command-line interface (CLI) that you can use to perform various tasks related to monitoring and troubleshooting. Here are some of the common CLI commands:
./oneagentctl --version
: This command displays the version number of the OneAgent that is installed on the system../oneagentctl --status
: This command displays the status of the OneAgent, including whether it is running, enabled, and connected to the Dynatrace server../oneagentctl --restart
: This command restarts the OneAgent service../oneagentctl --send-test-events
: This command sends test events to the Dynatrace server to test the connectivity between the OneAgent and the server../oneagentctl --get-agent-config
: This command retrieves the configuration of the OneAgent, including settings related to monitoring and data collection../oneagentctl --set-agent-config
: This command allows you to set or modify the configuration of the OneAgent../oneagentctl --send-problem-notification
: This command sends a problem notification to the Dynatrace server, alerting you to any issues that may require attention../oneagentctl --send-custom-network-zone
: This command sends a custom network zone to the Dynatrace server, allowing you to define custom zones for network traffic../oneagentctl --list-services
: This command lists all services that are currently monitored by the OneAgent.
Latest posts by Rajesh Kumar (see all)
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024
- Introduction to System Operations (SymOps) - October 30, 2024