This shows you how to install Dynatrace on AWS Linux machine.
Complete Guide: Installing Dynatrace OneAgent on AWS EC2 Linux
Overview
This guide provides step-by-step instructions for installing Dynatrace OneAgent on an AWS EC2 Linux instance. Dynatrace is an application performance monitoring (APM) tool that provides deep insights into your infrastructure, applications, and services.
Prerequisites
Before starting, ensure you have:
• An AWS account with access to EC2 instances
• A running Linux EC2 instance (Amazon Linux, Ubuntu, or similar)
• SSH access to your EC2 instance
• A Dynatrace account (15-day free trial available at https://www.dynatrace.com/trial/)
Step 1: Create Your Dynatrace Account
Sign Up for Free Trial
1. Go to https://www.dynatrace.com/trial/ and sign up for a 15-day free trial
2. No credit card is required for the trial
3. You'll receive a welcome email with your environment details
Access Your Environment
After signing up, access your Dynatrace environment at: https://[your-environment-id].live.dynatrace.com
Step 2: Navigate to OneAgent Deployment
1. Log into your Dynatrace environment
2. Use the search function (Ctrl+K or Cmd+K) and search for 'deploy oneagent'
3. Click on 'Deployment Status' from the search results
4. Look for the 'Deploy Dynatrace' or 'Download OneAgent' section
Step 3: Generate Installation Command
Select Platform and Create Token
1. Click on the 'Linux' button to select Linux as your platform
2. Click the 'Create token' button to generate a new download token
Important: The token is shown only once. Use the copy button (clipboard icon) to copy the complete command - do NOT manually copy the text as the token is masked with dots.
Installation Command Format
The generated command will look similar to this:
wget -O Dynatrace-OneAgent-Linux.sh "https://[your-env].live.dynatrace.com/api/v1/deployment/installer/agent/unix/default/latest?arch=x86" --header="Authorization: Api-Token [your-token]"
Step 4: Install OneAgent on EC2 Instance
Connect to Your EC2 Instance
1. SSH into your EC2 Linux instance:
ssh -i your-key.pem ec2-user@your-ec2-ip
(this is your Public IPv4 address)
Run Installation Commands
2. Paste the wget command you copied from Dynatrace (use the copy button!)
3. After the download completes, run the installer with root privileges:
sudo /bin/sh Dynatrace-OneAgent-Linux-*.sh
Verify Installation
When installation is complete, you should see a success message:
Dynatrace OneAgent has successfully connected to Dynatrace Cluster Node...
Step 5: Verify Monitoring in Dynatrace
1. Return to your Dynatrace web interface
2. Navigate to 'Hosts' from the left menu
3. Within a few minutes, your EC2 instance should appear in the list
4. Click on your host to view detailed monitoring data
Common Issues and Solutions
401 Unauthorized Error
Problem: The wget command fails with '401 Unauthorized' or 'Username/Password Authentication Failed'
Solution: You manually copied the command text instead of using the copy button. The API token is masked with dots (••••) on screen. Always use the clipboard icon to copy the complete command with the real token.
Cannot Find Deployment Page
Problem: Cannot find the OneAgent deployment or installation page
Solution: Use the search function (Ctrl+K) and type 'deploy oneagent' or 'install oneagent'. Click on 'Deployment Status' from the results.
Dynatrace Monitoring Capabilities
Once OneAgent is installed, you'll have access to comprehensive monitoring data:
Linux Monitoring Dashboard
The Dynatrace interface provides a comprehensive view of your Linux hosts with real-time monitoring data.
Host Metrics
Click on any host to view detailed metrics including:
• CPU utilization and load
• Memory usage and availability
• Network traffic and connectivity
• Disk I/O and storage
• Process-level details
Log Monitoring
Dynatrace automatically collects and analyzes logs from your monitored hosts, providing:
• Real-time log streaming
• Log analysis and pattern detection
• Error detection and alerting
• Integration with host and application metrics
Conclusion
Installing Dynatrace OneAgent on AWS EC2 Linux instances is straightforward when you follow these steps. The key is to ensure you are always use the copy button for the installation command, and run the installer with root privileges. Once installed, Dynatrace provides comprehensive, AI-powered observability for your infrastructure, applications, and services.
Happy Monitoring!