We have updated our Terms of Service, Code of Conduct, and Addendum.

Using a Load Balancer to Check Stream Health

Chris Rogers
Chris Rogers Posts: 17

Is there a URL or API endpoint I can use to check the status of a Stream Worker or Leader? If so, what HTTP Status codes does the endpoint return?

Best Answer

  • Eugene Katz
    Eugene Katz Posts: 51 ✭✭
    edited July 26 Answer ✓

    You should be able to use the :9000/api/v1/health endpoint, assuming youre using the default API port.

    Expected responses are:

    • 200 – Healthy.
    • 420 – Shutting down.
    • 503 – HTTP engine reports server busy: too many concurrent connections (configurable).

    Additional documentation can be found in Cribl Docs:

    docs.cribl.io

    Monitoring | Cribl Docs

    How monitoring works

Answers

  • Eugene Katz
    Eugene Katz Posts: 51 ✭✭
    edited July 26 Answer ✓

    You should be able to use the :9000/api/v1/health endpoint, assuming youre using the default API port.

    Expected responses are:

    • 200 – Healthy.
    • 420 – Shutting down.
    • 503 – HTTP engine reports server busy: too many concurrent connections (configurable).

    Additional documentation can be found in Cribl Docs:

    docs.cribl.io

    Monitoring | Cribl Docs

    How monitoring works