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

Reading AHA/Homeautomation stats seems to be really slow #310

Open
pdreker opened this issue Mar 10, 2024 · 2 comments
Open

Reading AHA/Homeautomation stats seems to be really slow #310

pdreker opened this issue Mar 10, 2024 · 2 comments

Comments

@pdreker
Copy link
Owner

pdreker commented Mar 10, 2024

The current implementation (as of 2.4.3) of the homeautomation metrics makes several calls to the box per device found, which adds up to 20-30s per scrape, which may hit the Prometheus scape_timeout.

The code needs to be optimized, as it currently is pretty naive. AHA devices should prpbably only be scraped using the HTTP API and not a combination of TR-064 and HTTP to reduce the number of calls.

Also see the discussion in #303.

@r0ckarong
Copy link
Contributor

r0ckarong commented Mar 11, 2024

Just to mention here, the FB I'm testing against is a 7530 on a 1 Gbit Ethernet connection. I have very little info to go on what the CPU difference between models is.

@pdreker
Copy link
Owner Author

pdreker commented Mar 13, 2024

This was not to say, that Fritz boxes are slow, just that they maybe too slow, if the exporter does not try to be "smarter" when reading the stats. ;-)

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