Giter Site home page Giter Site logo

statsd-infra-backend's Introduction

Overview

StatsD backend for sending metrics to New Relic Infrastructure

Requirements

  • StatsD versions >= 0.3.0.
  • New Relic Infrastructure Agent >= v1.0.818

Installation

    $ cd /path/to/statsd
    $ npm install @newrelic/statsd-infra-backend

Enabling

  1. Add @newrelic/statsd-infra-backend backend to the list of StatsD backends in the StatsD configuration file.
{
    backends: ["@newrelic/statsd-infra-backend"],
}
  1. Configure the necessary configuration values for running this backend:
    newrelic: {
      port: 5001,
      rules: [
        {
          matchExpression: "myapp.*redis.*",
          metricSchema: "{app}.{environment}.{service}.{serviceName}.{metricName}",
          eventType: "RedisStatsdSample",
          labels: {
            role: "cache",
            environment: "{environment}"
          }
        }
      ]
    }

See our example config file for a complete StatsD configuration.

  1. Start/restart the StatsD daemon and your metrics should now be pushed to your New Relic Infrastructure account.

Development

  • Fork and clone this project
  • Download project dependencies using npm
  • Modify the code
  • Ensure everything is running properly executing tests: npm test
  • Push the code to your fork
  • Send a Pull Request

License

New Relic Infrastructure Backend for StatsD is free-to-use, proprietary software. Please see the full license (found in LICENSE in this distribution) for details on its license and the licenses of its dependencies.

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.