-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VCSA 6.7.0.2 no metrics #89
Comments
I don't currently have a 6.7 instance to test with. I'll look at this more when I have one. What version do you have pulled down ? |
I pulled straight from the master branch. |
Version everything is ok. is was ok until I've updated to latest version... |
Here is my traceback of docker container.
|
for now i revered to very old repo
and everything works |
I've played around with docker different vers. Here's trace for v0.3.1
and here is for 0.4.0
If you want I'm always ready for testing) |
We've been planning to update our infra so I'll probably start coding for this then. |
Reproduced <class 'TypeError'>: Required field "querySpec" not provided (not @optional) Following case:
|
TODO: Better error handling if "spec" is empty in line 602 because of no VMs discovered, we should print a info log message and not call to defer. |
Should be fixed in latest PR |
@akurach Can you test? |
I'l try it in a few days |
in this config works
I'll try to enable other options to check |
tested on VMware ESXi, 6.7.0, 13644319 |
/close |
When using VMware-vCenter-Server-Appliance-6.7.0.20000-10244745-patch-FP.iso (latest version) the docker container is unable to produce metrics for export.
`
/usr/bin/docker run -it -p 9272:9272 -e VSPHERE_USER=[email protected] -e VSPHERE_PASSWORD='mypass' -e VSPHERE_HOST='10.0.0.xx' -e VSPHERE_IGNORE_SSL=True --name vmware_exporter pryorda/vmware_exporter
[2019-02-14 19:44:00.540658+00:00] Starting web server on port 9272
[2019-02-14 19:44:01.513733+00:00] Start collecting metrics from 10.0.0.99
[2019-02-14 19:44:01.513832+00:00] Starting vm metrics collection
[2019-02-14 19:44:01.513909+00:00] Fetching vim.VirtualMachine inventory
[2019-02-14 19:44:01.517189+00:00] Retrieving service instance content
[2019-02-14 19:44:01.519459+00:00] START: _vmware_get_vm_perf_manager_metrics
[2019-02-14 19:44:01.520242+00:00] Starting datastore metrics collection
[2019-02-14 19:44:01.520908+00:00] Fetching vim.Datastore inventory
[2019-02-14 19:44:01.522654+00:00] Starting host metrics collection
[2019-02-14 19:44:01.523283+00:00] Fetching vim.HostSystem inventory
[2019-02-14 19:44:01.633741+00:00] Retrieved service instance content
[2019-02-14 19:44:02.089670+00:00] Fetched vim.VirtualMachine inventory (0:00:00.575705)
[2019-02-14 19:44:02.100404+00:00] Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/vmware_exporter/vmware_exporter.py", line 766, in _async_render_GET
yield self.generate_latest_metrics(request)
twisted.internet.defer.FirstError: FirstError[#1, [Failure instance: Traceback: <class 'twisted.internet.defer.FirstError'>: FirstError[#0, [Failure instance: Traceback: <class 'TypeError'>: Required field "querySpec" not provided (not @optional)
/usr/local/lib/python3.6/threading.py:916:_bootstrap_inner
/usr/local/lib/python3.6/threading.py:864:run
/usr/local/lib/python3.6/site-packages/twisted/_threads/_threadworker.py:46:work
/usr/local/lib/python3.6/site-packages/twisted/_threads/_team.py:190:doWork
--- ---
/usr/local/lib/python3.6/site-packages/twisted/python/threadpool.py:250:inContext
/usr/local/lib/python3.6/site-packages/twisted/python/threadpool.py:266:
/usr/local/lib/python3.6/site-packages/twisted/python/context.py:122:callWithContext
/usr/local/lib/python3.6/site-packages/twisted/python/context.py:85:callWithContext
/usr/local/lib/python3.6/site-packages/pyVmomi/VmomiSupport.py:706:
/usr/local/lib/python3.6/site-packages/pyVmomi/VmomiSupport.py:511:_InvokeMethod
/usr/local/lib/python3.6/site-packages/pyVmomi/VmomiSupport.py:1041:CheckField
]]
--- ---
/usr/local/lib/python3.6/site-packages/vmware_exporter/vmware_exporter.py:554:_vmware_get_vm_perf_manager_metrics
/usr/local/lib/python3.6/site-packages/vmware_exporter/defer.py:99:parallelize
]]
[2019-02-14 19:44:02.131425+00:00] Fetched vim.Datastore inventory (0:00:00.609866)
[2019-02-14 19:44:02.138566+00:00] Fetched vim.HostSystem inventory (0:00:00.614648)
[2019-02-14 19:44:02.208135+00:00] Finished datastore metrics collection
[2019-02-14 19:44:02.262205+00:00] Finished vm metrics collection
[2019-02-14 19:44:02.263507+00:00] Finished host metrics collection
[2019-02-14 19:44:16.512584+00:00] Start collecting metrics from 10.0.0.99
[2019-02-14 19:44:16.512666+00:00] Starting vm metrics collection
[2019-02-14 19:44:16.512727+00:00] Fetching vim.VirtualMachine inventory
[2019-02-14 19:44:16.512795+00:00] Retrieving service instance content
[2019-02-14 19:44:16.513403+00:00] START: _vmware_get_vm_perf_manager_metrics
[2019-02-14 19:44:16.513966+00:00] Starting datastore metrics collection
[2019-02-14 19:44:16.514041+00:00] Fetching vim.Datastore inventory
[2019-02-14 19:44:16.514330+00:00] Starting host metrics collection
[2019-02-14 19:44:16.514741+00:00] Fetching vim.HostSystem inventory
[2019-02-14 19:44:16.585087+00:00] Retrieved service instance content
[2019-02-14 19:44:17.031539+00:00] Fetched vim.VirtualMachine inventory (0:00:00.518771)
[2019-02-14 19:44:17.057751+00:00] Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/vmware_exporter/vmware_exporter.py", line 766, in _async_render_GET
yield self.generate_latest_metrics(request)
twisted.internet.defer.FirstError: FirstError[#1, [Failure instance: Traceback: <class 'twisted.internet.defer.FirstError'>: FirstError[#0, [Failure instance: Traceback: <class 'TypeError'>: Required field "querySpec" not provided (not @optional)
/usr/local/lib/python3.6/threading.py:916:_bootstrap_inner
/usr/local/lib/python3.6/threading.py:864:run
/usr/local/lib/python3.6/site-packages/twisted/_threads/_threadworker.py:46:work
/usr/local/lib/python3.6/site-packages/twisted/_threads/_team.py:190:doWork
--- ---
/usr/local/lib/python3.6/site-packages/twisted/python/threadpool.py:250:inContext
/usr/local/lib/python3.6/site-packages/twisted/python/threadpool.py:266:
/usr/local/lib/python3.6/site-packages/twisted/python/context.py:122:callWithContext
/usr/local/lib/python3.6/site-packages/twisted/python/context.py:85:callWithContext
/usr/local/lib/python3.6/site-packages/pyVmomi/VmomiSupport.py:706:
/usr/local/lib/python3.6/site-packages/pyVmomi/VmomiSupport.py:511:_InvokeMethod
/usr/local/lib/python3.6/site-packages/pyVmomi/VmomiSupport.py:1041:CheckField
]]
--- ---
/usr/local/lib/python3.6/site-packages/vmware_exporter/vmware_exporter.py:554:_vmware_get_vm_perf_manager_metrics
/usr/local/lib/python3.6/site-packages/vmware_exporter/defer.py:99:parallelize
]]
`
The text was updated successfully, but these errors were encountered: