Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/excitableaardvark/fastify-prom-client
instrument a fastify application for consumption by prometheus
https://github.com/excitableaardvark/fastify-prom-client
fastify prometheus
Last synced: 5 days ago
JSON representation
instrument a fastify application for consumption by prometheus
- Host: GitHub
- URL: https://github.com/excitableaardvark/fastify-prom-client
- Owner: ExcitableAardvark
- License: bsd-3-clause
- Created: 2018-05-05T14:38:33.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-05T14:39:58.000Z (over 6 years ago)
- Last Synced: 2024-05-13T16:23:51.026Z (7 months ago)
- Topics: fastify, prometheus
- Language: JavaScript
- Size: 49.8 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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.