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

Redfish collector try to login and logout on each scrape #48

Closed
chanchiwai-ray opened this issue Nov 17, 2023 · 3 comments
Closed

Redfish collector try to login and logout on each scrape #48

chanchiwai-ray opened this issue Nov 17, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@chanchiwai-ray
Copy link
Contributor

chanchiwai-ray commented Nov 17, 2023

The current implementation of redfish collector is not efficient because it tries to login and logout on each scrape. Ideally, after login, we can reuse the session for subsequent calls of fetch, and if the session is expired, then we can re-login again.

@gabrielcocenza
Copy link
Member

@chanchiwai-ray Is there any metrics showing how inefficient it is and what would be the gain?

@chanchiwai-ray
Copy link
Contributor Author

chanchiwai-ray commented Jun 14, 2024

No, I don't have the hardware to collect any metrics. From the code, it creates a connection and login and logout for each fetch, and that logically is not ideal (considering the exporter is a long-lived service), but I doubt that it has strong impact to the performance.

@aieri
Copy link

aieri commented Jun 20, 2024

I would then close this for now. We can reopen if it seems to be a significant performance issue. Reusing the connection would add a little bit of extra complexity.

@aieri aieri closed this as completed Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants