Se você não usar o script auxiliar, deverá fornecer as configurações específicas necessárias no endpoint para postar métricas no proxy de nuvem. Com base no fato de a VM vCenter Server ser gerenciada ou não, as seguintes configurações devem ser fornecidas para o Telegraf de código aberto.Você deve fornecer os valores corretos para as variáveis entre <>.

Se você não usar o script auxiliar, deverá fazer o download do obrigatório_tags.sh ou obrigatório_tags.bat e fornecer o caminho para o script que você baixou e o caminho para o executável do Telegraf. Por exemplo, no código a seguir, você deve fornecer o seguinte: <Caminho para mandatário_tags.sh/bat> <caminho para o executável do telegraf>.

Para Linux, baixe o obrigatório_tags.sh do proxy de nuvem localizado em https://<CP_IP>/downloads/salt/mandatory_tags.sh.

Para o Windows, baixe o obrigatório_tags.ps1 do proxy de nuvem localizado em https://<CP_IP>/downloads/salt/mandatory_tags.ps1.
Observação: Para Windows e Linux, use o endereço IP/FQDN do proxy de nuvem relevante para <CP_IP> nos comandos anteriores e o local especificado. Para grupos de coletores ativados de alta disponibilidade de monitoramento de aplicativos, forneça o IP virtual

VM vCenter Server gerenciada

[agent]
  interval = "300s"
  round_interval = true
  metric_batch_size = 1000
  metric_buffer_limit = 2000
  collection_jitter = "0s"
  flush_interval = "60s"
  flush_jitter = "0s"
  precision = ""
  debug = false
  quiet = false
  logfile = ""
  hostname = "<VM_NAME/HOSTNAME>"
  omit_hostname = false

# Configuration for HTTP server to send metrics to
[[outputs.http]]
   url = "https://<CP_IP_or_FQDN>:8443/opensource/default/metric"
   timeout = "5s"
   method = "POST"
   insecure_skip_verify = true
   data_format = "wavefront"
   ## Additional HTTP headers
   [outputs.http.headers]
     Content-Type = "text/plain; charset=utf-8"
     vmId = "<VM_MOR>"
     vcid = "<VC_ID>"
     hostname = "<VM_NAME/HOSTNAME>"
     uuid = ""
[[inputs.exec]]
  commands = ["/bin/bash <Path to mandatory_tags.sh/bat> <path to telegraf executable>"]
  timeout = "5s"
  data_format = "influx"

VMs vCenter Server não gerenciadas

[agent]
  interval = "300s"
  round_interval = true
  metric_batch_size = 1000
  metric_buffer_limit = 2000
  collection_jitter = "0s"
  flush_interval = "60s"
  flush_jitter = "0s"
  precision = ""
  debug = false
  quiet = false
  logfile = ""
  hostname = "<VM_NAME/HOSTNAME>"
  omit_hostname = false

# Configuration for HTTP server to send metrics to
[[outputs.http]]
   url = "https://<CP_IP_or_FQDN>:8443/opensource/default/metric"
   timeout = "5s"
   method = "POST"
   insecure_skip_verify = true
   data_format = "wavefront"
   ## Additional HTTP headers
   [outputs.http.headers]
     Content-Type = "text/plain; charset=utf-8"
     uuid = "<UUID>"
     ip = "<IP_ADDRESS>"
     hostname = "<VM_NAME/HOSTNAME>"
[[inputs.exec]]
  commands = ["/bin/bash <Path to mandatory_tags.sh/bat> <path to telegraf executable>"]
  timeout = "5s"
  data_format = "influx"