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

Add Healthcheck Route #215

Open
devinmatte opened this issue Sep 18, 2020 · 1 comment
Open

Add Healthcheck Route #215

devinmatte opened this issue Sep 18, 2020 · 1 comment
Labels
good first issue python Pull requests that update Python code

Comments

@devinmatte
Copy link
Member

devinmatte commented Sep 18, 2020

This is a route that connects to the database, connects to ldap, and returns a json blob stating whether or not it can connect.

This should allow us to more reasonably monitor on whether or not packet is up

How I want this to work

GET /api/v1/healthcheck

That would return 200 only when both ldap and the database connect correctly, and a 5XX range response when they don't. Different 5XX code for ldap down, sql down and both down

{
    "ldap": true,
    "database": true
}

Return the json no matter what the status code is.
Even better would be

{
    "ldap": {
        "status": true,
        "server": "stone.csh.rit.edu"
    },
    "database": {
        "status": true,
        "server": "mysql.csh.rit.edu"
    },
}
@devinmatte
Copy link
Member Author

Maybe even also list out which ldap server the pod is connected to to help us identify issues.

This route should be accessible without auth so that datadog can connect to it

@mxmeinhold mxmeinhold added good first issue python Pull requests that update Python code labels Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue python Pull requests that update Python code
Projects
None yet
Development

No branches or pull requests

2 participants