Comments (11)
Same error using config-file....
from vmware_exporter.
Hi @arogarth!
Can you describe your environment a bit? Looks like you are using vCenter rather than raw ESXi access? What versions are you using? I'm guessing you have hosts that arent in a ClusterComputeResource
?
(We have seen v0.4.2 working on standalone ESXi and 2 installs using vCenter so i'm trying to triage whats different in your environment).
from vmware_exporter.
We have two vCenter Server with multiple cluster and ESXi Server. The vCenter hast Version 6.0.0.
from vmware_exporter.
Commited a small bugfix which work for me - #63
Just a small if to check that folder object has attribute host...
from vmware_exporter.
Looks good. It would be helpful to know what other non-host items can be in dc.hostFolder.childEntity
though - could you do me a big favour and do something like:
if not hasattr(folder, 'host'):
print(folder)
from vmware_exporter.
@Jc2k The MoB url should allow use to see the possible child entities.
from vmware_exporter.
I dont know if this is inclusive of all childTypes or not.
from vmware_exporter.
https://www.vmware.com/support/developer/converter-sdk/conv60_apireference/vim.Folder.html
from vmware_exporter.
Hi guys,
In my case, I try to use the docker image 'pryorda/vmware_exporter' and no mensagem is shown
curl localhost:9272/metrics?vsphere_host=vcenter1.company
in docker logs shown
vmware_exporter | [2019-02-05 22:33:02.277572+00:00] Start collecting metrics from 'vcenter1.company'
vmware_exporter | [2019-02-05 22:33:02.277893+00:00] Finished collecting metrics from 'vcenter1.company'
How to use in debug mode? I using the latest version (v0.7.0) - https://hub.docker.com/r/pryorda/vmware_exporter/tags
My vcenter is 6.5
from vmware_exporter.
Hello all,
I am following up issue #88 here as it was closed and seems to have migrated here. I am seeing basically the same problem and am running vCenter 6.5. This may be a stupid question as I am a new python user. But on line 414 of vmware_exporter.py
def _collect(dc, node):
host_inventory = {}
for folder in node.childEntity:
if hasattr(folder, 'host'):
for host in folder.host: # Iterate through Hosts in the Cluster
host_name = host.summary.config.name.rstrip('.')
host_inventory[host._moId] = [
host_name,
dc.name,
folder.name if isinstance(folder, vim.ClusterComputeResource) else ''
]
if isinstance(folder, vim.Folder):
host_inventory.extend(_collect(dc, folder)) # <<<===== THIS LINE !!!!!!!
return host_inventory
'.extend' is being called on a a dictionary. As far as I can find extend isn't something you can do to a dictionary. Was '.update' meant to be used or am I not understanding something? I tried plugging that in and the error went away. I seem to have full output for all sections now. Before this if I enabled only datastores could I get any metrics. I am not sure if I have complete output. I don't fully know what to expect as this is the first time I use this tool.
Thank you.
from vmware_exporter.
I think this is obsolete now, since the _collect logic changed as a whole.
Would suggest to close this issue, except someone can still produce an error with the most up to date version.
@arogarth can you please re-test?
from vmware_exporter.
Related Issues (20)
- no way to pull VM OS type and version ? HOT 1
- Multiarch Containerimage HOT 1
- Change interval of scraping the metrics HOT 1
- Need the leanest config to fetch a few Esxi host metrics HOT 1
- Memory Usage of Virtual Machine graph HOT 2
- How do you scrap for operating systems of VM like Redhat, windows 10 etc ? HOT 2
- RuntimeError: Request.finish called on a request after its connection was lost; use Request.notifyFinish to keep track of this HOT 1
- Need Resource Pool settings
- Getting overlapped data with VMware exs HOT 2
- Is this project still maintained?
- add new metrics to vmware_exporter
- Using vmware_exporter in Linux HOT 2
- Can I check ring full by vsish cli of esxi ?
- I have got a bug or i don't understood how it works HOT 1
- Is there a way we can run exporter using non-root user ? HOT 1
- Retrieve additional metrics HOT 1
- vmware-exporter docker two instances vsphere HOT 3
- Memory consumption problem HOT 1
- does anyone tried to test vmware_exporter on a vcenter v8.xx? HOT 1
- VPHERE8.0 certificate verification failure
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vmware_exporter.