Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prometheus-gc-stats

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prometheus-gc-stats

Report Garbage Collection stats using Prometheus

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
56K
increased by3.77%
Maintainers
1
Weekly downloads
 
Created
Source

prometheus-gc-stats

Report Garbage Collection stats using Prometheus

NPM Version Build Status

Dependency Status Optional Dependency Status Peer Dependency Status Dev Dependency Status

Usage

This module has a peer dependency on prom-client. Currently, version 3-5 are supported.

This module follows the same API as the core default metrics. To start collection GC stats, invoke the exported function to create the metrics, then invoke the returned function to start the collecting.

gc-stats

The module doing the GC stats collecing is gc-stats. This module requires native dependencies. If the stats don't show up, make sure to check npm's install log for failures.

Metrics exposed

This module exposes 3 metrics:

  1. nodejs_gc_runs_total: Counts the number of time GC is invoked
  2. nodejs_gc_pause_total_nanoseconds: Time spent in GC in nanoseconds
    1. There's an option that can be passed to the function, { seconds: true } which make this be reported in seconds instead
  3. nodejs_gc_reclaimed_total_bytes: The number of bytes GC has freed

Credits

Thanks to @tcolgate for the original implementation.

Keywords

FAQs

Package last updated on 26 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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