Windows Server Metrics to KloudMate Using Host Metrics Receiver
This section explains how to collect metrics from Windows Server and ingest them into KloudMate using Open Telemetry.
In this method, the OpenTelemetry hostmetrics receiver is used. The Host Metrics receiver generates metrics about the host system scraped from various sources. This is intended to be used when the collector is deployed as an agent.
Step 1: Prerequisites:
- Ensure that you have a Windows server running.
Step 2: Install the Open Telemetry Collector on Windows Server
1. Download the OpenTemetry Collector for Windows:
- Choose and download the correct version of the OpenTelemetry Collector for Windows. Windows releases are packaged as gzipped tarballs (.tar.gz). Every Collector release includes an otelcol.exe executable that you can run after unpacking.
2. Run the installer:
- Locate the downloaded installer executable
- Right-click on the installer file and select "Run as administrator."
- Follow the installation wizard's instructions to complete the installation.
Step 3: Create an OpenTelemetry Configuration YAML File
Create a YAML configuration file using a text editor like Notepad and customize the configuration YAML file based on your requirements.
- Configure the host metrics receiver on the OpenTelemetry configuration file to send metrics.
Step 4: Configure the processor part to detect resource information from the host and append or override the resource value in telemetry data with this information.
- AWS EC2:
Optional: To retrieve AWS EC2 instance tags along with logs and metrics, you need to associate an IAM role with the EC2 instance that includes the EC2:DescribeTags policy. The processor below needs to be added:
- Azure Virtual Machines:
Step 5: Set up the KloudMate Backend on the exporter part of the OpenTelemetry configuration file and configure the pipeline.
Step 6: Commands to follow
- Run the following command in the command prompt or PowerShell to generate the telemetry data from where otelcol.exe was downloaded. Mention correct path to the yaml file.