OpenTelemetry Support
...
Service Integration Guides
Azure Monitoring

Azure Monitor integration with Kloudmate

5min

This document provides a comprehensive guide 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.

Pre-requisite:

  1. Azure Service Principal for Authentication: You will need a service principal with appropriate permissions to access Azure Monitor APIs. Required settings for authentication: subscription_id tenant_id client_id client_secret To enable authentication follow the document: Enable Service Principal Azure. 
  2. Install the OpenTelemetry Collector on a server where it will scrape the Azure Monitor metrics and forward them to KloudMate. Installing the OpenTelemetry Collector

Step 1: Set Up the Azure Monitor Receiver in the OpenTelemetry Configuration File

  • Linux Users: Open the file located at /etc/otelcol-contrib/config.yaml using your preferred text editor.
  • Windows Users: Create a new file called config.yaml in the C:\Program Files\OpenTelemetry Collector folder. You can use Notepad or any text editor to do this.

1. In this configuration file, ensure the Azure Monitor receiver is set up to collect and send metrics.

YAML


To monitor a specific service or resource group, the user can uncomment the resourcegroup[ ] and services[ ] entries in the configuration file.

2. Configure the processor section and the KloudMate Backend exporter in the OpenTelemetry configuration file, while defining the pipeline.

YAML


Step 2: To restart and verify the status of the OpenTelemetry (Otel) Collector, follow these steps:

For Linux:

  1. Execute the following commands:
Text


These commands will restart the Otel Collector and display its current status.

For Windows:

  1. Open the Services window:
    • Press Win + R, type services.msc, and press OK.
    • Alternatively, search for "Services" in the Windows Start menu.
  2. In the Services window, locate the "OpenTelemetry Collector" service.
  3. Right-click the service and select "Restart."

After the OpenTelemetry Collector starts, it will scrape metrics from Azure Monitor and forward them to KloudMate.