Server Metrics to KloudMate with Host Metrics Receiver
This document provides a guide on gathering Linux server metrics using the OpenTelemetry (otel) host metrics receiver. Additionally, this receiver can assist in capturing metrics on a per-process basis from applications running within the Amazon EC2 instance/ Azure VMs / on-premise servers.
Step 1: Prerequisites:
- Install the OpenTelemetry collector on the specific server that requires metric monitoring. See Installing and Configuring OpenTelemetry Collector.
Step 2: Configure the host metrics receiver on the OpenTelemetry configuration file to send metrics.
Go to the /etc/otel directory and change config.yaml
Optional: To retrieve EC2 instance tags along with logs and metrics, users need to associate an IAM role with the EC2 instance that includes the EC2:DescribeTags policy. The below processor needs to be added:
Step 3: Set up the KloudMate Backend on the exporter part of the OpenTelemetry configuration file and configure the pipeline.
Step 4: Execute the provided command to restart and verify the status of the OpenTelemetry (Otel) Collector. Subsequently, monitor metrics on the KloudMate dashboard. Additionally, configure an alarm in KloudMate to receive notifications when CPU utilization for a specific application rises.
Optional: To get the metrics of the running processes on Linux system use the below host metrics receiver configuration: