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 needed on connection level #73

Open
This-is-me-now opened this issue Sep 30, 2020 · 0 comments
Open

Timeout needed on connection level #73

This-is-me-now opened this issue Sep 30, 2020 · 0 comments

Comments

@This-is-me-now
Copy link

Hi!

We are running the exporter separated from the target machines in a Kubernetes pod. Reason is, that we are not allowed to install the needed version of instant client on the target hosts.

Currently we have four hosts monitored by one pod which normally runs smoothly.

But somtimes one or more hosts need to long to answer, which makes the scrape running in the timeout set by Prometheus:

Get http://11.22.33.44:9161/metrics: context deadline exceeded

In that case, no information is collected at all, even not from the connections answering within the limits. Is there a possibility to set a timeout for each connection so that if one ore more hosts are to busy (or even down?), we can at least get metrics from the other ones?

Config example of how I would imagine it:

Connections:
 - connection: system/[email protected]
   database: DEVELOP
   instance: DEVELOP
   timeout: 5s
   [...]

 - connection: <user>/<pass>@<tnsname>
   database: STAGE
   instance: STAGE
   timeout: 5s
   [...]

Thanks and best regards

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

1 participant