Advanced Host Configuration
The KloudMate Agent automatically collects essential host metrics (CPU, Memory, Filesystem, Uptime) from Linux and Windows systems out-of-the-box using the OpenTelemetry hostmetrics receiver. You can view these metrics immediately in the Hosts View.
If you need to collect extended metrics (like detailed process-level data, disk I/O, or network metrics) or attach cloud provider tags, you can modify the agent’s configuration following this guide.
- A running instance of the KloudMate Agent.
- Identify whether the host runs on-premises, AWS EC2, or Azure so you can use the correct resource-detection processor.
Step 1: Configuring Additional Host Metrics
Section titled “Step 1: Configuring Additional Host Metrics”To collect more metrics, update the hostmetrics receiver in your agent configuration file (typically /etc/km-agent/config.yaml on Linux).
Here is how you can extend the default configuration to include disk and network metrics:
processes: {} is useful on Linux systems. It is not typically used on Windows hosts.
Step 2: Adding Cloud Provider Metadata
Section titled “Step 2: Adding Cloud Provider Metadata”By default, the KloudMate Agent detects basic system information (like host.name). If your host runs in AWS or Azure and you want cloud-specific tags attached to your telemetry, update the processors section.
AWS EC2
Section titled “AWS EC2”Add the resourcedetection/ec2 processor to capture EC2 tags:
If you want EC2 tags on telemetry, attach an IAM role that allows ec2:DescribeTags.
Azure Virtual Machines
Section titled “Azure Virtual Machines”Add the resourcedetection/azure processor to capture Azure tags:
Step 3: Update Pipelines
Section titled “Step 3: Update Pipelines”If you added AWS or Azure resource detection processors in Step 2, ensure you add them to your metrics pipeline in the service section so they process the data before export.
Step 4: Restart the Agent
Section titled “Step 4: Restart the Agent”After modifying the configuration, restart the KloudMate Agent to apply changes.
For Linux:
For Windows:
- Open
services.msc. - Find the
KloudMate Agentservice. - Restart the service.
Step 5: Validate in KloudMate
Section titled “Step 5: Validate in KloudMate”After the agent restarts:
- open the Hosts View to view the data
- query host metrics such as
system.cpu.utilization,system.memory.utilization, or newly added metrics likesystem.network.ioin Explore - create dashboards or alerts once data is visible
Common Metric Families
Section titled “Common Metric Families”| Metric family | Examples |
|---|---|
| CPU | system.cpu.time, system.cpu.utilization, system.cpu.load_average.1m |
| Memory | system.memory.usage, system.memory.utilization |
| Disk | system.disk.io, system.disk.operations, system.disk.io_time |
| Filesystem | system.filesystem.usage, system.filesystem.utilization |
| Network | system.network.io, system.network.packets, system.network.errors |
| Paging | system.paging.usage, system.paging.faults, system.paging.operations |
| Process | system.processes.count, process.cpu.time, process.memory.usage |
For the complete upstream reference, see the hostmetrics receiver documentation.