New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rsg-metrics-server

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rsg-metrics-server

A tiny server that for recieving metrics by HTTP post.

  • 0.0.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-57.89%
Maintainers
1
Weekly downloads
 
Created
Source

Metrics-Server

A tiny server for receiving metrics by HTTP post.

The metrics are stored to MongoDB.

Install

npm install -g rsg-metrics-server

Run

rsg-metrics-server  [--port <portno>] [--db <database-connection-string>] [--metricsCollection <database-collection>]

Configuration

Edit the file config.json where you can set the database, collections and port for the server.

{
    "db": "metrics",
    "metricsCollection": "metrics",
    "port": 3000
}

The port, db and metricsCollection can be overridden by the command line.

Post metrics

The body of the HTTP post should look like this

{
	"Metrics": [
		// Array of metrics posted to the server.
	],
	"Properties": [
		// Key/value pairs attached to this set of metrics. 
	]
} 

Each metric in the array is stored in the database as a separate document.

Each metric has time stamp and properties attached before being stored in the database.

Keywords

FAQs

Package last updated on 19 Nov 2015

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