Skip to main content
Get started with KloudMate Agent in minutes. This guide will walk you through installation and basic configuration on your preferred platform.

Prerequisites

Before installing KloudMate Agent, ensure you have:

API Key

Obtain your API key from the KloudMate dashboard

Collector Endpoint

Default: https://otel.kloudmate.com:4318

Platform Access

Appropriate permissions for your deployment platform

Network Access

Outbound HTTPS access to the collector endpoint

Choose Your Platform

Select your deployment platform to get started:

Linux Installation

Install KloudMate Agent on Linux using our automated installation script.
1

Set Environment Variables

Set your API key and collector endpoint:
export KM_API_KEY="<YOUR_API_KEY>"
export KM_COLLECTOR_ENDPOINT="https://otel.kloudmate.com:4318"
2

Run Installation Script

Download and execute the installation script:
bash -c "$(curl -L https://cdn.kloudmate.com/scripts/install_linux.sh)"
The script will:
  • Detect your Linux distribution (Debian/Ubuntu or RHEL-based)
  • Install required dependencies (curl, wget, systemctl, jq)
  • Download the appropriate package (.deb or .rpm)
  • Install the package and configure the agent
  • Start the agent as a systemd service
3

Verify Installation

Check that the agent service is running:
sudo systemctl status kmagent
You should see output indicating the service is “active (running)”.
If you prefer manual installation:
  1. Download the package from GitHub Releases
  2. Install using your package manager:
sudo dpkg -i kmagent_*.deb
  1. Configure environment variables in /etc/kmagent/agent-config.yaml
  2. Start the service: sudo systemctl start kmagent

Configuration

After installation, the agent uses default configuration suitable for most environments. You can customize the configuration using:

Environment Variables

Key environment variables for all platforms:
VariableDescriptionDefault
KM_API_KEYAuthentication key for the collectorRequired
KM_COLLECTOR_ENDPOINTOTLP HTTP endpoint URLhttps://otel.kloudmate.com:4318
KM_CONFIG_CHECK_INTERVALRemote config update interval (seconds)60
KM_UPDATE_ENDPOINTRemote configuration API endpointhttps://api.kloudmate.com/agents/config-check
See the Environment Variables reference for the complete list.

Default Configuration

The agent ships with sensible defaults:
# /etc/kmagent/config.yaml (Linux)
# /usr/local/etc/kmagent/config.yaml (macOS)
receivers:
  otlp:
    protocols:
      http:
        endpoint: 0.0.0.0:4318
  hostmetrics:
    collection_interval: 60s
    scrapers:
      - cpu
      - memory
      - disk
      - filesystem
      - network

processors:
  batch:
    timeout: 10s
    send_batch_size: 1024
  resourcedetection:
    detectors: [system, env]

exporters:
  otlphttp:
    endpoint: ${env:KM_COLLECTOR_ENDPOINT}
    headers:
      authorization: "Bearer ${env:KM_API_KEY}"

service:
  pipelines:
    metrics:
      receivers: [otlp, hostmetrics]
      processors: [resourcedetection, batch]
      exporters: [otlphttp]
For advanced configuration options, see the Configuration Overview.

Verification

After installation, verify that telemetry data is flowing:
1

Check Agent Status

Verify the agent is running:
sudo systemctl status kmagent
2

Verify Data Collection

Check that metrics are being collected. For Linux/Docker:
curl http://localhost:13133/
For Kubernetes:
kubectl port-forward -n km-agent svc/km-agent-daemonset 13133:13133
curl http://localhost:13133/
A healthy response indicates the collector is running.
3

View in Dashboard

Log into your KloudMate dashboard to verify that metrics are appearing for your host/cluster.

Uninstallation

Run the uninstall script:
bash -c "$(curl -L https://cdn.kloudmate.com/scripts/uninstall_linux.sh)"
Or manually:
sudo systemctl stop kmagent
sudo systemctl disable kmagent
sudo apt remove kmagent  # Debian/Ubuntu
sudo yum remove kmagent  # RHEL/CentOS

Next Steps

Now that you have KloudMate Agent running, explore these topics:

Platform-Specific Guides

Detailed installation guides for each platform

Remote Configuration

Learn how to manage agent configuration remotely

Auto-Instrumentation

Enable automatic instrumentation for your applications

OpenTelemetry Components

Explore the available receivers, processors, and exporters

Getting Help

If you encounter issues:

Troubleshooting

Common issues and solutions

GitHub Issues

Report bugs or request features

Documentation

Complete KloudMate documentation

Email Support

Contact the KloudMate team

Build docs developers (and LLMs) love