물리적 서버를 모니터링하면 물리적 서버에서 실행되는 Hyper-V 애플리케이션 서비스의 런타임 메트릭을 수집하는 데 도움이 됩니다. Hyper-V 애플리케이션 서비스에 대해 수집되는 메트릭에 대한 자세한 내용은 HyperV 메트릭을(를) 참조하십시오.

Hyper-V 애플리케이션 서비스 메트릭 수집은 다음 운영 체제에서 지원됩니다.
  • Windows Server 2016
  • Windows Server 2019

대상 물리적 서버에서 실행되는 Hyper-V 애플리케이션 서비스를 모니터링하려면 다음 단계를 완료합니다.

프로시저

  1. 샘플 스크립트를 실행하거나 스크립트를 사용하거나 사용하지 않고 인증서에 서명하여 대상 물리적 서버의 Telegraf 구성을 업데이트합니다.
    [[inputs.win_perf_counters]]
      plugin_name_override="hyperv"
    [[inputs.win_perf_counters.object]]
      ObjectName = "Hyper-V Virtual Machine Health Summary"
      Instances = ["------"]
      Measurement = "hyperv.vm.health"
      Counters = ["Health Ok", "Health Critical"]
    [[inputs.win_perf_counters.object]]
      ObjectName = "Hyper-V Dynamic Memory VM"
      Instances = ["*"]
      Measurement = "hyperv.vm.memory"
      Counters = ["Physical Memory", "Added Memory", "Guest Visible Physical Memory"]
    [[inputs.win_perf_counters.object]]
      ObjectName = "Hyper-V Hypervisor Virtual Processor"
      Instances = ["*"]
      Measurement = "hyperv.hypervisor.virtual.processor"
      Counters = ["% Guest Run Time", "% Hypervisor Run Time", "% Total Run Time"]
    [[inputs.win_perf_counters.object]]
      ObjectName = "Hyper-V Hypervisor Root Virtual Processor"
      Instances = ["*"]
      Measurement = "hyperv.hypervisor.root.virtual.processor"
      Counters = ["% Guest Run Time", "% Hypervisor Run Time", "% Total Run Time"]
      IncludeTotal = true
    [[inputs.win_perf_counters.object]]
      ObjectName = "Hyper-V Virtual IDE Controller (Emulated)"
      Instances = ["*"]
      Measurement = "hyperv.virtual.ide.controller"
      Counters = ["Write Bytes/sec", "Read Bytes/sec", "Written Sectors/sec", "Read Sectors/sec"]
    [[inputs.win_perf_counters.object]]
      ObjectName = "Hyper-V Virtual Network Adapter"
      Instances = ["*"]
      Measurement = "hyperv.virtual.net.adapter"
      Counters = ["Bytes/sec", "Bytes Received/sec", "Bytes Sent/Sec", "Packets Sent/sec", "Packets Received/sec", "Packets/sec"]
    [[inputs.win_perf_counters.object]]
      ObjectName = "Hyper-V Legacy Network Adapter"
      Instances = ["*"]
      Measurement = "hyperv.legacy.net.adapter"
      Counters = ["Bytes Dropped", "Bytes Received/sec", "Bytes Sent/Sec"]
      [[inputs.win_perf_counters.object]]
      ObjectName = "Hyper-V Hypervisor Partition"
      Instances = ["*"]
      Measurement = "hyperv.hypervisor.partition"
      Counters = ["Virtual Processors"]
    [[inputs.win_perf_counters.object]]
      ObjectName = "Hyper-V Virtual Storage Device"
      Instances = ["*"]
      Measurement = "hyperv.virtual.storage.device"
      Counters = [
      "Maximum Bandwidth", "Read Bytes/sec", "Write Bytes/sec", "Queue Length",
      "Lower Latency", "Minimum IO Rate", "Maximum IO Rate", "Latency", "Throughput",
      "Lower Queue Length", "Queue Length", "Normalized Throughput", "Write Operations/Sec",
      "Read Operations/Sec", "Write Bytes/sec", "Read Bytes/sec", "Error Count",
      "Flush Count", "Write Count", "Read Count"
      ]
    [[inputs.win_perf_counters.object]]
      ObjectName = "Processor"
      Instances = ["*"]
      Counters = ["% Idle Time", "% Interrupt Time", "% Privileged Time", "% Processor Time", "% User Time", "Interrupts/sec"]
      Measurement = "hyperv.host.cpu"
      IncludeTotal = true
      [[inputs.win_perf_counters.object]]
      ObjectName = "LogicalDisk"
      Instances = ["*"]
      Counters = ["% Disk Read Time", "% Disk Write Time", "% Free Space", "% Idle Time", "Avg. Disk Bytes/Read", "Avg. Disk Bytes/Write", "Avg. Disk Queue Length", "Avg. Disk sec/Read", "Avg. Disk sec/Write", "Avg. Disk Write Queue Length", "Free Megabytes", "Split IO/Sec"]
      Measurement = "hyperv.host.disk"
      IncludeTotal = true
    [[inputs.win_perf_counters.object]]
      ObjectName = "Memory"
      Counters = ["Available Bytes", "Cache Bytes", "Committed Bytes", "Cache Faults/sec", "Demand Zero Faults/sec", "Page Faults/sec", "Pages/sec", "Transition Faults/sec", "Pool Nonpaged Bytes", "Pool Paged Bytes"]
      Instances = ["------"]
      Measurement = "hyperv.host.mem"
      [[inputs.win_perf_counters.object]]
      ObjectName = "Network Interface"
      Counters = ["Bytes Received/sec", "Bytes Sent/sec", "Packets Outbound Discarded", "Packets Outbound Errors", "Packets Received Discarded", "Packets Received Errors", "Packets Received/sec", "Packets Sent/sec", "Bytes Total/sec", "Current Bandwidth", "Output Queue Length"]
      Instances = ["*"]
      Measurement = "hyperv.host.net"
      IncludeTotal = true
    [[inputs.win_perf_counters.object]]
      ObjectName = "System"
      Counters = ["Context Switches/sec", "Processes", "Processor Queue Length", "System Calls/sec", "System Up Time", "Threads"]
      Instances = ["------"]
      Measurement = "hyperv.host.system"
    [[inputs.win_perf_counters.object]]
      ObjectName = "Process"
      Counters = ["% Privileged Time", "% Processor Time", "% User Time", "Elapsed Time", "Handle Count", "IO Read Bytes/sec", "IO Read Operations/sec", "IO Write Bytes/sec", "IO Write Operations/sec", "Private Bytes", "Thread Count", "Virtual Bytes", "Working Set", "Working Set - Private"]
      Instances = ["_Total"]
      Measurement = "hyperv.host.process"
    
    참고: 원치 않는 동작을 야기할 수 있으므로 다른 Telegraf 구성은 변경하지 않습니다.
  2. Telegraf를 다시 시작하고 10분 동안 기다린 후 데이터를 가져옵니다.

다음에 수행할 작업

VMware Aria Operations 사용자 인터페이스의 메트릭 탭의 관련 개체를 선택하여 메트릭을 볼 수 있습니다.