# Health Check

> Configuration for the server health check service.

<partial content="config-env-vars">



</partial>

The health check service powers the `/server/health` endpoint, which reports the status of connected services like the database, edis, storage, and email. Results are cached and shared across requests to avoid excessive checks.

<table>
<thead>
  <tr>
    <th>
      Variable
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Default Value
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        HEALTHCHECK_ENABLED
      </code>
    </td>
    
    <td>
      Whether or not to enable the <code>
        /server/health
      </code>
      
       endpoint.
    </td>
    
    <td>
      <code>
        true
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        HEALTHCHECK_NAMESPACE
      </code>
    </td>
    
    <td>
      Namespace used for health check cache keys to prevent conflicts with other cached data.
    </td>
    
    <td>
      <code>
        directus:healthcheck
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        HEALTHCHECK_SERVICES
      </code>
    </td>
    
    <td>
      Comma-separated list of services to check. Supported values: <code>
        database
      </code>
      
      , <code>
        redis
      </code>
      
      , <code>
        storage
      </code>
      
      , <code>
        email
      </code>
      
      .
    </td>
    
    <td>
      <code>
        database,redis,storage,email
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        HEALTHCHECK_CACHE_TTL
      </code>
    </td>
    
    <td>
      How long the cached health check result is valid before services are re-checked.
    </td>
    
    <td>
      <code>
        5m
      </code>
    </td>
  </tr>
</tbody>
</table>

<callout icon="material-symbols:info-outline">

**Note**<br />


Including `redis` or `email` in `HEALTHCHECK_SERVICES` does not guarantee they are checked:

- `redis` is only checked when Redis is configured (see [`REDIS_ENABLED`](/configuration/synchronization)).
- `email` is only checked when [`EMAIL_VERIFY_SETUP`](/configuration/email) is `true`.

</callout>

Individual services also support their own health check threshold configuration. See [Database](/configuration/database), [Cache](/configuration/cache), [Files](/configuration/files), and [Security & Limits](/configuration/security-limits) for `*_HEALTHCHECK_THRESHOLD` variables.
