Giter VIP home page Giter VIP logo

lab2's Introduction

lab2

Tomcat Java, Node.js and MSSQL lab for New Relic instrumentation

  • Containerized with Docker, it can run on Mac, Windows or Linux
  • Includes scripts to deploy on AWS for Game day team exercises

Background

The lab serves a few purposes. First, it processes words posted on a form, which are tallied using Redis. This provides a stand-alone application to generate some traffic to the Redis instance. Next, it serves images to another lab. This illustrates how distributed tracing can be used to track down an issue across multiple services. Finally, it provides some error scenarios to exercise the monitoring system.

Lab setup

  • The New Relic Java APM agent is installed on the container to monitor the Tomcat server running our Java app
  • The lab illustrates running micro-services with Docker, adding a Redis container to the system
  • A variation is provided to use MSSQL instead of Redis, to illustrate using a database OHI
  • The Java agent API is added to show how to record custom parameters
  • The New Relic Telemetry SDK is added to show how to capture Redis health stats as Dimensional Metrics
  • A Fluentd container forwards both the Redis and Tomcat logs to New Relic Logs
  • The Java app uses log4j, which is configured for New Relic logs-in-context
  • A Node.js file server with APM agent, providing a JSON API test framework for Synthetics functional testing

Error scenarios

This lab provides various error scenarios, including:

  • Distributed tracing across lab1 and this lab
  • A slow page load due to a large image size served by this lab
  • A JVM memory full error scenario
  • A Tomcat server down scenario
  • Inserting Javascript errors

lab2's People

Watchers

James Cloos avatar Teon Max Lucas 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.