Giter Club home page Giter Club logo

herokunewrelic's Introduction

Build Status

Getting Started

dep ensure
go build
export NEW_RELIC_STREAMING_LICENSE_KEY=key
export NEW_RELIC_APP_NAME="Your Heroku App Name"
export AUTH_SECRET=auth_secret
./herokunewrelic

To execute tests:

go test -v

NOTE: The commands above assumes that you have both [email protected] and dep installed. For further instructions on how to install the dependencies:

How to setup on Heroku as a log drain

Supposed that:

Simply execute the following command:

APP_HOST=herokunewrelic.herokuapp.com
HEROKU_APP_NAME=heroku-app
heroku drains:add https://$HEROKU_APP_NAME:$AUTH_SECRET@$APP_HOST -a HEROKU_APP_NAME

NOTE: The username for the basic auth part must will become the sourceAppName property for the custom NewRelic events.

TODO

  • NewRelic
  • Parse arbitrary metrics in addition to dyno runtime metrics
  • Honor env var LOG_LEVEL
  • Tagged logs with Request ID
  • Be idempotent (Logplex-Frame-Id)
  • Support custom event backends
  • Turn parseFrames into iterator to further reduce memory footprint
  • Operations
    • Memory/CPU usage
    • GC times
    • Go routines
  • Support for multiple log drain tokens
  • Logging for future debugging e.g. User-Agent since it maps to release version

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.