1. Cài đặt

Cài đặt Alloy trên Windows (Chạy với quyền Administrator PowerShell), thực hiện lệnh sau:

powershell -ExecutionPolicy Bypass -Command "iwr -UseBasicParsing https://s3hn.smartcloud.vn/agent/alloy/windows/install-windows.ps1 | iex"

Thao tác theo các bước sau để cài đặt alloy:

Chỉnh sửa cấu hình Alloy, để lấy metrics, logs từ dịch vụ mong muốn:

2. Kiểm tra

Chạy dịch vụ alloy dưới dạng Windows Services, mở Command Prompt chạy với quyền administrator:

sc start alloy

Kiểm tra hệ thống đã chạy thành công hay chưa:

sc query "alloy" | find "STATE" 

Trạng thái alloy thành công sẽ nhận được: