Available CLI Tools
kmagent
General-purpose agent for VMs, bare metal, and Docker environments
kubeagent
Kubernetes-native agent with ConfigMap-based configuration
Key Differences
| Feature | kmagent | kubeagent |
|---|---|---|
| Environment | VMs, bare metal, Docker | Kubernetes only |
| Configuration | File-based (YAML) + CLI flags | Environment variables + ConfigMap |
| Service Management | System service support | Runs as pod/daemonset |
| Remote Config | Polling-based updates | ConfigMap watch |
| Docker Mode | Optional specialized mode | N/A |
Common Configuration
Both agents share common configuration options:Authentication
API key for authenticating with KloudMate services. Used to identify your agent and authorize configuration updates.
Collector Endpoint
OpenTelemetry exporter endpoint where telemetry data is sent. Supports HTTP/HTTPS protocols.
Configuration Updates
Interval in seconds between checks for remote configuration updates. Set to
0 to disable automatic updates.Installation Paths
Default configuration file locations vary by operating system:The configuration directory is automatically created if it doesn’t exist, with
0755 permissions on Unix systems.Configuration File Format
Both agents use YAML configuration files. The CLI flags can also be specified in the agent configuration file:agent-config.yaml
Environment Variables
All CLI flags can be set via environment variables with theKM_ prefix:
Configuration Priority
Configuration values are loaded in the following priority order (highest to lowest):Version Information
Both agents support the--version flag to display version information:
KM_AGENT_VERSION environment variable for tracking and debugging.
Logging
The agents use structured JSON logging with automatic log rotation:- Format: JSON with ISO8601 timestamps
- Rotation: 10MB max file size
- Retention: 7 days, 1 backup file
- Compression: Old logs are automatically compressed
- Output: Both file and console (console shows debug level)
Next Steps
kmagent Reference
Complete command reference for the general-purpose agent
kubeagent Reference
Kubernetes-specific agent documentation