Giter Club home page Giter Club logo

Comments (9)

rverchere avatar rverchere commented on July 17, 2024

Hello,

Do you have some VMs up and running on that host?
Can you also tell me which version of ESXi you're running?

I cannot reproduce - yet -the issue with my hosts, I'll add more python checks.

from vmware_exporter.

is4it-lab avatar is4it-lab commented on July 17, 2024

Hi,

I receive exactly the same error messages when connecting to a vcenter server (6.5 - Appliance)

Robert

from vmware_exporter.

rverchere avatar rverchere commented on July 17, 2024

Hi,

@is4it-lab, can you comment line 134 (self._vmware_get_vms(content, metrics, counter_info)) and check if you still have issues?
I'll check deeper the VM metrics retrieval.
Can you also provide me your environment ?

  • OS
  • Python version
  • pyvmomi module version
  • prometheus python module version

Thanks,

from vmware_exporter.

is4it-lab avatar is4it-lab commented on July 17, 2024

Hi,

the script works fine with the change.

my environment:

OS: Debian GNU/Linux 8 (jessie)
Python version: Python 2.7.9
pyvmomi module version: pyvmomi-6.5-py2.7
prometheus python module version: prometheus_client-0.0.19

best regards
Robert

from vmware_exporter.

rverchere avatar rverchere commented on July 17, 2024

Ok but you will not have the vm metrics. I'll take a look.

from vmware_exporter.

is4it-lab avatar is4it-lab commented on July 17, 2024

There are some metrics:

host, datastore but no vm's

# HELP process_virtual_memory_bytes Virtual memory size in bytes.
# TYPE process_virtual_memory_bytes gauge
process_virtual_memory_bytes 177471488.0
# HELP process_resident_memory_bytes Resident memory size in bytes.
# TYPE process_resident_memory_bytes gauge
process_resident_memory_bytes 51806208.0
# HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
# TYPE process_start_time_seconds gauge
process_start_time_seconds 1498134116.04
# HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
# TYPE process_cpu_seconds_total counter
process_cpu_seconds_total 29.63
...
# HELP vmware_host_cpu_max VMWare Host CPU max availability in Mhz
# TYPE vmware_host_cpu_max gauge
vmware_host_cpu_max{host_name="esx2.testlab.local"} 22788.0
vmware_host_cpu_max{host_name="esx1.testlab.local"} 28800.0
vmware_host_cpu_max{host_name="esx3.testlab.local"} 24000.0
vmware_host_cpu_max{host_name="esx4.testlab.local"} 9576.0
# HELP vmware_host_cpu_usage VMWare Host CPU usage in Mhz
# TYPE vmware_host_cpu_usage gauge
vmware_host_cpu_usage{host_name="esx2.testlab.local"} 5993.0
vmware_host_cpu_usage{host_name="esx1.testlab.local"} 5294.0
vmware_host_cpu_usage{host_name="esx3.testlab.local"} 8694.0
vmware_host_cpu_usage{host_name="esx4.testlab.local"} 115.0

from vmware_exporter.

wtip avatar wtip commented on July 17, 2024

I just tried the exporter against an ESXi 6.5 host (not connected to vcenter) and it's showing me vmware_vm_* metrics for all of my VMs. So as far as I can tell it's working for me.

from vmware_exporter.

ipsecguy avatar ipsecguy commented on July 17, 2024

Hi,

I am gettng metrics for my VMs now with the current version of the exporter, thanks for the fix!

vmware_vm_boot_timestamp_seconds
vmware_vm_cpu_usage_average
vmware_vm_disk_read_average
vmware_vm_disk_write_average
vmware_vm_disk_usage_average
vmware_vm_power_state
vmware_vm_snapshot_timestamp_seconds
vmware_vm_snapshots

I am still getting error messages in the logs, however:

Error! Cannot get vm metrics, details:
(vim.PerformanceManager.EntityMetricBase) []

Andreas

from vmware_exporter.

rverchere avatar rverchere commented on July 17, 2024

Hi,

OK, I get the same issue now with VM that are not managed by my vcenter anymore.
I just changed the error message in commit b0c771f to see metrics and vm_name when having this error.

I guess I can close this issue now.

from vmware_exporter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.