-
Notifications
You must be signed in to change notification settings - Fork 31
Prometheus erro #13
Comments
What is the above log file output from? The prometheus server or the vmware_exporter?
as your prometheus server configuration it's not going to work. This would be the configuration for the vmware_exporter. |
Hi Wtip, Thanks for your replied. netstat -anp|grep 9272tcp 0 0 0.0.0.0:9272 0.0.0.0:* LISTEN 6268/python So did you means I should remove "- /opt/vmware_exporter/config.yml" from my Prometheus configation? My Prometheus configuration as below: For Vmware ESXi
|
When I access from web: http://192.168.100.22:9272/, I got the information: No Such Resource |
@smallfish01 yes you are using the however it might be easier for you to use the first configuration example that doesn't use the file based service discovery.
Also you can't just access |
Hi William, I really appreciate for your great help! Now the erros is gone, but I saw the instance is done from Prometheus web. The Esxi server status is "Down" and error is "context deadline exceeded" . ./vmware_exporter.py &[1] 5734 [root@office-monitoring vmware_exporter]# [2017-08-11 11:41:43.229451+00:00] Start collecting vcenter metrics for 192.168.100.10 I saw the log prompted "Start collecting vcenter metrics for 192.168.100.10" but the server is ESXi not vcenter, how can I change it? Many thank you! |
I just added: Into prometheus.yml and restart it, but the issue still exists. For Vmware ESXi
|
@smallfish01 After you start up the vmware exporter are you able to go to |
I running http://192.168.100.22:9272/metrics?section=esx&target=192.168.100.10 and cannot get list of metrics, because of the Vmware server status is "down" from promether server http://192.168.100.22:9090 |
I'm not sure what the issue is. |
Hello, cat config.ymldefault: esx: 4). Installed the requirements. |
@smallfish01 Very strange. You could try my fork that includes some additional error logging. https://github.com/wtip/vmware_exporter |
Hi, I think your scrape interval is too short, and your prometheus server ask for metrics before de
Could you please:
For my cas, I had to change de scrape interval to 30sec (
|
Hi @smallfish01 , did you try it the previous recommendation? |
Hi rverchere, Thanks for your help, I am so sorry for the trouble, I tried as your saed, changed prometheus.yml as below: For Vmware ESXi
netstat -anp|grep 9272tcp 0 0 0.0.0.0:9272 0.0.0.0:* LISTEN 753/python And I cannot open the url http://192.168.100.16:9272/metrics?section=esx&target=192.168.100.20, also got the error from Prometheus: systemctl status vmware_exporter● vmware_exporter.service - Prometheus VMWare Exporter Sep 07 19:55:27 office-monitoring vmware_exporter.py[753]: Unhandled error in Deferred: |
@smallfish01 Encounter same error, vmware target status is DOWN, Error is: server returned HTTP status 404 Not Found |
Resovled by launch server of node exporter by command: |
@wangyf123 Thanks for your update! I will have a try. |
Dear All, Having same issue My Environment Is As Following All Exporter (Node Exporter, VMware Exporter) Is On Server A With IP 10.10.10.1 Prometheus Is Version 2.0 Exporter Server Is Running Python 3.4 and pip list shows the following: My Environment VMware ESXi Is Mixed Of v5.0, v5.5 and v6.0 and VMware vCenter is v6.0 When Browsing http://10.10.10.1:9272/metrics?section=esx&target=esx01
|
Hi, I id not test with Python3, could you try with python2.7? |
Using Python 2 and v0.1.1 Accessing http://localhost:9272/metrics?target=vcenter.company.com seeing the following: web.Server Traceback (most recent call last): /opt/vmware_exporter.py:84 in generate_latest_target |
This is an UTF-8 encoding error,just add follow code to vmware_exporter.py: |
Thanks @wangyf123, I've just fixed the issue in 0.1.2 version ! |
This issue was moved to pryorda/vmware_exporter#11 |
Hi, When I compled the configuration and restart prometheus service, I got the error as below:
time="2017-08-09T17:34:37+08:00" level=info msg="Loading configuration file prometheus.yml" source="main.go:252"
time="2017-08-09T17:34:37+08:00" level=error msg="Error reading file "/opt/vmware_exporter/config.yml": yaml: unmarshal errors:
line 1: cannot unmarshal !!map into []*config.TargetGroup" source="file.go:199"
time="2017-08-09T17:34:38+08:00" level=error msg="Error reading file "/opt/vmware_exporter/config.yml": yaml: unmarshal errors:
line 1: cannot unmarshal !!map into []*config.TargetGroup" source="file.go:199"
My config.yml configuration is:
default:
vmware_user: '[email protected]'
vmware_password: 'Er4545'
ignore_ssl: True
esx:
vmware_user: 'root'
vmware_password: 'Er4545'
ignore_ssl: True
Do you know why?
Thank you!
The text was updated successfully, but these errors were encountered: