0.1.11 • Published 1 month ago

@tinkoff/measure-fastify-requests v0.1.11

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 month ago

@tinkoff/measure-fastify-requests

Library for measuring RED metrics in the fastify app

Example

import fastify from 'fastify';
import { fastifyMeasureRequests } from '@tinkoff/measure-fastify-requests';
import { Counter, Histogram } from 'prom-client';

const app = fastify();

app.register(fastifyMeasureRequests, {
  metrics: {
    counter: (opt) => new Counter(opt),
    histogram: (opt) => new Histogram(opt),
  },
});

In the prom-client registry new metrics will be available:

  • http_requests_total - number of incoming requests;
  • http_requests_errors - number of errors in the incoming requests;
  • http_requests_execution_time - histogram with the request handler execution time.
0.3.1

1 month ago

0.1.10

9 months ago

0.1.11

8 months ago

0.2.1

7 months ago

0.2.0

7 months ago

0.1.9

10 months ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.4

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.2

2 years ago

0.1.3

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago