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

timeout issues #66

Closed
remyd1 opened this issue Mar 30, 2021 · 1 comment
Closed

timeout issues #66

remyd1 opened this issue Mar 30, 2021 · 1 comment

Comments

@remyd1
Copy link

remyd1 commented Mar 30, 2021

Hi,

I am getting timeout errors while trying to get informations. I think I know where this error come from, but first, I would like to handle this problem properly.

Bellow the output of journalctl on this service:

Mar 30 11:59:18 node03 pve_exporter[8669]: Exception thrown while scraping quemu/lxc config from IronThrone01
Mar 30 11:59:18 node03 pve_exporter[8669]: Traceback (most recent call last):
Mar 30 11:59:18 node03 pve_exporter[8669]:   File "/opt/prometheus-pve-exporter/lib/python3.7/site-packages/pve_exporter/collector.py", line 289, in collect
Mar 30 11:59:18 node03 pve_exporter[8669]:     for vmdata in self._pve.nodes(node['node']).qemu.get():
Mar 30 11:59:18 node03 pve_exporter[8669]:   File "/opt/prometheus-pve-exporter/lib/python3.7/site-packages/proxmoxer/core.py", line 105, in get
Mar 30 11:59:18 node03 pve_exporter[8669]:     return self(args)._request("GET", params=params)
Mar 30 11:59:18 node03 pve_exporter[8669]:   File "/opt/prometheus-pve-exporter/lib/python3.7/site-packages/proxmoxer/core.py", line 94, in _request
Mar 30 11:59:18 node03 pve_exporter[8669]:     resp.reason, resp.content))
Mar 30 11:59:18 node03 pve_exporter[8669]: proxmoxer.core.ResourceException: 595 Errors during connection establishment, proxy handshake: Connection timed out - b''

However, I am able to retrieve manually those values:

time wget -O px03.html http://localhost:9221/pve?target=1.2.3.4

It took almost 1 minute, and px03.html seems to be a valid plain ASCII text file with keys/values.

My first idea was to increase this timeout values. Any idea if this is directly possible from the daemon ?

When I grep directly into the code for timeout values I found many references, but I do not see any global option ?

Best regards,

@znerol
Copy link
Member

znerol commented Mar 30, 2021

Thanks for the report. Regrettably one of the collectors is inherently inefficient (see #58 and #55 for more details). Thus I recommend to run prometheus pve exporter with the --no-collector.config unless you absolutely need the pve_onboot_status metric. If you still see timeouts or other failures, then please just reopen the issue.

@znerol znerol closed this as completed Mar 30, 2021
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