Skip to content

Windows

Install the KloudMate Agent on Windows (Windows Server 2016+).

If your outbound traffic is restricted, see Before you start for the URLs and permissions to allow first.

Once installed, the Windows Agent collects:

  • Host metrics: CPU, memory, disk, and network usage
  • Logs: log files and Windows Event Log channels that you configure with log monitoring. Nothing is collected until you add a source
  • IIS traces: server spans and request-duration metrics through Event Tracing for Windows (ETW), for each application pool you turn tracing on for
  • Alerts: Configure thresholds on host metrics to notify on critical events
  • Dashboards: Pre-built and custom dashboards to visualize Windows host metrics and logs

This allows you to monitor Windows hosts, troubleshoot issues, and correlate logs with metrics for performance insights.

View all collected data in these KloudMate sections:

1. Infrastructure Monitoring

  • Monitor Windows host metrics (CPU, memory, disk, network)
  • Track host availability
  • Monitor uptime and performance trends

Infrastructure Monitoring

2. Dashboards

  • Use the pre-built Host Metrics – Windows dashboard template to quickly visualize Windows host metrics and logs
  • Build custom dashboards tailored to your host metrics, services, or logs

Creating a Dashboard

3. Log Explorer

  • Read the log files and Windows Event Log channels you configured with log monitoring
  • Search and filter logs by source, severity, or timestamp
  • Correlate logs with host metrics to troubleshoot performance issues

Log Explorer

Install the agent with one PowerShell command. If you’d rather click through the installer, see Install with the wizard.

Step 1: On the Windows host, open PowerShell as Administrator. The install stops with an error if PowerShell isn’t elevated.

Step 2: Run the install command:

irm https://cdn.kloudmate.com/scripts/install_windows.ps1 | iex

Step 3: Enter your API key and collector endpoint when asked. You’ll find your key under Settings → Agents & Pipelines → Add Agent → Windows. Press Enter at the endpoint prompt to use https://otel.kloudmate.com:4318.

The script downloads the latest installer, verifies its checksum, and installs the agent in the background, so no wizard opens. It then checks that the kmagent service is running and connected to KloudMate. If the agent can’t connect, for example because of a wrong API key, the script shows you the error.

To skip the prompts, set your key and endpoint first:

$env:KM_API_KEY="YOUR_API_KEY"; $env:KM_COLLECTOR_ENDPOINT="https://otel.kloudmate.com:4318"; irm https://cdn.kloudmate.com/scripts/install_windows.ps1 | iex

On a host that’s already configured, the script keeps the existing configuration and ignores KM_API_KEY.

Step 1: Navigate to the Settings → Agents & Pipelines section in your KloudMate account.

Step 2: Click Add Agent, select Windows, and click Continue. On the API key step, click Create backend key, or select Use existing key and paste your backend ingest key. Then click Continue.

Step 3: Download the Windows executable using the provided link.

image

Step 4: After installation completes, enter the API key and Collector Endpoint when prompted.

image

Step 5: Run the command under Check service status in PowerShell to verify the service is running.

image

To install without prompts (for Intune, Group Policy, or a configuration-management tool), pass the API key and endpoint as parameters alongside the silent flags. Run it from an elevated (Administrator) prompt.

.\kmagent-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /APIKEY=YOUR_API_KEY /ENDPOINT=https://otel.kloudmate.com:4318
  • /APIKEY= sets your workspace API key. Required.
  • /ENDPOINT= sets the collector endpoint. Optional; defaults to https://otel.kloudmate.com:4318. Use your workspace’s endpoint from Settings → Agents & Pipelines.
  • /VERYSILENT /SUPPRESSMSGBOXES /NORESTART suppress the wizard, dialog prompts, and reboot.

The service installs and starts the same as the interactive install. Replace kmagent-setup.exe with the file you downloaded.

The agent doesn’t collect any logs from the host on its own, and that includes the Windows Event Log. You choose what it reads.

To collect your own application log files, use log monitoring. In the agent’s Logs tab, point the agent at a folder and file-name pattern, then choose how to parse each line: plain text, JSON, or a regular expression. Multiline grouping, for stack traces or pretty-printed JSON, works on top of any format. You can preview the parsed records before you save. See Log monitoring.

Log monitoring also collects Windows Event Log channels, such as System and Application, and reads log-source files placed in C:\ProgramData\kmagent\logs.d. See Windows Event Log channels and Local file sources.

For a hand-written filelog receiver in manual mode, see Collect File Logs with KloudMate Agent.

The agent installs as a Windows service running as Local System. It needs that privilege level to read Internet Information Services (IIS) configuration and to query the Service Control Manager. New agents start in managed mode. See the configuration model.

  • Host metrics start flowing automatically. Logs and traces don’t, so turn on the ones you want. See Host metrics and logs.
  • eBPF does not apply on Windows. The agent gives you equivalent monitoring through Event Tracing for Windows (ETW). See Windows platform notes.
  • To add distributed tracing to .NET applications, see .NET application APM.
  • To choose what’s traced from a file on the host instead of the UI, for example on servers built from an image, write C:\ProgramData\kmagent\apm.yaml. On Windows, ebpf in the policy means ETW, which covers IIS application pools only. See Host policy.
  • Open Hosts to see host metrics
  • Go to Dashboards to visualize host performance and logs
  • Set up log monitoring, then use Logs to investigate the logs it collects
  • Configure alerts for host metric thresholds

Run the following command to uninstall the agent.

image