@q42philips/statsd-daemon
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "@q42philips/statsd-daemon", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Simple statsd deamon to observe metrics being emitted on localhost", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
# Statsd Daemon | ||
This repository contains a simple statsd UDP server. When you run it on your local machine any other application emitting StatsD metrics to localhost will end up on the console output of this statsd-deamon. | ||
This is a simple statsd UDP server which can receive the telemetry emitted by your local statsd clients. When you run it on your machine any other application emitting StatsD metrics to localhost will end up on the console output of this statsd-deamon: | ||
Handy if you want to verify if your metrics are what you expect them to be. | ||
![Awesome console output](https://cloud.githubusercontent.com/assets/570645/26489437/a80df072-4207-11e7-9c20-b1cfaa7e60d0.png) | ||
NOTE: this is by no means a full-fledged statsd aggregator. | ||
This is especially usefull if you want to verify your applications behaviour locally before shipping and having to rely on the roundtrip with your time series database accumulating your metrics. There is no aggregation being done; the metrics are piped to the console with some color coding enhancement. | ||
# Usage | ||
## Usage | ||
## Install | ||
### Install | ||
You can install globally for convenience, which will add a `statsd-daemon` executable to your path: | ||
@@ -17,3 +17,3 @@ ``` | ||
# Run | ||
### Run | ||
If installed globally: | ||
@@ -29,12 +29,12 @@ ``` | ||
# Contributing | ||
## Contributing | ||
## Local development | ||
### Local development | ||
You can also create a symlink in your global node modules, making the `hue` binary globally accessible. Note that this only works if you first uninstall the NPM version | ||
You can also create a symlink in your global node modules, making the `statsd-daemon` binary globally accessible. Note that this only works if you first uninstall the NPM version | ||
``` bash | ||
$ npm uninstall -g @q42philips/statsd-daemon | ||
$ npm link | ||
$ hue <command> | ||
$ statsd-daemon | ||
``` | ||
@@ -48,4 +48,4 @@ | ||
## Creating a new release | ||
After PRs are merged to master, you can create a new version using npm. Please carefully check the changes made since the last release and [choose your update type accordingly](http://semver.org/), then create a new version using the command below. This will succeed only if the tests pass, to avoid versioning broken code. It will also push the newly created tag to this repository. | ||
### Creating a new release | ||
After PRs are merged to master, you can create a new version using NPM. Please carefully check the changes made since the last release and [choose your update type accordingly](http://semver.org/), then create a new version using the command below. This will succeed only if the tests pass, to avoid versioning broken code. It will also push the newly created tag to this repository. | ||
``` bash | ||
@@ -61,1 +61,6 @@ $ npm version <major|minor|patch> | ||
Finally, please take the time to add a changelog to the newly created release on Github, noting the new features, fixes or other notable stuff. | ||
### LICENSE | ||
MIT License |
@@ -12,4 +12,4 @@ #! /usr/bin/env node | ||
const PORT = 8125; | ||
const HOST = '127.0.0.1'; | ||
const PORT = process.env.LISTEN_PORT ? parseInt(process.env.LISTEN_PORT, 10) : 8125; | ||
const HOST = process.env.LISTEN_HOST || '127.0.0.1'; | ||
@@ -16,0 +16,0 @@ server.on('listening', () => { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8
62
6655
3
2