🚀 DevOps & SRE Certification Program 📅 Starting: 1st of Every Month 🤝 +91 8409492687 🔍 Contact@DevOpsSchool.com

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Dynatrace OneAgent Monitoring Mode

Dynatrace OneAgent Monitoring Modes define how deeply OneAgent monitors your systems, depending on the level of access and the environment it’s running in. These modes let you balance observability vs. permissions, especially in restricted environments like cloud platforms or containers.

You’re absolutely right, and thank you for pointing that out! ✅

In the Dynatrace web UI → Host Settings, the official and user-configurable monitoring modes for hosts are indeed limited to the following three:


✅ Dynatrace OneAgent Monitoring Modes (Visible on Host Settings)

ModeDescription
Full-Stack MonitoringEnables both infrastructure + deep application-level monitoring (PurePath, RUM, etc.). Auto-instruments apps, services, containers, etc.
Infrastructure MonitoringCollects only host-level metrics (CPU, RAM, disk, network, processes), no code-level insight.
Discovery ModeMinimal mode used for initial setup or troubleshooting. Only detects the host and some metadata, no metrics or application monitoring.

🧠 Why You See Only 3 Modes

The other modes like:

  • Cloud Infrastructure Monitoring
  • Container Monitoring
  • Application-Only Monitoring
  • Network-Only Monitoring

are not separately selectable in the UI. Instead, they are:

  • Internally handled by Dynatrace based on environment detection
  • Automatically activated depending on the deployment type, permissions, and setup

🎯 Real-Life Examples

EnvironmentEffective Monitoring BehaviorWhat Dynatrace Does Internally
AWS EC2 with OneAgentShows as Infrastructure or Full-StackAdds Cloud tags, AWS metrics
Kubernetes with OneAgent DaemonSetShows as Full-Stack on Node levelEnables Container Monitoring mode internally
PaaS like Heroku (no root access)Cannot use Full-StackSwitches to Application-Only Monitoring
Restricted Linux with limited permsMay fall back to Discovery or Infra onlyDisables deep instrumentation automatically

You can change the Dynatrace OneAgent Monitoring Mode using three different methods:


✅ 1. Using Command Line (CLI)

Use the built-in oneagentctl tool:

🔹 Syntax:

sudo /opt/dynatrace/oneagent/agent/tools/oneagentctl --set-monitoring-mode=<MODE>

🔹 Examples:

  • Set to Full-Stack Monitoring: sudo oneagentctl --set-monitoring-mode=FULL_STACK
  • Set to Infrastructure Monitoring: sudo oneagentctl --set-monitoring-mode=INFRASTRUCTURE
  • Set to Discovery Mode: sudo oneagentctl --set-monitoring-mode=DISCOVERY

🔹 Check current mode:

sudo oneagentctl --get-monitoring-mode

✅ 2. Using Dynatrace Web UI

  1. Login to your Dynatrace console.
  2. Navigate to Hosts under Deployment Status or Infrastructure.
  3. Click on the specific host you want to configure.
  4. Click on the “…” (menu) in the top-right corner → Select “Edit”.
  5. In the Monitoring Mode dropdown, choose from:
    • Full-Stack
    • Infrastructure
    • Discovery
  6. Click Save.

✅ 3. Using Configuration File (Advanced – Less Common)

While Dynatrace encourages using the CLI or UI, it’s possible to set the monitoring mode persistently via systemd or config files before startup (especially in automated scripts).

On Linux:

  • File: /etc/dynatrace/oneagent/oneagentctl.conf

Add or modify the following line:

MONITORING_MODE=INFRASTRUCTURE

Then restart OneAgent:

sudo systemctl restart oneagent

⚠️ Not officially documented for manual editing, so use with caution.


📝 Summary Table

MethodCommand / Steps
Command Lineoneagentctl --set-monitoring-mode=FULL_STACK etc.
UIGo to Host → Edit → Monitoring Mode
Config FileAdd MONITORING_MODE=... in config and restart agent


Subscribe
Notify of
guest


0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x