Skip to content

Add health-check urls #1001

Closed
Closed

Description

@davidkarlsen

Current Behavior:

No [documented] endpoints for health checks

Proposed Behavior:

add health-probes which can be used to monitor the app and it's state.

Activity

  1. added
    enhancement
    on Apr 6, 2021
  2. mvanini commented on Apr 6, 2021

    @mvanini

    For liveness and startup probes we are actually using /api/version

    For readiness it can be similar to #1002

  3. davidkarlsen commented on Apr 6, 2021

    @davidkarlsen
    ContributorAuthor

    Will that url respond even if DT has trouble connecting to the DB?

  4. stevespringett commented on Apr 6, 2021

    @stevespringett
    Member

    Most health checks will need to be implemented in stevespringett/Alpine#22

  5. bodaduk commented on May 20, 2022

    @bodaduk

    Will that url respond even if DT has trouble connecting to the DB?

    This is the issue I have, /api/version still responds despite many logged db connection and other exceptions. This means health checks still pass and self healing/recovery doesn't occur.

    The healthcheck we use in compose:

    healthcheck: test: ["CMD", "curl", "-I", "-X", "GET", "http://localhost:8080/api/version"] interval: ${ComposeARGHealthCheckInterval:-'5m'} timeout: ${ComposeARGHealthCheckTimeout:-'30s'} retries: ${ComposeARGHealthCheckRetries:-'3'} start_period: ${ComposeARGHealthCheckStartPeriod:-'0s'}

  6. nscuro commented on Mar 29, 2023

    @nscuro
    Member

    I raised a PR for this in Alpine: stevespringett/Alpine#480

    This will support all the various /health, /health/live, /health/ready, and /health/started endpoints.
    The PR includes readiness check for database connections, but nothing else for now.

    We'll need to work out other areas of the system that we can add checks for, but at least a foundation is laid.

  7. added this to the 4.8 milestone on Apr 1, 2023
  8. github-actions commented on May 5, 2023

    @github-actions
    Contributor

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  9. locked as resolved and limited conversation to collaborators on May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions