도우미 스크립트를 사용하지 않는 경우 클라우드 프록시에 메트릭을 게시하기 위해 엔드포인트에 필요한 특정 구성을 제공해야 합니다. VM이 관리인지 관리되지 않음인지에 따라 오픈 소스 Telegraf에 대해 다음 구성을 제공해야 합니다. <>로 묶인 변수에 대해 올바른 값을 제공해야 합니다.
도우미 스크립트를 사용하지 않는 경우 mandatory_tags.sh 또는 mandatory_tags.bat를 다운로드하고 다운로드한 스크립트의 경로와 Telegraf 실행 파일의 경로를 제공해야 합니다. 예를 들어 다음 코드에서 다음을 제공해야 합니다. <Path to mandatory_tags.sh/bat> <path to telegraf executable>.
Linux의 경우 https://<CP_IP>/downloads/salt/mandatory_tags.sh에 위치한 클라우드 프록시에서 mandatory_tags.sh를 다운로드합니다.
Windows의 경우 https://<CP_IP>/downloads/salt/mandatory_tags.ps1에 위치한 클라우드 프록시에서 mandatory_tags.ps1을 다운로드합니다.
관리 VM
[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/FQDN>/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"
관리되지 않는 VM
[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/FQDN>/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"