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

Adds a simple health api endpoint #9

Closed
wants to merge 3 commits into from

Conversation

Bentlybro
Copy link

This PR adds a health api endpoint for uptime monitoring.

The output from /api/health looks like this

{
  "status": "healthy",
  "message": "",
  "timestamp": "2025-01-31T14:57:01.764Z",
  "subsystems": [
    {
      "name": "api",
      "status": "healthy",
      "message": ""
    },
    {
      "name": "database",
      "status": "healthy",
      "message": ""
    }
  ]
}

Hope this helps 😃

@CLAassistant
Copy link

CLAassistant commented Jan 31, 2025

CLA assistant check
All committers have signed the CLA.

@s3ththompson
Copy link
Contributor

Hi @Bentlybro, thanks.

Is this functionality for Significant-Gravitas/AutoGPT#9378?

I don't think we are planning to add a separate health endpoint. You can check that iffy.com responds with a 200. In the future we might add a status page.

@Bentlybro
Copy link
Author

Bentlybro commented Feb 3, 2025

Hello @s3ththompson yes it is partly for that, i have gone ahead and added it to the locally hosted version we are using! and no worried for not adding it I just thought id see if it was of any use 😄

I have some questions for you regarding Iffy, is there a good platform i can reach out to you on? discord maybe? its about allowing extra data to be send via a ingest request like "metadata" and have that be sent back over the webhook

@s3ththompson
Copy link
Contributor

@Bentlybro feel free to start a new discussion topic! Happy to chat more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants