-
Notifications
You must be signed in to change notification settings - Fork 707
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
Beat readiness probe #3197
Comments
What |
For filebeat, |
The main reason I can think we would want to define a readiness probe is if you were using beats to monitor your other beats. In that case I think you would want to know if the beat was up but the output was down (and so it should be ready even if the output is down). "Is the output responding" seems more of a question of health in the beats status. I'm not sure there's a good way for ECK to retrieve that though. We currently define beat health as: const (
// BeatRedHealth means that the health is neither yellow nor green.
BeatRedHealth BeatHealth = "red"
// BeatYellowHealth means that:
// 1) at least one Pod is Ready, and
// 2) association is not configured, or configured and established
BeatYellowHealth BeatHealth = "yellow"
// BeatGreenHealth means that:
// 1) all Pods are Ready, and
// 2) association is not configured, or configured and established
BeatGreenHealth BeatHealth = "green"
) |
I'm not sure I'm getting what do you mean here. If we have:
Then we can have the following (main) failure cases:
For "Is the output responding" I agree it's difficult, I think we would only know from logs that there is an issue. |
Because I did a poor job of explaining it :D What I meant was that I think we want to leave it as is for the reasons you described in your comment. If we want to do anything it would be exposing the output status in the Beats CR, but I'm not sure we can simply (maybe the beats state/status endpoint exposes the info?). |
We should probably close this in favour of another issue that will update the status of the Beats resource with some information about the output status. Just as an aside because
|
We probably want to introduce a readiness probe for Beats.
It's a bit surprising right now to see filebeat "ready" while Elasticsearch is unavailable.
It looks like we could execute a
filebeat test output
command. To investigate.The text was updated successfully, but these errors were encountered: