Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

fastify-status

SkeLLLa95MIT2.2.1

Returns common info about fastify server. Could be used for healthchecks and status monitoring.

fastify-plugin, status, fastify, plugin, healthcheck, server-status

readme

fastify-status

fastify-status logo

NPM Version Downloads Count Vunerabilities Count Build Status License Codecov LGTM Alerts LGTM Grade

Returns common info about fastify server. Could be used for healthchecks and status monitoring.

ToC

Installation

npm i fastify-status --save

Back to top

Usage

Example with default plugin options.

const fastify = require('fastify');
const statusPlugin = require('fastify-status');

const app = fastify();
app.register(statusPlugin, {
  info: '/__info__',
  alive: '/__alive__',
});

Use alive for healthchecks and info to get information and some stats of your server.

If info or alive is not present in config, then apropriate route will not be added.

Back to top

Format

{
  uptime: '0d 0h 0m 10s',
  memory: {
    rss: '50Mb',
    external: '40Mb',
    heapTotal: '30Mb',
    heapUsed: '20Mb',
  },
  start: '2020-05-10T07:41:20.389Z',
  env: 'test',
  name: 'my-server',
  version: '1.0.0',
  node: 'v14.0.0'
}

Back to top

Changelog

See changelog.

Back to top

See also

License

Licensed under MIT.

Back to top

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

2.2.1 (2020-05-24)

Bug Fixes

  • clean package from junk (d7b12fd)

2.2.0 (2020-05-24)

Features

  • tests, actions, logo linting (40cd26d)

Misc

2.1.0 (2020-05-14)

Features

  • don't add route if parameter missing (5ebafa5)

2.0.1 (2020-05-10)

Bug Fixes

2.0.0 (2020-05-10)

⚠ BREAKING CHANGES

  • new output format | drop old node version support

Features

1.1.2 (2019-12-14)

Chores

1.1.1 (2018-09-20)

Bug Fixes

1.1.0 (2018-09-20)

Chores
New Features

1.0.6 (2018-08-17)

Continuous Integration

1.0.5 (2018-08-17)

Continuous Integration

1.0.4 (2018-08-17)

Continuous Integration

1.0.3 (2018-08-17)

Bug Fixes
  • options: fix options defaults (4a7a5693)

1.0.2 (2018-08-16)

Chores

1.0.1 (2018-08-16)

Chores

1.0.0 (2018-08-16)

New Features