How to collect collect metrics from within the guest OS
How to collect custom metrics/properties
Environment
8.16.x, 8.17.x, 8.18.x
Resolution
Install the Telegraf agent on the end point. See the official documentation and search for the corresponding OS version from Telegraf downloads.
Obtain the helper script from the cloud proxy: https://<CloudProxy>/downloads/salt/telegraf-utils.sh
Create a folder at the root path such as /opt/telegraf and create another folder inside that folder for the configuration data such as C:\telegraf\telegraf.d. Note: DO not create a folder with spaces in it as it will cause the process to fail
Copy or move the files from the telegraf download and the helper script into the folder you created e.g. /opt/telegraf
Run the windows service install command for the telegraf agent in a powershell prompt running as administrator: .\telegraf.exe --service install --config C:\telegraf\telegraf.conf --config-directory C:\telegraf\telegraf.d
Start the service: .\telegraf.exe --service start
Obtain an API authentication token from Aria Operations by using: https://<VMwareAriaOperations_IP>/suite-api/ or curl -ks -X POST https://<VMwareAriaOperations_IP>/suite-api/api/auth/token/acquire -H \"Content-Type: application/json\" -H \"Accept: application/json\" -d \"{\"username\":\"<VMwareAriaOperations_USER>\",\"password\":\"<VMwareAriaOperations_USER_PASSWORD>\"}\")
Run the helper script: .\telegraf-utils.ps1 opensource -c <Cloud Proxy IP or FQDN> -t <Aria Operations API token> -v <Aria Operations IP or FQDN>
Restart the telegraf agen: .\telegraf.exe --service stop' followed by '.\telegraf.exe --service start