OpenTelemetry Support
Service Integration Guides

Prometheus Monitoring

5min

This document is primarily designed for users who have previously integrated Prometheus with their services and are using it for metrics monitoring.

Prometheus is an open-source tool for monitoring metrics. It collects and stores data as a time series, capturing metrics that evolve over time.

Prerequisite:

  1. The OpenTelemetry Collector must be installed and running. It is recommended that the collector be run on the same server as Prometheus.
  2. The user must sign up for KloudMate and obtain an API authentication key.
  3. The user must have access to the Prometheus YAML configuration file.

Step 1:

  • Access the server and open the Prometheus configuration file located at /etc/prometheus/prometheus.yaml.
Text

  • Copy the contents of this file and paste them into a text editor, such as Notepad.

Step 2: Configure the Prometheus receiver in the OpenTelemetry configuration file to send metrics.

Navigate to the /etc/otel directory and open config.yaml. Paste the copied Prometheus configuration into the config.yaml file.

Text


For example,

Text


Please verify the indentation after adding prometheus configuration.

Step 3: Add the required processor and exporter on the edited open telemetry configuration file.

Text


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.

sudo systemctl restart otelcol-contrib sudo systemctl status otelcol-contrib