Dynatrace OpenShift: Complete Application Monitoring

Author

Reads 427

Close Up of Chart on Board
Credit: pexels.com, Close Up of Chart on Board

Dynatrace OpenShift offers complete application monitoring, allowing you to gain real-time insights into the performance of your applications and infrastructure.

This comprehensive monitoring solution provides unparalleled visibility into application performance, including detailed metrics on response times, throughput, and errors.

With Dynatrace OpenShift, you can automate the detection and diagnosis of application issues, reducing mean time to detect (MTTD) and mean time to resolve (MTTR) by up to 90%.

Dynatrace OpenShift seamlessly integrates with Red Hat OpenShift, providing a unified view of your entire application stack, from code to infrastructure.

Installation

To install Dynatrace on OpenShift, you'll first need to install the Dynatrace Operator. This can be done by accessing your live environment and selecting the Kubernetes App within the Infrastructure section, or by hitting CTRL-K and searching for Kubernetes. Then, select Connect automatically via Dynatrace Operator in the top bar.

Fill out the web form by naming the cluster/Dynakube (Custom Resource) and clicking Create token to generate a Dynatrace Operator token. The token is only available upon generation and cannot be accessed at a later time.

Credit: youtube.com, Install The Dynatrace Kubernetes Operator in 5 Minutes

To deploy the Dynatrace Operator, create a subscription YAML file named dto_subscription.yaml and download or paste the YAML spec from OperatorHub. Then, install the Dynatrace Operator by creating the subscription on OpenShift, which will create the dto_subscription.yaml object in the openshift-operators namespace.

You can confirm that the Dynatrace-operator pods are running by checking the pods in the openshift-operators namespace.

Install Demo App

To install the demo app, start by logging in to your OpenShift cluster as kubeadmin or another user with cluster-admin privileges. Make a directory to house the YAML files that will be created, which can be kept as a reference for a production deployment later or removed afterward.

Create the subscription YAML file, which will be used to install the certified OpenLiberty Operator from OperatorHub. Download or paste the YAML spec below into a new file named olo_subscription.yaml.

The next step is to create a new project/namespace to house the demo app, which will also switch the current namespace to ol-demo-app. This is a failsafe in case the namespace is omitted.

Label the namespace with the key/value label monitor: appMonitoring, so the Dynatrace operator will only monitor namespaces with this particular label.

Install Operator

Credit: youtube.com, Quay Operator Setup

To install the Dynatrace Operator, you'll need to access your live environment and select the Kubernetes App within the Infrastructure section. Fill out the web form with the cluster/Dynakube name, in this case, "dynakube-appmon".

You'll also need to create a Dynatrace Operator token, which will be displayed in a masked manner. Copy and paste the token into a password manager or secure text document.

The token is only available upon generation and cannot be accessed at a later time. To avoid manually deploying the Dynatrace Operator, you can use OperatorHub for automatic Operator updates.

To do this, switch to the openshift-operators namespace and create a subscription YAML file to deploy the certified Dynatrace Operator from OperatorHub. The YAML spec can be downloaded or pasted into a file named "dto_subscription.yaml".

Here are the key steps to install the Dynatrace Operator:

  • Create the subscription YAML file (dto_subscription.yaml)
  • Install the Dynatrace Operator by creating the subscription on OpenShift
  • Confirm that the Dynatrace-operator pods are running
  • Create a secret named dynakube-appmon in the openshift-operators namespace
  • Create the dynakube-appmon CR to trigger the operator
  • Check the dynakube-appmon CR for healthiness

After completing these steps, restart the ol-demo-app pod so that the Dynatrace webhook can inject the initContainer for OneAgent.

Monitoring

Credit: youtube.com, OpenShift Commons Briefing #52: Monitoring Microservices at Scale on OpenShift with Dynatrace

Monitoring your Red Hat OpenShift environment is crucial for understanding how your applications are performing. Dynatrace offers a truly automated approach to monitoring, making it ideal for highly dynamic, multi-workload microservice architectures like OpenShift.

Dynatrace can automatically monitor OpenShift and Kubernetes containerized processes and apps, with real-time auto discovery and OneAgent injection of Docker and CRI-O containers without code or image changes. This means you don't need developer involvement to get started.

Dynatrace scales automatically to 100k+ hosts out of the box, making it perfect for large-scale OpenShift environments. To get started with Prometheus monitoring in Dynatrace, you can follow these simple steps:

  • Enable Prometheus monitoring in Dynatrace
  • Go to Kubernetes, edit your Kubernetes cluster settings, and turn on Enable monitoring and Monitor annotated Prometheus exporters

By using Dynatrace, you can easily trace transactions across multi-cloud instances and get a comprehensive view of your OpenShift environment.

Monitoring Containers: CRI-O and Docker

Dynatrace scales automatically to 100k+ hosts out of the box, making it ideal for highly dynamic, multi-workload microservice architectures like OpenShift.

Real-time auto discovery and OneAgent injection of Docker and CRI-O containers without code or image changes is a game-changer for developers.

Credit: youtube.com, How to replace Docker with CRI-O

This means no more manual installation of different agent types or collecting and correlating metrics - it's all done automatically.

Dynatrace automatically monitors OpenShift and Kubernetes containerized processes and apps, making it easy to track transactions across multi-cloud instances.

Here are the key benefits of using Dynatrace for monitoring containers:

  • Automatically monitor OpenShift and Kubernetes containerized processes and apps
  • Real-time auto discovery and OneAgent injection of Docker and CRI-O containers without code or image changes
  • Easily trace transactions across multi-cloud instances

Enable Prometheus Monitoring

To enable Prometheus monitoring in Dynatrace, you need to go to your Kubernetes cluster settings and turn on Enable monitoring.

In Dynatrace, you can find the Kubernetes cluster settings by navigating to the Kubernetes section.

Turning on Enable monitoring will allow you to monitor your Kubernetes cluster.

For Dynatrace to monitor annotated Prometheus exporters, you need to enable Monitor annotated Prometheus exporters in your Kubernetes cluster settings.

By following these steps, you can set up Prometheus monitoring in your Dynatrace environment.

Observability

Observability is a crucial aspect of Dynatrace OpenShift, allowing you to gain comprehensive insights into your application's performance. Dynatrace unifies platform engineering and application teams on a single platform, enhancing software quality and operational efficiency.

Credit: youtube.com, OpenShift Coffee Break | Observability with Dynatrace

Dynatrace offers a full stack observability, capturing metrics, traces, logs, and other telemetry data in context. This includes Kubernetes clusters, applications, and underlying infrastructure, making it easier to identify performance issues.

Dynatrace's Smartscape technology semantically maps metrics, traces, logs, and real user data to specific Kubernetes objects, including containers, pods, nodes, and services. This simplifies analytics and problem detection.

Here are the key aspects of Dynatrace full stack observability:

  • Infrastructure health monitoring and optimization
  • Full stack observability
  • Smartscape topology mapping
  • Intelligent root cause analysis
  • Scalability and cloud-native support

Dynatrace's AI-powered root-cause analysis, Davis, automatically detects and analyzes performance issues across the entire tech stack, enabling faster troubleshooting and resolution.

OpenShift Observability

OpenShift Observability is a crucial aspect of monitoring your applications and infrastructure. It provides a unified view of your entire tech stack, including Kubernetes clusters, applications, and underlying infrastructure.

Dynatrace offers a powerful OpenShift observability solution that integrates seamlessly with cloud-native technologies and services like Istio and Prometheus. This integration enhances its monitoring capabilities and provides a comprehensive view of your entire tech stack.

Credit: youtube.com, Ask an OpenShift Admin | Ep 132 | Multicluster Observability

With Dynatrace, you can gain instant overviews of key information like the Status or the number of pods an app runs on. You can also filter out other apps using the filter bar on top of the page.

Dynatrace Operator is one of the most popular operators available in OperatorHub, making it easy to deploy and manage Dynatrace on OpenShift. This operator simplifies the process of setting up Dynatrace and provides a seamless experience.

Here are the key aspects of Dynatrace full stack Red Hat OpenShift observability:

  1. Infrastructure health monitoring and optimization: Assess the status of your infrastructure at a glance and optimize resource allocation for cost-efficiency.
  2. Full stack observability: Gain comprehensive observability across the entire stack, including Kubernetes clusters, applications, and underlying infrastructure.
  3. Smartscape topology mapping: Dynatrace uses its Smartscape technology to semantically map metrics, traces, logs, and real user data to specific Kubernetes objects.
  4. Intelligent root cause analysis: Use Davis AI to automatically detect and analyze performance issues across the entire tech stack.
  5. Scalability and cloud-native support: Dynatrace is designed to scale effortlessly in dynamic Kubernetes environments and supports GitOps practices.

By using Dynatrace for OpenShift observability, you can more easily run decoupled services and applications, which can be a monitoring nightmare. This allows organizations to enhance software quality and operational efficiency, driving innovation and business growth.

Java Observability

Java Observability is a powerful tool that helps you understand how your Java application is performing. Dynatrace automatically detects the underlying technology used by your application, such as OpenLiberty.

Credit: youtube.com, Spring Boot Observability Uncovered: Enabling & Using the Observation API

To get detailed app metrics, scroll down to the Process list and click the blue text link. This will guide you through all the metrics for OpenLiberty. You can see how Garbage collection suspension, heap memory, and threads evolve by clicking on JVM metrics.

Opening Further details gives you more insights into Java-managed memory. This is where you can find out which objects contribute most to memory allocation. Dynatrace memory profiling capabilities also help you understand which objects often survive garbage collection (GC) cycles and contribute the most to GC suspension.

Frequently Asked Questions

How to install Dynatrace on OpenShift?

To install Dynatrace on OpenShift, navigate to the OperatorHub and select the Dynatrace Operator, then follow the prompts to enter subscription information and choose an installation mode. This will guide you through the installation process in OpenShift.

Is OpenShift the same as Kubernetes?

No, OpenShift is not the same as Kubernetes, but rather a cloud-based platform built on top of Kubernetes. Think of Kubernetes as the engine and OpenShift as the vehicle that leverages Kubernetes to provide a complete platform-as-a-service (PaaS) solution.

What is OpenShift used for?

OpenShift is a platform that simplifies Kubernetes management, enhancing developer productivity and speeding up development. It streamlines Continuous Integration/Continuous Deployment (CI/CD) processes for faster and more efficient software delivery.

Rosemary Boyer

Writer

Rosemary Boyer is a skilled writer with a passion for crafting engaging and informative content. With a focus on technical and educational topics, she has established herself as a reliable voice in the industry. Her writing has been featured in a variety of publications, covering subjects such as CSS Precedence, where she breaks down complex concepts into clear and concise language.

Love What You Read? Stay Updated!

Join our community for insights, tips, and more.