-
Notifications
You must be signed in to change notification settings - Fork 201
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
Prometheus erro #11
Comments
From @wtip on August 9, 2017 18:1 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. |
From @smallfish01 on August 10, 2017 3:6 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
|
From @smallfish01 on August 10, 2017 3:8 When I access from web: http://192.168.100.22:9272/, I got the information: No Such Resource |
From @wtip on August 10, 2017 15:0 @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 |
From @smallfish01 on August 11, 2017 11:48 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! |
From @smallfish01 on August 11, 2017 11:53 I just added: Into prometheus.yml and restart it, but the issue still exists. For Vmware ESXi
|
From @wtip on August 11, 2017 13:27 @smallfish01 After you start up the vmware exporter are you able to go to |
From @smallfish01 on August 12, 2017 7:25 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 |
From @wtip on August 12, 2017 19:15 I'm not sure what the issue is. |
From @smallfish01 on August 14, 2017 7:1 Hello, cat config.ymldefault: esx: 4). Installed the requirements. |
From @wtip on August 14, 2017 14:6 @smallfish01 Very strange. You could try my fork that includes some additional error logging. https://github.com/wtip/vmware_exporter |
From @rverchere on August 17, 2017 15:16 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 (
|
From @rverchere on September 7, 2017 10:35 Hi @smallfish01 , did you try it the previous recommendation? |
From @smallfish01 on September 7, 2017 11:58 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: |
From @smallfish01 on September 8, 2017 6:6 Hi Rverchere,
But also got error from Prometheus web: The error log: |
From @wangyf123 on November 6, 2017 13:11 @smallfish01 Encounter same error, vmware target status is DOWN, Error is: server returned HTTP status 404 Not Found |
From @wangyf123 on November 8, 2017 5:44 Resovled by launch server of node exporter by command: |
From @smallfish01 on November 10, 2017 1:22 @wangyf123 Thanks for your update! I will have a try. |
From @hmmxp on January 29, 2018 2:58 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
|
From @rverchere on January 30, 2018 22:42
Hi, I id not test with Python3, could you try with python2.7? |
From @hmmxp on January 31, 2018 0:45 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 |
From @wangyf123 on January 31, 2018 5:46
This is an UTF-8 encoding error,just add follow code to vmware_exporter.py: |
From @rverchere on January 31, 2018 20:12
Thanks @wangyf123, I've just fixed the issue in 0.1.2 version ! |
I've changed this up and have not tested with prometheus. If you chose to use my container or source make sure that you look at the new documentation. |
Closing because of inactivity. |
From @smallfish01 on August 9, 2017 9:36
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!
Copied from original issue: rverchere/vmware_exporter#13
The text was updated successfully, but these errors were encountered: