Window OS
To push Metrics to vMonitor, you need to install the Metric Agent on your server. vMonitor uses the Telegraf Agent to push metrics to the system. Currently, the Telegraf Agent supports the IAM Service Account for authentication and authorization. Follow the steps below to set up the Telegraf Agent to push metrics to vMonitor.
Telegraf Agent with Service Account
Create a Service Account and attach the policy: vMonitorMetricPush to have sufficient permissions to push Metrics to vMonitor.
To create a service account, visit here.
Select "Create a Service Account", enter a name for the Service Account, and click Next Step to assign permissions to the Service Account.
Find and select the Policy: vMonitorMetricPush, then click "Create a Service Account" to create the Service Account. The Policy: vMonitorMetricPush, created by VNG Cloud, contains the exact permissions needed to push metrics to the system.
After successfully creating the Service Account, you need to save the Client_ID and Secret_Key for the next step.
2. Download the Agent Installer for Windows
Access this link to load agent installer forWindows : https://github.com/vngcloud/vmonitor-metrics-agent/releases/download/1.26.0-2.0.1/telegraf-nightly_windows_amd64.exe
3. Install the installer using the Client_ID and Secret_Key you copied above.
Run the agent installer you downloaded above. A
fter receiving the notification, select More Info.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252F8QXi3SFMkZaGAqlaKzXN%252Fimage.png%3Falt%3Dmedia%26token%3D5ea68410-e8a2-4573-b471-2c4ecc729838&width=768&dpr=4&quality=100&sign=d3edb61e&sv=1)
Then select Run anyway to start installing the agent.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252FsvRfNTWQ6pPwVjnqGDGh%252Fimage.png%3Falt%3Dmedia%26token%3D230f804c-5afd-47f5-92cc-219846887d6a&width=768&dpr=4&quality=100&sign=725b3c1a&sv=1)
Chosse Next to continue
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252FyN2QksiHSTCJLoWG1osP%252Fimage.png%3Falt%3Dmedia%26token%3D48d485e8-8bf1-4274-8a13-a4187d91d9b0&width=768&dpr=4&quality=100&sign=502d588c&sv=1)
Enter the two pieces of information, Client_ID and Secret_Key, you copied above into the fields: IAM_CLIENT_ID and IAM_CLIENT_SECRET:
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252FJIsvpIofeR263Gwe5evd%252Fimage.png%3Falt%3Dmedia%26token%3D6024caa1-b7c0-486d-b5f3-41b931720b23&width=768&dpr=4&quality=100&sign=b51c9bd&sv=1)
Keep the default settings and select Next to continue, or if you want to change the installation directory, make the necessary changes.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252FYPSYt8XlBxeYSAeEEvB1%252Fimage.png%3Falt%3Dmedia%26token%3D1848efa8-38e8-40ce-a335-27918508b0d2&width=768&dpr=4&quality=100&sign=e6300fe6&sv=1)
Select "Accept the license," then click Next to continue.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252FbzLKwLqs2FhUpXQEq4rm%252Fimage.png%3Falt%3Dmedia%26token%3D7016cc77-d586-4635-a562-e2bd624d1076&width=768&dpr=4&quality=100&sign=e4114c17&sv=1)
Keep the default settings and select Next to continue, or you can customize the shortcut menu name for the agent.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252FhpZ5DLnu0zX9MOuHdPqu%252Fimage.png%3Falt%3Dmedia%26token%3De69dd83a-680e-4232-b51a-e43fe40d3e58&width=768&dpr=4&quality=100&sign=6d1e4f75&sv=1)
Select Install to begin the installation.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252FQcMTDAej89agtrabECQd%252Fimage.png%3Falt%3Dmedia%26token%3D473b1f28-b611-4db5-ae26-181d7b2c379d&width=768&dpr=4&quality=100&sign=f427b523&sv=1)
Select Yes to grant permissions for the agent to operate.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252Fbytf6p7BJMVvdqLgig8F%252Fimage.png%3Falt%3Dmedia%26token%3D25ce2c88-6ebe-4c39-b06a-b085e8b7db64&width=768&dpr=4&quality=100&sign=40a7b48c&sv=1)
After the installation process is complete, select Finish.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252FzY15ISlfWeJF6WR1TwIS%252Fimage.png%3Falt%3Dmedia%26token%3Dce9bda18-4563-4ee9-9916-1a028afb30a2&width=768&dpr=4&quality=100&sign=6bb453b4&sv=1)
4.After successful installation, you will see the server on the Infrastructure List/Host page.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252FVq5mVx0glfZWOcXCeEQV%252Fimage.png%3Falt%3Dmedia%26token%3Da4509805-2c6a-4b03-a972-8e77cd976b7b&width=768&dpr=4&quality=100&sign=1e328f32&sv=1)
Telegraf Agent với API_KEY (deprecated)
Notice:
We do not recommend using this method, as our system will soon stop supporting these API Keys.
Step 1: Create an API Key (if you have not created any API Key before).
Access the vMonitor Platform Product portal: https://hcm-3.console.vngcloud.vn/vmonitor/
Select Integration => then choose API Key.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252FyUmQWNcKqIGRczZfkRNi%252Fimage.png%3Falt%3Dmedia%26token%3De64bf3c2-6f3a-45d3-862e-b51daff743ee&width=768&dpr=4&quality=100&sign=b672b6de&sv=1)
Select Create an API Key to create a new one (if you have not created any API Key before).
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252Fypyi6rq0rhRlNCWy42gA%252Fimage.png%3Falt%3Dmedia%26token%3D0a198c83-d9a7-4fa3-a2df-52f2651d57b1&width=768&dpr=4&quality=100&sign=37250d0c&sv=1)
Step 2: Download Agent Installer
Access the link to download the agent installer:: https://github.com/vngcloud/vmonitor-metrics-agent/releases/download/1.23.0-1.4.0/telegraf-nightly_windows_amd64.exe
Step 3: Install Agent
Run the agent installer.
After receiving the notification, select More Info.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252FaiUiWVhowlxGp9akAo2b%252Fimage.png%3Falt%3Dmedia%26token%3D6c85b27b-4fab-49c5-8ca8-b8550294cfbb&width=768&dpr=4&quality=100&sign=8a23f3f2&sv=1)
Then select Run anyway to start installing the agent.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252FgHtmT2Dy9kcrwDbEbfzl%252Fimage.png%3Falt%3Dmedia%26token%3D3a4cd5e8-b49d-4378-b7d7-611e18ea08cf&width=768&dpr=4&quality=100&sign=7e78d6b3&sv=1)
Select Next to continue.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252FtWNay4PespDcajfU98Ln%252Fimage.png%3Falt%3Dmedia%26token%3Dbbd5f12f-2fd1-4cdb-95f7-a6840b56d024&width=768&dpr=4&quality=100&sign=4887428e&sv=1)
Return to the vMonitor Platform portal, in the API Key section, select the copy icon to copy the API Key information.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252FHXwqxt5bm3UqEWZrnuqk%252Fimage.png%3Falt%3Dmedia%26token%3D12e7266d-21e0-4ca7-88ac-903bf36b1ff6&width=768&dpr=4&quality=100&sign=b2774b0e&sv=1)
Paste the API Key information into the credentials entry field.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252FIBQ3pAjWT8GPTvcd9sj9%252Fimage.png%3Falt%3Dmedia%26token%3Df1e94095-b27f-4cfc-861f-7624c25eadd0&width=768&dpr=4&quality=100&sign=8ef1cc58&sv=1)
You can customize the installation folder if needed.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252FLWbWu580xaiy0DgbplMQ%252Fimage.png%3Falt%3Dmedia%26token%3D51e809e1-b4e9-49cc-a4ab-bbdc085010fc&width=768&dpr=4&quality=100&sign=14d14895&sv=1)
Select Accept the license, then click Next to continue.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252F06W06cT10hkUzKRHyhaL%252Fimage.png%3Falt%3Dmedia%26token%3D94b547c9-4cd0-43d2-88c4-1a8eaf25a9d9&width=768&dpr=4&quality=100&sign=46705480&sv=1)
You can customize the shortcut menu name for the agent, then select Next to continue.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252FaFV4R902JVOK2wXPSLW0%252Fimage.png%3Falt%3Dmedia%26token%3D2d5a53cf-29ac-4aa1-9a5a-880b96c419ac&width=768&dpr=4&quality=100&sign=50a4f6a4&sv=1)
Select Install to begin the installation.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252Flqt4SxFCZYISlIcr8dwY%252Fimage.png%3Falt%3Dmedia%26token%3D1594356e-29f4-4f25-938a-f80b5cb2c541&width=768&dpr=4&quality=100&sign=27ca4cc4&sv=1)
Select Yes to grant permissions for the agent to operate.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252FIUOmcSBAdkqhmToteXWk%252Fimage.png%3Falt%3Dmedia%26token%3D1154de2a-ffe6-4f9c-8a3e-e04426593212&width=768&dpr=4&quality=100&sign=b2e3d164&sv=1)
After the installation process is complete, select Finish.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252FTLaGm4VUSNXmB3li7fjP%252Fimage.png%3Falt%3Dmedia%26token%3D1ce4108b-e618-4450-bc7f-d43eb7158ca3&width=768&dpr=4&quality=100&sign=bb02d866&sv=1)
Step 4: Verify Agent Operated
Access the vMonitor Platform portal, select Infrastructure list => choose Host, then check if the hostname of the VM has appeared in the list.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252FSPrQq97S0SI9lnrTFPqg%252Fimage.png%3Falt%3Dmedia%26token%3Db22b37d1-2b6e-46d1-864f-3535b1997fd5&width=768&dpr=4&quality=100&sign=7bf3cd47&sv=1)
Click on the hostname to check the monitoring dashboard.
![](https://docs.vngcloud.vn/~gitbook/image?url=https%3A%2F%2F1985221522-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F7rE7M1L7GYcwQzNGd0aB%252Fuploads%252FJHkPTOs9m3tYvmxjEzmR%252Fimage.png%3Falt%3Dmedia%26token%3D13c63ecd-709d-4a32-a55b-86f2e2360098&width=768&dpr=4&quality=100&sign=13f6d3da&sv=1)
Last updated