Skip to content
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

Issue running Ubuntu 18.04 #209

Closed
tiagoIW opened this issue Jun 13, 2020 · 8 comments
Closed

Issue running Ubuntu 18.04 #209

tiagoIW opened this issue Jun 13, 2020 · 8 comments

Comments

@tiagoIW
Copy link

tiagoIW commented Jun 13, 2020

Hello, how are you.

I have an trouble trying to run in a single server only, I have other server running ok.

When I try to collect the metrics with the comand:

curl http://127.0.0.1:9272/metrics?vsphere_host=192.168.2.250

I receive below on the exporter:

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 'AttributeError'>: 'NoneType' object has no attribute 'field'

My config.yml

default:
collect_only:
datastores: True
hosts: True
snapshots: True
vmguests: True
vms: True
ignore_ssl: True
specs_size: 5000
fetch_custom_attributes: False
fetch_tags: False
vsphere_host: 192.168.2.250
vsphere_password: 'password'
vsphere_user: 'root'

I tryed to run as root and as normal user.

@tiagoIW
Copy link
Author

tiagoIW commented Jun 16, 2020

Someone could help me ?

@pryorda
Copy link
Owner

pryorda commented Jun 16, 2020

We prefer to run inside the docker container. For setup instructions outside of the container refer to the DockerFile. This looks like an issue with pulling the data from vcente and you should Validate credentials have access to everything in vsphere.

@tiagoIW
Copy link
Author

tiagoIW commented Jun 16, 2020

Thank You... its running under docker... but, is there anyway to get metrics about twice or more vpshere hosts under one docker ?

@tiagoIW
Copy link
Author

tiagoIW commented Jun 17, 2020

@pryorda is there anyway to get metrics about twice or more hosts under one docker ?

@pryorda
Copy link
Owner

pryorda commented Jun 19, 2020

Not sure I understand that question.

@tiagoIW
Copy link
Author

tiagoIW commented Jun 19, 2020

I need to get metrics about 3 vmware hosts on the same docker, is it possible ?

@pryorda
Copy link
Owner

pryorda commented Jun 22, 2020

Yes, you just need to set up different sections. The readme describes this.

@tiagoIW
Copy link
Author

tiagoIW commented Jun 25, 2020

Thank you so much!!!

@tiagoIW tiagoIW closed this as completed Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants