0.0.10 • Published 8 years ago

rsg-metrics-server v0.0.10

Weekly downloads
7
License
MIT
Repository
github
Last release
8 years ago

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.

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago