• Home
  • Deploy Dynatrace
  • Set up Dynatrace on cloud platforms
  • Microsoft Azure
  • Integrations
  • Azure cloud services
  • Azure HDInsight monitoring

Azure HDInsight monitoring

Dynatrace ingests metrics from Azure Metrics API for Azure HDInsight. You can view metrics for each service instance, split metrics into multiple dimensions, and create custom charts that you can pin to your dashboards.
On the Azure HDInsights dashboard, you get holistic insights into your Hadoop, Spark, and Kafka resources and can cover all angles of your big data monitoring in one place.

Prerequisites

  • Dynatrace version 1.196+
  • Environment ActiveGate version 1.195+

Enable monitoring

To enable monitoring for this service, you first need to set up integration with Azure Monitor.

Install OneAgent optional

For additional Hadoop, Spark, and Kafka insights, you can install OneAgent on Azure HDInsight cluster nodes.

How to install OneAgent on Azure HDInsight cluster (Linux)

Follow the steps below to install OneAgent on Azure HDInsight cluster (Linux).

Create an install script

Create an HDInsight cluster

Restart the processes

Create an install script

  1. Go to your Dynatrace environment, select Deploy Dynatrace from the left menu. Select Start installation.
  2. Select Linux. On the Install Dynatrace OneAgent on your Linux hosts page, copy the command below Use this command on the target host and the command below And run the installer with root rights into a plain text document called installdynatrace.sh, and save it to your local machine.

Example of install script

bash
wget -O Dynatrace-OneAgent-Linux-1.137.163.sh "https://YOURTENANT.live.dynatrace.com/api/v1/deployment/installer/agent/unix/default/latest?Api-Token=YOURAPITOKEN&arch=x86&flavor=default" /bin/sh Dynatrace-OneAgent-Linux-1.137.163.sh --set-app-log-content-access=1
  1. Go to Microsoft Azure Storage Explorer and upload the Dynatrace installation file installdynatrace.sh to an accessible Blob Storage Container.
  2. Click right on installdynatrace.sh and select Set public access level. In the pop-up window, set the access level to Public read access for container and blobs, and click Apply.
  3. On the top menu of the Microsoft Azure Storage Explorer window, click on "Copy URL" and save it locally for later access.

Create an HDInsight cluster

  1. Login to Microsoft Azure portal and select HDInsight clusters on the left-side menu.
  2. Select Create hdinsight cluster.
  3. Select Custom installation.
  4. Follow the creating wizard to configure basic settings, set storage settings, applications and cluster size.
  5. In the Advanced settings menu, select Script Actions.
  6. Select Submit new.
  7. In the Submit script action menu, enter Custom for the script type, choose a name, for instance Install Dynatrace, and paste the URL of the script you copied previously in the Bash script URI field. If you want to install Dynatrace OneAgent on all the nodes, select all node types (Head, Worker, Zookeeper).
  8. Select Create to save the changes and create the HDInsight cluster.

Restart the processes

Once the installation is completed, make sure to restart the processes.

  1. Select your newly created cluster on the MicrosoftAzure portal. On the Overview menu, click on your cluster URL.
  2. For each node where you chose to install Dynatrace, go to Service Actions and select Restart All.

As soon as processes are restarted, Dynatrace will start collecting metrics.

Add the service to monitoring

In order to view the service metrics, you must add the service to monitoring in your Dynatrace environment.

To add a service to monitoring
  1. In the Dynatrace menu, go to Settings > Cloud and virtualization and select Azure.
  2. On the Azure overview page, select Edit for the desired Azure instance.
  3. Go to Services and select Add service, choose the desired service name from the list, and select Add service.
  4. Select Save changes to save your configuration.

Monitor resources based on tags

You can choose to monitor resources based on existing Azure tags, as Dynatrace automatically imports them from service instances.

To monitor resources based on tags

  1. In the Dynatrace menu, go to Settings > Cloud and virtualization > Azure and select Edit for the desired Azure instance.
  2. For Resources to be monitored, select Monitor resources selected by tags.
  3. Enter the Key and Value.
  4. Select Save to save your configuration.

Note: To import the Azure tags automatically into Dynatrace, enable Capture Azure tags automatically.

Configure service metrics

Once you add a service, Dynatrace starts automatically collecting a suite of metrics for this particular service. These are recommended metrics.

Recommended metrics:

  • Are enabled by default
  • Can't be disabled
  • Can have recommended dimensions (enabled by default, can't be disabled)
  • Can have optional dimensions (disabled by default, can be enabled).

Apart from the recommended metrics, most services have the possibility of enabling optional metrics.

Optional metrics:

  • Can be added and configured manually
To add and configure metrics
  1. In the Dynatrace menu, go to Settings > Cloud and virtualization and select Azure.
  2. On the Azure overview page, scroll down and select Edit for the desired Azure instance.
  3. Go to Services and select Manage services.
  4. To add a metric, select the service for which you want to add metrics.
  5. Select Add new metric.
  6. From the menu, select the metric you want.
  7. Select Add metric to add the metric to monitoring.
  8. To configure a metric, select Edit.
  9. Select Apply to save your configuration.

View service metrics

You can view the service metrics in your Dynatrace environment either on the custom device overview page or on your Dashboards page.

View metrics on the custom device overview page

To access the custom device overview page

  1. In the Dynatrace menu, go to Technologies.
  2. Filter by service name and select the relevant custom device group.
  3. Once you select the custom device group, you're on the custom device group overview page.
  4. The custom device group overview page lists all instances (custom devices) belonging to the group. Select an instance to view the custom device overview page.

View metrics on your dashboard

Once you add a service to monitoring, a preset dashboard for the respective service containing all recommended metrics is automatically created on your Dashboards page. You can look for specific dashboards by filtering by Preset and then by Name.

Note: For existing monitored services, you might need to resave your credentials for the preset dashboard to appear on the Dashboards page. To resave your credentials, go to Settings > Cloud and virtualization > Azure, select the desired Azure instance, then select Save.

You can't make changes on a preset dashboard directly, but you can clone and edit it. To clone a dashboard, open the browse menu (…) and select Clone.
To remove a dashboard from the dashboards list, you can hide it. To hide a dashboard, open the browse menu (…) and select Hide.

Note: Hiding a dashboard doesn't affect other users.

Clone hide azure

Hdinsights azure

Set up a management zone

To import a dashboard for Azure HDInsight, you need to set up a management zone to limit the entities displayed on the dashboard to cluster nodes only and exclude other hosts not relevant to the service.

When you create a management zone for this dashboard:

  1. Create a rule that identifies hosts based on a common property:
    • Host name contains the hdi string
  2. Create a rule that identifies custom devices based on a common property:
    • Custom device group contains the HDInsight string.
  3. Create a rule that identifies services based on a common property:
    • Service technology: Apache Hadoop
    • Service technology: Apache Hadoop Distributed File System
    • Service technology: Spark
Example

Azure management zone

After you create the management zone, assign it to your dashboard (from the dashboard, select Edit > Settings > Default management zone). For more information, see Dashboard timeframe and management zone.

Available metrics

NameDescriptionDimensionsUnitRecommended
CategorizedGatewayRequestsNumber of gateway requests by categories (1xx/2xx/3xx/4xx/5xx)HttpStatusCount
GatewayRequestsNumber of gateway requestsHttpStatusCount✔️
NumActiveWorkersNumber of active workersMetricNameCount✔️