Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • W Web Reflectivity
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • reflectometry
  • Web Reflectivity
  • Merge requests
  • !104

Add django-health-check to web package

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Peterson, Peter requested to merge health_check into next May 27, 2022
  • Overview 0
  • Commits 2
  • Pipelines 2
  • Changes 7

This allows for more details on whether the application is behaving well. One can test it by doing (formatting with jq is optional).

$ curl -sX GET localhost/ht/?format=json | jq
{
  "Cache backend: default": "working",
  "CeleryPingHealthCheck": "working",
  "DatabaseBackend": "working",
  "DefaultFileStorageHealthCheck": "working",
  "DiskUsage": "working",
  "MemoryUsage": "working"
}

django-health-check doesn't support newer than django 3.2 or python 3.8, but that is what we're using.

Edited May 27, 2022 by Peterson, Peter
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: health_check