GithubHelp home page GithubHelp logo

isabella232 / autohost-metrics-collector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leankit-labs/autohost-metrics-collector

0.0 0.0 0.0 203 KB

A client-side metronic collector API for autohost

License: MIT License

JavaScript 100.00%

autohost-metrics-collector's Introduction

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.

autohost-metrics-collector's People

Contributors

arobson avatar ifandelse avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.