# fastify-prom-client

> instrument a fastify application for consumption by prometheus

Latest version **0.1.0** (published 2018-05-05) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install fastify-prom-client
pnpm add fastify-prom-client
yarn add fastify-prom-client
bun add fastify-prom-client
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-05-05 |
| First published | 2018-05-05 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Excitable Aardvark |
| Maintainers | excitableaardvark |
| Keywords | Fastify, prometheus |

## Links

- npm: https://www.npmjs.com/package/fastify-prom-client
- Repository: https://github.com/ExcitableAardvark/fastify-prom-client
- Homepage: https://github.com/ExcitableAardvark/fastify-prom-client#readme
- Issues: https://github.com/ExcitableAardvark/fastify-prom-client/issues
- npm.io page: https://npm.io/package/fastify-prom-client

## Dependencies (2)

- [prom-client](https://npm.io/package/prom-client.md) ^11.0.0
- [fastify-plugin](https://npm.io/package/fastify-plugin.md) ^1.0.1

## Recent versions

- 0.1.0 (latest) — 2018-05-05

## README

# fastify-prom-client
> instrument a fastify application for consumption by prometheus

### Installation 

    npm install --save fastify-prom-client

### Usage
```js
// use default options
fastify.register(require('fastify-prom-client'))

// or if you wanted to customise the metric
const prometheus = require('prom-client')

fastify.register(require('fastify-prom-client'), {
  metric: new prometheus.Histogram({
    name: 'http_request_buckets_milliseconds',
    help: 'request duration buckets in milliseconds'
  })
})
```

See `example.js` for a full example.

### License
Released under the 3-Clause BSD License. See `LICENSE` for more information.

---
_Source: https://npm.io/package/fastify-prom-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
