Bijesse / fibonacci-java-apm

An example application instrumented with New Relic APM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample Java Application Instrumented with a New Relic APM Agent

This repository contains a simple Java application to calculate the nth number (between 1-90) in the Fibonacci sequence. It has no front end and runs locally in a terminal window. The built in load generator will generate and error every 4th attempt as it attempts to calculate a number outside of 1-90 on these attempts.

This application has been set up to be instrumented with New Relic APM. For similar versions of this same application, see the following repositories:

Requirements

To run this application with the New Relic Java agent

  1. From a new terminal window, clone this repository to your local machine using Git git clone https://github.com/Bijesse/fibonacci-java-apm

  2. Navigate into your new workspace using cd fibonacci-java-apm

  3. Export your ingest license key:

export NEW_RELIC_LICENSE_KEY='your_license_key'
  1. Build and run the app:
gradle bootRun
  1. To generate traffic, run:
./load-generator.sh
  1. Navigate to your New Relic account to see your data!

About

An example application instrumented with New Relic APM


Languages

Language:Java 86.8%Language:Shell 13.2%