Amazon EC2 Metrics to KloudMate With Host Metrics Receiver
This document provides a guide on gathering EC2 Linux metrics using the OpenTelemetry host metrics receiver. Additionally, this receiver can assist in capturing metrics on a per-process basis from applications running within the EC2 instance.
Step 1: Prerequisites:
- Install the OpenTelemetry collector on the EC2 instance 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
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 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.