Skip to content

need to improve monitoring HTTP APIs for health/diagnostics #577

Description

@plebhash

currently, on all apps /api/v1/health naively returns ok regardless of application state, which can be a bit misleading UX... we should start thinking about:

  • which abstractions should be introduced to represent edge-case application states
  • how to encode edge-case application states as HTTP responses

this also has some conceptual overlap with a potential "diagnostics" API endpoint that we've discussed in the past (for which I couldn't find a tracker issue)

as discussed in #560 one possible edge-case for Pool and JDC is when TP is still doing IBD (although this would only work for Bitcoin Core v31+)... although there could be more

overall for now this is just a high level tracker, this probably deserves deeper brainstorming for the ideal approach


perhaps we should rename the endpoint that's currently named as health into something like alive or responsive... so it can always return ok as a way to signal the app is running

and then we can add another endpoint (called health or diagnostics) which will return data with more fine-grained details

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status
    Todo 📝
    Status
    Todo 📝

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions