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

k8s-prometheus-metrics

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

k8s-prometheus-metrics

Provides your application metrics to prometheus server.

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

k8s-prometheus-metrics

Library for an express listener on default prometheus port to provide your app metrics to prometheus server. Also provides container resource metrics.

Usage

var prometheus = require('k8s-prometheus-metrics')();
const monitor = {
	in: new prometheus.Counter({ name: 'mock_ti_incoming', help: 'count of incoming messages' }),
	processed: new prometheus.Counter({ name: 'mock_ti_processes', help: 'count of incoming messages processed' }),
	out: new prometheus.Counter({ name: 'mock_ti_outgoing', help: 'count of outgoing messages', labelNames: [ 'messageType' ] })
};

Dependencies

  • express
  • prom-client

Default container resource metrics

Utilization

  • container_cpu_utilization
  • container_memory_utilization
  • container_disk_utilization

Network

  • container_bytes_sent
  • container_bytes_received
  • container_network_errors

Memory

  • container_memory_page_faults

Other

  • container_uptime

FAQs

Package last updated on 07 Sep 2018

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