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

federate target error with net/http request canceled #1672

Closed
guanglinlv opened this Issue May 27, 2016 · 5 comments

Comments

Projects
None yet
2 participants
@guanglinlv
Copy link

guanglinlv commented May 27, 2016

hi, my prometheus server will federate metrics from the other prometheus. net/http request canceled occurs after a day of running.

  • prometheus runtime information

runtime

I built the binary from master yesterday.

  • prometheus targets

targets

  • http_request_duration_microseconds{handler="federate"}

duration

  • no related errors in prometheus log
  • i had checked the federate target's response is about 64 MegaBytes. is there a option to enable gzip?

i'm using the prometheus-.17.0 all the time before updating to 0.19.1, the federation always work correctly. so,i will roll back to 0.17.0 and test it again.

any change on it or any suggestion? thanks a lot.

@beorn7

This comment has been minimized.

Copy link
Member

beorn7 commented May 27, 2016

Pre-0.19 had a bug that would not honor the set timeout properly. Your error message looks like you are hitting the timeout while retrieving metrics.

Federation can sometimes be somewhat slow (but was sped up a lot with 0.18). In your case, I'd try to increase the timeout configured for the federation target (and increase the scrape interval if needed, the latter cannot be smaller than the former).

@guanglinlv

This comment has been minimized.

Copy link
Author

guanglinlv commented May 27, 2016

@beorn7 thanks for your reply.

yes, it is a little slow to federate metrics from the other one. if i enlarge the federation interval, whether i will lose some metrics at some timestamp?

take for example:

  • prometheus B scrap metrics from exporters every 5 seconds.
  • prometheus A federate metrics from prometheus B every 30 seconds.

is it means that prometheus A will miss 25 seconds data ?

thanks.

@beorn7

This comment has been minimized.

Copy link
Member

beorn7 commented May 27, 2016

The resolution on your federating server will then indeed be lower than the resolution on the server you are federating from. Some users deliberately use this setup for downsampling.
No averaging is applied, you will always federate the latest possible value of each series.

@guanglinlv

This comment has been minimized.

Copy link
Author

guanglinlv commented Jun 13, 2016

the samples of the federate targets is too large to get back in time. thanks. closing it.

@guanglinlv guanglinlv closed this Jun 13, 2016

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.