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

UDP Probe add expected payload #138

Open
momoXD007 opened this issue May 10, 2022 · 1 comment
Open

UDP Probe add expected payload #138

momoXD007 opened this issue May 10, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@momoXD007
Copy link

To my understanding UDP-probes do not offer the option to define an expected answer. Meaning a string or byte-sequence the probed endpoint should return if it is healthy.

Looking at the code it seems like the content of the answers received is parsed but simply not used at all later on, it could be interpreted in the following way (pseudo-code)


if  expected_payload != none 
{
     if msg == expected_payload
    {
         probe_sucess = true
   } else {
       probe_sucess = false
  }
}


@momoXD007 momoXD007 added the enhancement New feature or request label May 10, 2022
@manugarg
Copy link
Contributor

We can implement this through validators:
https://cloudprober.org/how-to/validators/

@manugarg manugarg added this to the v0.11.8 milestone May 11, 2022
@manugarg manugarg removed this from the v0.11.8 milestone Jun 4, 2022
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

2 participants