Azure Monitor integration with Kloudmate
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:
- 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.
- 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.
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.
Step 2: To restart and verify the status of the OpenTelemetry (Otel) Collector, follow these steps:
For Linux:
- Execute the following commands:
These commands will restart the Otel Collector and display its current status.
For Windows:
- Open the Services window:
- Press Win + R, type services.msc, and press OK.
- Alternatively, search for "Services" in the Windows Start menu.
- In the Services window, locate the "OpenTelemetry Collector" service.
- Right-click the service and select "Restart."
After the OpenTelemetry Collector starts, it will scrape metrics from Azure Monitor and forward them to KloudMate.