-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Ready state handling of sidecar #1677
Comments
Hey @jabbrwcky, I have worked on related issues, looks like I have missed this part. I'll have a look at it. |
I think this was intentional #1395 (comment) as we had a discussion on slack https://cloud-native.slack.com/archives/CL25937SP/p1565945595078500 |
Yes, readiness it's only assumed for the initial readiness. Blips are not changing the healthiness probe as there is not much that sidecar can do, how restart/container restart would help in this case (healthiness probe is for this case). Also I don't see the difference in logic vs pre 0.8.1. What exactly you would expect here? (: |
We experienced complete failures of queries on the querier because one prometheus instance stopped responding to HTTP request (i/o timeouts) and the querier included the prometheus/sidecar as source. I would expect that the querier would return a partial result in such a case. Do I understand this correctly? |
That's correct. This logic can be controlled by |
It should be true. I cannot reproduce it at the moment because the prometheus instance in question is behaving at the moment. So if query.partial-response should take care of this I'll verify that we have set it to true in the configs. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We experienced some bumps upgrading to thanos 0.8.1 (docker image).
Looking into sidecar I noted that the ready state of the sidecar is only set in the initial loading of prometheus labels:
thanos/cmd/thanos/sidecar.go
Lines 167 to 186 in 64af185
The recurring check updates the 'prometheus_up' metric, but not the sidecar ready state:
thanos/cmd/thanos/sidecar.go
Lines 197 to 210 in 64af185
Is this intentional?
I assume when prometheus is considered non-healthy/-ready, the sidecar should report the same.
Please correct me if I am wrong.
The text was updated successfully, but these errors were encountered: