New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@softkit/healthcheck

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@softkit/healthcheck

This library provides a healthcheck endpoint for the application.

latest
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

Health Check Library

This library provides a healthcheck endpoint for the application.

It's useful for kubernetes and other containerized or any environments that need healthcheck to validate that app is functioning ok.

This module is tight to Softkit ecosystem and there is no point to use it outside.

Installation

yarn add @softkit/health-check

Usage in your main app module:

  • Import HealthCheckModule and register it in imports array
  • Add HealthConfig to your RootConfig class
import { HealthConfig } from '@softkit/healthcheck';

export default class RootConfig implements PlatformClientConfig {

  @Type(() => HealthConfig)
  @ValidateNested()
  public readonly health!: HealthConfig;

}
  • Add health config to your .env.yaml file. (Check health config to find default and available configs)
health:
  disk:
    enabled: true
  db:
    enabled: true
  • That's it health endpoint will be available at /health path for use. If you have a basePath configured it also will be applied to health endpoint.

Keywords

nestjs

FAQs

Package last updated on 08 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts