0 0 Share PDF

Dynatrace Monitoring Solution Brief for Docker Enterprise

Overview

Docker Solution Briefs enable you to integrate the Docker Enterprise with popular 3rd party ecosystem solutions for networking, load balancing, storage, logging and monitoring, access management, and more. This Solution Brief documents how to deploy Dynatrace to monitor the performance of Docker containers in a Docker Enterprise UCP Cluster environment.

Docker Enterprise includes Docker Cluster, a tool for for lifecycle management of Docker clusters. With Cluster, you use a YAML file to configure your provider’s resources. Then, with a single command, you provision and install all the resources from your configuration. The Docker Enterprise cluster was created using 'docker cluster' tool on Azure Cloud for this solution brief.

Information on Dynatrace is provided by Docker as a known, working configuration for Docker Enterprise 3.0. Docker does not provide the product support for Dynatrace. Please contact the vendor approved support methods if you have any questions or problems with Dynatrace.

Dynatrace Overview

Dynatrace is an artificial intelligence (AI) powered, full stack, automated Application Performance Management and Infrastructure Monitoring solution for programs running on-premises and in the cloud. Dynatrace manages the availability and performance of software applications and the impact on user experience in the form of deep transaction tracing, synthetic monitoring, real user monitoring, and network monitoring.

Product Benefits

  • Auto-discovery - Dynatrace Smartscape® technology automatically detects and displays all the components and dependencies that comprise your environment, providing you with a real-time blueprint of your application architecture.
  • Auto-baselining - Dynatrace uses AI to understand the difference between desirable and unwanted behaviors emerging from each component. It can also dive deep into the code to uncover methods being invoked and how they contribute to the overall performance of the system.
  • Auto-problem analysis - Dynatrace rapidly identifies failures, component involvement, and root causes. Machine learning helps evaluate issues, determine if it warrants an alert, and provide valuable insights for better business decisions.

Dynatrace’s main features

  • Hybrid multi-cloud, container, and infrastructure monitoring
  • Support for native apps, microservices and containers
  • Full stack discovery
  • Single transaction analysis
  • User behavior analytics
  • Automated root-cause analysis
  • Docker Swarm and Kubernetes integration
  • SaaS or on-premise deployment
  • Deploy, configure, and manage with zero touch
  • Intuitive dashboards pre-configured with self-learning
  • Open ecosystem with seamless integration along with APIs and platform extensions

Dynatrace Supported Technologies

AMP CakePHP IBM HTTP Server OpenTracing Scala
ASPNET Core Cassandra IBM WebSphere Openshift ServiceNow
AWS CodePipeline Citrix IBM z/OS OpsGenie Sitecore
AWS Elastic Load Balancing (ELB) Cloud Foundry JBoss Oracle Cloud Slack
AWS Lambda CouchDB Java Oracle DB Spark
ActiveMQ Couchbase Jetty Oracle HTTP Server Splunk
Akka DC/OS Jira Oracle WebLogic Spring
Amazon DynamoDB Demandware Joomla Oracle eBusiness Symfony
Amazon EC2 Docker Jython PHP TomEE
Amazon Elastic Block Store (EBS) Drupal Kubernetes PagerDuty Tomcat
Amazon RDS Elasticsearch Laravel Perl Trello
Amazon S3 Erlang Magento Pivotal VMware
Amazon Web Services Eureka Memcached Pivotal Cloud Foundry VMware Cloud on AWS
Android GlassFish Mesos Play Framework Varnish
Android app monitoring Golang Microsoft Azure PostgreSQL VictorOps
AngularJS Google Cloud Platform Microsoft IIS Python Webhooks
Ansible GraalVM Microsoft SharePoint RabbitMQ Wildfly
Apache Cordova Grails MongoDB Reactjs Windows Messaging
Apache HTTP Server Hadoop MySQL Red Hat WordPress
Azure App Service Heroku .NET Redis iOS
Azure Container Services (AKS) HipChat .NET Core Ruby iOS
Azure Virtual Machines Hyper-V Netflix OSS SAP jQuery
Azure Web Apps Hystrix Netty SAP Cloud Platform xMatters
Bitbucket IBM Bluemix Nginx SAP Hybris
C IBM Cloud NodeJS SQL Server
C++ IBM Commerce OpenStack Salesforce Commerce Cloud

Refer to Dynatrace Supported technologies for a complete updated list of the technologies it detects and supports.

Dynatrace Monitoring environment

The Dynatrace Monitoring environment consists of a Dynatrace server, Dynatrace agents and Dynatrace Activate (proxy).

Dynatrace server

  • Collects, stores and analyzes the monitoring data sent to it from the Dynatrace agents.
  • Provides a web UI for viewing and searching, and a REST API.
  • Dynatrace has both a SaaS server and an on-premise server (Dynatrace Managed Server).

Dynatrace agent

  • Dynatrace provides an agent named OneAgent for all of the major Linux distributions and Windows that needs to be deployed on all Docker node that you wish to monitor.
  • The Dynatrace agent automatically discovers the infrastructure, collects the events and metrics, and forwards them to the Dynatrace SaaS server for processing, analysis and viewing.
  • Dynatrace provides their Linux agent and Windows agent as installable binaries.
  • Dynatrace also provides their linux agent as a certified docker image in Docker Hub dynatrace/oneagent.

For more details on the Dynatrace supported Operating Systems and environments refer to Dynatrace OneAgent Supported Environments.

Dynatrace ActiveGate

  • Dynatrace Activegate is an optional proxy you can install between the Dynatrace agents and the Dynatrace Server (SaaS or on-premise).

    Refer to Dynatrace Activegate for more details on when and why you should install it.

In this Solution Brief the Dynatrace SaaS server will be used. The Dynatrace agents will be deployed and configured to send their monitoring data to the Dynatrace SaaS Server.

Docker Enterprise UCP Cluster

This Solution Brief was tested with the following Docker Enterprise components:

  • Docker Enterprise 3.0 with Docker Engine-Enterprise 19.03.2, UCP 3.2.1 and DTR 2.7.1, Dynatrace OneAgent version 1.32.1000

This Docker Enterprise environment in this Solution Brief had 6 nodes (1 manager and 5 workers).

Refer to Docker Reference Architecture: Docker Enterprise Best Practices and Design Considerations for details.

Dynatrace SaaS account

A Dynatrace SaaS account is required. You can register for a free 15-day trial Dynatrace account on https://www.dynatrace.com/.

To register for a free 15-day trial Dynatrace account:

  1. From a web browser, navigate to the URL https://www.dynatrace.com/.

  2. Click on the Free trial button.

    Free Trial of Dynatrace

  3. Enter your email address and then click on the Start free trial button.

    Free Trial of Dynatrace

  4. Enter your desired password and then click on the Continue button.

    Free Trial of Dynatrace

  5. Enter the necessary account details and then click on the Continue button.

    Free Trial of Dynatrace

  6. Select your region, click on the radio button Yes, I agree to the above terms and conditions and then click on the Create account button.

    Free Trial of Dynatrace

  7. Click on the Deploy Dynatrace button.

    Free Trial of Dynatrace

  8. You should see a screen similar to the screen below.

    Free Trial of Dynatrace

  9. You should also receive an acknowledgement signup email from Dynatrace.

    Free Trial of Dynatrace

Monitoring the Docker Enterprise UCP Cluster and Application containers

To discover your infrastructure and collect the events and metrics, the Dynatrace agent needs to be deployed on all the Docker Enterprise UCP nodes.

Docker Enterprise UCP Configuration Docker Enterprise UCP Cluster Dashboard

Deploying the Dynatrace agent

The Dynatrace agent has a startup dependency. It must be started and fully initialized on the Docker node before any of the processes you want to monitor in order for it to capture all of the required metrics for it to perform the deep process monitoring. If the Dynatrace agent is started after processes that you want monitor, you will only be able to see a limited set of metrics such as CPU or memory consumption. You would have to restart those processes in order for the Dynatrace agent to capture all of the required metrics.

There are 3 ways to deploy the Dynatrace agent on a Docker node in a Docker Enterprise UCP cluster:

  1. Deploy the Linux Dynatrace agent docker container on the Docker Enterprise UCP nodes configured for Swarm only orchestration.
  2. Deploy the Linux Dynatrace agent docker container as a Kubernetes DaemonSet (pods) on the Docker Enterprise UCP nodes for Kubernetes or Mixed orchestration.
  3. Install the Linux or Windows Dynatrace agent directly on the Docker Enterprise UCP nodes.

Because of the Dynatrace startup dependency, running the Linux Dynatrace agent as a docker container or a Kubernetes DaemonSet will not allow the Linux Dynatrace agent to be started and fully initialized before the Docker Enterprise UCP cluster containers, which will result in limited metrics on the Docker Enterprise UCP cluster containers. Therefore, to perform the deep monitoring of the Docker Enterprise Cluster, installing the Dynatrace agent directly on the Docker Enterprise UCP nodes is recommended before Docker Enterprise is installed using a configuration management tool such as Chef, Puppet, Terraform, Ansible, Cloud Init script, etc.

In this Solution Brief the Dynatrace agent will be deployed directly on the Docker Enterprise UCP nodes. If you wish to deploy the Linux Dynatrace agent as a Docker container, refer to the Dynatrace documentation Dynatrace OneAgent as a Docker container or Deploy OneAgent on Kubernetes.

Installing the Dynatrace OneAgent on Kubernetes on Docker Enterprise

Deploying Dynatrace OneAgent via DaemonSet on a Docker UCP is straightforward. There are few steps need to follow:

  1. Deploy the Dynatrace OneAgent. The OneAgent monitors kubernetes workload (services running in your application pods), the containers, middleware and underlying Linux OS. The agent deployment is done via an operator. The operator will create a daemonset that will deploy the agent in its own pod on each node of the cluster The procedure is described here:

The following information is required for this deployment:

a. tenant or Environment ID : your Dynatrace environment ID (otherwise known as a tenant ID), is included at the beginning of your Dynatrace environment´s URL

b. An API token.

c. A PaaS token, this is different than the API token.

The operator and oneagent pods will run in the dynatrace namespace

Install OneAgent Operator

  1. Setup integration with kubernetes API. This integration use a plugin in the ActiveGate that will query the Kubernetes API for cluster node resource utilization and limits as described below. To set up this integration, you need:

    a. service account with cluster role permission to access the Kubernetes API endpoint URL

    b. the Kubernetes API endpoint URL

    c. the bearer token for the service account
    Connect Docker UCP cluster to Dynatrace by setting up kubernetes integration

Installing the Dynatrace OneAgent on Docker Enterprise UCP nodes

Install the Linux Dynatrace agent on a Linux Docker Enterprise UCP node

  1. From the Dynatrace Web UI, navigate to the Deploy Dynatrace page by clicking on the Deploy Dynatrace link (bottom left). Then click on the Start installation button.

    View Dynatrace OneAgent Installer

  2. From the Download Dynatrace OneAgent page click on the Linux button.

    View Dynatrace OneAgent Installer

  3. Copy the wget command which downloads the Dynatrace agent installation bits by clicking on the Copy button to the right of the command.

    View Dynatrace OneAgent Installer

  4. Paste the wget command into a Linux command prompt and run it with root authority (sudo).

    Run the wget command

  5. Copy the command to install the Dynatrace agent by clicking on the Copy button to the right of the command.

    View Dynatrace OneAgent Installer

  6. Paste the command into a Linux command prompt and run it with root authority (sudo).

    Run the Dynatrace OneAgent Installer

If Docker Enterprise was installed prior to installing the Dynatrace agent you will need to reboot the machine.

Repeat the above Dynatrace agent installation on all of the Linux Docker nodes.

You should automate the installation of the Linux Dynatrace agent before Docker Enterprise is installed on the node using a configuration management tool such as Chef, Puppet, Terraform, Ansible, Cloud Init script, etc.

Install the Windows Dynatrace agent on a Windows Docker Enterprise UCP node

  1. From the Dynatrace Web UI, navigate to the Deploy Dynatrace page by clicking on the Deploy Dynatrace link (bottom left). Then click on the Start installation button.

    View Dynatrace OneAgent Installer

  2. From the Download Dynatrace OneAgent page click on the Windows button.

    View Dynatrace OneAgent Installer

  3. Right click on the Download agent.exe button and copy the Link to download the installation bits.

    View Dynatrace OneAgent Installer

  4. Run the following iwr command from a Powershell command prompt to download the Windows Dynatrace agent installation bits. Substitute the text dynatrace-oneagent-windows-download-link with the Windows Dynatrace agent download Link you copied in the previous step.

    iwr -outfile install_oneagent.exe -uri '**dynatrace-oneagent-windows-download-link**'
    

    Example: Run the iwr command

  5. Run the following install_oneagent.exe command from a Powershell command prompt to install the Windows Dynatrace agent.

    .\install_oneagent.exe /quiet /norestart
    

    Example: Run the iwr command

    Note: The install_oneagent.exe command runs detached in the background.

  6. Wait about a minute and then run the following command from a Powershell command prompt to display the Dynatrace agent windows service.

    net start | findstr /c:"Dynatrace OneAgent"
    

    Example: Run the iwr command

If Docker Enterprise was installed prior to installing the Dynatrace agent you will need to reboot the machine.

Repeat the above Dynatrace agent installation on all of the Windows Docker nodes.

You should automate the installation of the Windows Dynatrace agent before Docker Enterprise is installed on the node using a configuration management tool such as Chef, Puppet, Terraform, Ansible, Cloud Init script, etc.

Display the Dynatrace agents from the Dynatrace Web UI

You can display the Dynatrace agents from the Dynatrace Web UI Deployment Status page.

  1. From the Dynatrace Web UI, click on the Deployment Status link.

    Display Dynatrace Agents

  2. You can click on a Dynatrace agent to get more details.

    Display Dynatrace Agents

  3. More details are displayed which includes the processes and containers being monitored by the selected Dynatrace agent.

    Display Dynatrace Agents

Dynatrace Web Interface

Dashboards & reports

  • Dashboards - allow you to create your own custom dashboards to monitor your infrastructure and applications. Dynatrace provides a default home dashboard that provides a quick overview of your system’s health.
  • Create custom chart - Custom charts enable you to analyze any combination of monitoring metrics directly on your dashboards.
  • Reports - Dynatrace provides Service quality and Availability reports. Service quality reports are generated each week on Sundays at midnight so that when you start your work week each Monday morning you'll find a new report ready for your review. Availability reports are based on web checks that you have running in Dynatrace.

Analyze

  • Problems - Dynatrace automatically detects performance anomalies in your applications, services, and infrastructure. Dynatrace "problems" are used to report and alert on abnormal situations, such as performance degradations, improper functionality, or lack of availability (i.e., problems represent anomalies in baseline system performance).
  • User sessions - A user session, sometimes known as a "visit," is a group of user actions that are performed in your web application during a limited period of time.
  • Log files - Dynatrace automatically discovers all log files on your monitored hosts and processes. You can then browse, search and filter for information in the log files.
  • Smartscape topology - Visualize your application topology in an interactive infographic.
  • Diagnostic tools - Dynatrace provide diagnostic tools for detecting and analyzing performance problems in your application environment.

Monitor

  • Applications - Dynatrace monitors and visualizes application performance, provides all performance metrics in real time and detects and diagnoses problems automatically.
  • Synthetic - Dynatrace allows you to define Synthetic monitors (simulated user sessions) that alert you when an application is inaccessible or when performance degrades below baseline performance.
  • Transactions & services - Dynatrace captures every transaction from all applications and services.
  • Databases - Dynatrace detects and monitors all databases, captures every database statement and displays detailed health metrics for each statement.
  • Hosts - Dynatrace automatically monitors the state of a host machine along with the running processes and containers.
  • Network - Dynatrace monitors and visualizes process-specific network performance metrics like requests and retransmissions to proactively identify connection issues.
  • Technologies - Dynatrace detects and monitors over 120 technologies (clouds, applications, databases, web, integrations, etc.)
  • VMware - Dynatrace monitors and visualizes your VMware environments to understand the relationships between components such as ESXi hosts and your vCenter platform as a whole.
  • AWS - Dynatrace monitors and visualizes services running in the Amazon Web Services Cloud.
  • Azure - Dynatrace monitors and visualizes services running in the Microsoft Azure Cloud.
  • Docker - Dynatrace offers full-featured Docker monitoring and provides you with a complete picture of your Dockerized environments.

Manage

  • Deploy Dynatrace - Simple wizard to walk you through deploying the Dynatrace agent.
  • Deployment status - Display status of the deployed Dynatrace agents.
  • Settings - Configure Dynatrace monitoring settings from the Dynatrace Web UI.

Settings

You can configure and customize Dynatrace to monitor technologies and clouds and customize other settings.

Dynatrace Settings

Dashboards

You can monitor your infrastructure and applications using out of box dashboards and create your own.

Dynatrace Dashboards

Custom Charts

You can create custom charts with the desired metrics.

Create Custom Charts

Reports

You can display Service Quality and Availability Reports.

Display Reports

Problems

Dynatrace automatically detects performance anomalies and generates "problems" which you can view. You can display detailed information on a problem including the services impacted and the root cause.

Display Problems

User Sessions

You can display User Session Metrics and Monitoring Information.

Display User Session Metrics and Monitoring Information

Log Files

You can display Log Files with search and filter capabilities.

Display Log Files

Dynatrace Smartscape® Topology

Dynatrace automatically discovers your full technology stack and detects the dependencies between websites, applications, services, processes, hosts, networks, and cloud infrastructure within minutes. Your application topology is then visualized in an interactive infographic.

Display Dynatrace Smartscape Topology

Refer to Dynatrace Supported technologies for a complete updated list of the technologies it detects and supports.

Diagnostic Tools

Dynatrace provides built-in diagnostic tools for detecting and analyzing performance problems in your application environment.

Diagnostic Tools

Monitor Applications

Deep monitoring of a Tomcat application

Monitor Tomcat Application

Monitor Transactions & Services

Monitor Transactions & Services

Monitor Databases

Deep monitoring of a MySQL Database

Monitor MySQL Database

Monitor Hosts

You can display an overview of all the hosts and drill down to see the details of a specific host.

Monitor Hosts

Monitor Networks

Deep monitoring of a network

Deep monitoring of a network

Monitor Clouds and Virtualization types

  • AWS
  • VMware
  • Azure

Monitor AWS

You can configure Dynatrace to perform monitoring of services running in the AWS Cloud.

  • Elastic Compute Cloud (EC2)
  • Elastic Block Store (EBS)
  • Elastic Load Balancer (ELB)
  • Relational Database Service (RDS)
  • DynamoDB
  • Lambda

Monitor AWS Services

Monitor AWS

Monitor Docker

Dynatrace provides you with a complete picture of your Dockerized environments. Dynatrace provides container-centric monitoring perspectives on Docker images, services, and nodes.

Monitor Docker nodes

You can display an overview of all Docker nodes.

Monitor Docker

You can drill down to a specific Docker node to monitor CPU, Memory, Network and Disk utilization.

Monitor Docker

You can drill down to a specific Docker container.

Monitor Docker

Troubleshooting

Further Reading

Refer to the following links for additional information: