Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Martin Kremers
    @kremers
    Daniel Pryor
    @pryorda
    kremers: keep up the good work :)
    Kurach Alexander
    @akurach
    hi there)
    maybe it will be faster here, than at github)
    Daniel Pryor
    @pryorda
    Whats up?
    @akurach
    Kurach Alexander
    @akurach
    6.7 works great
    i'm looking for solution how to get info drom clusters, like swap/baloon/etc
    icanhazbeer
    @icanhazbeer
    Hey there, is there a way to limit the cluster being collected?
    Martin Kremers
    @kremers
    Yes, create a user with restricted rights to see only the intended cluster
    chyy
    @chy1011
    Hey there, is there a way to retrieve vCenter HA Status? Or the event when a failover occurs?
    Daniel Pryor
    @pryorda
    @Jc2k Do you rmemeber the term for the practice around using .get? Something like check first die later or something silly like that?
    Kurach Alexander
    @akurach
    @pryorda hey! is it possible to get info about swapped mem in cluster?
    I found that u collect 'mem.swapped.average', but can't find that u show it in exports
    Kurach Alexander
    @akurach
    Which version do you use?
    Kurach Alexander
    @akurach
    oh my... seems like old one :D
    will test it tomorrow
    Martin Kremers
    @kremers
    Did you install in K8s?
    using the helm chart? ^^
    Kurach Alexander
    @akurach
    nope. just via compose
    Martin Kremers
    @kremers
    ok, should be present in the updated version
    Kurach Alexander
    @akurach
    nice thx
    jacobbabu
    @jacobbabu
    hi i just got strucked to create config.yml for my VMware_exporter running in Centos 7
    can any one help?
    [root@localhost Python-3.6.4]# vmware_exporter -c /Python-3.6.4/config
    Error, cannot read configuration file
    this is i am getting
    @chy1011
    hi can you suggest me to go farword to install Vmware exporter in centos 7
    Luis
    @pathcl
    hey :)
    Martin Kremers
    @kremers
    You need to follow the instructions In the readme- the config file has to be created by you, containing the configuration for the data center you want to export
    Hi luis what’s up?
    attionbug
    @attionbug
    嗨各位,我需要帮助,我的vmware_exporter启动之后获取不到vcenter的数据
    se7en102
    @se7en102
    do you have vmware_exporter.service file ?
    I need a sample file, my vmware_exporter.service cannot start.
    Daniel Pryor
    @pryorda
    We only officially support running this in docker. @se7en102
    docker/kube
    se7en102
    @se7en102
    OK, I'm done
    desuinside
    @desuinside
    Hi!
    Can somebody please provide me an example of a config file with multiple vSphere hosts?
    Currently I have something like this, but it seems to only collect info from the default host:
    default:
        vsphere_host: "hostname1"
        vsphere_user: "username"
        vsphere_password: "password"
        ignore_ssl: True
        specs_size: 5000
        fetch_custom_attributes: True
        fetch_tags: True
        fetch_alarms: True
        collect_only:
           vms: False
           vmguests: True
           datastores: True
           hosts: True
           snapshots: True
    
    hostname2:
        vsphere_host: "hostname2"
        vsphere_user: "username"
        vsphere_password: "password"
        ignore_ssl: True
        specs_size: 5000
        fetch_custom_attributes: True
        fetch_tags: True
        fetch_alarms: True
        collect_only:
           vms: False
           vmguests: True
           datastores: True
           hosts: True
           snapshots: True
    tkalpakidis
    @tkalpakidis
    hello i'm trying this on a k8s cluster and getting the following error
    var code = "formatted";
    Traceback (most recent call last):
    File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 501, in errback
    self._startRunCallbacks(fail)
    File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 568, in _startRunCallbacks
    self._runCallbacks()
    File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
    File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 1475, in gotResult
    _inlineCallbacks(r, g, status)
    --- <exception caught here> ---
    File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
    File "/usr/local/lib/python3.7/site-packages/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
    File "/usr/local/lib/python3.7/site-packages/vmware_exporter/vmware_exporter.py", line 1845, in _async_render_GET
    request.finish()
    File "/usr/local/lib/python3.7/site-packages/twisted/web/server.py", line 286, in finish
    return http.Request.finish(self)
    File "/usr/local/lib/python3.7/site-packages/twisted/web/http.py", line 1080, in finish
    "Request.finish called on a request after its connection was lost; "
    builtins.RuntimeError: Request.finish called on a request after its connection was lost; use Request.notifyFinish to keep track of this.
    It will eventually get the metrics but it seems it gets down every so...
    Jc2k
    @Jc2k
    Hi - basically everything is working normally but you need to tune your prometheus config for how big (and slow) your vmware cluster is
    Prometheus is assuming the vmware API can return requests reasonably quickly, but some of them are ungodly slow. So it assumes something has gone wrong and closes the connection. That error is because vmware_exporter carried on working in the background and tried to write a valid respond, but prometheus had already got bored and left.
    Unfortunately the vmware API is just slow, so all you can do is increase your scrape timeouts in your prometheus config
    Ryan Woods
    @RyanW8
    @Jc2k I'm running into the same issue that @tkalpakidis mentioned. My scrape interval is 5 minutes and my timeout is 2 minutes, however I'm getting this error long before the 2 minutes is even reached.
    See:
    2021-03-17 10:28:39,853 INFO:Start collecting metrics from REDACTED
    2021-03-17 10:28:39,853 INFO:Starting vm metrics collection
    2021-03-17 10:28:39,854 INFO:Fetching vim.VirtualMachine inventory
    2021-03-17 10:28:39,854 INFO:Retrieving service instance content
    2021-03-17 10:28:39,854 INFO:START: _vmware_get_vm_perf_manager_metrics
    2021-03-17 10:28:39,855 INFO:Fetching vim.Datastore inventory
    2021-03-17 10:28:39,855 INFO:Starting host metrics collection
    2021-03-17 10:28:39,855 INFO:Fetching vim.HostSystem inventory
    2021-03-17 10:28:39,855 INFO:START: _vmware_get_host_perf_manager_metrics
    2021-03-17 10:28:39,939 INFO:Retrieved service instance content
    Unhandled error in Deferred:
    
    Traceback (most recent call last):
      File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 517, in errback
        self._startRunCallbacks(fail)
      File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 580, in _startRunCallbacks
        self._runCallbacks()
      File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 662, in _runCallbacks
        current.result = callback(current.result, *args, **kw)
      File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 1514, in gotResult
        current_context.run(_inlineCallbacks, r, g, status)
    --- <exception caught here> ---
      File "/usr/local/lib/python3.7/site-packages/twisted/internet/defer.py", line 1443, in _inlineCallbacks
        result = current_context.run(result.throwExceptionIntoGenerator, g)
      File "/usr/local/lib/python3.7/site-packages/twisted/python/failure.py", line 500, in throwExceptionIntoGenerator
        return g.throw(self.type, self.value, self.tb)
      File "/usr/local/lib/python3.7/site-packages/vmware_exporter/vmware_exporter.py", line 1845, in _async_render_GET
        request.finish()
      File "/usr/local/lib/python3.7/site-packages/twisted/web/server.py", line 279, in finish
        return http.Request.finish(self)
      File "/usr/local/lib/python3.7/site-packages/twisted/web/http.py", line 1134, in finish
        "Request.finish called on a request after its connection was lost; "
    builtins.RuntimeError: Request.finish called on a request after its connection was lost; use Request.notifyFinish to keep track of this.
    
    2021-03-17 10:28:51,619 INFO:Fetched vim.Datastore inventory (0:00:11.764348)
    2021-03-17 10:28:53,853 INFO:Fetched vim.HostSystem inventory (0:00:13.997306)
    2021-03-17 10:28:55,108 INFO:Fetched vim.VirtualMachine inventory (0:00:15.254623)
    2021-03-17 10:28:56,251 INFO:Finished vm metrics collection
    2021-03-17 10:28:56,253 INFO:Finished host metrics collection
    2021-03-17 10:28:56,259 INFO:FIN: _vmware_get_host_perf_manager_metrics
    2021-03-17 10:28:59,732 INFO:FIN: _vmware_get_vm_perf_manager_metrics
    2021-03-17 10:28:59,746 INFO:Finished collecting metrics from REDACTED
    Jc2k
    @Jc2k
    So i don't use this any more but all i can say is looking at the exception, it comes from here https://github.com/pryorda/vmware_exporter/blob/main/vmware_exporter/vmware_exporter.py#L1845
    So that is the last bit of code inside a scrape, and theres no way back from there to the other log messages you are seeing
    I guess they could be threads still running in the background