1 2 3 Previous Next 41 Replies Latest reply on Feb 27, 2019 3:28 AM by Touffi

    Performance statistics error: some metric counters doesn't exist for entity <my vm>

    Touffi Enthusiast

      Hi evryone,

       

      My script for Performance Statistics give some errors:

      • The metric counter "disk.maxtotallatency.latest" doesn't exist for entity "my vm [Obfuscated] "
      • The metric counter "sys.uptime.latest" doesn't exist for entity "my vm [Obfuscated] "

       

      I get now these erros then I run the script against only upgraded vCenter from version 5.5 to 6.0.0

      Running the script against vCenter version 5.5 is totally ok.

       

      I started to debug the Metrics for vCenter 6.0 and found these Metrics for entity "my vm [Obfuscated] ":

      Get-StatType -Entity "my vm [Obfuscated] " -Start $StartTime | Sort-Object -Unique

      cpu.cpuentitlement.latest

      cpu.ready.summation

      cpu.usage.average

      cpu.usagemhz.average

      disk.maxTotalLatency.latest

      disk.provisioned.latest

      disk.unshared.latest

      disk.usage.average

      disk.used.latest

      mem.consumed.average

      mem.mementitlement.latest

      mem.overhead.average

      mem.swapinRate.average

      mem.swapoutRate.average

      mem.usage.average

      mem.vmmemctl.average

      net.usage.average

      sys.uptime.latest

       

      My script contain these Metrics in a variable

      $metrics = "cpu.usage.average", `

           "cpu.usagemhz.average", `

           "mem.usage.average", `

           "mem.consumed.average", `

           "disk.usage.average", `

           "disk.maxTotalLatency.latest", `

           "net.usage.average", `

           "sys.uptime.latest"

       

      My command in script:

       

      $vms = "my vm [Obfuscated] "

      $StartTime = "05.02.2019 08:53:57"

      $EndTime = "20.02.2019 13:53:57"

      $intervall = "*"

      $metrics = "cpu.usage.average", `

           "cpu.usagemhz.average", `

           "mem.usage.average", `

           "mem.consumed.average", `

           "disk.usage.average", `

           "disk.maxTotalLatency.latest", `

           "net.usage.average", `

           "sys.uptime.latest"

      get-stat -Entity $vms -Stat $metrics -Start $StartTime -Finish $EndTime -IntervalSecs $intervall

       

      We did not change the level value for Performance Statistics, the value is still 1.

       

      Could anyone advise me to solve this problem?

       

      Thanks and regards

      Denis

        1 2 3 Previous Next