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

autohost-metrics-collector

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autohost-metrics-collector

A client-side metronic collector API for autohost

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

autohost metrics collector

A simple autohost resource that provides a simple API for uploading metrics to be processed by metronic.

Use

This example demonstrates the configuration required to use this library and plug in the metronic-statsd adapter.

var host = require( 'autohost' );
var statsd = require( 'metronic-statsd' );

host.init( {
	modules: [ 'autohost-metrics-collector' ],
	...
} );

host.metrics.use( statsd );

API

Provides a single API method.

POST /api/metricsCollector

Requires metrics to be posted as an array (do not send single metrics):

[
	{
		"type": "time" | "meter" | [custom value]
		"key": your metric key
		"timestamp": timestamp *must* be in ISO8901 UTC
		"value": the metric value
		"units": the unit of measure
		...
	 },
	 ...
]

You can include arbitrary fields as part of the metric that may be used by down-stream metric adapters.

Keywords

FAQs

Package last updated on 17 Sep 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