pryorda / vmware_exporter

VMWare vCenter Exporter for Prometheus
BSD 3-Clause "New" or "Revised" License
515 stars 199 forks source link

Getting errors when querying esx host #125

Closed andrewm659 closed 5 years ago

andrewm659 commented 5 years ago

I suspect this is in part to an update I did. I am running CentOS 7 latest and I keep my server pretty up to date.

But this is the result I get when querying the web page.

systemd]$ /opt/prometheus/vmware_exporter/vmware_exporter.py -c /opt/prometheus/vmware_exporter/config.yml -l debug
2019-07-03 09:31:07,412 INFO:Starting web server on port 9272
2019-07-03 09:31:16,518 INFO:Start collecting metrics from esx
2019-07-03 09:31:16,518 INFO:Starting vm metrics collection
2019-07-03 09:31:16,518 INFO:Fetching vim.VirtualMachine inventory
2019-07-03 09:31:16,521 INFO:Retrieving service instance content
2019-07-03 09:31:16,525 INFO:START: _vmware_get_vm_perf_manager_metrics
2019-07-03 09:31:16,525 INFO:Fetching vim.Datastore inventory
2019-07-03 09:31:16,526 INFO:Starting host metrics collection
2019-07-03 09:31:16,526 INFO:Fetching vim.HostSystem inventory
2019-07-03 09:31:16,538 ERROR:Traceback (most recent call last):
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 855, in _async_render_GET
    yield self.generate_latest_metrics(request)
twisted.internet.defer.FirstError: FirstError[#0, [Failure instance: Traceback: <class 'twisted.internet.defer.FirstError'>: FirstError[#1, [Failure instance: Traceback: <class 'twisted.internet.defer.FirstError'>: FirstError[#0, [Failure instance: Traceback: <class 'socket.gaierror'>: [Errno -2] Name or service not known
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:501:errback
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:568:_startRunCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:654:_runCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1475:gotResult
--- <exception caught here> ---
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:356:vm_inventory
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:263:batch_fetch_properties
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:253:content
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:241:connection
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py:250:inContext
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py:266:<lambda>
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py:122:callWithContext
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py:85:callWithContext
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:836:SmartConnect
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:718:__FindSupportedVersion
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:638:__GetServiceVersionDescription
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:604:__GetElementTree
/usr/lib64/python3.6/http/client.py:1239:request
/usr/lib64/python3.6/http/client.py:1285:_send_request
/usr/lib64/python3.6/http/client.py:1234:endheaders
/usr/lib64/python3.6/http/client.py:1026:_send_output
/usr/lib64/python3.6/http/client.py:964:send
/usr/lib64/python3.6/http/client.py:1392:connect
/usr/lib64/python3.6/http/client.py:936:connect
/usr/lib64/python3.6/socket.py:704:create_connection
/usr/lib64/python3.6/socket.py:745:getaddrinfo
]]
--- <exception caught here> ---
/opt/prometheus/vmware_exporter/vmware_exporter.py:441:vm_labels
/opt/prometheus/vmware_exporter/defer.py:99:parallelize
]]
--- <exception caught here> ---
/opt/prometheus/vmware_exporter/vmware_exporter.py:623:_vmware_get_vms
/opt/prometheus/vmware_exporter/defer.py:99:parallelize
]]

Unhandled error in Deferred:

Traceback (most recent call last):
--- <exception caught here> ---
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 441, in vm_labels
    virtual_machines, host_labels = yield parallelize(self.vm_inventory, self.host_labels)
  File "/opt/prometheus/vmware_exporter/defer.py", line 99, in parallelize
    results = yield defer.DeferredList(args, fireOnOneErrback=True)
twisted.internet.defer.FirstError: FirstError[#0, [Failure instance: Traceback: <class 'socket.gaierror'>: [Errno -2] Name or service not known
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:501:errback
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:568:_startRunCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:654:_runCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1475:gotResult
--- <exception caught here> ---
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:356:vm_inventory
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:263:batch_fetch_properties
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:253:content
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:241:connection
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py:250:inContext
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py:266:<lambda>
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py:122:callWithContext
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py:85:callWithContext
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:836:SmartConnect
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:718:__FindSupportedVersion
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:638:__GetServiceVersionDescription
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:604:__GetElementTree
/usr/lib64/python3.6/http/client.py:1239:request
/usr/lib64/python3.6/http/client.py:1285:_send_request
/usr/lib64/python3.6/http/client.py:1234:endheaders
/usr/lib64/python3.6/http/client.py:1026:_send_output
/usr/lib64/python3.6/http/client.py:964:send
/usr/lib64/python3.6/http/client.py:1392:connect
/usr/lib64/python3.6/http/client.py:936:connect
/usr/lib64/python3.6/socket.py:704:create_connection
/usr/lib64/python3.6/socket.py:745:getaddrinfo
]]

Unhandled error in Deferred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 501, in errback
    self._startRunCallbacks(fail)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 568, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1475, in gotResult
    _inlineCallbacks(r, g, status)
--- <exception caught here> ---
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 356, in vm_inventory
    properties,
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 263, in batch_fetch_properties
    content = yield self.content
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 253, in content
    connection = yield self.connection
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 241, in connection
    sslContext=context,
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py", line 250, in inContext
    result = inContext.theWork()
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py", line 266, in <lambda>
    inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py", line 122, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py", line 85, in callWithContext
    return func(*args,**kw)
  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 836, in SmartConnect

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 718, in __FindSupportedVersion

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 638, in __GetServiceVersionDescription

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 604, in __GetElementTree

  File "/usr/lib64/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib64/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/usr/lib64/python3.6/http/client.py", line 1392, in connect
    super().connect()
  File "/usr/lib64/python3.6/http/client.py", line 936, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/usr/lib64/python3.6/socket.py", line 704, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

Unhandled error in Deferred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 501, in errback
    self._startRunCallbacks(fail)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 568, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1475, in gotResult
    _inlineCallbacks(r, g, status)
--- <exception caught here> ---
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 356, in vm_inventory
    properties,
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 263, in batch_fetch_properties
    content = yield self.content
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 253, in content
    connection = yield self.connection
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 241, in connection
    sslContext=context,
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py", line 250, in inContext
    result = inContext.theWork()
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py", line 266, in <lambda>
    inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py", line 122, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py", line 85, in callWithContext
    return func(*args,**kw)
  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 836, in SmartConnect

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 718, in __FindSupportedVersion

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 638, in __GetServiceVersionDescription

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 604, in __GetElementTree

  File "/usr/lib64/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib64/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/usr/lib64/python3.6/http/client.py", line 1392, in connect
    super().connect()
  File "/usr/lib64/python3.6/http/client.py", line 936, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/usr/lib64/python3.6/socket.py", line 704, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

Unhandled error in Deferred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 501, in errback
    self._startRunCallbacks(fail)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 568, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1475, in gotResult
    _inlineCallbacks(r, g, status)
--- <exception caught here> ---
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 356, in vm_inventory
    properties,
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 263, in batch_fetch_properties
    content = yield self.content
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 253, in content
    connection = yield self.connection
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 241, in connection
    sslContext=context,
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py", line 250, in inContext
    result = inContext.theWork()
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py", line 266, in <lambda>
    inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py", line 122, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py", line 85, in callWithContext
    return func(*args,**kw)
  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 836, in SmartConnect

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 718, in __FindSupportedVersion

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 638, in __GetServiceVersionDescription

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 604, in __GetElementTree

  File "/usr/lib64/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib64/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/usr/lib64/python3.6/http/client.py", line 1392, in connect
    super().connect()
  File "/usr/lib64/python3.6/http/client.py", line 936, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/usr/lib64/python3.6/socket.py", line 704, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

Unhandled error in Deferred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 501, in errback
    self._startRunCallbacks(fail)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 568, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1475, in gotResult
    _inlineCallbacks(r, g, status)
--- <exception caught here> ---
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 432, in host_labels
    dcs = yield self.datacenter_inventory
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 365, in datacenter_inventory
    content = yield self.content
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 253, in content
    connection = yield self.connection
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 241, in connection
    sslContext=context,
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py", line 250, in inContext
    result = inContext.theWork()
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py", line 266, in <lambda>
    inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py", line 122, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py", line 85, in callWithContext
    return func(*args,**kw)
  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 836, in SmartConnect

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 718, in __FindSupportedVersion

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 638, in __GetServiceVersionDescription

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 604, in __GetElementTree

  File "/usr/lib64/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib64/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/usr/lib64/python3.6/http/client.py", line 1392, in connect
    super().connect()
  File "/usr/lib64/python3.6/http/client.py", line 936, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/usr/lib64/python3.6/socket.py", line 704, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

Unhandled error in Deferred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 501, in errback
    self._startRunCallbacks(fail)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 568, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1475, in gotResult
    _inlineCallbacks(r, g, status)
--- <exception caught here> ---
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 432, in host_labels
    dcs = yield self.datacenter_inventory
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 365, in datacenter_inventory
    content = yield self.content
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 253, in content
    connection = yield self.connection
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 241, in connection
    sslContext=context,
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py", line 250, in inContext
    result = inContext.theWork()
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py", line 266, in <lambda>
    inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py", line 122, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py", line 85, in callWithContext
    return func(*args,**kw)
  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 836, in SmartConnect

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 718, in __FindSupportedVersion

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 638, in __GetServiceVersionDescription

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 604, in __GetElementTree

  File "/usr/lib64/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib64/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/usr/lib64/python3.6/http/client.py", line 1392, in connect
    super().connect()
  File "/usr/lib64/python3.6/http/client.py", line 936, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/usr/lib64/python3.6/socket.py", line 704, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

Unhandled error in Deferred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 501, in errback
    self._startRunCallbacks(fail)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 568, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1475, in gotResult
    _inlineCallbacks(r, g, status)
--- <exception caught here> ---
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 397, in datastore_labels
    dcs = yield self.datacenter_inventory
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 365, in datacenter_inventory
    content = yield self.content
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 253, in content
    connection = yield self.connection
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 241, in connection
    sslContext=context,
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py", line 250, in inContext
    result = inContext.theWork()
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py", line 266, in <lambda>
    inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py", line 122, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py", line 85, in callWithContext
    return func(*args,**kw)
  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 836, in SmartConnect

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 718, in __FindSupportedVersion

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 638, in __GetServiceVersionDescription

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 604, in __GetElementTree

  File "/usr/lib64/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib64/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/usr/lib64/python3.6/http/client.py", line 1392, in connect
    super().connect()
  File "/usr/lib64/python3.6/http/client.py", line 936, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/usr/lib64/python3.6/socket.py", line 704, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

Unhandled error in Deferred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 501, in errback
    self._startRunCallbacks(fail)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 568, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1475, in gotResult
    _inlineCallbacks(r, g, status)
--- <exception caught here> ---
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 465, in counter_ids
    content = yield self.content
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 253, in content
    connection = yield self.connection
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 241, in connection
    sslContext=context,
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py", line 250, in inContext
    result = inContext.theWork()
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py", line 266, in <lambda>
    inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py", line 122, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py", line 85, in callWithContext
    return func(*args,**kw)
  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 836, in SmartConnect

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 718, in __FindSupportedVersion

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 638, in __GetServiceVersionDescription

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 604, in __GetElementTree

  File "/usr/lib64/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib64/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/usr/lib64/python3.6/http/client.py", line 1392, in connect
    super().connect()
  File "/usr/lib64/python3.6/http/client.py", line 936, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/usr/lib64/python3.6/socket.py", line 704, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

Unhandled error in Deferred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 501, in errback
    self._startRunCallbacks(fail)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 568, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1475, in gotResult
    _inlineCallbacks(r, g, status)
--- <exception caught here> ---
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 291, in datastore_inventory
    properties
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 263, in batch_fetch_properties
    content = yield self.content
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 253, in content
    connection = yield self.connection
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 241, in connection
    sslContext=context,
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py", line 250, in inContext
    result = inContext.theWork()
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py", line 266, in <lambda>
    inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py", line 122, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py", line 85, in callWithContext
    return func(*args,**kw)
  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 836, in SmartConnect

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 718, in __FindSupportedVersion

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 638, in __GetServiceVersionDescription

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 604, in __GetElementTree

  File "/usr/lib64/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib64/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/usr/lib64/python3.6/http/client.py", line 1392, in connect
    super().connect()
  File "/usr/lib64/python3.6/http/client.py", line 936, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/usr/lib64/python3.6/socket.py", line 704, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

Unhandled error in Deferred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 501, in errback
    self._startRunCallbacks(fail)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 568, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1475, in gotResult
    _inlineCallbacks(r, g, status)
--- <exception caught here> ---
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 318, in host_system_inventory
    properties,
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 263, in batch_fetch_properties
    content = yield self.content
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 253, in content
    connection = yield self.connection
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 241, in connection
    sslContext=context,
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py", line 250, in inContext
    result = inContext.theWork()
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py", line 266, in <lambda>
    inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py", line 122, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py", line 85, in callWithContext
    return func(*args,**kw)
  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 836, in SmartConnect

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 718, in __FindSupportedVersion

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 638, in __GetServiceVersionDescription

  File "/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py", line 604, in __GetElementTree

  File "/usr/lib64/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib64/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib64/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/usr/lib64/python3.6/http/client.py", line 1392, in connect
    super().connect()
  File "/usr/lib64/python3.6/http/client.py", line 936, in connect
    (self.host,self.port), self.timeout, self.source_address)
  File "/usr/lib64/python3.6/socket.py", line 704, in create_connection
    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
  File "/usr/lib64/python3.6/socket.py", line 745, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

q^CUnhandled error in Deferred:

Traceback (most recent call last):
--- <exception caught here> ---
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 623, in _vmware_get_vms
    virtual_machines, vm_labels = yield parallelize(self.vm_inventory, self.vm_labels)
  File "/opt/prometheus/vmware_exporter/defer.py", line 99, in parallelize
    results = yield defer.DeferredList(args, fireOnOneErrback=True)
twisted.internet.defer.FirstError: FirstError[#1, [Failure instance: Traceback: <class 'twisted.internet.defer.FirstError'>: FirstError[#0, [Failure instance: Traceback: <class 'socket.gaierror'>: [Errno -2] Name or service not known
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:501:errback
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:568:_startRunCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:654:_runCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1475:gotResult
--- <exception caught here> ---
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:356:vm_inventory
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:263:batch_fetch_properties
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:253:content
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:241:connection
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py:250:inContext
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py:266:<lambda>
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py:122:callWithContext
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py:85:callWithContext
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:836:SmartConnect
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:718:__FindSupportedVersion
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:638:__GetServiceVersionDescription
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:604:__GetElementTree
/usr/lib64/python3.6/http/client.py:1239:request
/usr/lib64/python3.6/http/client.py:1285:_send_request
/usr/lib64/python3.6/http/client.py:1234:endheaders
/usr/lib64/python3.6/http/client.py:1026:_send_output
/usr/lib64/python3.6/http/client.py:964:send
/usr/lib64/python3.6/http/client.py:1392:connect
/usr/lib64/python3.6/http/client.py:936:connect
/usr/lib64/python3.6/socket.py:704:create_connection
/usr/lib64/python3.6/socket.py:745:getaddrinfo
]]
--- <exception caught here> ---
/opt/prometheus/vmware_exporter/vmware_exporter.py:441:vm_labels
/opt/prometheus/vmware_exporter/defer.py:99:parallelize
]]

Unhandled error in Deferred:

Traceback (most recent call last):
--- <exception caught here> ---
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 553, in _vmware_get_vm_perf_manager_metrics
    virtual_machines, counter_info = yield parallelize(self.vm_inventory, self.counter_ids)
  File "/opt/prometheus/vmware_exporter/defer.py", line 99, in parallelize
    results = yield defer.DeferredList(args, fireOnOneErrback=True)
twisted.internet.defer.FirstError: FirstError[#0, [Failure instance: Traceback: <class 'socket.gaierror'>: [Errno -2] Name or service not known
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:501:errback
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:568:_startRunCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:654:_runCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1475:gotResult
--- <exception caught here> ---
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:356:vm_inventory
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:263:batch_fetch_properties
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:253:content
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:241:connection
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py:250:inContext
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py:266:<lambda>
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py:122:callWithContext
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py:85:callWithContext
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:836:SmartConnect
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:718:__FindSupportedVersion
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:638:__GetServiceVersionDescription
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:604:__GetElementTree
/usr/lib64/python3.6/http/client.py:1239:request
/usr/lib64/python3.6/http/client.py:1285:_send_request
/usr/lib64/python3.6/http/client.py:1234:endheaders
/usr/lib64/python3.6/http/client.py:1026:_send_output
/usr/lib64/python3.6/http/client.py:964:send
/usr/lib64/python3.6/http/client.py:1392:connect
/usr/lib64/python3.6/http/client.py:936:connect
/usr/lib64/python3.6/socket.py:704:create_connection
/usr/lib64/python3.6/socket.py:745:getaddrinfo
]]

Unhandled error in Deferred:

Traceback (most recent call last):
--- <exception caught here> ---
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 703, in _vmware_get_hosts
    results, host_labels = yield parallelize(self.host_system_inventory, self.host_labels)
  File "/opt/prometheus/vmware_exporter/defer.py", line 99, in parallelize
    results = yield defer.DeferredList(args, fireOnOneErrback=True)
twisted.internet.defer.FirstError: FirstError[#1, [Failure instance: Traceback: <class 'socket.gaierror'>: [Errno -2] Name or service not known
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:501:errback
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:568:_startRunCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:654:_runCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1475:gotResult
--- <exception caught here> ---
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:432:host_labels
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:365:datacenter_inventory
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:253:content
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:241:connection
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py:250:inContext
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py:266:<lambda>
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py:122:callWithContext
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py:85:callWithContext
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:836:SmartConnect
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:718:__FindSupportedVersion
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:638:__GetServiceVersionDescription
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:604:__GetElementTree
/usr/lib64/python3.6/http/client.py:1239:request
/usr/lib64/python3.6/http/client.py:1285:_send_request
/usr/lib64/python3.6/http/client.py:1234:endheaders
/usr/lib64/python3.6/http/client.py:1026:_send_output
/usr/lib64/python3.6/http/client.py:964:send
/usr/lib64/python3.6/http/client.py:1392:connect
/usr/lib64/python3.6/http/client.py:936:connect
/usr/lib64/python3.6/socket.py:704:create_connection
/usr/lib64/python3.6/socket.py:745:getaddrinfo
]]

Unhandled error in Deferred:

Traceback (most recent call last):
--- <exception caught here> ---
  File "/opt/prometheus/vmware_exporter/vmware_exporter.py", line 504, in _vmware_get_datastores
    results, datastore_labels = yield parallelize(self.datastore_inventory, self.datastore_labels)
  File "/opt/prometheus/vmware_exporter/defer.py", line 99, in parallelize
    results = yield defer.DeferredList(args, fireOnOneErrback=True)
twisted.internet.defer.FirstError: FirstError[#1, [Failure instance: Traceback: <class 'socket.gaierror'>: [Errno -2] Name or service not known
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:501:errback
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:568:_startRunCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:654:_runCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1475:gotResult
--- <exception caught here> ---
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:397:datastore_labels
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:365:datacenter_inventory
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:253:content
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/internet/defer.py:1416:_inlineCallbacks
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/failure.py:512:throwExceptionIntoGenerator
/opt/prometheus/vmware_exporter/vmware_exporter.py:241:connection
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py:250:inContext
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/threadpool.py:266:<lambda>
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py:122:callWithContext
/usr/local/lib/python3.6/site-packages/Twisted-19.2.1-py3.6-linux-x86_64.egg/twisted/python/context.py:85:callWithContext
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:836:SmartConnect
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:718:__FindSupportedVersion
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:638:__GetServiceVersionDescription
/usr/local/lib/python3.6/site-packages/pyvmomi-6.7.1.2018.12-py3.6.egg/pyVim/connect.py:604:__GetElementTree
/usr/lib64/python3.6/http/client.py:1239:request
/usr/lib64/python3.6/http/client.py:1285:_send_request
/usr/lib64/python3.6/http/client.py:1234:endheaders
/usr/lib64/python3.6/http/client.py:1026:_send_output
/usr/lib64/python3.6/http/client.py:964:send
/usr/lib64/python3.6/http/client.py:1392:connect
/usr/lib64/python3.6/http/client.py:936:connect
/usr/lib64/python3.6/socket.py:704:create_connection
/usr/lib64/python3.6/socket.py:745:getaddrinfo
]]
pryorda commented 5 years ago

Looks like the error is here: "socket.gaierror: [Errno -2] Name or service not known" This means the hostname you gave it is invalid.

Thanks

andrewm659 commented 5 years ago

I can confirm the host is there.

Here is what my config.yml looks like.

Do you see any issues here?

default:
    vsphere_host: "esx"
    vsphere_user: "root"
    vsphere_password: "password"
    ignore_ssl: True
    collect_only:
        vms: True
        vmguests: True
        datastores: True
        hosts: True
        snapshots: True

esx:
    vsphere_host: 10.150.1.35
    vsphere_user: 'root'
    vsphere_password: 'password'
    ignore_ssl: True
    collect_only:
        vms: True
        vmguests: True
        datastores: True
        hosts: True
        snapshots: True

#limited:
#    vsphere_host: 10.150.1.35
#    vsphere_user: 'administrator@vsphere.local'
#    vsphere_password: 'password'
#    ignore_ssl: True
#    collect_only:
#        vms: True
#        vmguests: True
#        datastores: True
#        hosts: True
#        snapshots: True
pryorda commented 5 years ago

What url are you using to access the metrics?

andrewm659 commented 5 years ago

IP Address or esxi01.domain.local

andrewm659 commented 5 years ago

It seems to be working now.