Socket
Socket
Sign inDemoInstall

fastify-metrics

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-metrics - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="1.1.0"></a>
# [1.1.0](https://gitlab.com/m03geek/fastify-metrics/compare/v1.0.1...v1.1.0) (2018-09-28)
### Features
* **metrics:** export object and add ability to store metrics ([9cc2b64](https://gitlab.com/m03geek/fastify-metrics/commit/9cc2b64))
<a name="1.0.1"></a>

@@ -7,0 +17,0 @@ ## [1.0.1](https://gitlab.com/m03geek/fastify-metrics/compare/v1.0.0...v1.0.1) (2018-09-27)

3

lib/index.js

@@ -15,2 +15,3 @@ const fp = require('fastify-plugin');

) => {
const plugin = {client};
if (enableDefaultMetrics) {

@@ -101,3 +102,3 @@ const defaultOpts = {timeout: interval};

}
fastify.decorate('metrics', client);
fastify.decorate('metrics', plugin);
next();

@@ -104,0 +105,0 @@ };

{
"name": "fastify-metrics",
"version": "1.0.1",
"version": "1.1.0",
"description": "Prometheus metrics exporter for Fastify",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

# fastify-metrics
<div align="center">
<!-- <div align="center">
<img src="https://gitlab.com/m03geek/fastify-metrics/raw/master/logo.png" alt="fastify-metrics logo"/>
</div>
</div> -->

@@ -11,5 +11,4 @@ [![NPM Version](https://img.shields.io/npm/v/fastify-metrics.svg)](https://www.npmjs.com/package/fastify-metrics)

[![Build Status](https://gitlab.com/m03geek/fastify-metrics/badges/master/pipeline.svg)](https://gitlab.com/m03geek/fastify-metrics/commits/master)
[![License](https://img.shields.io/npm/l/fastify-metrics.svg)](https://gitlab.com/m03geek/fastify-metrics/blob/master/LICENSE)
<!-- [![Coverage Status](https://gitlab.com/m03geek/fastify-metrics/badges/master/coverage.svg)](https://gitlab.com/m03geek/fastify-metrics/commits/master) -->
[![License](https://img.shields.io/npm/l/fastify-metrics.svg)](https://gitlab.com/m03geek/fastify-metrics/blob/master/LICENSE)
[Prometheus](https://prometheus.io/) metrics exporter for Fastify.

@@ -68,2 +67,7 @@

It also exports client to fastify instance `fastify.metrics.client` which you may use it in your routes.
You may create your metrics when app starts and store it in `fastify.metrics` object and reuse them in multiple routes.
<sub>[Back to top](#toc)</sub>

@@ -70,0 +74,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc