System Requirements
Supported Distributions
- Debian-based: Debian, Ubuntu
- Red Hat-based: RHEL, CentOS, Rocky Linux, AlmaLinux, Fedora, Amazon Linux, Oracle Linux
Supported Architectures
x86_64(amd64)aarch64(arm64)
Required Tools
The installation script automatically installs missing dependencies:curlorwgetsystemctl(systemd)jq(JSON processor)- Package manager:
apt-get,dnf, oryum
Quick Installation
Install the agent with a single command:Replace
<YOUR_API_KEY> with your actual API key from KloudMate Settings.Installation Process
Download and Execute Installation Script
The script automatically detects your OS and architecture:The installer will:
- Check and install required tools (
curl,wget,systemctl,jq) - Fetch the latest release from GitHub
- Detect your OS type (Debian/RHEL) and architecture
- Download the appropriate package (.deb or .rpm)
- Install the package with dependency resolution
- Enable and start the systemd service
Installation Script Details
What the Script Does
The installation script (install_linux.sh) performs these operations:
install_linux.sh (excerpt)
Package Installation
For Debian/Ubuntu:Configuration
Configuration File Location
The agent configuration is stored at:Generated Configuration
During installation, the postinstall script generates the configuration file:/etc/kmagent/agent.yaml
Optional Environment Variables
You can customize the installation with additional variables:| Variable | Description | Default |
|---|---|---|
KM_CONFIG_CHECK_INTERVAL | How often to check for config updates | 30s |
KM_UPDATE_ENDPOINT | Remote configuration endpoint | https://api.kloudmate.com/agents/config-check |
KM_DOCKER_MODE | Enable Docker mode | false |
KM_DOCKER_ENDPOINT | Docker socket path | unix:///var/run/docker.sock |
OpenTelemetry Collector Configuration
The default collector configuration is installed at:Service Management
Systemd Service
The agent is managed by systemd at/lib/systemd/system/kmagent.service:
View Logs
Check agent logs using journalctl:Manual Installation
For air-gapped or restricted environments, you can install manually:Download Package
Download the appropriate package from GitHub Releases:
Uninstallation
Automated Uninstall
Use the uninstall script:Manual Uninstall
Troubleshooting
Installation Fails with “No Package Manager Found”
Cause: The system doesn’t have apt-get, dnf, or yum. Solution: Install a supported package manager or use manual installation.Service Fails to Start
Check logs:- Missing or invalid API key in
/etc/kmagent/agent.yaml - Invalid collector endpoint
- Network connectivity issues
- Port conflicts (4317, 4318)
Configuration File Not Generated
Cause: Environment variables not passed to package installer. Solution: Reinstall with environment variables:/etc/kmagent/agent.yaml:
Permission Denied Errors
Solution: Ensure you’re running installation commands with sudo:Architecture Mismatch
Check your architecture:x86_64→amd64(Debian) orx86_64(RPM)aarch64→arm64(Debian) oraarch64(RPM)
Next Steps
Configure Agent
Customize OpenTelemetry receivers and processors
Verify Data Collection
Confirm telemetry is flowing to KloudMate
Support
For installation issues:- 📧 Email: [email protected]
- 🐛 GitHub: Report an issue
- 📝 Logs: Check
/var/log/kmagent/andjournalctl -u kmagent