OpenTelemetry Support
...
Service Integration Guides
Azure Monitoring

Auto-Integration with Azure Monitor (Azure CLI Access required)

8min

This document provides an automated approach to integrating Azure Monitor with KloudMate using the OpenTelemetry Receiver. The Azure Monitor OpenTelemetry Receiver allows you to scrape telemetry data from Azure Monitor resources and send them to KloudMate for centralized monitoring and analysis.

Prerequisites

Ensure the following prerequisites are met before proceeding:

  • Azure CLI installed on your Linux system.
  • An Azure User with the following roles:
    • User Access Administrator
    • Contributor

This process will create a small Azure Virtual Machine (VM) and integrate OpenTelemetry for monitoring. Before proceeding, ensure that you have the necessary permissions and resources available.

Resources that will be created

During this process, the following resources will be provisioned:

  1. Azure AD Application:
    • A Microsoft Entra ID App with a service principal assigned the Reader role for the specified subscription.
  2. Virtual Machine Configuration:
    • VM Type: Standard_B2s
    • OS Image: Ubuntu 22.04
    • Disk Size: 30 GB
    • Location: East US

Step 1: Login to Azure

Login to your Azure account using the Azure CLI:

az login

Step 2: Create the Integration Script

1. Create a file named azure-kloudmate.sh and paste the following content inside it:

vim azure-kloudmate.sh

2. Paste the following script into the file:

Bash


3. Make the script executable and run it:

chmod +x azure-kloudmate.sh

4. Execute the script with the required parameters:

./azure-kloudmate.sh <App_Name> <Subscription_ID>

5. Follow the on-screen instructions to complete the setup.

Step 3: Verify Azure Metrics in KloudMate

After completing the setup, follow these steps to confirm that KloudMate is receiving Azure metrics:

  1. Log into your KloudMate account.
  2. Navigate to Explorer or Dashboards.
  3. Filter for Azure-specific metrics.
    • If data is flowing correctly, you should see the metrics appearing in real-time.
  4. Troubleshoot if no data appears:
    • Recheck your Azure Monitor configuration.
    • Ensure the required permissions are set correctly.